slackbuilds_ponce/games/supertuxkart/translations.patch
Niels Horn b8d5e5893d games/supertuxkart: Updated for version 0.7.3, new maintainer.
This now includes an add-ons system, so extra-karts and extra-tracks
are no-longer necessary.

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
2011-12-18 00:05:10 -02:00

15 lines
561 B
Diff

--- supertuxkart-0.7.3/src/io/file_manager.cpp 2011-11-01 22:04:13.000000000 -0200
+++ supertuxkart-0.7.3_patched/src/io/file_manager.cpp 2011-12-09 16:54:27.000000000 -0200
@@ -442,7 +442,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
//-----------------------------------------------------------------------------