diff options
author | Nathanaƫl Courant <Ekdohibs@users.noreply.github.com> | 2017-08-26 09:43:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-26 09:43:08 +0200 |
commit | 5a6618cc57097e1e7205ad6b1d967a3ad79d016e (patch) | |
tree | b44ba4000a020d4183a2599cc717cf2e1ce49c1e /src | |
parent | fc13c00ef3e9b6f280146f3d77b6659fcc55a13c (diff) | |
download | minetest-5a6618cc57097e1e7205ad6b1d967a3ad79d016e.tar.gz minetest-5a6618cc57097e1e7205ad6b1d967a3ad79d016e.tar.bz2 minetest-5a6618cc57097e1e7205ad6b1d967a3ad79d016e.zip |
Add '@n' escape sequences and some documentation on translated strings.
Diffstat (limited to 'src')
-rw-r--r-- | src/translation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/translation.cpp b/src/translation.cpp index e8582f328..31efca41e 100644 --- a/src/translation.cpp +++ b/src/translation.cpp @@ -80,6 +80,8 @@ void Translations::loadTranslation(const std::string &data) if (i + 1 < wline.length()) { if (wline[i + 1] == L'=') { word1.put(L'='); + } else if (wline[i + 1] == L'n') { + word1.put(L'\n'); } else { word1.put(L'@'); word1.put(wline[i + 1]); @@ -113,6 +115,8 @@ void Translations::loadTranslation(const std::string &data) if (i + 1 < wline.length()) { if (wline[i + 1] == L'=') { word2.put(L'='); + } else if (wline[i + 1] == L'n') { + word2.put(L'\n'); } else { word2.put(L'@'); word2.put(wline[i + 1]); |