Fixed a bug where SourceMod failed trying to default back to English when missing translations.
This commit is contained in:
parent
4e7000368f
commit
99e304d6b5
@ -102,7 +102,7 @@ try_serverlang:
|
|||||||
}
|
}
|
||||||
else if (langid != SOURCEMOD_LANGUAGE_ENGLISH)
|
else if (langid != SOURCEMOD_LANGUAGE_ENGLISH)
|
||||||
{
|
{
|
||||||
if (!pPhrases->FindTranslation(key, SOURCEMOD_LANGUAGE_ENGLISH, &pTrans))
|
if (pPhrases->FindTranslation(key, SOURCEMOD_LANGUAGE_ENGLISH, &pTrans) != Trans_Okay)
|
||||||
{
|
{
|
||||||
pCtx->ThrowNativeErrorEx(SP_ERROR_PARAM, "Language phrase \"%s\" not found", key);
|
pCtx->ThrowNativeErrorEx(SP_ERROR_PARAM, "Language phrase \"%s\" not found", key);
|
||||||
goto error_out;
|
goto error_out;
|
||||||
|
Loading…
Reference in New Issue
Block a user