mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Clean up server-side translations, remove global variable (#10075)
This commit is contained in:
parent
c8303f790c
commit
9ec75d7765
9 changed files with 50 additions and 65 deletions
|
@ -23,7 +23,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include <string>
|
||||
|
||||
class Translations;
|
||||
extern std::unordered_map<std::string, Translations> *g_server_translations;
|
||||
#ifndef SERVER
|
||||
extern Translations *g_client_translations;
|
||||
#endif
|
||||
|
@ -31,10 +30,6 @@ extern Translations *g_client_translations;
|
|||
class Translations
|
||||
{
|
||||
public:
|
||||
Translations() = default;
|
||||
|
||||
~Translations();
|
||||
|
||||
void loadTranslation(const std::string &data);
|
||||
void clear();
|
||||
const std::wstring &getTranslation(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue