WordPress.org

Support

Support » Plugins and Hacks » Change language based on the domain name?

Change language based on the domain name?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ofer Wald

    @oferwald

    Hello there,

    You can probably make some changes to the target language in the plugin based on the domain, this is not supported as a feature yet, but should not be too hard to code.

    In the flag widgets, I have 5 languages apeearing. First is the greek language (default) and other four. The links on the flags, are the following:

    greek: index.php
    english: index.php?lang=en
    french: index.php?lang=fr
    etc…

    Is it possible to force a lang param in the greek (aka default) language, so to have something like this:

    greek: index.php?lang=el
    english: index.php?lang=en
    french: index.php?lang=fr
    etc…

    In this case, it will be much more easy to check, if there is no lang param, to add one based on the domain…

    Plugin Author Ofer Wald

    @oferwald

    Hi,

    Yes, you can easily change the widget generating code, just look at our trac site (trac.transposh.org), really simple

    Good luck

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change language based on the domain name?’ is closed to new replies.