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
Hide 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');
echo
gettext
(
'ARP Table'
);
echo
gettext
(
'Access'
);
echo
gettext
(
'Access Lists'
);
echo
gettext
(
'Act'
);
echo
gettext
(
'Actions'
);
echo
gettext
(
'Administration'
);
echo
gettext
(
'Advanced'
);
...
...
@@ -74,13 +73,11 @@ echo gettext('DNS Tools');
echo
gettext
(
'Dashboard'
);
echo
gettext
(
'Defaults'
);
echo
gettext
(
'Description should be a string between 1 and 255 characters'
);
echo
gettext
(
'Details'
);
echo
gettext
(
'Detault Parameters'
);
echo
gettext
(
'Devices'
);
echo
gettext
(
'Diagnostics'
);
echo
gettext
(
'Documentation'
);
echo
gettext
(
'Does not look like a valid cookie name (most special characters are not allowed).'
);
echo
gettext
(
'Domains'
);
echo
gettext
(
'DynDNS'
);
echo
gettext
(
'Dynamic View'
);
echo
gettext
(
'Edit'
);
...
...
@@ -95,7 +92,6 @@ echo gettext('Filter');
echo
gettext
(
'Filter Reload'
);
echo
gettext
(
'Firewall'
);
echo
gettext
(
'Firmware'
);
echo
gettext
(
'Floating'
);
echo
gettext
(
'Forward'
);
echo
gettext
(
'Frontends'
);
echo
gettext
(
'GIF'
);
...
...
@@ -115,16 +111,13 @@ echo gettext('Hello World!');
echo
gettext
(
'Help'
);
echo
gettext
(
'High Availability'
);
echo
gettext
(
'History'
);
echo
gettext
(
'Hosts'
);
echo
gettext
(
'ICAP'
);
echo
gettext
(
'ICP port needs to be an integer value between 1 and 65535'
);
echo
gettext
(
'IGMP Proxy'
);
echo
gettext
(
'IGMPProxyEdit'
);
echo
gettext
(
'IPsec'
);
echo
gettext
(
'Idle timeout must be between 0(no timeout) and 10080 (a week)'
);
echo
gettext
(
'Import'
);
echo
gettext
(
'Insight'
);
echo
gettext
(
'Interface'
);
echo
gettext
(
'Interfaces'
);
echo
gettext
(
'Intrusion Detection'
);
echo
gettext
(
'L2TP'
);
...
...
@@ -145,7 +138,6 @@ echo gettext('Maximum number of zones reached');
echo
gettext
(
'Miscellaneous'
);
echo
gettext
(
'Mobile Clients'
);
echo
gettext
(
'Monitors'
);
echo
gettext
(
'More'
);
echo
gettext
(
'NAT'
);
echo
gettext
(
'NDP Table'
);
echo
gettext
(
'NPT (IPv6)'
);
...
...
@@ -166,8 +158,6 @@ echo gettext('PPS');
echo
gettext
(
'PPTP'
);
echo
gettext
(
'Packet Capture'
);
echo
gettext
(
'Password'
);
echo
gettext
(
'Phase1'
);
echo
gettext
(
'Phase2'
);
echo
gettext
(
'Ping'
);
echo
gettext
(
'Pipe number must be between 1...65535'
);
echo
gettext
(
'Pipes'
);
...
...
@@ -208,13 +198,11 @@ echo gettext('Pool Status');
echo
gettext
(
'Port Forward'
);
echo
gettext
(
'Power Off'
);
echo
gettext
(
'Pre-Shared Keys'
);
echo
gettext
(
'Privileges'
);
echo
gettext
(
'Proxy Server'
);
echo
gettext
(
'Proxy port needs to be an integer value between 1 and 65535'
);
echo
gettext
(
'QinQ'
);
echo
gettext
(
'Queue number must be between 1...65535'
);
echo
gettext
(
'Queues'
);
echo
gettext
(
'RA'
);
echo
gettext
(
'RFC 2136'
);
echo
gettext
(
'Reboot'
);
echo
gettext
(
'Related cron not found'
);
...
...
@@ -227,15 +215,12 @@ echo gettext('RemoteACL');
echo
gettext
(
'Reporter'
);
echo
gettext
(
'Reporting'
);
echo
gettext
(
'Revocation'
);
echo
gettext
(
'Root'
);
echo
gettext
(
'Routes'
);
echo
gettext
(
'Rules'
);
echo
gettext
(
'RulesEdit'
);
echo
gettext
(
'SMART'
);
echo
gettext
(
'SNMP'
);
echo
gettext
(
'SSL Proxy port needs to be an integer value between 1 and 65535'
);
echo
gettext
(
'Schedules'
);
echo
gettext
(
'SchedulesEdit'
);
echo
gettext
(
'Security Association Database'
);
echo
gettext
(
'Security Policy Database'
);
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 "
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
(
'Sockets'
);
echo
gettext
(
'SocketsDetails'
);
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 memory cache size. (number of MB\'s)'
);
...
...
@@ -267,12 +251,10 @@ echo gettext('Statistics');
echo
gettext
(
'Statistics Configuration'
);
echo
gettext
(
'Status'
);
echo
gettext
(
'Status Overview'
);
echo
gettext
(
'Step'
);
echo
gettext
(
'Stick Tables'
);
echo
gettext
(
'Summary View'
);
echo
gettext
(
'Synchronization'
);
echo
gettext
(
'System'
);
echo
gettext
(
'Tab'
);
echo
gettext
(
'Template name should be a string between 1 and 255 characters'
);
echo
gettext
(
'Test Port'
);
echo
gettext
(
'Tester'
);
...
...
@@ -286,7 +268,6 @@ echo gettext('TrafficManagement');
echo
gettext
(
'Trust'
);
echo
gettext
(
'Tunables'
);
echo
gettext
(
'Tunnel Settings'
);
echo
gettext
(
'Type'
);
echo
gettext
(
'Universal Plug and Play'
);
echo
gettext
(
'Updates'
);
echo
gettext
(
'User Forum'
);
...
...
@@ -302,17 +283,13 @@ echo gettext('View');
echo
gettext
(
'Virtual IPs'
);
echo
gettext
(
'Virtual Server Setup'
);
echo
gettext
(
'Virtual Server Status'
);
echo
gettext
(
'VirtualIPEdit'
);
echo
gettext
(
'Vouchers'
);
echo
gettext
(
'Wake on LAN'
);
echo
gettext
(
'Weight must be between 1...100'
);
echo
gettext
(
'Wireless'
);
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
(
'menu'
);
echo
gettext
(
'none'
);
echo
gettext
(
'origin should be regular text of max 30 characters'
);
echo
gettext
(
'pfInfo'
);
echo
gettext
(
'pfTables'
);
...
...
@@ -322,4 +299,3 @@ echo gettext('provide a valid sequence for sorting');
echo
gettext
(
'queue size should be between 2...100'
);
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
(
'workAround'
);
dynamic/plugins/models.py
View file @
6032f033
...
...
@@ -43,10 +43,11 @@ def recursiveParseMenu(xmlNode):
for
tag
in
recursiveParseMenu
(
childNode
):
yield
tag
if
xmlNode
.
attrib
.
has_key
(
'VisibleName'
):
yield
xmlNode
.
attrib
[
'VisibleName'
]
else
:
yield
xmlNode
.
tag
if
not
xmlNode
.
attrib
.
has_key
(
'visibility'
):
if
xmlNode
.
attrib
.
has_key
(
'VisibleName'
):
yield
xmlNode
.
attrib
[
'VisibleName'
]
else
:
yield
xmlNode
.
tag
def
getTranslations
(
root
):
import
os
...
...
@@ -54,7 +55,6 @@ def getTranslations(root):
rootpath
=
'
%
s/opnsense/mvc/app/models/'
%
root
for
rootdir
,
dirs
,
files
in
os
.
walk
(
rootpath
,
topdown
=
False
):
for
name
in
files
:
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