Hello @peturkirke
I think this is a very general-problem because I am using the standard language-system of WordPress with language-files. How did you solve this for other plugins? I guess you have to implement your own logic based on the WordPress-API to get this working or use one of the available language-extensions.
You are right ! But the thing is we have a big application, and we are not using other plugins. Are all the texts in the /views folder and is there any way that i could copy the /views folder to my theme folder, and it will overrule the views in the plugin ?
No, there is not a place where all translations are stored. Basically each file can contain strings. If you really want to do it by hand instead of using a good extension for it, you basically have to use some code like this:
https://www.asgaros.de/support/?view=thread&id=600&part=1#postid-2792
This allows you to replace every string with a custom string/translation. You could build a wrapper around it and call a different translation-function based on your session variable.
But I strongly suggest to find a good plugin for this kind of stuff because it will be a hard task to manage all the translations otherwise.
thanks ! i will take a look at that
it works like a charm, thank you very much !
and not so much hard work.