- bugfix to support \n in scenario and tutorial lng files
This commit is contained in:
parent
8f0db3e30d
commit
2e9ca4c0f5
|
@ -147,7 +147,9 @@ string Lang::get(const string &s, string language) {
|
||||||
|
|
||||||
string Lang::getScenarioString(const string &s) {
|
string Lang::getScenarioString(const string &s) {
|
||||||
try{
|
try{
|
||||||
return scenarioStrings.getString(s);
|
string result = scenarioStrings.getString(s);
|
||||||
|
replaceAll(result, "\\n", "\n");
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
catch(exception &ex) {
|
catch(exception &ex) {
|
||||||
if(scenarioStrings.getpath() != "") {
|
if(scenarioStrings.getpath() != "") {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user