Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
ebecb761
Commit
ebecb761
authored
May 31, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(lang) fix language collector scripts (model/controller)
parent
82a4ebb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
controllers.py
lang/dynamic/plugins/controllers.py
+5
-5
models.py
lang/dynamic/plugins/models.py
+7
-7
No files found.
lang/dynamic/plugins/controllers.py
View file @
ebecb761
...
@@ -51,12 +51,12 @@ def getTranslations(root):
...
@@ -51,12 +51,12 @@ def getTranslations(root):
rootpath
=
'
%
s/opnsense/mvc/app/controllers/'
%
root
rootpath
=
'
%
s/opnsense/mvc/app/controllers/'
%
root
for
root
,
dirs
,
files
in
os
.
walk
(
rootpath
,
topdown
=
False
):
for
root
dir
,
dirs
,
files
in
os
.
walk
(
rootpath
,
topdown
=
False
):
for
name
in
files
:
for
name
in
files
:
if
name
.
lower
()[
-
4
:]
==
'.xml'
:
if
name
.
lower
()[
-
4
:]
==
'.xml'
:
filename
=
'
%
s/
%
s'
%
(
root
,
name
)
filename
=
'
%
s/
%
s'
%
(
root
dir
,
name
)
tree
=
ET
.
parse
(
filename
)
tree
=
ET
.
parse
(
filename
)
root
=
tree
.
getroot
()
root
Obj
=
tree
.
getroot
()
if
root
.
tag
==
'form'
:
if
root
Obj
.
tag
==
'form'
:
for
tag
in
recursiveParseForm
(
root
):
for
tag
in
recursiveParseForm
(
root
Obj
):
yield
tag
yield
tag
lang/dynamic/plugins/models.py
View file @
ebecb761
...
@@ -60,15 +60,15 @@ def getTranslations(root):
...
@@ -60,15 +60,15 @@ def getTranslations(root):
rootpath
=
'
%
s/opnsense/mvc/app/models/'
%
root
rootpath
=
'
%
s/opnsense/mvc/app/models/'
%
root
for
root
,
dirs
,
files
in
os
.
walk
(
rootpath
,
topdown
=
False
):
for
root
dir
,
dirs
,
files
in
os
.
walk
(
rootpath
,
topdown
=
False
):
for
name
in
files
:
for
name
in
files
:
if
name
.
lower
()[
-
4
:]
==
'.xml'
:
if
name
.
lower
()[
-
4
:]
==
'.xml'
:
filename
=
'
%
s/
%
s'
%
(
root
,
name
)
filename
=
'
%
s/
%
s'
%
(
root
dir
,
name
)
tree
=
ET
.
parse
(
filename
)
tree
=
ET
.
parse
(
filename
)
root
=
tree
.
getroot
()
root
Obj
=
tree
.
getroot
()
if
root
.
tag
==
'model'
:
if
root
Obj
.
tag
==
'model'
:
for
tag
in
recursiveParseModel
(
root
):
for
tag
in
recursiveParseModel
(
root
Obj
):
yield
tag
yield
tag
elif
root
.
tag
==
'menu'
:
elif
root
Obj
.
tag
==
'menu'
:
for
tag
in
recursiveParseMenu
(
root
):
for
tag
in
recursiveParseMenu
(
root
Obj
):
yield
tag
yield
tag
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment