Skip to content

Commit

Permalink
Some strings were being missed by gettext
Browse files Browse the repository at this point in the history
git-svn-id: svn://cherokee-project.com/cherokee/trunk@5106 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information
taher committed May 17, 2010
1 parent d1db378 commit dc4ae3a
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion admin/plugins/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@

class Plugin_directory (RuleSimple.PluginSimple):
def __init__ (self, key, **kwargs):
RuleSimple.PluginSimple.__init__ (self, key, _('Web Directory'), "directory", NOTE_DIRECTORY, _('Directory'), validations.is_path, **kwargs)
RuleSimple.PluginSimple.__init__ (self, key, _('Web Directory'), "directory", _(NOTE_DIRECTORY), _('Directory'), validations.is_path, **kwargs)
2 changes: 1 addition & 1 deletion admin/plugins/method.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
('merge', 'MERGE')
]

NOTE_METHOD = _("The HTTP method that should match this rule.")
NOTE_METHOD = N_("The HTTP method that should match this rule.")

def apply():
# POST info
Expand Down
6 changes: 3 additions & 3 deletions admin/plugins/post_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
URL_APPLY = '/plugin/post_report/apply'
HELPS = [('modules_handlers_post_report', _("POST Report"))]

NOTE_LANGUAGES = "Target language for which the information will be encoded. (Default: JSON)"
WARNING_NO_TRACK = 'The <a href="/general">Upload tracking mechanism</a> must be enabled for this handler to work.'
NOTE_LANGUAGES = N_("Target language for which the information will be encoded. (Default: JSON)")
WARNING_NO_TRACK = N_('The <a href="/general">Upload tracking mechanism</a> must be enabled for this handler to work.')

class Plugin_post_report (Handler.PluginHandler):
def __init__ (self, key, **kwargs):
Expand All @@ -40,7 +40,7 @@ def __init__ (self, key, **kwargs):

# Ensure POST track is enabled
if not CTK.cfg.get_val('server!post_track'):
self += CTK.Notice ('warning', CTK.RawHTML (WARNING_NO_TRACK))
self += CTK.Notice ('warning', CTK.RawHTML (_(WARNING_NO_TRACK)))

# Properties
table = CTK.PropsTable()
Expand Down
2 changes: 1 addition & 1 deletion admin/plugins/rehost.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__ (self, refreshable, key, url_apply, **kwargs):
# Warning message
if not entries:
notice = CTK.Notice('warning')
notice += CTK.RawHTML (WARNING_EMPTY)
notice += CTK.RawHTML (_(WARNING_EMPTY))
self += notice

# List
Expand Down
2 changes: 1 addition & 1 deletion admin/plugins/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@

class Plugin_request (RuleSimple.PluginSimple):
def __init__ (self, key, **kwargs):
RuleSimple.PluginSimple.__init__ (self, key, _('Regular Expression'), "request", NOTE_REQUEST, _('Regular Expression'), validations.is_regex, **kwargs)
RuleSimple.PluginSimple.__init__ (self, key, _('Regular Expression'), "request", _(NOTE_REQUEST), _('Regular Expression'), validations.is_regex, **kwargs)
2 changes: 1 addition & 1 deletion admin/plugins/target_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__ (self, refreshable, key, url_apply, **kwargs):
# Warning message
if not entries:
notice = CTK.Notice('warning')
notice += CTK.RawHTML (WARNING_EMPTY)
notice += CTK.RawHTML (_(WARNING_EMPTY))
self += notice

# List
Expand Down
2 changes: 1 addition & 1 deletion admin/plugins/wildcard.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__ (self, refreshable, key, url_apply, **kwargs):
# Warning message
if not entries:
notice = CTK.Notice('warning')
notice += CTK.RawHTML (WARNING_EMPTY)
notice += CTK.RawHTML (_(WARNING_EMPTY))
self += notice

# List
Expand Down

0 comments on commit dc4ae3a

Please sign in to comment.