mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
20 lines
601 B
Diff
20 lines
601 B
Diff
diff --git a/src/translations.cpp b/src/translations.cpp
|
|
index fa0ee479b2..0e470098dc 100644
|
|
--- a/src/translations.cpp
|
|
+++ b/src/translations.cpp
|
|
@@ -141,15 +141,11 @@ void select_language()
|
|
std::string locale_dir()
|
|
{
|
|
std::string loc_dir;
|
|
-#if !defined(__ANDROID__) && ((defined(__linux__) || defined(BSD) || (defined(MACOSX) && !defined(TILES))))
|
|
if( !PATH_INFO::base_path().empty() ) {
|
|
loc_dir = PATH_INFO::base_path() + "share/locale";
|
|
} else {
|
|
loc_dir = PATH_INFO::langdir();
|
|
}
|
|
-#else
|
|
- loc_dir = PATH_INFO::langdir();
|
|
-#endif
|
|
return loc_dir;
|
|
}
|
|
|