Browse Source

Merge pull request #350 from Mystler/loc_fix

Fix loading localized sound files
Adam Johnson 11 years ago
parent
commit
6005f78cbf
  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); plString langTag = name.AsString().Substr(underscore, kLangTagLen);
if (langTag == fLangTags[kEnglish]) if (langTag == fLangTags[kEnglish])
return name.AsString().Left(underscore) + fLangTags[lang]; return name.AsString().Replace(fLangTags[kEnglish], fLangTags[lang]);
} }
return ""; return "";

Loading…
Cancel
Save