mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Clean up gettext initialization
This commit is contained in:
@@ -40,7 +40,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
extern int main(int argc, char *argv[]);
|
||||
|
||||
namespace porting {
|
||||
void cleanupAndroid(); // used here
|
||||
// used here:
|
||||
void cleanupAndroid();
|
||||
std::string getLanguageAndroid();
|
||||
bool setSystemPaths(); // used in porting.cpp
|
||||
}
|
||||
|
||||
@@ -101,6 +103,11 @@ void osSpecificInit()
|
||||
"porting::initAndroid unable to find Java native activity class" <<
|
||||
std::endl;
|
||||
|
||||
// Set default language
|
||||
auto lang = getLanguageAndroid();
|
||||
unsetenv("LANGUAGE");
|
||||
setenv("LANG", lang.c_str(), 1);
|
||||
|
||||
#ifdef GPROF
|
||||
// in the start-up code
|
||||
warningstream << "Initializing GPROF profiler" << std::endl;
|
||||
|
Reference in New Issue
Block a user