|
From: <mi...@us...> - 2023-09-27 00:11:34
|
Revision: 9451
http://sourceforge.net/p/docutils/code/9451
Author: milde
Date: 2023-09-27 00:11:31 +0000 (Wed, 27 Sep 2023)
Log Message:
-----------
Update/complete Catalan translations (patch #203 by Antoni Bella Perez).
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/docutils/languages/ca.py
trunk/docutils/docutils/parsers/rst/languages/ca.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2023-09-26 19:16:00 UTC (rev 9450)
+++ trunk/docutils/HISTORY.txt 2023-09-27 00:11:31 UTC (rev 9451)
@@ -48,6 +48,8 @@
- Add support for Georgian language (patch #204 by Temuri Doghonadze).
+ - Update/complete Catalan translations (patch #203 by Antoni Bella Pérez).
+
* docutils/nodes.py
- Remove compatibility hacks `nodes.reprunicode` and `nodes.ensure_str()`.
Modified: trunk/docutils/docutils/languages/ca.py
===================================================================
--- trunk/docutils/docutils/languages/ca.py 2023-09-26 19:16:00 UTC (rev 9450)
+++ trunk/docutils/docutils/languages/ca.py 2023-09-27 00:11:31 UTC (rev 9451)
@@ -1,9 +1,10 @@
# $Id$
-# Author: Ivan Vilata i Balaguer <iv...@se...>
+# Authors: Ivan Vilata i Balaguer <iv...@se...>;
+# Antoni Bella Pérez <ant...@ya...>
# Copyright: This module has been placed in the public domain.
-# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# New language mappings are welcome. Before doing a new translation,
+# please read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
# Two files must be translated for each language: one in docutils/languages,
# the other in docutils/parsers/rst/languages.
@@ -17,17 +18,17 @@
# fixed: language-dependent
'author': 'Autor',
'authors': 'Autors',
- 'organization': 'Organitzaci\u00F3',
- 'address': 'Adre\u00E7a',
+ 'organization': 'Organització',
+ 'address': 'Adreça',
'contact': 'Contacte',
- 'version': 'Versi\u00F3',
- 'revision': 'Revisi\u00F3',
+ 'version': 'Versió',
+ 'revision': 'Revisió',
'status': 'Estat',
'date': 'Data',
'copyright': 'Copyright',
- 'dedication': 'Dedicat\u00F2ria',
+ 'dedication': 'Dedicatòria',
'abstract': 'Resum',
- 'attention': 'Atenci\u00F3!',
+ 'attention': 'Atenció!',
'caution': 'Compte!',
'danger': 'PERILL!',
'error': 'Error',
@@ -35,7 +36,7 @@
'important': 'Important',
'note': 'Nota',
'tip': 'Consell',
- 'warning': 'Av\u00EDs',
+ 'warning': 'Avís',
'contents': 'Contingut'}
"""Mapping of node class name to label text."""
@@ -43,15 +44,15 @@
# language-dependent: fixed
'autor': 'author',
'autors': 'authors',
- 'organitzaci\u00F3': 'organization',
- 'adre\u00E7a': 'address',
+ 'organització': 'organization',
+ 'adreça': 'address',
'contacte': 'contact',
- 'versi\u00F3': 'version',
- 'revisi\u00F3': 'revision',
+ 'versió': 'version',
+ 'revisió': 'revision',
'estat': 'status',
'data': 'date',
'copyright': 'copyright',
- 'dedicat\u00F2ria': 'dedication',
+ 'dedicatòria': 'dedication',
'resum': 'abstract'}
"""Catalan (lowcased) to canonical name mapping for bibliographic fields."""
Modified: trunk/docutils/docutils/parsers/rst/languages/ca.py
===================================================================
--- trunk/docutils/docutils/parsers/rst/languages/ca.py 2023-09-26 19:16:00 UTC (rev 9450)
+++ trunk/docutils/docutils/parsers/rst/languages/ca.py 2023-09-27 00:11:31 UTC (rev 9451)
@@ -1,9 +1,10 @@
# $Id$
-# Author: Ivan Vilata i Balaguer <iv...@se...>
+# Authors: Ivan Vilata i Balaguer <iv...@se...>;
+# Antoni Bella Pérez <ant...@ya...>
# Copyright: This module has been placed in the public domain.
-# New language mappings are welcome. Before doing a new translation, please
-# read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
+# New language mappings are welcome. Before doing a new translation,
+# please read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
# Two files must be translated for each language: one in docutils/languages,
# the other in docutils/parsers/rst/languages.
@@ -17,9 +18,8 @@
directives = {
# language-dependent: fixed
- 'atenci\u00F3': 'attention',
+ 'atenció': 'attention',
'compte': 'caution',
- 'code (translation required)': 'code',
'perill': 'danger',
'error': 'error',
'suggeriment': 'hint',
@@ -26,27 +26,26 @@
'important': 'important',
'nota': 'note',
'consell': 'tip',
- 'av\u00EDs': 'warning',
+ 'avís': 'warning',
'advertiment': 'admonition',
'nota-al-marge': 'sidebar',
'nota-marge': 'sidebar',
'tema': 'topic',
- 'bloc-de-l\u00EDnies': 'line-block',
- 'bloc-l\u00EDnies': 'line-block',
+ 'bloc-de-línies': 'line-block',
+ 'bloc-línies': 'line-block',
'literal-analitzat': 'parsed-literal',
- 'r\u00FAbrica': 'rubric',
- 'ep\u00EDgraf': 'epigraph',
+ 'codi': 'code',
+ 'bloc-de-codi': 'code',
+ 'matemàtiques': 'math',
+ 'rúbrica': 'rubric',
+ 'epígraf': 'epigraph',
'sumari': 'highlights',
'cita-destacada': 'pull-quote',
'compost': 'compound',
- 'container (translation required)': 'container',
- # 'questions': 'questions',
+ 'contenidor': 'container',
'taula': 'table',
'taula-csv': 'csv-table',
'taula-llista': 'list-table',
- # 'qa': 'questions',
- # 'faq': 'questions',
- 'math (translation required)': 'math',
'meta': 'meta',
# 'imagemap': 'imagemap',
'imatge': 'image',
@@ -54,21 +53,21 @@
'inclou': 'include',
'incloure': 'include',
'cru': 'raw',
- 'reempla\u00E7a': 'replace',
- 'reempla\u00E7ar': 'replace',
+ 'reemplaça': 'replace',
+ 'reemplaçar': 'replace',
'unicode': 'unicode',
'data': 'date',
'classe': 'class',
'rol': 'role',
- 'default-role (translation required)': 'default-role',
- 'title (translation required)': 'title',
+ 'rol-predeterminat': 'default-role',
+ 'títol': 'title',
'contingut': 'contents',
'numsec': 'sectnum',
- 'numeraci\u00F3-de-seccions': 'sectnum',
- 'numeraci\u00F3-seccions': 'sectnum',
- 'cap\u00E7alera': 'header',
- 'peu-de-p\u00E0gina': 'footer',
- 'peu-p\u00E0gina': 'footer',
+ 'numeració-de-seccions': 'sectnum',
+ 'numeració-seccions': 'sectnum',
+ 'capçalera': 'header',
+ 'peu-de-pàgina': 'footer',
+ 'peu-pàgina': 'footer',
# 'footnotes': 'footnotes',
# 'citations': 'citations',
'notes-amb-destinacions': 'target-notes',
@@ -80,47 +79,48 @@
roles = {
# language-dependent: fixed
'abreviatura': 'abbreviation',
- 'abreviaci\u00F3': 'abbreviation',
+ 'abreviació': 'abbreviation',
'abrev': 'abbreviation',
'ab': 'abbreviation',
- 'acr\u00F2nim': 'acronym',
+ 'acrònim': 'acronym',
'ac': 'acronym',
- 'code (translation required)': 'code',
- '\u00EDndex': 'index',
- 'i': 'index',
- 'sub\u00EDndex': 'subscript',
+ 'codi': 'code',
+ 'èmfasi': 'emphasis',
+ 'literal': 'literal',
+ 'matemàtiques': 'math',
+ 'referència-a-pep': 'pep-reference',
+ 'referència-pep': 'pep-reference',
+ 'pep': 'pep-reference',
+ 'referència-a-rfc': 'rfc-reference',
+ 'referència-rfc': 'rfc-reference',
+ 'rfc': 'rfc-reference',
+ 'destacat': 'strong',
+ 'subíndex': 'subscript',
'sub': 'subscript',
- 'super\u00EDndex': 'superscript',
+ 'superíndex': 'superscript',
'sup': 'superscript',
- 'refer\u00E8ncia-a-t\u00EDtol': 'title-reference',
- 'refer\u00E8ncia-t\u00EDtol': 'title-reference',
- 't\u00EDtol': 'title-reference',
+ 'referència-a-títol': 'title-reference',
+ 'referència-títol': 'title-reference',
+ 'títol': 'title-reference',
't': 'title-reference',
- 'refer\u00E8ncia-a-pep': 'pep-reference',
- 'refer\u00E8ncia-pep': 'pep-reference',
- 'pep': 'pep-reference',
- 'refer\u00E8ncia-a-rfc': 'rfc-reference',
- 'refer\u00E8ncia-rfc': 'rfc-reference',
- 'rfc': 'rfc-reference',
- '\u00E8mfasi': 'emphasis',
- 'destacat': 'strong',
- 'literal': 'literal',
- 'math (translation required)': 'math',
- 'refer\u00E8ncia-amb-nom': 'named-reference',
- 'refer\u00E8ncia-nom': 'named-reference',
- 'refer\u00E8ncia-an\u00F2nima': 'anonymous-reference',
- 'refer\u00E8ncia-a-nota-al-peu': 'footnote-reference',
- 'refer\u00E8ncia-nota-al-peu': 'footnote-reference',
- 'refer\u00E8ncia-a-cita': 'citation-reference',
- 'refer\u00E8ncia-cita': 'citation-reference',
- 'refer\u00E8ncia-a-substituci\u00F3': 'substitution-reference',
- 'refer\u00E8ncia-substituci\u00F3': 'substitution-reference',
- 'destinaci\u00F3': 'target',
- 'refer\u00E8ncia-a-uri': 'uri-reference',
- 'refer\u00E8ncia-uri': 'uri-reference',
+ 'cru': 'raw',
+ # the following roles are not implemented in Docutils
+ 'índex': 'index',
+ 'i': 'index',
+ 'referència-anònima': 'anonymous-reference',
+ 'referència-a-cita': 'citation-reference',
+ 'referència-cita': 'citation-reference',
+ 'referència-a-nota-al-peu': 'footnote-reference',
+ 'referència-nota-al-peu': 'footnote-reference',
+ 'referència-amb-nom': 'named-reference',
+ 'referència-nom': 'named-reference',
+ 'referència-a-substitució': 'substitution-reference',
+ 'referència-substitució': 'substitution-reference',
+ 'referència-a-uri': 'uri-reference',
+ 'referència-uri': 'uri-reference',
'uri': 'uri-reference',
'url': 'uri-reference',
- 'cru': 'raw',
+ 'destinació': 'target',
}
"""Mapping of Catalan role names to canonical role names for interpreted text.
"""
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|