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:
parent
b0f18e9030
commit
e8872b09e5
4 changed files with 29 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue