sv.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # $Id: sv.py 9030 2022-03-05 23:28:32Z milde $
  2. # Author: Adam Chodorowski <chodorowski@users.sourceforge.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. Swedish language mappings for language-dependent features of Docutils.
  10. """
  11. __docformat__ = 'reStructuredText'
  12. labels = {
  13. 'author': 'Författare',
  14. 'authors': 'Författare',
  15. 'organization': 'Organisation',
  16. 'address': 'Adress',
  17. 'contact': 'Kontakt',
  18. 'version': 'Version',
  19. 'revision': 'Revision',
  20. 'status': 'Status',
  21. 'date': 'Datum',
  22. 'copyright': 'Copyright',
  23. 'dedication': 'Dedikation',
  24. 'abstract': 'Sammanfattning',
  25. 'attention': 'Observera!',
  26. 'caution': 'Akta!', # 'Varning' already used for 'warning'
  27. 'danger': 'FARA!',
  28. 'error': 'Fel',
  29. 'hint': 'Vink',
  30. 'important': 'Viktigt',
  31. 'note': 'Notera',
  32. 'tip': 'Tips',
  33. 'warning': 'Varning',
  34. 'contents': 'Innehåll'}
  35. """Mapping of node class name to label text."""
  36. bibliographic_fields = {
  37. # 'Author' and 'Authors' identical in Swedish; assume the plural:
  38. 'författare': 'authors',
  39. ' n/a': 'author',
  40. 'organisation': 'organization',
  41. 'adress': 'address',
  42. 'kontakt': 'contact',
  43. 'version': 'version',
  44. 'revision': 'revision',
  45. 'status': 'status',
  46. 'datum': 'date',
  47. 'copyright': 'copyright',
  48. 'dedikation': 'dedication',
  49. 'sammanfattning': 'abstract'}
  50. """Swedish (lowcased) to canonical name mapping for bibliographic fields."""
  51. author_separators = [';', ',']
  52. """List of separator strings for the 'Authors' bibliographic field. Tried in
  53. order."""