Aurélien Bompard has proposed merging lp:~abompard/mailman/default_languages 
into lp:mailman.

Requested reviews:
  Mailman Coders (mailman-coders)

For more details, see:
https://code.launchpad.net/~abompard/mailman/default_languages/+merge/216401

This branch adds the default languages that were defined in Mailman 2.1.
-- 
https://code.launchpad.net/~abompard/mailman/default_languages/+merge/216401
Your team Mailman Coders is requested to review the proposed merge of 
lp:~abompard/mailman/default_languages into lp:mailman.
=== modified file 'src/mailman/app/tests/test_templates.py'
--- src/mailman/app/tests/test_templates.py	2014-04-14 16:14:13 +0000
+++ src/mailman/app/tests/test_templates.py	2014-04-17 21:36:46 +0000
@@ -58,7 +58,6 @@
         with open(os.path.join(path, 'demo.txt'), 'w') as fp:
             print('Test content', end='', file=fp)
         self._loader = getUtility(ITemplateLoader)
-        getUtility(ILanguageManager).add('it', 'utf-8', 'Italian')
         self._mlist = create_list('[email protected]')
 
     def tearDown(self):

=== modified file 'src/mailman/commands/docs/conf.rst'
--- src/mailman/commands/docs/conf.rst	2013-09-01 15:08:46 +0000
+++ src/mailman/commands/docs/conf.rst	2014-04-17 21:36:46 +0000
@@ -22,6 +22,8 @@
 command without any options.
 
     >>> command.process(FakeArgs)
+    [language.pt] charset: iso-8859-1
+    ...
     [logging.archiver] path: mailman.log
     ...
     [passwords] password_length: 8

=== modified file 'src/mailman/config/schema.cfg'
--- src/mailman/config/schema.cfg	2014-01-01 14:59:42 +0000
+++ src/mailman/config/schema.cfg	2014-04-17 21:36:46 +0000
@@ -340,6 +340,195 @@
 # Whether the language is enabled or not.
 enabled: yes
 
+# Language charsets as imported from Mailman 2.1 defaults
+# Ref: http://www.lingoes.net/en/translator/langcode.htm
+
+[language.ar]
+description: Arabic
+charset: utf-8
+enabled: yes
+
+[language.ast]
+description: Asturian
+charset: iso-8859-1
+enabled: yes
+
+[language.ca]
+description: Catalan
+charset: utf-8
+enabled: yes
+
+[language.cs]
+description: Czech
+charset: iso-8859-2
+enabled: yes
+
+[language.da]
+description: Danish
+charset: iso-8859-1
+enabled: yes
+
+[language.de]
+description: German
+charset: iso-8859-1
+enabled: yes
+
+[language.el]
+description: Greek
+charset: iso-8859-7
+enabled: yes
+
+[language.es]
+description: Spanish
+charset: iso-8859-1
+enabled: yes
+
+[language.et]
+description: Estonian
+charset: iso-8859-15
+enabled: yes
+
+[language.eu]
+# Basque
+description: Euskara
+charset: iso-8859-15
+enabled: yes
+
+[language.fi]
+description: Finnish
+charset: iso-8859-1
+enabled: yes
+
+[language.fr]
+description: French
+charset: iso-8859-1
+enabled: yes
+
+[language.gl]
+description: Galician
+charset: utf-8
+enabled: yes
+
+[language.he]
+description: Hebrew
+charset: utf-8
+enabled: yes
+
+[language.hr]
+description: Croatian
+charset: iso-8859-2
+enabled: yes
+
+[language.hu]
+description: Hungarian
+charset: iso-8859-2
+enabled: yes
+
+[language.ia]
+description: Interlingua
+charset: iso-8859-15
+enabled: yes
+
+[language.it]
+description: Italian
+charset: iso-8859-1
+enabled: yes
+
+[language.ja]
+description: Japanese
+charset: euc-jp
+enabled: yes
+
+[language.ko]
+description: Korean
+charset: euc-kr
+enabled: yes
+
+[language.lt]
+description: Lithuanian
+charset: iso-8859-13
+enabled: yes
+
+[language.nl]
+description: Dutch
+charset: iso-8859-1
+enabled: yes
+
+[language.no]
+description: Norwegian
+charset: iso-8859-1
+enabled: yes
+
+[language.pl]
+description: Polish
+charset: iso-8859-2
+enabled: yes
+
+[language.pt]
+description: Protuguese
+charset: iso-8859-1
+enabled: yes
+
+[language.pt_BR]
+description: Protuguese (Brazil)
+charset: iso-8859-1
+enabled: yes
+
+[language.ro]
+description: Romanian
+charset: iso-8859-2
+enabled: yes
+
+[language.ru]
+description: Russian
+charset: koi8-r
+enabled: yes
+
+[language.sk]
+description: Slovak
+charset: utf-8
+enabled: yes
+
+[language.sl]
+description: Slovenian
+charset: iso-8859-2
+enabled: yes
+
+[language.sr]
+description: Serbian
+charset: utf-8
+enabled: yes
+
+[language.sv]
+description: Swedish
+charset: iso-8859-1
+enabled: yes
+
+[language.tr]
+description: Turkish
+charset: iso-8859-9
+enabled: yes
+
+[language.uk]
+description: Ukrainian
+charset: utf-8
+enabled: yes
+
+[language.vi]
+description: Vietnamese
+charset: utf-8
+enabled: yes
+
+[language.zh_CN]
+description: Chinese
+charset: utf-8
+enabled: yes
+
+[language.zh_TW]
+description: Chinese (Taiwan)
+charset: utf-8
+enabled: yes
+
 
 [antispam]
 # This section defines basic antispam detection settings.

=== modified file 'src/mailman/model/docs/users.rst'
--- src/mailman/model/docs/users.rst	2013-06-19 02:43:40 +0000
+++ src/mailman/model/docs/users.rst	2014-04-17 21:36:46 +0000
@@ -272,10 +272,6 @@
 ``False``.
 ::
 
-    >>> from mailman.interfaces.languages import ILanguageManager
-    >>> getUtility(ILanguageManager).add('it', 'iso-8859-1', 'Italian')
-    <Language [it] Italian>
-
     >>> from mailman.core.constants import DeliveryMode
     >>> prefs = user_1.preferences
     >>> prefs.acknowledge_posts = True

=== modified file 'src/mailman/utilities/tests/test_templates.py'
--- src/mailman/utilities/tests/test_templates.py	2014-01-01 14:59:42 +0000
+++ src/mailman/utilities/tests/test_templates.py	2014-04-17 21:36:46 +0000
@@ -53,9 +53,6 @@
         [paths.testing]
         var_dir: {0}
         """.format(self.var_dir))
-        language_manager = getUtility(ILanguageManager)
-        language_manager.add('de', 'utf-8', 'German')
-        language_manager.add('it', 'utf-8', 'Italian')
         self.mlist = create_list('[email protected]')
         self.mlist.preferred_language = 'de'
 

_______________________________________________
Mailman-coders mailing list
[email protected]
https://mail.python.org/mailman/listinfo/mailman-coders

Reply via email to