mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
d77ce49c75
PREFIX/share/locale should be searched for translations not only on Linux.
21 lines
636 B
Diff
21 lines
636 B
Diff
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");
|