Hello everyone,
I'm trying to use a translation file in my plugin but the issue is that, in-game, language is always changing for me.
So far, I have 2 languages written : "en" (default language) and "fr" (my language based on my location). During the game, I can get one phrase in french and the next one will be in english. Not always the same phrases in french nor in english, it can vary.
There is a piece of code I'm using but I don't think the problem is here :
Code:
public OnPluginStart()
{
LoadTranslations("plugin.phrases");
}
... Later in the code...
CPrintToChatAll("[PLUGIN] %t ","Annonce");
Based on this phrase file for example :
Quote:
"Annonce"
{
"en" "This is a Test "
"fr" "C'est un test"
}
|
I don't have this problem with other plugins.
Do you have any idea what can I do wrong here ?