[Zope-Checkins] CVS: Zope/lib/python/docutils/languages - __init__.py:1.2.10.5 af.py:1.1.2.5 cs.py:1.1.4.2 de.py:1.2.10.5 en.py:1.2.10.5 eo.py:1.1.2.3 es.py:1.1.2.5 fr.py:1.2.10.5 it.py:1.2.10.5 pt_br.py:1.1.4.2 ru.py:1.1.2.5 sk.py:1.2.10.5 sv.py:1.2.10.5

Christian 'Tiran' Heimes heimes at faho.rwth-aachen.de
Mon Jul 26 13:38:39 EDT 2004


Update of /cvs-repository/Zope/lib/python/docutils/languages
In directory cvs.zope.org:/tmp/cvs-serv18892/lib/python/docutils/languages

Modified Files:
      Tag: Zope-2_7-branch
	__init__.py af.py cs.py de.py en.py eo.py es.py fr.py it.py 
	pt_br.py ru.py sk.py sv.py 
Log Message:
Updated docutils including a fix for 1426:  System locale breaks reStructuredText horribly
Added rest-language-code to zope.conf schema. it's used instead of the locales


=== Zope/lib/python/docutils/languages/__init__.py 1.2.10.4 => 1.2.10.5 ===
--- Zope/lib/python/docutils/languages/__init__.py:1.2.10.4	Thu May 13 12:19:54 2004
+++ Zope/lib/python/docutils/languages/__init__.py	Mon Jul 26 13:38:08 2004
@@ -5,7 +5,7 @@
 # Copyright: This module has been placed in the public domain.
 
 # Internationalization details are documented in
