diff options
author | EvidenceB Kidscode <49488517+EvidenceBKidscode@users.noreply.github.com> | 2020-04-25 07:20:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 07:20:00 +0200 |
commit | cee3c5e73d7af2a876aa76275234ee76e7cb1bbc (patch) | |
tree | 66abf52902be5c4d7ccc7aa40d20ed77a2a263e0 /src/util/string.h | |
parent | 914dbeaa0be4b5ef87506b605ef4e241cd3732dc (diff) | |
download | minetest-cee3c5e73d7af2a876aa76275234ee76e7cb1bbc.tar.gz minetest-cee3c5e73d7af2a876aa76275234ee76e7cb1bbc.tar.bz2 minetest-cee3c5e73d7af2a876aa76275234ee76e7cb1bbc.zip |
Add server side translations capability (#9733)
* Add server side translations capability
Diffstat (limited to 'src/util/string.h')
-rw-r--r-- | src/util/string.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/string.h b/src/util/string.h index 0d2a6bdb2..185fb55e2 100644 --- a/src/util/string.h +++ b/src/util/string.h @@ -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) { |