summaryrefslogtreecommitdiff
path: root/games/supertuxkart/translations.patch
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-06-28 10:38:11 -0400
committerdsomero <xgizzmo@slackbuilds.org>2010-06-28 10:38:11 -0400
commit657525a3b18e6aab8b3d26da4852f95168053e15 (patch)
tree29e8c6bea6e7e76bd87ced08c67143dfd25a321d /games/supertuxkart/translations.patch
parentedf479a1dac069288a882aac96f949d1261ae06d (diff)
downloadslackbuilds-657525a3b18e6aab8b3d26da4852f95168053e15.tar.gz
games/supertuxkart: Added (A 3D Kart racing game)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/supertuxkart/translations.patch')
-rw-r--r--games/supertuxkart/translations.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/games/supertuxkart/translations.patch b/games/supertuxkart/translations.patch
new file mode 100644
index 0000000000..2438891bb4
--- /dev/null
+++ b/games/supertuxkart/translations.patch
@@ -0,0 +1,16 @@
+diff -Naur supertuxkart-0.6.1a.orig/src/file_manager.cpp supertuxkart-0.6.1a/src/file_manager.cpp
+--- supertuxkart-0.6.1a.orig/src/file_manager.cpp 2009-01-29 01:30:09.000000000 +0000
++++ supertuxkart-0.6.1a/src/file_manager.cpp 2009-06-10 13:12:03.000000000 +0000
+@@ -212,7 +212,12 @@
+ //-----------------------------------------------------------------------------
+ std::string FileManager::getTranslationDir() const
+ {
++#if !defined(TRANSLATION_DIR) && !defined(__APPLE__) && !defined(WIN32)
++#define TRANSLATION_DIR "/usr/share/locale"
++ return TRANSLATION_DIR;
++#else
+ return m_root_dir+"/data/po";
++#endif
+ } // getTranslationDir
+
+ //-----------------------------------------------------------------------------