1
0

pl.py 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # $Id$
  2. # Author: Robert Wojciechowicz <rw@smsnet.pl>
  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. Polish-language mappings for language-dependent features of Docutils.
  10. """
  11. __docformat__ = 'reStructuredText'
  12. labels = {
  13. # fixed: language-dependent
  14. 'author': 'Autor',
  15. 'authors': 'Autorzy',
  16. 'organization': 'Organizacja',
  17. 'address': 'Adres',
  18. 'contact': 'Kontakt',
  19. 'version': 'Wersja',
  20. 'revision': 'Korekta',
  21. 'status': 'Status',
  22. 'date': 'Data',
  23. 'copyright': 'Copyright',
  24. 'dedication': 'Dedykacja',
  25. 'abstract': 'Streszczenie',
  26. 'attention': 'Uwaga!',
  27. 'caution': 'Ostro\u017cnie!',
  28. 'danger': '!Niebezpiecze\u0144stwo!',
  29. 'error': 'B\u0142\u0105d',
  30. 'hint': 'Wskaz\u00f3wka',
  31. 'important': 'Wa\u017cne',
  32. 'note': 'Przypis',
  33. 'tip': 'Rada',
  34. 'warning': 'Ostrze\u017cenie',
  35. 'contents': 'Tre\u015b\u0107'}
  36. """Mapping of node class name to label text."""
  37. bibliographic_fields = {
  38. # language-dependent: fixed
  39. 'autor': 'author',
  40. 'autorzy': 'authors',
  41. 'organizacja': 'organization',
  42. 'adres': 'address',
  43. 'kontakt': 'contact',
  44. 'wersja': 'version',
  45. 'korekta': 'revision',
  46. 'status': 'status',
  47. 'data': 'date',
  48. 'copyright': 'copyright',
  49. 'dedykacja': 'dedication',
  50. 'streszczenie': 'abstract'}
  51. """Polish (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."""