Forum Archive - how to add this to url?

how to add this to url?
Jul 1, 2011 6:53 am by hosteris
Hi, In my website I have a subdirectory used for sales and client management, the script installed in that subdirectory is multilanguage and language can be set adding "&language=English" or "?language=English" or the language you want (I have only spanish and english) examples: http://www.hosteris.com/en/clientes/car ... ge=English http://www.hosteris.com/en/clientes/car ... ge=Spanish but some pages have to be set with "?language=English" examples: http://www.hosteris.com/clientes/client ... ge=English http://www.hosteris.com/clientes/client ... ge=Spanish how can I add "&language=English" and/or "?language=English" to english URLs? *sorry for my bad english
Re: how to add this to url?
Jul 1, 2011 10:36 am by Edvard
Hi, I'm not sure that I understand you. But I just want to note that it is not good to have 2 multilingual solutions on the same site. You can exclude clients sub-directory from GTranslate translations.
Re: how to add this to url?
Jul 1, 2011 3:58 pm by hosteris
the problem is that all the content in "clientes" subdirectory is not translated with gtranslate... clean your browser caché and go to http://www.hosteris.com/en/clientes/car ... d=1&skip=1 to see it but if I add &language=English to urls all content is translated part with gtranslate and part using english language of the script (whmcs) http://www.hosteris.com/en/clientes/car ... ge=English I only want to know how to add &language=English to all urls that are accesed from the english section of mi site http://www.hosteris.com/en/clientes/cart.php?pid=1&skip=1 *sfmbe
Re: how to add this to url?
Jul 4, 2011 2:14 pm by Edvard
Hi, Is it possible to somehow make English as a default language, so if you go to a page without &language=English it will work. I guess now the default language set to Spanish.
Re: how to add this to url?
Jul 4, 2011 3:24 pm by hosteris
yes spanish is default language, but what I want is to set english to users who access to orderform (/clientes/) from english section in my website, so the only form possible (due to gtranslate don´t translate all content in orderform) is adding "&language=English" to URL, but still can´t do that using .htaccess
Re: how to add this to url?
Jul 7, 2011 10:38 am by Edvard
Will this redirect solve your issue what you think? http://www.hosteris.com/en/clientes/... to http://www.hosteris.com/clientes/...?language=English
Re: how to add this to url?
Jul 7, 2011 2:18 pm by hosteris
yes, that´s what I´m saying since first comment. what I want is: + add ?language=English to urls like this http://www.hosteris.com/en/clientes/clientarea.php e.g. http://www.hosteris.com/en/clientes/cli ... ge=English + add &language=English to urls like http://www.hosteris.com/en/clientes/car ... =10&skip=1 e.g. http://www.hosteris.com/en/clientes/car ... ge=English
Re: how to add this to url?
Jul 7, 2011 2:24 pm by hosteris
... hope you can help me with this. Regards
Re: how to add this to url?
Jul 8, 2011 7:37 pm by Edvard
Add this before # gtranslate config line RewriteRule ^en/clients/(.*)$ /clients/$1?language=English [R=301,L,QSA]
Re: how to add this to url?
Jul 9, 2011 7:36 am by hosteris
that works for me... thanks a lot!!

Try GTranslate with a free 15 day trial