From 28df6f89902b7c24bd945c5857982d0ebfb7506b Mon Sep 17 00:00:00 2001 From: goodger Date: Wed, 24 Jul 2002 01:47:56 +0000 Subject: German language mappings; added to project. Thanks to Gunnar Schwant for the translations. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@363 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/de.py | 57 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 docutils/languages/de.py (limited to 'docutils/languages/de.py') diff --git a/docutils/languages/de.py b/docutils/languages/de.py new file mode 100644 index 000000000..8c512dc14 --- /dev/null +++ b/docutils/languages/de.py @@ -0,0 +1,57 @@ +#! /usr/bin/env python + +""" +:Authors: David Goodger; Gunnar Schwant +:Contact: goodger@users.sourceforge.net +:Revision: $Revision$ +:Date: $Date$ +:Copyright: This module has been placed in the public domain. + +German language mappings for language-dependent features of Docutils. +""" + +__docformat__ = 'reStructuredText' + +from docutils import nodes + + +labels = { + 'author': 'Autor', + 'authors': 'Autoren', + 'organization': 'Organisation', + 'contact': 'Kontakt', + 'version': 'Version', + 'revision': 'Revision', + 'status': 'Status', + 'date': 'Datum', + 'copyright': 'Copyright', + 'abstract': 'Zusammenfassung', + 'attention': 'Achtung!', + 'caution': 'Vorsicht!', + 'danger': '!GEFAHR!', + 'error': 'Fehler', + 'hint': 'Hinweis', + 'important': 'Wichtig', + 'note': 'Bemerkung', + 'tip': 'Tipp', + 'warning': 'Warnung', + 'contents': 'Inhalt'} +"""Mapping of node class name to label text.""" + +bibliographic_fields = { + 'autor': nodes.author, + 'autoren': nodes.authors, + 'organisation': nodes.organization, + 'kontakt': nodes.contact, + 'version': nodes.version, + 'revision': nodes.revision, + 'status': nodes.status, + 'datum': nodes.date, + 'copyright': nodes.copyright, + 'zusammenfassung': nodes.topic} +"""Field name (lowcased) to node class name mapping for bibliographic fields +(field_list).""" + +author_separators = [';', ','] +"""List of separator strings for the 'Authors' bibliographic field. Tried in +order.""" -- cgit v1.2.1 From efdd39867964b92520a58c6796658895e412c441 Mon Sep 17 00:00:00 2001 From: goodger Date: Wed, 9 Oct 2002 00:51:53 +0000 Subject: changed docstring field lists into comments git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@778 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/de.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'docutils/languages/de.py') diff --git a/docutils/languages/de.py b/docutils/languages/de.py index 8c512dc14..b6068da2a 100644 --- a/docutils/languages/de.py +++ b/docutils/languages/de.py @@ -1,12 +1,10 @@ -#! /usr/bin/env python +# Authors: David Goodger; Gunnar Schwant +# Contact: goodger@users.sourceforge.net +# Revision: $Revision$ +# Date: $Date$ +# Copyright: This module has been placed in the public domain. """ -:Authors: David Goodger; Gunnar Schwant -:Contact: goodger@users.sourceforge.net -:Revision: $Revision$ -:Date: $Date$ -:Copyright: This module has been placed in the public domain. - German language mappings for language-dependent features of Docutils. """ -- cgit v1.2.1 From bbff5bae14890845feab785b384f2893ffcd18f9 Mon Sep 17 00:00:00 2001 From: grubert Date: Tue, 5 Nov 2002 15:40:28 +0000 Subject: + add sk.py to docutils/languages. + added missing labels to docutils/languages/de.py and sv.py (none swedish). + changed de directives to lowercase. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@887 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/de.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docutils/languages/de.py') diff --git a/docutils/languages/de.py b/docutils/languages/de.py index b6068da2a..e5968dae3 100644 --- a/docutils/languages/de.py +++ b/docutils/languages/de.py @@ -17,11 +17,13 @@ labels = { 'author': 'Autor', 'authors': 'Autoren', 'organization': 'Organisation', + 'address': 'Adresse', 'contact': 'Kontakt', 'version': 'Version', 'revision': 'Revision', 'status': 'Status', 'date': 'Datum', + 'dedication': 'Widmung', 'copyright': 'Copyright', 'abstract': 'Zusammenfassung', 'attention': 'Achtung!', @@ -40,12 +42,14 @@ bibliographic_fields = { 'autor': nodes.author, 'autoren': nodes.authors, 'organisation': nodes.organization, + 'adresse': nodes.address, 'kontakt': nodes.contact, 'version': nodes.version, 'revision': nodes.revision, 'status': nodes.status, 'datum': nodes.date, 'copyright': nodes.copyright, + 'widmung': nodes.topic, 'zusammenfassung': nodes.topic} """Field name (lowcased) to node class name mapping for bibliographic fields (field_list).""" -- cgit v1.2.1 From 3d98a8e8eea73278c7c72eb907a4d20d99e24ee8 Mon Sep 17 00:00:00 2001 From: goodger Date: Thu, 27 Mar 2003 00:21:21 +0000 Subject: fixed bibliographic field language lookups git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1234 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/de.py | 30 +++++++++++++----------------- 1 file changed, 13 insertions(+), 17 deletions(-) (limited to 'docutils/languages/de.py') diff --git a/docutils/languages/de.py b/docutils/languages/de.py index e5968dae3..9da99b67a 100644 --- a/docutils/languages/de.py +++ b/docutils/languages/de.py @@ -10,9 +10,6 @@ German language mappings for language-dependent features of Docutils. __docformat__ = 'reStructuredText' -from docutils import nodes - - labels = { 'author': 'Autor', 'authors': 'Autoren', @@ -39,20 +36,19 @@ labels = { """Mapping of node class name to label text.""" bibliographic_fields = { - 'autor': nodes.author, - 'autoren': nodes.authors, - 'organisation': nodes.organization, - 'adresse': nodes.address, - 'kontakt': nodes.contact, - 'version': nodes.version, - 'revision': nodes.revision, - 'status': nodes.status, - 'datum': nodes.date, - 'copyright': nodes.copyright, - 'widmung': nodes.topic, - 'zusammenfassung': nodes.topic} -"""Field name (lowcased) to node class name mapping for bibliographic fields -(field_list).""" + 'autor': 'author', + 'autoren': 'authors', + 'organisation': 'organization', + 'adresse': 'address', + 'kontakt': 'contact', + 'version': 'version', + 'revision': 'revision', + 'status': 'status', + 'datum': 'date', + 'copyright': 'copyright', + 'widmung': 'dedication', + 'zusammenfassung': 'abstract'} +"""German (lowcased) to canonical name mapping for bibliographic fields.""" author_separators = [';', ','] """List of separator strings for the 'Authors' bibliographic field. Tried in -- cgit v1.2.1 From 19398b08d732989638849d03a7cdc21a366fb811 Mon Sep 17 00:00:00 2001 From: goodger Date: Thu, 26 Jun 2003 18:32:02 +0000 Subject: added explanatory comments for language mappings git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1510 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/de.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docutils/languages/de.py') diff --git a/docutils/languages/de.py b/docutils/languages/de.py index 9da99b67a..ddffbda74 100644 --- a/docutils/languages/de.py +++ b/docutils/languages/de.py @@ -4,6 +4,11 @@ # Date: $Date$ # Copyright: This module has been placed in the public domain. +# New language mappings are welcome. Before doing a new translation, please +# read . Two files must be +# translated for each language: one in docutils/languages, the other in +# docutils/parsers/rst/languages. + """ German language mappings for language-dependent features of Docutils. """ -- cgit v1.2.1 From a3eedc4e04eea5aa5723ea42ebb293f87fc4c33c Mon Sep 17 00:00:00 2001 From: wiemann Date: Sat, 5 Jun 2004 19:40:46 +0000 Subject: updated git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@2224 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/languages/de.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docutils/languages/de.py') diff --git a/docutils/languages/de.py b/docutils/languages/de.py index ddffbda74..3a829dd34 100644 --- a/docutils/languages/de.py +++ b/docutils/languages/de.py @@ -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 . Two files must be +# read . Two files must be # translated for each language: one in docutils/languages, the other in # docutils/parsers/rst/languages. -- cgit v1.2.1