Browse Source

Don't ignore possible extensions when localizing object names

Florian Meißner 11 years ago
parent
commit
063b61161d
  1. 2
      Sources/Plasma/PubUtilLib/plResMgr/plLocalization.cpp

2
Sources/Plasma/PubUtilLib/plResMgr/plLocalization.cpp

@ -95,7 +95,7 @@ plFileName plLocalization::IGetLocalized(const plFileName& name, Language lang)
plString langTag = name.AsString().Substr(underscore, kLangTagLen);
if (langTag == fLangTags[kEnglish])
return name.AsString().Left(underscore) + fLangTags[lang];
return name.AsString().Replace(fLangTags[kEnglish], fLangTags[lang]);
}
return "";

Loading…
Cancel
Save