-# <http://docutils.sf.net/spec/howto/i18n.html>.
+# <http://docutils.sf.net/docs/howto/i18n.html>.
 
 """
 This package contains modules for language-dependent features of Docutils.
@@ -18,6 +18,9 @@
 def get_language(language_code):
     if _languages.has_key(language_code):
         return _languages[language_code]
-    module = __import__(language_code, globals(), locals())
+    try:
+        module = __import__(language_code, globals(), locals())
+    except ImportError:
+        return None
     _languages[language_code] = module
     return module


=== Zope/lib/python/docutils/languages/af.py 1.1.2.4 => 1.1.2.5 ===
--- Zope/lib/python/docutils/languages/af.py:1.1.2.4	Thu May 13 12:19:54 2004
+++ Zope/lib/python/docutils/languages/af.py	Mon Jul 26 13:38:08 2004
@@ -5,7 +5,7 @@
 # Copyright: This module has been placed in the public domain.
 
 # New language mappings are welcome.  Before doing a new translation, please
-# read <http://docutils.sf.net/spec/howto/i18n.html>.  Two files must be
+# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
 # translated for each language: one in docutils/languages, the other in
 # docutils/parsers/rst/languages.
 


=== Zope/lib/python/docutils/languages/cs.py 1.1.4.1 => 1.1.4.2 ===
--- Zope/lib/python/docutils/languages/cs.py:1.1.4.1	Thu May 13 12:19:54 2004
+++ Zope/lib/python/docutils/languages/cs.py	Mon Jul 26 13:38:08 2004
@@ -5,7 +5,7 @@
 # Copyright: This module has been placed in the public domain.
 
 # New language mappings are welcome.  Before doing a new translation, please
-# read <http://docutils.sf.net/spec/howto/i18n.html>.  Two files must be
+# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
 # translated for each language: one in docutils/languages, the other in
 # docutils/parsers/rst/languages.
 


=== Zope/lib/python/docutils/languages/de.py 1.2.10.4 => 1.2.10.5 ===
--- Zope/lib/python/docutils/languages/de.py:1.2.10.4	Thu May 13 12:19:54 2004
+++ Zope/lib/python/docutils/languages/de.py	Mon Jul 26 13:38:08 2004
@@ -5,7 +5,7 @@
 # Copyright: This module has been placed in the public domain.
 
 # New language mappings are welcome.  Before doing a new translation, please
-# read <http://docutils.sf.net/spec/howto/i18n.html>.  Two files must be
+# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
 # translated for each language: one in docutils/languages, the other in
 # docutils/parsers/rst/languages.
 


=== Zope/lib/python/docutils/languages/en.py 1.2.10.4 => 1.2.10.5 ===
--- Zope/lib/python/docutils/languages/en.py:1.2.10.4	Thu May 13 12:19:54 2004
+++ Zope/lib/python/docutils/languages/en.py	Mon Jul 26 13:38:08 2004
@@ -5,7 +5,7 @@
 # Copyright: This module has been placed in the public domain.
 
 # New language mappings are welcome.  Before doing a new translation, please
-# read <http://docutils.sf.net/spec/howto/i18n.html>.  Two files must be
+# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
 # translated for each language: one in docutils/languages, the other in
 # docutils/parsers/rst/languages.
 


=== Zope/lib/python/docutils/languages/eo.py 1.1.2.2 => 1.1.2.3 ===
--- Zope/lib/python/docutils/languages/eo.py:1.1.2.2	Thu May 13 12:19:54 2004
+++ Zope/lib/python/docutils/languages/eo.py	Mon Jul 26 13:38:08 2004
@@ -5,7 +5,7 @@
 # Copyright: This module has been placed in the public domain.
 
 # New language mappings are welcome.  Before doing a new translation, please
-# read <http://docutils.sf.net/spec/howto/i18n.html>.  Two files must be
+# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
 # translated for each language: one in docutils/languages, the other in
 # docutils/parsers/rst/languages.
 


=== Zope/lib/python/docutils/languages/es.py 1.1.2.4 => 1.1.2.5 ===
--- Zope/lib/python/docutils/languages/es.py:1.1.2.4	Thu May 13 12:19:54 2004
+++ Zope/lib/python/docutils/languages/es.py	Mon Jul 26 13:38:08 2004
@@ -6,7 +6,7 @@
 # Copyright: This module has been placed in the public domain.
 
 # New language mappings are welcome.  Before doing a new translation, please
-# read <http://docutils.sf.net/spec/howto/i18n.html>.  Two files must be
+# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
 # translated for each language: one in docutils/languages, the other in
 # docutils/parsers/rst/languages.
 


=== Zope/lib/python/docutils/languages/fr.py 1.2.10.4 => 1.2.10.5 ===
--- Zope/lib/python/docutils/languages/fr.py:1.2.10.4	Thu May 13 12:19:54 2004
+++ Zope/lib/python/docutils/languages/fr.py	Mon Jul 26 13:38:08 2004
@@ -5,7 +5,7 @@
 # Copyright: This module has been placed in the public domain.
 
 # New language mappings are welcome.  Before doing a new translation, please
-# read <http://docutils.sf.net/spec/howto/i18n.html>.  Two files must be
+# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
 # translated for each language: one in docutils/languages, the other in
 # docutils/parsers/rst/languages.
 


=== Zope/lib/python/docutils/languages/it.py 1.2.10.4 => 1.2.10.5 ===
--- Zope/lib/python/docutils/languages/it.py:1.2.10.4	Thu May 13 12:19:54 2004
+++ Zope/lib/python/docutils/languages/it.py	Mon Jul 26 13:38:08 2004
@@ -5,7 +5,7 @@
 # Copyright: This module has been placed in the public domain.
 
 # New language mappings are welcome.  Before doing a new translation, please
-# read <http://docutils.sf.net/spec/howto/i18n.html>.  Two files must be
+# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
 # translated for each language: one in docutils/languages, the other in
 # docutils/parsers/rst/languages.
 


=== Zope/lib/python/docutils/languages/pt_br.py 1.1.4.1 => 1.1.4.2 ===
--- Zope/lib/python/docutils/languages/pt_br.py:1.1.4.1	Thu May 13 12:19:54 2004
+++ Zope/lib/python/docutils/languages/pt_br.py	Mon Jul 26 13:38:08 2004
@@ -1,4 +1,3 @@
-# -*- coding: iso-8859-1 -*-
 # Author: David Goodger
 # Contact: goodger at users.sourceforge.net
 # Revision: $Revision$
@@ -6,7 +5,7 @@
 # Copyright: This module has been placed in the public domain.
 
 # New language mappings are welcome.  Before doing a new translation, please
-# read <http://docutils.sf.net/spec/howto/i18n.html>.  Two files must be
+# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
 # translated for each language: one in docutils/languages, the other in
 # docutils/parsers/rst/languages.
 
@@ -20,43 +19,43 @@
       # fixed: language-dependent
       'author': u'Autor',
       'authors': u'Autores',
-      'organization': unicode('Organização', 'latin1'),
-      'address': unicode('Endereço', 'latin1'),
+      'organization': u'Organiza\u00E7\u00E3o',
+      'address': u'Endere\u00E7o',
       'contact': u'Contato',
-      'version': unicode('Versão', 'latin1'),
-      'revision': unicode('Revisão', 'latin1'),
+      'version': u'Vers\u00E3o',
+      'revision': u'Revis\u00E3o',
       'status': u'Estado',
       'date': u'Data',
       'copyright': u'Copyright',
-      'dedication': unicode('Dedicatória', 'latin1'),
+      'dedication': u'Dedicat\u00F3ria',
       'abstract': u'Resumo',
-      'attention': unicode('Attenção!', 'latin1'),
+      'attention': u'Atten\u00E7\u00E3o!',
       'caution': u'Cuidado!',
       'danger': u'PERIGO!',
       'error': u'Erro',
-      'hint': unicode('Sugestão', 'latin1'),
+      'hint': u'Sugest\u00E3o',
       'important': u'Importante',
       'note': u'Nota',
       'tip': u'Dica',
       'warning': u'Aviso',
-      'contents': unicode('Sumário', 'latin1')}
+      'contents': u'Sum\u00E1rio'}
 """Mapping of node class name to label text."""
 
 bibliographic_fields = {
       # language-dependent: fixed
       u'autor': 'author',
       u'autores': 'authors',
-      unicode('organização', 'latin1'): 'organization',
-      unicode('endereço', 'latin1'): 'address',
+      u'organiza\u00E7\u00E3o': 'organization',
+      u'endere\u00E7o': 'address',
       u'contato': 'contact',
-      unicode('versão', 'latin1'): 'version',
-      unicode('revisão', 'latin1'): 'revision',
+      u'vers\u00E3o': 'version',
+      u'revis\u00E3o': 'revision',
       u'estado': 'status',
       u'data': 'date',
       u'copyright': 'copyright',
-      unicode('dedicatória', 'latin1'): 'dedication',
+      u'dedicat\u00F3ria': 'dedication',
       u'resumo': 'abstract'}
-"""English (lowcased) to canonical name mapping for bibliographic fields."""
+"""Brazilian Portuguese (lowcased) to canonical name mapping for bibliographic fields."""
 
 author_separators = [';', ',']
 """List of separator strings for the 'Authors' bibliographic field. Tried in


