Quote:
Originally Posted by snelvuur
Dont know if its of any help but i have this in the logs now (dont have any reports that it didn't work at the same time yet)
L 03/09/2012 - 20 0:06: [BV] Unknown fatal error while translating phrase "Vote Count" for client "Ã<81>øLLã Ã<9c>IÃ<85>Ã<85>ãâ<88><8Ã<98>_Ã<98>)" using language 7
L 03/09/2012 - 20 0:06: [BV] FindTranslation returned: No Error.
03/09/2012 - 20 0:06: [BV] Sending vote cast to hintbox for gumf597.
L 03/09/2012 - 20 0:06: [BV] Unknown fatal error while translating phrase "Vote Count" for client "gumf597" using language 7
L 03/09/2012 - 20 0:06: [BV] Unknown fatal error while translating phrase "Vote Count" for client "PRO KALLE" using language 7
L 03/09/2012 - 20 0:06: [BV] FindTranslation returned: No Error.
I grepped on the FindTranslation but always "no error" except for above so far..
|
That's... strange. The FormatString command fails, but the command it's supposed to be using internally is returning no error. I may have to write even more debugging code to examine the parameter stack.
Also, I wish I knew what language #7 was... but there is no API to get the language name from the language number using the C++ API.
Although, now that I look, there is a way to retrieve language info by number in the SourcePawn API. Let me whip up a quick script...
According to my server, language 7 is:
languageid 7
Name: danish, Code: da
And this clue may have given me the solution I've been looking for.
In SourceMod 1.3.8, this is what translations/da/core.phrases.txt had in it for Vote Count:
Code:
"Vote Count"
{
"da" "Stemnings tal"
}
This is what translations/core.phrases.txt had in it for Vote Count:
Code:
"Vote Count"
{
"#format" "{1:i},{2:i},{3:i}"
"en" "Votes: {1}/{2}, {3}s left"
}
As you can see, the number of parameters doesn't match.
However, this is what 1.4.1 has for translations/da/core.phrases.txt
Code:
"Vote Count"
{
"da" "Stemmer: {1}/{2}, {3}sekunder tilbage"
}
As you can see, the 1.4.1 version has the correct number of arguments.
Apparently this was fixed between versions.
So, I recommend replacing your SourceMod translation files with the ones from the 1.4.1 archive.
__________________