On all the sites I manage and build there are articles in various languages. There is nothing such as 'default language'.

It would be great if this module could automatically detect the current page's prevailing language. In the Google code at http://translate.google.com/translate_tools you can achieve it by setting language to 'auto'. But this needs to be implemented in your "on fly" method in order to get rid of the annoying blue bar that appears with the above Google code (see and support http://groups.google.com/group/google-translate-general/browse_thread/th...).

Comments

dnotes’s picture

+1 - I'll need this eventually if I'm to continue using this module beyond initial site building.

Vacilando’s picture

This is really urgent because if you try to translate a page in another language it does not work (or rather, it translates just some words from the non-English text that happen to be spelled the same way as some English words, etc.)

You can easily get the language from $node->language and use it instead of 'en' as the source. Here is how I got it to work satisfactorily for me, but I would like to switch to your module as soon as you have implemented something like this. Thanks.

mrgoltra’s picture

subscribing

yannickoo’s picture

subscribe

donquixote’s picture

that would be nice, yes.

Juan C’s picture

+1

franzkewd’s picture

subsribe

alpp’s picture

subscribed

ViNCE’s picture

Issue summary: View changes

changing pageLanguage: '$default_language' to pageLanguage: 'auto' did it for me -->

function googleTranslateElementInit2() {new google.translate.TranslateElement({pageLanguage: 'auto', autoDisplay: false}, 'google_translate_element2');}

I'm using it on a page where I have multilingual entries on one page that should be translated in another language. The language of each paragraph is known. So I also add the lang attribute in the view e.g.

...
apaderno’s picture

Status: Active » Closed (outdated)

I am closing this issue, since Drupal 6 isn't supported anymore.