Forum Archive - emulation of language subdomains (as in enterprise version)

emulation of language subdomains (as in enterprise version)
Feb 27, 2012 8:02 am by drinkedin
I have been looking at some way to implement the language subdomain behavior of the enterprise version and have come close. Basically, if you want subdomains like: fr.domain.com es.domain.com de.domain.com etc for the PRO version (general implementation), then there should be a way to handle this with modifications in the .htaccess file. This isn't quite right, but it's coming close - for example, if you wanted "de.domain.com" for German, there might be a modification like: RewriteCond %{THE_REQUEST} !^[A-Z]+\ /gtranslate/ RewriteRule ^(.*)$ http://de.drinkedin.net/gtranslate/tran ... =de&url=$1 [NC,L,R=301] The Condition is to prevent recursion... This seems to come close, but the problem is that the URL in the browser now shows /gtranslate/translate.php... There must be a way to handle this so that we can emulate this behavior. Motivation: Perhaps I should have stated this up top. The motivation is two-fold: 1. I'm using Joomla, but if I use the Joomla plugin, then I can't make use of .human files (i.e. human modified translations) as it's currently not supported. 2. I'm using the general version with Joomla - seems to work most of the time, BUT it looses the language during a form submission. 3. If I was able to keep a language per subdomain, then it seems like I would be able to properly keep the language during a form submission (as well as the potential "niceness" of having a subdomain to reflect the language - could even be the name of the country). Anyone who is better in mod_rewrite want to take a stab at this?
Re: emulation of language subdomains (as in enterprise versi
Feb 28, 2012 2:04 pm by Yana
Hi, I would recommend not to write case by case code. It would be better convert the .human files in the cache. The rest will be translated again. The cache format for non joomla version is in JSON. The joomla version uses raw format. The cache name is the same. If you check it will be very easy to convert.

SIMILAR TOPICS

Large numbers of crawl errors with double language codeJan 24, 2019 1:43 amReplies: 1Post by: natastna2
Translate website to any specific language, on page loadJan 19, 2019 6:49 amReplies: 1Post by: Leaon7756
Graphic translation for every language is missingDec 19, 2018 7:54 amReplies: 1Post by: Daryl Dixon
How to remove mobile Language Select Button transparencyDec 5, 2018 10:06 pmReplies: 10Post by: JeffTR
Change language automaticallyNov 26, 2018 9:29 pmReplies: 3Post by: Antilb

Try GTranslate with a free 15 day trial