Commit 66691ea9da09387dee08cedce4fefa5061522727

Authored by tatiana
1 parent 5fe35451

ADD: Directory for patches from contributors

.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
contrib/ABOUT 0 → 100644
@@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
  1 +# date:2010-04-01 owner:pcpa type:i18n
  2 +Patch01: mandriva-locale.patch
contrib/mandriva-locale.patch 0 → 100644
@@ -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'))