cataclysm-dda-git: 2018-07-15 -> 2019-05-03

This commit is contained in:
Mitsuhiro Nakamura 2019-05-03 01:40:17 +09:00
parent d8dec0a233
commit 520dd5d71e
2 changed files with 13 additions and 13 deletions

View File

@ -1,5 +1,5 @@
{ stdenv, callPackage { stdenv, callPackage, CoreFoundation
, tiles ? true, Cocoa, CoreFoundation , tiles ? true, Cocoa
, debug ? false , debug ? false
}: }:
@ -10,12 +10,12 @@ let
in in
stdenv.mkDerivation (common // rec { stdenv.mkDerivation (common // rec {
version = "2018-07-15"; version = "2019-05-03";
name = "cataclysm-dda-git-${version}"; name = "cataclysm-dda-git-${version}";
src = fetchFromCleverRaven { src = fetchFromCleverRaven {
rev = "e1e5d81"; rev = "65a05026e7306b5d1228dc6ed885c43447f128b5";
sha256 = "198wfj8l1p8xlwicj92cq237pzv2ha9pcf240y7ijhjpmlc9jkr1"; sha256 = "18yn0h6b4j9lx67sq1d886la3l6l7bqsnwj6mw2khidssiy18y0n";
}; };
buildInputs = common.buildInputs buildInputs = common.buildInputs

View File

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