Commit 66691ea9da09387dee08cedce4fefa5061522727
1 parent
5fe35451
Exists in
master
and in
68 other branches
ADD: Directory for patches from contributors
Showing
3 changed files
with
20 additions
and
0 deletions
Show diff stats
.gitattributes
... | ... | @@ -0,0 +1,16 @@ |
1 | +diff -p -up invesalius3/invesalius/i18n.py.orig invesalius3/invesalius/i18n.py | |
2 | +--- invesalius3/invesalius/i18n.py.orig 2010-04-01 15:55:04.292973825 -0300 | |
3 | ++++ invesalius3/invesalius/i18n.py 2010-04-01 15:56:13.863615536 -0300 | |
4 | +@@ -45,8 +45,10 @@ def GetLocaleOS(): | |
5 | + if sys.platform == 'darwin': | |
6 | + locale.setlocale(locale.LC_ALL, "") | |
7 | + return locale.getlocale()[0] | |
8 | +- | |
9 | +- return locale.getdefaultlocale()[0] | |
10 | ++ lc = locale.getdefaultlocale()[0] | |
11 | ++ if lc: | |
12 | ++ return lc | |
13 | ++ return 'en' | |
14 | + | |
15 | + def InstallLanguage(language): | |
16 | + language_dir = os.path.abspath(os.path.join('..','locale')) | ... | ... |