changeset 6694:f2f7a8c1281e

i18n: use TG2 compatible settings names i18n.lang and i18n.enabled Following changes are made: - Remove list of available translations: severely outdated and hard to maintain. - Replace lang with i18n.lang, reasons: - Follow TurboGears2 conventions - Align with 'i18n.enabled' which cannot be shortened - Scoped settings provide grouping and are more clear The old 'lang' is still recognized though, so no upgrade issue. - Introduce/document i18n.enabled Comments are intentionally kept concise in favor of the documentation.
author Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
date Sat, 17 Jun 2017 21:53:24 +0200
parents 3b29103657df
children 8931078f70db
files development.ini kallithea/lib/paster_commands/template.ini.mako kallithea/tests/test.ini
diffstat 3 files changed, 21 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/development.ini	Sat Jun 17 22:19:11 2017 +0200
+++ b/development.ini	Sat Jun 17 21:53:24 2017 +0200
@@ -180,9 +180,13 @@
 
 full_stack = true
 static_files = true
-## Available Languages:
-## cs de fr hu ja nl_BE pl pt_BR ru sk zh_CN zh_TW
-lang =
+
+## Internationalization (see setup documentation for details)
+## By default, the language requested by the browser is used if available.
+#i18n.enable = false
+## Fallback language, empty for English (valid values are the names of subdirectories in kallithea/i18n):
+i18n.lang =
+
 cache_dir = %(here)s/data
 index_dir = %(here)s/data/index
 
--- a/kallithea/lib/paster_commands/template.ini.mako	Sat Jun 17 22:19:11 2017 +0200
+++ b/kallithea/lib/paster_commands/template.ini.mako	Sat Jun 17 21:53:24 2017 +0200
@@ -181,9 +181,13 @@
 
 full_stack = true
 static_files = true
-<%text>## Available Languages:</%text>
-<%text>## cs de fr hu ja nl_BE pl pt_BR ru sk zh_CN zh_TW</%text>
-lang =
+
+<%text>## Internationalization (see setup documentation for details)</%text>
+<%text>## By default, the language requested by the browser is used if available.</%text>
+#i18n.enable = false
+<%text>## Fallback language, empty for English (valid values are the names of subdirectories in kallithea/i18n):</%text>
+i18n.lang =
+
 cache_dir = %(here)s/data
 index_dir = %(here)s/data/index
 
--- a/kallithea/tests/test.ini	Sat Jun 17 22:19:11 2017 +0200
+++ b/kallithea/tests/test.ini	Sat Jun 17 21:53:24 2017 +0200
@@ -177,9 +177,13 @@
 
 full_stack = true
 static_files = true
-## Available Languages:
-## cs de fr hu ja nl_BE pl pt_BR ru sk zh_CN zh_TW
-lang =
+
+## Internationalization (see setup documentation for details)
+## By default, the language requested by the browser is used if available.
+#i18n.enable = false
+## Fallback language, empty for English (valid values are the names of subdirectories in kallithea/i18n):
+i18n.lang =
+
 #cache_dir = %(here)s/data
 cache_dir = %(here)s/../../data/test/cache
 #index_dir = %(here)s/data/index