mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #8465 from Robyt3/Client-Localize-Context-Fix
Fix wrong context value being used for translation lookup
This commit is contained in:
commit
5a09da0782
|
@ -210,7 +210,7 @@ bool CLocalizationDatabase::Load(const char *pFilename, IStorage *pStorage, ICon
|
||||||
log_error("localization", "malformed context '%s' on line %d", pLine, Line);
|
log_error("localization", "malformed context '%s' on line %d", pLine, Line);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
str_truncate(aContext, sizeof(aContext), pLine + 1, Len - 1);
|
str_truncate(aContext, sizeof(aContext), pLine + 1, Len - 2);
|
||||||
pLine = LineReader.Get();
|
pLine = LineReader.Get();
|
||||||
if(!pLine)
|
if(!pLine)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue