about summary refs log tree commit diff
path: root/pkgs/games/cataclysm-dda/patches/fix_locale_dir_git.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/games/cataclysm-dda/patches/fix_locale_dir_git.patch')
-rw-r--r--pkgs/games/cataclysm-dda/patches/fix_locale_dir_git.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/games/cataclysm-dda/patches/fix_locale_dir_git.patch b/pkgs/games/cataclysm-dda/patches/fix_locale_dir_git.patch
new file mode 100644
index 000000000000..c3140af03c8b
--- /dev/null
+++ b/pkgs/games/cataclysm-dda/patches/fix_locale_dir_git.patch
@@ -0,0 +1,20 @@
+diff --git a/src/translations.cpp b/src/translations.cpp
+index 3a86291..e6c5f84 100644
+--- a/src/translations.cpp
++++ b/src/translations.cpp
+@@ -176,15 +176,11 @@ void set_language()
+ 
+     // Step 2. Bind to gettext domain.
+     std::string locale_dir;
+-#if (defined __linux__ || (defined MACOSX && !defined TILES))
+     if( !FILENAMES["base_path"].empty() ) {
+         locale_dir = FILENAMES["base_path"] + "share/locale";
+     } else {
+         locale_dir = "lang/mo";
+     }
+-#else
+-    locale_dir = "lang/mo";
+-#endif // __linux__
+ 
+     const char *locale_dir_char = locale_dir.c_str();
+     bindtextdomain( "cataclysm-dda", locale_dir_char );