ca.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # $Id: ca.py 9030 2022-03-05 23:28:32Z milde $
  2. # Author: Ivan Vilata i Balaguer <ivan@selidor.net>
  3. # Copyright: This module has been placed in the public domain.
  4. # New language mappings are welcome. Before doing a new translation, please
  5. # read <https://docutils.sourceforge.io/docs/howto/i18n.html>.
  6. # Two files must be translated for each language: one in docutils/languages,
  7. # the other in docutils/parsers/rst/languages.
  8. """
  9. Catalan-language mappings for language-dependent features of Docutils.
  10. """
  11. __docformat__ = 'reStructuredText'
  12. labels = {
  13. # fixed: language-dependent
  14. 'author': 'Autor',
  15. 'authors': 'Autors',
  16. 'organization': 'Organitzaci\u00F3',
  17. 'address': 'Adre\u00E7a',
  18. 'contact': 'Contacte',
  19. 'version': 'Versi\u00F3',
  20. 'revision': 'Revisi\u00F3',
  21. 'status': 'Estat',
  22. 'date': 'Data',
  23. 'copyright': 'Copyright',
  24. 'dedication': 'Dedicat\u00F2ria',
  25. 'abstract': 'Resum',
  26. 'attention': 'Atenci\u00F3!',
  27. 'caution': 'Compte!',
  28. 'danger': 'PERILL!',
  29. 'error': 'Error',
  30. 'hint': 'Suggeriment',
  31. 'important': 'Important',
  32. 'note': 'Nota',
  33. 'tip': 'Consell',
  34. 'warning': 'Av\u00EDs',
  35. 'contents': 'Contingut'}
  36. """Mapping of node class name to label text."""
  37. bibliographic_fields = {
  38. # language-dependent: fixed
  39. 'autor': 'author',
  40. 'autors': 'authors',
  41. 'organitzaci\u00F3': 'organization',
  42. 'adre\u00E7a': 'address',
  43. 'contacte': 'contact',
  44. 'versi\u00F3': 'version',
  45. 'revisi\u00F3': 'revision',
  46. 'estat': 'status',
  47. 'data': 'date',
  48. 'copyright': 'copyright',
  49. 'dedicat\u00F2ria': 'dedication',
  50. 'resum': 'abstract'}
  51. """Catalan (lowcased) to canonical name mapping for bibliographic fields."""
  52. author_separators = [';', ',']
  53. """List of separator strings for the 'Authors' bibliographic field. Tried in
  54. order."""