diff --git a/.gitattributes b/.gitattributes index 6e86361..9866b4c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,6 +8,8 @@ /README.txt -text /TODO -text /TODO.txt -text +contrib/ABOUT -text +contrib/mandriva-locale.patch -text docs/devel/example_closure.py -text docs/devel/example_pubsub.py -text docs/devel/example_singleton.py -text diff --git a/contrib/ABOUT b/contrib/ABOUT new file mode 100644 index 0000000..1aa6e21 --- /dev/null +++ b/contrib/ABOUT @@ -0,0 +1,2 @@ +# date:2010-04-01 owner:pcpa type:i18n +Patch01: mandriva-locale.patch diff --git a/contrib/mandriva-locale.patch b/contrib/mandriva-locale.patch new file mode 100644 index 0000000..713cae0 --- /dev/null +++ b/contrib/mandriva-locale.patch @@ -0,0 +1,16 @@ +diff -p -up invesalius3/invesalius/i18n.py.orig invesalius3/invesalius/i18n.py +--- invesalius3/invesalius/i18n.py.orig 2010-04-01 15:55:04.292973825 -0300 ++++ invesalius3/invesalius/i18n.py 2010-04-01 15:56:13.863615536 -0300 +@@ -45,8 +45,10 @@ def GetLocaleOS(): + if sys.platform == 'darwin': + locale.setlocale(locale.LC_ALL, "") + return locale.getlocale()[0] +- +- return locale.getdefaultlocale()[0] ++ lc = locale.getdefaultlocale()[0] ++ if lc: ++ return lc ++ return 'en' + + def InstallLanguage(language): + language_dir = os.path.abspath(os.path.join('..','locale')) -- libgit2 0.21.2