=== Zope/lib/python/docutils/languages/ru.py 1.1.2.4 => 1.1.2.5 ===
--- Zope/lib/python/docutils/languages/ru.py:1.1.2.4	Thu May 13 12:19:54 2004
+++ Zope/lib/python/docutils/languages/ru.py	Mon Jul 26 13:38:08 2004
@@ -5,7 +5,7 @@
 # Copyright: This module has been placed in the public domain.
 
 # New language mappings are welcome.  Before doing a new translation, please
-# read <http://docutils.sf.net/spec/howto/i18n.html>.  Two files must be
+# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
 # translated for each language: one in docutils/languages, the other in
 # docutils/parsers/rst/languages.
 


=== Zope/lib/python/docutils/languages/sk.py 1.2.10.4 => 1.2.10.5 ===
--- Zope/lib/python/docutils/languages/sk.py:1.2.10.4	Thu May 13 12:19:54 2004
+++ Zope/lib/python/docutils/languages/sk.py	Mon Jul 26 13:38:08 2004
@@ -5,7 +5,7 @@
 # :Copyright: This module has been placed in the public domain.
 
 # New language mappings are welcome.  Before doing a new translation, please
-# read <http://docutils.sf.net/spec/howto/i18n.html>.  Two files must be
+# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
 # translated for each language: one in docutils/languages, the other in
 # docutils/parsers/rst/languages.
 


=== Zope/lib/python/docutils/languages/sv.py 1.2.10.4 => 1.2.10.5 ===
--- Zope/lib/python/docutils/languages/sv.py:1.2.10.4	Thu May 13 12:19:54 2004
+++ Zope/lib/python/docutils/languages/sv.py	Mon Jul 26 13:38:08 2004
@@ -5,7 +5,7 @@
 # Copyright: This module has been placed in the public domain.
 
 # New language mappings are welcome.  Before doing a new translation, please
-# read <http://docutils.sf.net/spec/howto/i18n.html>.  Two files must be
+# read <http://docutils.sf.net/docs/howto/i18n.html>.  Two files must be
 # translated for each language: one in docutils/languages, the other in
 # docutils/parsers/rst/languages.
 



More information about the Zope-Checkins mailing list