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:
parent
fc13c00ef3
commit
5a6618cc57
3 changed files with 16 additions and 0 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue