nixpkgs/pkgs/games/cataclysm-dda/patches/fix_locale_dir_git.patch
2019-05-03 22:40:09 +09:00

21 lines
725 B
Diff

diff --git a/src/translations.cpp b/src/translations.cpp
index 0068a35785..c8034cbeac 100644
--- a/src/translations.cpp
+++ b/src/translations.cpp
@@ -202,14 +202,12 @@ void set_language()
auto env = getenv( "LANGUAGE" );
locale_dir = std::string( FILENAMES["base_path"] + "lang/mo/" + ( env ? env : "none" ) +
"/LC_MESSAGES/cataclysm-dda.mo" );
-#elif (defined(__linux__) || (defined(MACOSX) && !defined(TILES)))
+#else
if( !FILENAMES["base_path"].empty() ) {
locale_dir = FILENAMES["base_path"] + "share/locale";
} else {
locale_dir = "lang/mo";
}
-#else
- locale_dir = "lang/mo";
#endif
const char *locale_dir_char = locale_dir.c_str();