##// END OF EJS Templates
admin: Use pyramid translation instead of pylons.
Martin Bornhold -
r299:5db189c6 default
parent child Browse files
Show More
@@ -23,11 +23,11 b' import logging'
23 import collections
23 import collections
24
24
25 from pylons import url
25 from pylons import url
26 from pylons.i18n.translation import lazy_ugettext
27 from zope.interface import implementer
26 from zope.interface import implementer
28
27
29 from rhodecode.admin.interfaces import IAdminNavigationRegistry
28 from rhodecode.admin.interfaces import IAdminNavigationRegistry
30 from rhodecode.lib.utils import get_registry
29 from rhodecode.lib.utils import get_registry
30 from rhodecode.translation import _
31
31
32
32
33 log = logging.getLogger(__name__)
33 log = logging.getLogger(__name__)
@@ -71,28 +71,24 b' class NavEntry(object):'
71 class NavigationRegistry(object):
71 class NavigationRegistry(object):
72
72
73 _base_entries = [
73 _base_entries = [
74 NavEntry('global', lazy_ugettext('Global'), 'admin_settings_global'),
74 NavEntry('global', _('Global'), 'admin_settings_global'),
75 NavEntry('vcs', lazy_ugettext('VCS'), 'admin_settings_vcs'),
75 NavEntry('vcs', _('VCS'), 'admin_settings_vcs'),
76 NavEntry('visual', lazy_ugettext('Visual'), 'admin_settings_visual'),
76 NavEntry('visual', _('Visual'), 'admin_settings_visual'),
77 NavEntry('mapping', lazy_ugettext('Remap and Rescan'),
77 NavEntry('mapping', _('Remap and Rescan'), 'admin_settings_mapping'),
78 'admin_settings_mapping'),
78 NavEntry('issuetracker', _('Issue Tracker'),
79 NavEntry('issuetracker', lazy_ugettext('Issue Tracker'),
80 'admin_settings_issuetracker'),
79 'admin_settings_issuetracker'),
81 NavEntry('email', lazy_ugettext('Email'), 'admin_settings_email'),
80 NavEntry('email', _('Email'), 'admin_settings_email'),
82 NavEntry('hooks', lazy_ugettext('Hooks'), 'admin_settings_hooks'),
81 NavEntry('hooks', _('Hooks'), 'admin_settings_hooks'),
83 NavEntry('search', lazy_ugettext('Full Text Search'),
82 NavEntry('search', _('Full Text Search'), 'admin_settings_search'),
84 'admin_settings_search'),
83 NavEntry('system', _('System Info'), 'admin_settings_system'),
85 NavEntry('system', lazy_ugettext('System Info'),
84 NavEntry('open_source', _('Open Source Licenses'),
86 'admin_settings_system'),
87 NavEntry('open_source', lazy_ugettext('Open Source Licenses'),
88 'admin_settings_open_source', pyramid=True),
85 'admin_settings_open_source', pyramid=True),
89 # TODO: marcink: we disable supervisor now until the supervisor stats
86 # TODO: marcink: we disable supervisor now until the supervisor stats
90 # page is fixed in the nix configuration
87 # page is fixed in the nix configuration
91 # NavEntry('supervisor', lazy_ugettext('Supervisor'),
88 # NavEntry('supervisor', _('Supervisor'), 'admin_settings_supervisor'),
92 # 'admin_settings_supervisor'),
93 ]
89 ]
94
90
95 _labs_entry = NavEntry('labs', lazy_ugettext('Labs'),
91 _labs_entry = NavEntry('labs', _('Labs'),
96 'admin_settings_labs')
92 'admin_settings_labs')
97
93
98 def __init__(self, labs_active=False):
94 def __init__(self, labs_active=False):
General Comments 0
You need to be logged in to leave comments. Login now