mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Add server side translations capability (#9733)
* Add server side translations capability
This commit is contained in:
parent
914dbeaa0b
commit
cee3c5e73d
14 changed files with 126 additions and 18 deletions
|
@ -31,6 +31,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include <cctype>
|
||||
#include <unordered_map>
|
||||
|
||||
class Translations;
|
||||
|
||||
#define STRINGIFY(x) #x
|
||||
#define TOSTRING(x) STRINGIFY(x)
|
||||
|
||||
|
@ -650,6 +652,8 @@ std::vector<std::basic_string<T> > split(const std::basic_string<T> &s, T delim)
|
|||
return tokens;
|
||||
}
|
||||
|
||||
std::wstring translate_string(const std::wstring &s, Translations *translations);
|
||||
|
||||
std::wstring translate_string(const std::wstring &s);
|
||||
|
||||
inline std::wstring unescape_translate(const std::wstring &s) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue