i18n support.

This commit is contained in:
Dave Page
2015-02-25 17:06:00 +00:00
parent 39089cca21
commit 83cbe87040
28 changed files with 704 additions and 108 deletions

View File

@@ -10,6 +10,7 @@
"""Browser integration functions for the Help module."""
from flask import url_for
from flask.ext.babel import gettext
import config
@@ -17,7 +18,7 @@ def get_help_menu_items():
"""Return a (set) of dicts of help menu items, with name, priority, URL,
target and onclick code."""
return [{'name': 'mnu_contents',
'label': 'Contents',
'label': gettext('Contents'),
'priority': 1,
'target': '_new',
'url': url_for('help.static', filename='index.html') }]