Commit b2a32f5bf6516b656911ba9e3e846cccbf33e66b
1 parent
66e7a9cc
Exists in
master
Added Belarusian language
Showing
26 changed files
with
7 additions
and
3 deletions
Show diff stats
invesalius/data/vtk_utils.py
@@ -237,7 +237,11 @@ class TextZero(object): | @@ -237,7 +237,11 @@ class TextZero(object): | ||
237 | # With some encoding in some dicom fields (like name) raises a | 237 | # With some encoding in some dicom fields (like name) raises a |
238 | # UnicodeEncodeError because they have non-ascii characters. To avoid | 238 | # UnicodeEncodeError because they have non-ascii characters. To avoid |
239 | # that we encode in utf-8. | 239 | # that we encode in utf-8. |
240 | - self.actor.SetInput(value.encode("cp1252")) | 240 | + try: |
241 | + self.actor.SetInput(value.encode("cp1252")) | ||
242 | + except(UnicodeEncodeError): | ||
243 | + self.actor.SetInput(value.encode("utf-8")) | ||
244 | + | ||
241 | self.text = value | 245 | self.text = value |
242 | 246 | ||
243 | def SetPosition(self, position): | 247 | def SetPosition(self, position): |
invesalius/i18n.py
@@ -49,7 +49,7 @@ def GetLocales(): | @@ -49,7 +49,7 @@ def GetLocales(): | ||
49 | 'ro': u'Română', | 49 | 'ro': u'Română', |
50 | 'ru': u'Русский', | 50 | 'ru': u'Русский', |
51 | 'ja': u'日本語', | 51 | 'ja': u'日本語', |
52 | - }) | 52 | + 'be': u'беларуская мова',}) |
53 | return d | 53 | return d |
54 | 54 | ||
55 | def GetLocaleOS(): | 55 | def GetLocaleOS(): |
No preview for this file type
locale/ca/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/cs/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/de/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/el/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/en/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/es/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/fa/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/fr/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/it/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/ja/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/ko/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/ms/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/nl/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/pt/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/pt_BR/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/ro/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/ru/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/sr/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/tr_TR/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/ur_PK/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/zh_CN/LC_MESSAGES/invesalius.mo
No preview for this file type
locale/zh_TW/LC_MESSAGES/invesalius.mo
No preview for this file type
po/be.po
@@ -755,7 +755,7 @@ msgstr "У выбранай папцы няма файлаў DICOM." | @@ -755,7 +755,7 @@ msgstr "У выбранай папцы няма файлаў DICOM." | ||
755 | 755 | ||
756 | #: dialogs.py:613 | 756 | #: dialogs.py:613 |
757 | msgid "Warning! InVesalius has limited support to Analyze format.\n" | 757 | msgid "Warning! InVesalius has limited support to Analyze format.\n" |
758 | -msgstr "Увага! InVesalius мае абмежаваную падтрымку для фармату Analyze.\\n" | 758 | +msgstr "Увага! InVesalius мае абмежаваную падтрымку для фармату Analyze.\n" |
759 | 759 | ||
760 | #: dialogs.py:614 | 760 | #: dialogs.py:614 |
761 | msgid "Slices may be wrongly oriented and functions may not work properly." | 761 | msgid "Slices may be wrongly oriented and functions may not work properly." |