Mobile app version of vmapp.org
Login or Join

Login to follow query

More posts by @Sherry384

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kristi941

The question doesn't really make sense, functionally.
The translation widget is triggered by the act of changing from the default selection("Select Language") to the target language. Making the widget come up with a different item selected wouldn't accomplish anything. In fact, people would probably have to change the selection to something else, wait for that translation, and then change it back to get at the language you actually want. You could conceivably use a bit of Javascript to fake a change event on the drop-down after the page loads(I have not actually tested this), but then that'll make it happen for everybody, including people who don't want it.

If you always want to translate to the same language, maybe you should look at providing translation links instead. Assuming you're using a CMS of some kind, just go to the main Google Translate page, give it some URL/language combination and submit. You'll end up at something like this:
translate.google.com/translate?js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&sl=auto&tl=ja&u=http%3A%2F%2Fexample.com

...which is a link translating example.com from English to Japanese.
Then, in your CMS template, replace the value of the &u query parameter with the URL of the current page, URL-encoded.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme