1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add '@n' escape sequences and some documentation on translated strings.

This commit is contained in:
Nathanaël Courant 2017-08-26 09:43:08 +02:00 committed by GitHub
parent fc13c00ef3
commit 5a6618cc57
3 changed files with 16 additions and 0 deletions

View file

@ -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]);