You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
416 B
11 lines
416 B
On unrecognized LC_MESSAGES (e.g. C.utf8) the .empty() check
|
|
fails and loads empty translations leading to constant:
|
|
[ 1536ms] [I18n.cpp:34 WARNING] Untranslated: 'Gameplay paused'
|
|
--- a/src/Os.cpp
|
|
+++ b/src/Os.cpp
|
|
@@ -279,3 +279,3 @@
|
|
auto fn = thp::format("i18n/%s", lang);
|
|
- if (!Config::readFile(fn).empty()) {
|
|
+ if (!access(Config::findFile(fn).c_str(),F_OK)) {
|
|
Tr::load(fn);
|