• Resolved peturkirke

    (@peturkirke)


    Hello !
    We are using multi languages on our site. But not the wordpress way. We are including a php file with all the texts for the different languages and then using a session variable to find out what language is active. Is there a way i could get Asgaros forum to work in this way, or will it be a hard task ?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Asgaros

    (@asgaros)

    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.

    Thread Starter peturkirke

    (@peturkirke)

    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 ?

    Plugin Author Asgaros

    (@asgaros)

    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.

    Thread Starter peturkirke

    (@peturkirke)

    thanks ! i will take a look at that

    Thread Starter peturkirke

    (@peturkirke)

    it works like a charm, thank you very much !

    and not so much hard work.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘special languages challenge’ is closed to new replies.