Grow your CSS skills. Land your dream job.

Adding a query to url….

  • # March 14, 2009 at 5:05 pm

    I am using WordPress with the qTranslate plugin.

    And I can’t see anyway of switching the languages other than the url, so I need a way of adding something to the URL with the use of flags.

    So for example, if the url is: http://www.mydomain.com/index.php
    I need to change it to: http://www.mydomain.com/index.php?lang=en

    However if it already has a query, for example: http://www.mydomain.com/index.php?p=1

    I need to append my query to make it: http://www.mydomain.com/index.php?p=1&lang=es

    How do I do this?

    I would also like to make it so that the user doesn’t have to always switch from language to language, so if they choose russian, the next page will also be in russian.

    Is this a good solution or is there a better way? Thanks for any help you can give!

    # March 14, 2009 at 6:45 pm

    It is built into the plugin. you just need to configure it.
    http://www.qianqin.de/qtranslate/

    # March 15, 2009 at 7:38 am

    I have read through that page you posted a few times and I think I have it working now.

    But do you have any idea what the links should be on the menu to keep the following pages in the current language?

    # March 15, 2009 at 8:00 am

    I don’t have a clue, but on the page that I linked to is another link to the plugin’s FAQ page and also a forum dedicated specifically to that plugin. That is where I would look for answers.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".