1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-10-12 01:12:57 +00:00

Localise sounds, voice, and send current locale to webserver when asking for mod list

This commit is contained in:
fgenesis 2012-07-14 14:34:46 +02:00
commit e8872b09e5
4 changed files with 29 additions and 9 deletions

View file

@ -32,7 +32,12 @@ void setUsedLocale(const std::string& s)
s_locale = s;
}
std::string localisePath(const std::string &path, const std::string &modpath /* = "" */)
const char *getUsedLocale()
{
return s_locale.c_str();
}
std::string localisePath(const std::string &path, const std::string& modpath /* = "" */)
{
if (s_locale.empty())
return path;