da.py 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # $Id: da.py 9030 2022-03-05 23:28:32Z milde $
  2. # Author: E D
  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. Danish-language mappings for language-dependent features of Docutils.
  10. """
  11. __docformat__ = 'reStructuredText'
  12. labels = {
  13. # fixed: language-dependent
  14. 'author': 'Forfatter',
  15. 'authors': 'Forfattere',
  16. 'organization': 'Organisation',
  17. 'address': 'Adresse',
  18. 'contact': 'Kontakt',
  19. 'version': 'Version',
  20. 'revision': 'Revision',
  21. 'status': 'Status',
  22. 'date': 'Dato',
  23. 'copyright': 'Copyright',
  24. 'dedication': 'Dedikation',
  25. 'abstract': 'Resumé',
  26. 'attention': 'Giv agt!',
  27. 'caution': 'Pas på!',
  28. 'danger': '!FARE!',
  29. 'error': 'Fejl',
  30. 'hint': 'Vink',
  31. 'important': 'Vigtigt',
  32. 'note': 'Bemærk',
  33. 'tip': 'Tips',
  34. 'warning': 'Advarsel',
  35. 'contents': 'Indhold'}
  36. """Mapping of node class name to label text."""
  37. bibliographic_fields = {
  38. # language-dependent: fixed
  39. 'forfatter': 'author',
  40. 'forfattere': 'authors',
  41. 'organisation': 'organization',
  42. 'adresse': 'address',
  43. 'kontakt': 'contact',
  44. 'version': 'version',
  45. 'revision': 'revision',
  46. 'status': 'status',
  47. 'dato': 'date',
  48. 'copyright': 'copyright',
  49. 'dedikation': 'dedication',
  50. 'resume': 'abstract',
  51. 'resumé': 'abstract'}
  52. """Danish (lowcased) to canonical name mapping for bibliographic fields."""
  53. author_separators = [';', ',']
  54. """List of separator strings for the 'Authors' bibliographic field. Tried in
  55. order."""