Closed (outdated)
Project:
Translate Drupal with GTranslate
Version:
6.x-1.1
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2009 at 18:53 UTC
Updated:
25 Sep 2019 at 09:08 UTC
Jump to comment: Most recent
Comments
Comment #1
dnotes commented+1 - I'll need this eventually if I'm to continue using this module beyond initial site building.
Comment #2
vacilando commentedThis 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->languageand 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.Comment #3
mrgoltra commentedsubscribing
Comment #4
yannickoosubscribe
Comment #5
donquixote commentedthat would be nice, yes.
Comment #6
Juan C commented+1
Comment #7
franzkewd commentedsubsribe
Comment #8
alpp commentedsubscribed
Comment #9
vince commentedchanging 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.
Comment #10
avpadernoI am closing this issue, since Drupal 6 isn't supported anymore.