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
@@ -8,6 +8,8 @@ | @@ -8,6 +8,8 @@ | ||
8 | /README.txt -text | 8 | /README.txt -text |
9 | /TODO -text | 9 | /TODO -text |
10 | /TODO.txt -text | 10 | /TODO.txt -text |
11 | +contrib/ABOUT -text | ||
12 | +contrib/mandriva-locale.patch -text | ||
11 | docs/devel/example_closure.py -text | 13 | docs/devel/example_closure.py -text |
12 | docs/devel/example_pubsub.py -text | 14 | docs/devel/example_pubsub.py -text |
13 | docs/devel/example_singleton.py -text | 15 | docs/devel/example_singleton.py -text |
@@ -0,0 +1,16 @@ | @@ -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')) |