Merge branch '36-add-ability-to-have-translated-titles-with-untraslated-fields' into 'main/gingo-test'

Resolve "Add ability to have translated titles with untraslated fields"

See merge request ryzom/ryzom-core!36
merge-requests/37/merge
Nuno Gonçalves (Ulukyn) 3 years ago
commit 255257a7f5

@ -1681,6 +1681,18 @@ vector<string> CStringManagerClient::getTitleInfos(const string &titleId, bool w
{
if (titleId[0] != '#')
{
// Check special case like SON_OF|jane|joe (with SON_OF = "Son of {1} and {2}")
vector<string> titleReps;
splitString(listInfos[0], string("|"), titleReps);
if (titleReps.size() > 1)
{
listInfos[0] = getSpecialWord(titleReps[0], women);
for(uint i=1; i < titleReps.size(); ++i )
{
while(strFindReplace(listInfos[0], toString("{%d}", i), titleReps[i]));
}
}
else
listInfos[0] = getSpecialWord(listInfos[0], women);
}
}

Loading…
Cancel
Save