admin/settings: plug new custom translation setting page
This commit is contained in:
parent
1c2069a8cc
commit
6d7854d860
|
@ -31,6 +31,7 @@ import qommon.template
|
|||
|
||||
from qommon.admin.emails import EmailsDirectory
|
||||
from qommon.admin.texts import TextsDirectory
|
||||
from qommon.admin.translations import TranslationsDirectory
|
||||
|
||||
from authentic.form import *
|
||||
import authentic
|
||||
|
@ -742,10 +743,11 @@ class SettingsDirectory(schemagui.SettingDirectory):
|
|||
_q_exports = ['', 'idp', 'liberty_providers',
|
||||
'identity_storage', 'identity_options', 'themes', 'passwords',
|
||||
'debug', 'debug_options', 'emails', 'language', 'login', 'template', 'branding', 'texts',
|
||||
'misc', 'sitename', 'ssl', 'upload_theme', 'debug', 'identities', 'cas', 'homepage']
|
||||
'misc', 'sitename', 'ssl', 'upload_theme', 'debug', 'identities', 'cas', 'homepage', 'translations']
|
||||
|
||||
emails = EmailsDirectory()
|
||||
texts = TextsDirectory()
|
||||
translations = TranslationsDirectory()
|
||||
|
||||
liberty_providers = LibertyProvidersDir()
|
||||
endpoints_prefixes = { 'slo': 'proxySingleLogout',
|
||||
|
@ -818,6 +820,8 @@ class SettingsDirectory(schemagui.SettingDirectory):
|
|||
_('Login Screen'), _('Configure login screen'))
|
||||
'<dt><a href="texts/">%s</a></dt> <dd>%s</dd>' % (
|
||||
_('Texts'), _('Configure public pages texts'))
|
||||
'<dt><a href="translations/">%s</a></dt> <dd>%s</dd>' % (
|
||||
_('Custom Translations'), _('Define custom translations'))
|
||||
'</dl>'
|
||||
|
||||
'<h2>%s</h2>' % _('Debug')
|
||||
|
|
Reference in New Issue