From 5a6618cc57097e1e7205ad6b1d967a3ad79d016e Mon Sep 17 00:00:00 2001 From: Nathanaƫl Courant Date: Sat, 26 Aug 2017 09:43:08 +0200 Subject: Add '@n' escape sequences and some documentation on translated strings. --- src/translation.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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]); -- cgit v1.2.3