Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lang
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
Administrator
lang
Commits
6032f033
Commit
6032f033
authored
Apr 25, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dynamic: remove menu entries that are hidden
parent
b1b62e6e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
29 deletions
+5
-29
models.php
dynamic/helpers/models.php
+0
-24
models.py
dynamic/plugins/models.py
+5
-5
No files found.
dynamic/helpers/models.php
View file @
6032f033
...
@@ -39,7 +39,6 @@ echo gettext('ACLs');
...
@@ -39,7 +39,6 @@ echo gettext('ACLs');
echo
gettext
(
'ARP Table'
);
echo
gettext
(
'ARP Table'
);
echo
gettext
(
'Access'
);
echo
gettext
(
'Access'
);
echo
gettext
(
'Access Lists'
);
echo
gettext
(
'Access Lists'
);
echo
gettext
(
'Act'
);
echo
gettext
(
'Actions'
);
echo
gettext
(
'Actions'
);
echo
gettext
(
'Administration'
);
echo
gettext
(
'Administration'
);
echo
gettext
(
'Advanced'
);
echo
gettext
(
'Advanced'
);
...
@@ -74,13 +73,11 @@ echo gettext('DNS Tools');
...
@@ -74,13 +73,11 @@ echo gettext('DNS Tools');
echo
gettext
(
'Dashboard'
);
echo
gettext
(
'Dashboard'
);
echo
gettext
(
'Defaults'
);
echo
gettext
(
'Defaults'
);
echo
gettext
(
'Description should be a string between 1 and 255 characters'
);
echo
gettext
(
'Description should be a string between 1 and 255 characters'
);
echo
gettext
(
'Details'
);
echo
gettext
(
'Detault Parameters'
);
echo
gettext
(
'Detault Parameters'
);
echo
gettext
(
'Devices'
);
echo
gettext
(
'Devices'
);
echo
gettext
(
'Diagnostics'
);
echo
gettext
(
'Diagnostics'
);
echo
gettext
(
'Documentation'
);
echo
gettext
(
'Documentation'
);
echo
gettext
(
'Does not look like a valid cookie name (most special characters are not allowed).'
);
echo
gettext
(
'Does not look like a valid cookie name (most special characters are not allowed).'
);
echo
gettext
(
'Domains'
);
echo
gettext
(
'DynDNS'
);
echo
gettext
(
'DynDNS'
);
echo
gettext
(
'Dynamic View'
);
echo
gettext
(
'Dynamic View'
);
echo
gettext
(
'Edit'
);
echo
gettext
(
'Edit'
);
...
@@ -95,7 +92,6 @@ echo gettext('Filter');
...
@@ -95,7 +92,6 @@ echo gettext('Filter');
echo
gettext
(
'Filter Reload'
);
echo
gettext
(
'Filter Reload'
);
echo
gettext
(
'Firewall'
);
echo
gettext
(
'Firewall'
);
echo
gettext
(
'Firmware'
);
echo
gettext
(
'Firmware'
);
echo
gettext
(
'Floating'
);
echo
gettext
(
'Forward'
);
echo
gettext
(
'Forward'
);
echo
gettext
(
'Frontends'
);
echo
gettext
(
'Frontends'
);
echo
gettext
(
'GIF'
);
echo
gettext
(
'GIF'
);
...
@@ -115,16 +111,13 @@ echo gettext('Hello World!');
...
@@ -115,16 +111,13 @@ echo gettext('Hello World!');
echo
gettext
(
'Help'
);
echo
gettext
(
'Help'
);
echo
gettext
(
'High Availability'
);
echo
gettext
(
'High Availability'
);
echo
gettext
(
'History'
);
echo
gettext
(
'History'
);
echo
gettext
(
'Hosts'
);
echo
gettext
(
'ICAP'
);
echo
gettext
(
'ICAP'
);
echo
gettext
(
'ICP port needs to be an integer value between 1 and 65535'
);
echo
gettext
(
'ICP port needs to be an integer value between 1 and 65535'
);
echo
gettext
(
'IGMP Proxy'
);
echo
gettext
(
'IGMP Proxy'
);
echo
gettext
(
'IGMPProxyEdit'
);
echo
gettext
(
'IPsec'
);
echo
gettext
(
'IPsec'
);
echo
gettext
(
'Idle timeout must be between 0(no timeout) and 10080 (a week)'
);
echo
gettext
(
'Idle timeout must be between 0(no timeout) and 10080 (a week)'
);
echo
gettext
(
'Import'
);
echo
gettext
(
'Import'
);
echo
gettext
(
'Insight'
);
echo
gettext
(
'Insight'
);
echo
gettext
(
'Interface'
);
echo
gettext
(
'Interfaces'
);
echo
gettext
(
'Interfaces'
);
echo
gettext
(
'Intrusion Detection'
);
echo
gettext
(
'Intrusion Detection'
);
echo
gettext
(
'L2TP'
);
echo
gettext
(
'L2TP'
);
...
@@ -145,7 +138,6 @@ echo gettext('Maximum number of zones reached');
...
@@ -145,7 +138,6 @@ echo gettext('Maximum number of zones reached');
echo
gettext
(
'Miscellaneous'
);
echo
gettext
(
'Miscellaneous'
);
echo
gettext
(
'Mobile Clients'
);
echo
gettext
(
'Mobile Clients'
);
echo
gettext
(
'Monitors'
);
echo
gettext
(
'Monitors'
);
echo
gettext
(
'More'
);
echo
gettext
(
'NAT'
);
echo
gettext
(
'NAT'
);
echo
gettext
(
'NDP Table'
);
echo
gettext
(
'NDP Table'
);
echo
gettext
(
'NPT (IPv6)'
);
echo
gettext
(
'NPT (IPv6)'
);
...
@@ -166,8 +158,6 @@ echo gettext('PPS');
...
@@ -166,8 +158,6 @@ echo gettext('PPS');
echo
gettext
(
'PPTP'
);
echo
gettext
(
'PPTP'
);
echo
gettext
(
'Packet Capture'
);
echo
gettext
(
'Packet Capture'
);
echo
gettext
(
'Password'
);
echo
gettext
(
'Password'
);
echo
gettext
(
'Phase1'
);
echo
gettext
(
'Phase2'
);
echo
gettext
(
'Ping'
);
echo
gettext
(
'Ping'
);
echo
gettext
(
'Pipe number must be between 1...65535'
);
echo
gettext
(
'Pipe number must be between 1...65535'
);
echo
gettext
(
'Pipes'
);
echo
gettext
(
'Pipes'
);
...
@@ -208,13 +198,11 @@ echo gettext('Pool Status');
...
@@ -208,13 +198,11 @@ echo gettext('Pool Status');
echo
gettext
(
'Port Forward'
);
echo
gettext
(
'Port Forward'
);
echo
gettext
(
'Power Off'
);
echo
gettext
(
'Power Off'
);
echo
gettext
(
'Pre-Shared Keys'
);
echo
gettext
(
'Pre-Shared Keys'
);
echo
gettext
(
'Privileges'
);
echo
gettext
(
'Proxy Server'
);
echo
gettext
(
'Proxy Server'
);
echo
gettext
(
'Proxy port needs to be an integer value between 1 and 65535'
);
echo
gettext
(
'Proxy port needs to be an integer value between 1 and 65535'
);
echo
gettext
(
'QinQ'
);
echo
gettext
(
'QinQ'
);
echo
gettext
(
'Queue number must be between 1...65535'
);
echo
gettext
(
'Queue number must be between 1...65535'
);
echo
gettext
(
'Queues'
);
echo
gettext
(
'Queues'
);
echo
gettext
(
'RA'
);
echo
gettext
(
'RFC 2136'
);
echo
gettext
(
'RFC 2136'
);
echo
gettext
(
'Reboot'
);
echo
gettext
(
'Reboot'
);
echo
gettext
(
'Related cron not found'
);
echo
gettext
(
'Related cron not found'
);
...
@@ -227,15 +215,12 @@ echo gettext('RemoteACL');
...
@@ -227,15 +215,12 @@ echo gettext('RemoteACL');
echo
gettext
(
'Reporter'
);
echo
gettext
(
'Reporter'
);
echo
gettext
(
'Reporting'
);
echo
gettext
(
'Reporting'
);
echo
gettext
(
'Revocation'
);
echo
gettext
(
'Revocation'
);
echo
gettext
(
'Root'
);
echo
gettext
(
'Routes'
);
echo
gettext
(
'Routes'
);
echo
gettext
(
'Rules'
);
echo
gettext
(
'Rules'
);
echo
gettext
(
'RulesEdit'
);
echo
gettext
(
'SMART'
);
echo
gettext
(
'SMART'
);
echo
gettext
(
'SNMP'
);
echo
gettext
(
'SNMP'
);
echo
gettext
(
'SSL Proxy port needs to be an integer value between 1 and 65535'
);
echo
gettext
(
'SSL Proxy port needs to be an integer value between 1 and 65535'
);
echo
gettext
(
'Schedules'
);
echo
gettext
(
'Schedules'
);
echo
gettext
(
'SchedulesEdit'
);
echo
gettext
(
'Security Association Database'
);
echo
gettext
(
'Security Association Database'
);
echo
gettext
(
'Security Policy Database'
);
echo
gettext
(
'Security Policy Database'
);
echo
gettext
(
'Select a command from the list.'
);
echo
gettext
(
'Select a command from the list.'
);
...
@@ -250,7 +235,6 @@ echo gettext('Should be a number between 1 and 5 characters followed by either "
...
@@ -250,7 +235,6 @@ echo gettext('Should be a number between 1 and 5 characters followed by either "
echo
gettext
(
'Should be a number between 1 and 5 characters followed by either "k", "m" or "g".'
);
echo
gettext
(
'Should be a number between 1 and 5 characters followed by either "k", "m" or "g".'
);
echo
gettext
(
'Should be a string between 1 and 255 characters.'
);
echo
gettext
(
'Should be a string between 1 and 255 characters.'
);
echo
gettext
(
'Sockets'
);
echo
gettext
(
'Sockets'
);
echo
gettext
(
'SocketsDetails'
);
echo
gettext
(
'Specify a maximum object size. (number of MB\'s)'
);
echo
gettext
(
'Specify a maximum object size. (number of MB\'s)'
);
echo
gettext
(
'Specify a positive cache size. (number of MB\'s)'
);
echo
gettext
(
'Specify a positive cache size. (number of MB\'s)'
);
echo
gettext
(
'Specify a positive memory cache size. (number of MB\'s)'
);
echo
gettext
(
'Specify a positive memory cache size. (number of MB\'s)'
);
...
@@ -267,12 +251,10 @@ echo gettext('Statistics');
...
@@ -267,12 +251,10 @@ echo gettext('Statistics');
echo
gettext
(
'Statistics Configuration'
);
echo
gettext
(
'Statistics Configuration'
);
echo
gettext
(
'Status'
);
echo
gettext
(
'Status'
);
echo
gettext
(
'Status Overview'
);
echo
gettext
(
'Status Overview'
);
echo
gettext
(
'Step'
);
echo
gettext
(
'Stick Tables'
);
echo
gettext
(
'Stick Tables'
);
echo
gettext
(
'Summary View'
);
echo
gettext
(
'Summary View'
);
echo
gettext
(
'Synchronization'
);
echo
gettext
(
'Synchronization'
);
echo
gettext
(
'System'
);
echo
gettext
(
'System'
);
echo
gettext
(
'Tab'
);
echo
gettext
(
'Template name should be a string between 1 and 255 characters'
);
echo
gettext
(
'Template name should be a string between 1 and 255 characters'
);
echo
gettext
(
'Test Port'
);
echo
gettext
(
'Test Port'
);
echo
gettext
(
'Tester'
);
echo
gettext
(
'Tester'
);
...
@@ -286,7 +268,6 @@ echo gettext('TrafficManagement');
...
@@ -286,7 +268,6 @@ echo gettext('TrafficManagement');
echo
gettext
(
'Trust'
);
echo
gettext
(
'Trust'
);
echo
gettext
(
'Tunables'
);
echo
gettext
(
'Tunables'
);
echo
gettext
(
'Tunnel Settings'
);
echo
gettext
(
'Tunnel Settings'
);
echo
gettext
(
'Type'
);
echo
gettext
(
'Universal Plug and Play'
);
echo
gettext
(
'Universal Plug and Play'
);
echo
gettext
(
'Updates'
);
echo
gettext
(
'Updates'
);
echo
gettext
(
'User Forum'
);
echo
gettext
(
'User Forum'
);
...
@@ -302,17 +283,13 @@ echo gettext('View');
...
@@ -302,17 +283,13 @@ echo gettext('View');
echo
gettext
(
'Virtual IPs'
);
echo
gettext
(
'Virtual IPs'
);
echo
gettext
(
'Virtual Server Setup'
);
echo
gettext
(
'Virtual Server Setup'
);
echo
gettext
(
'Virtual Server Status'
);
echo
gettext
(
'Virtual Server Status'
);
echo
gettext
(
'VirtualIPEdit'
);
echo
gettext
(
'Vouchers'
);
echo
gettext
(
'Vouchers'
);
echo
gettext
(
'Wake on LAN'
);
echo
gettext
(
'Wake on LAN'
);
echo
gettext
(
'Weight must be between 1...100'
);
echo
gettext
(
'Weight must be between 1...100'
);
echo
gettext
(
'Wireless'
);
echo
gettext
(
'Wireless'
);
echo
gettext
(
'Wizard'
);
echo
gettext
(
'Wizard'
);
echo
gettext
(
'WoLEdit'
);
echo
gettext
(
'Wol'
);
echo
gettext
(
'max size needs to be an integer value between 1 and 65535'
);
echo
gettext
(
'max size needs to be an integer value between 1 and 65535'
);
echo
gettext
(
'menu'
);
echo
gettext
(
'menu'
);
echo
gettext
(
'none'
);
echo
gettext
(
'origin should be regular text of max 30 characters'
);
echo
gettext
(
'origin should be regular text of max 30 characters'
);
echo
gettext
(
'pfInfo'
);
echo
gettext
(
'pfInfo'
);
echo
gettext
(
'pfTables'
);
echo
gettext
(
'pfTables'
);
...
@@ -322,4 +299,3 @@ echo gettext('provide a valid sequence for sorting');
...
@@ -322,4 +299,3 @@ echo gettext('provide a valid sequence for sorting');
echo
gettext
(
'queue size should be between 2...100'
);
echo
gettext
(
'queue size should be between 2...100'
);
echo
gettext
(
'sid should be a number'
);
echo
gettext
(
'sid should be a number'
);
echo
gettext
(
'the number of sslrtd children needs to be an integer value between 1 and 32'
);
echo
gettext
(
'the number of sslrtd children needs to be an integer value between 1 and 32'
);
echo
gettext
(
'workAround'
);
dynamic/plugins/models.py
View file @
6032f033
...
@@ -43,6 +43,7 @@ def recursiveParseMenu(xmlNode):
...
@@ -43,6 +43,7 @@ def recursiveParseMenu(xmlNode):
for
tag
in
recursiveParseMenu
(
childNode
):
for
tag
in
recursiveParseMenu
(
childNode
):
yield
tag
yield
tag
if
not
xmlNode
.
attrib
.
has_key
(
'visibility'
):
if
xmlNode
.
attrib
.
has_key
(
'VisibleName'
):
if
xmlNode
.
attrib
.
has_key
(
'VisibleName'
):
yield
xmlNode
.
attrib
[
'VisibleName'
]
yield
xmlNode
.
attrib
[
'VisibleName'
]
else
:
else
:
...
@@ -54,7 +55,6 @@ def getTranslations(root):
...
@@ -54,7 +55,6 @@ def getTranslations(root):
rootpath
=
'
%
s/opnsense/mvc/app/models/'
%
root
rootpath
=
'
%
s/opnsense/mvc/app/models/'
%
root
for
rootdir
,
dirs
,
files
in
os
.
walk
(
rootpath
,
topdown
=
False
):
for
rootdir
,
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'
:
...
...
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