mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
cataclysm-dda-git: 2018-07-15 -> 2019-05-03
This commit is contained in:
parent
d8dec0a233
commit
520dd5d71e
@ -1,5 +1,5 @@
|
||||
{ stdenv, callPackage
|
||||
, tiles ? true, Cocoa, CoreFoundation
|
||||
{ stdenv, callPackage, CoreFoundation
|
||||
, tiles ? true, Cocoa
|
||||
, debug ? false
|
||||
}:
|
||||
|
||||
@ -10,12 +10,12 @@ let
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (common // rec {
|
||||
version = "2018-07-15";
|
||||
version = "2019-05-03";
|
||||
name = "cataclysm-dda-git-${version}";
|
||||
|
||||
src = fetchFromCleverRaven {
|
||||
rev = "e1e5d81";
|
||||
sha256 = "198wfj8l1p8xlwicj92cq237pzv2ha9pcf240y7ijhjpmlc9jkr1";
|
||||
rev = "65a05026e7306b5d1228dc6ed885c43447f128b5";
|
||||
sha256 = "18yn0h6b4j9lx67sq1d886la3l6l7bqsnwj6mw2khidssiy18y0n";
|
||||
};
|
||||
|
||||
buildInputs = common.buildInputs
|
||||
|
@ -1,12 +1,13 @@
|
||||
diff --git a/src/translations.cpp b/src/translations.cpp
|
||||
index 3a86291..e6c5f84 100644
|
||||
index 0068a35785..c8034cbeac 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))
|
||||
@@ -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 {
|
||||
@ -14,7 +15,6 @@ index 3a86291..e6c5f84 100644
|
||||
}
|
||||
-#else
|
||||
- locale_dir = "lang/mo";
|
||||
-#endif // __linux__
|
||||
#endif
|
||||
|
||||
const char *locale_dir_char = locale_dir.c_str();
|
||||
bindtextdomain( "cataclysm-dda", locale_dir_char );
|
||||
|
Loading…
Reference in New Issue
Block a user