##// END OF EJS Templates
i18n: make sure 'en' in Accept-Language is recognized as having 100% coverage - i18n.lang is for source language...
Mads Kiilerich -
r8012:7c7d6b5c stable
parent child Browse files
Show More
1 NO CONTENT: new file 100644, binary diff hidden
@@ -90,10 +90,12 b' full_stack = true'
90 90 static_files = true
91 91
92 92 ## Internationalization (see setup documentation for details)
93 ## By default, the language requested by the browser is used if available.
94 #i18n.enabled = false
95 ## Fallback language, empty for English (valid values are the names of subdirectories in kallithea/i18n):
96 i18n.lang =
93 ## By default, the languages requested by the browser are used if available, with English as default.
94 ## Set i18n.enabled=false to disable automatic language choice.
95 #i18n.enabled = true
96 ## To Force a language, set i18n.enabled=false and specify the language in i18n.lang.
97 ## Valid values are the names of subdirectories in kallithea/i18n with a LC_MESSAGES/kallithea.mo
98 #i18n.lang = en
97 99
98 100 cache_dir = %(here)s/data
99 101 index_dir = %(here)s/data/index
@@ -80,13 +80,12 b' The Kallithea web interface is automatic'
80 80 language, as indicated by the browser. Thus, different users may see the
81 81 application in different languages. If the requested language is not available
82 82 (because the translation file for that language does not yet exist or is
83 incomplete), the language specified in setting ``i18n.lang`` in the Kallithea
84 configuration file is used as fallback. If no fallback language is explicitly
85 specified, English is used.
83 incomplete), English is used.
86 84
87 85 If you want to disable automatic language detection and instead configure a
88 86 fixed language regardless of user preference, set ``i18n.enabled = false`` and
89 set ``i18n.lang`` to the desired language (or leave empty for English).
87 specify another language by setting ``i18n.lang`` in the Kallithea
88 configuration file.
90 89
91 90
92 91 Using Kallithea with SSH
@@ -98,6 +98,11 b' class KallitheaAppConfig(AppConfig):'
98 98 # Disable transaction manager -- currently Kallithea takes care of transactions itself
99 99 self['tm.enabled'] = False
100 100
101 # Set the i18n source language so TG doesn't search beyond 'en' in Accept-Language.
102 # Don't force the default here if configuration force something else.
103 if not self.get('i18n.lang'):
104 self['i18n.lang'] = 'en'
105
101 106
102 107 base_config = KallitheaAppConfig()
103 108
@@ -185,10 +185,12 b' full_stack = true'
185 185 static_files = true
186 186
187 187 <%text>## Internationalization (see setup documentation for details)</%text>
188 <%text>## By default, the language requested by the browser is used if available.</%text>
189 #i18n.enabled = false
190 <%text>## Fallback language, empty for English (valid values are the names of subdirectories in kallithea/i18n):</%text>
191 i18n.lang =
188 <%text>## By default, the languages requested by the browser are used if available, with English as default.</%text>
189 <%text>## Set i18n.enabled=false to disable automatic language choice.</%text>
190 #i18n.enabled = true
191 <%text>## To Force a language, set i18n.enabled=false and specify the language in i18n.lang.</%text>
192 <%text>## Valid values are the names of subdirectories in kallithea/i18n with a LC_MESSAGES/kallithea.mo</%text>
193 #i18n.lang = en
192 194
193 195 cache_dir = %(here)s/data
194 196 index_dir = %(here)s/data/index
General Comments 0
You need to be logged in to leave comments. Login now