summary refs log tree commit diff
path: root/pkgs/games/cataclysm-dda/patches/fix_locale_dir.patch
blob: 775a8ec6007de769ba0cfa066413704b7c47d091 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/translations.cpp b/src/translations.cpp
index 6520cfe..49f7b2c 100644
--- a/src/translations.cpp
+++ b/src/translations.cpp
@@ -72,15 +72,11 @@ void set_language(bool reload_options)
 
     // Step 2. Bind to gettext domain.
     const char *locale_dir;
-#ifdef __linux__
     if (!FILENAMES["base_path"].empty()) {
         locale_dir = std::string(FILENAMES["base_path"] + "share/locale").c_str();
     } else {
         locale_dir = "lang/mo";
     }
-#else
-    locale_dir = "lang/mo";
-#endif // __linux__
 
     bindtextdomain("cataclysm-dda", locale_dir);
     bind_textdomain_codeset("cataclysm-dda", "UTF-8");