Merge pull request #8465 from Robyt3/Client-Localize-Context-Fix

Fix wrong context value being used for translation lookup
This commit is contained in:
Dennis Felsing 2024-06-08 10:59:56 +00:00 committed by GitHub
commit 5a09da0782
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -210,7 +210,7 @@ bool CLocalizationDatabase::Load(const char *pFilename, IStorage *pStorage, ICon
log_error("localization", "malformed context '%s' on line %d", pLine, Line);
continue;
}
str_truncate(aContext, sizeof(aContext), pLine + 1, Len - 1);
str_truncate(aContext, sizeof(aContext), pLine + 1, Len - 2);
pLine = LineReader.Get();
if(!pLine)
{