[solved][GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Popular automatic website translation tool

[solved][GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby alt_f4 » Mon Dec 12, 2011 8:33 pm

To be honest: GTranslate is working nearly perfect for us...

This time, only a little question related to the alt-attribute in the "flag menue" of GTranslate.

On our Site (english, translation by GTranslate) http://www.imsware.com the Flags are shown in the upper right corner.

On mouse-over the alt-attribute of each language is shown correctly expect the native (first) flag.

The mouse-over of the german flag is "English" instead of "German"...but the strange thing is that in the source code everything with the alt-attribute seems to be correct...

Code: Select all
<img src="/modules/mod_gtranslate/tmpl/lang/blank.png" height="16" width="16" alt="German" /></a>


How can I correct this?

Regards, alt_f4
Last edited by alt_f4 on Tue Dec 20, 2011 4:22 pm, edited 1 time in total.
alt_f4
 
Posts: 68
Joined: Tue May 31, 2011 2:43 pm

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby Edvard » Tue Dec 13, 2011 2:11 am

Hi,

In the source code I can see this: <a href="javascript:doTranslate('de|de')" title="English" class="flag" style="background-position:-300px -100px;">

As you can see the title is set to English which is being displayed. Did you modify the GTranslate module or it is a bug in our code?
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby alt_f4 » Tue Dec 13, 2011 11:52 am

to be secure, I´ve done a fresh install of the GTranslate module(Joomla 1.5.x.28). I guess, the array is set in the default.php (located in the "tmpl" directory)?

In line 11 everything seems to be defined well:

Code: Select all
$lang_array = array('en'=>'English','ar'=>'Arabic','bg'=>'Bulgarian','zh-CN'=>'Chinese (Simplified)','zh-TW'=>'Chinese (Traditional)','hr'=>'Croatian','cs'=>'Czech','da'=>'Danish','nl'=>'Dutch','fi'=>'Finnish','fr'=>'French','de'=>'German','el'=>'Greek','hi'=>'Hindi','it'=>'Italian','ja'=>'Japanese','ko'=>'Korean','no'=>'Norwegian','pl'=>'Polish','pt'=>'Portuguese','ro'=>'Romanian','ru'=>'Russian','es'=>'Spanish','sv'=>'Swedish','ca'=>'Catalan','tl'=>'Filipino','iw'=>'Hebrew','id'=>'Indonesian','lv'=>'Latvian','lt'=>'Lithuanian','sr'=>'Serbian','sk'=>'Slovak','sl'=>'Slovenian','uk'=>'Ukrainian','vi'=>'Vietnamese','sq'=>'Albanian','et'=>'Estonian','gl'=>'Galician','hu'=>'Hungarian','mt'=>'Maltese','th'=>'Thai','tr'=>'Turkish','fa'=>'Persian','af'=>'Afrikaans','ms'=>'Malay','sw'=>'Swahili','ga'=>'Irish','cy'=>'Welsh','be'=>'Belarusian','is'=>'Icelandic','mk'=>'Macedonian','yi'=>'Yiddish','hy'=>'Armenian','az'=>'Azerbaijani','eu'=>'Basque','ka'=>'Georgian','ht'=>'Haitian Creole','ur'=>'Urdu');


Hmmmpf...any idea? Do you use any further arrays? Maybe it´s related to the ordering or the way you call the tooltip?

Best regards, alt_f4
alt_f4
 
Posts: 68
Joined: Tue May 31, 2011 2:43 pm

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby alt_f4 » Wed Dec 14, 2011 11:25 am

...to clarify: No changes in the Joomla-module.
alt_f4
 
Posts: 68
Joined: Tue May 31, 2011 2:43 pm

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby Edvard » Sat Dec 17, 2011 7:38 pm

I cannot confirm that there is a issue in the code.

Please download and install the latest version.
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby alt_f4 » Mon Dec 19, 2011 12:11 pm

In wich files do you build the alt-attributes?

Regards, alt_f4
alt_f4
 
Posts: 68
Joined: Tue May 31, 2011 2:43 pm

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby Edvard » Mon Dec 19, 2011 3:03 pm

Everything is in modules/mod_gtranslate/tmpl/default.php and it is not alt attribute which appears when you hover. It is the title attribute.

BTW. Which locale language do you use in Joomla?
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby alt_f4 » Mon Dec 19, 2011 3:13 pm

locale is "German (Germany-Switzerland-Austria)"
alt_f4
 
Posts: 68
Joined: Tue May 31, 2011 2:43 pm

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby Edvard » Mon Dec 19, 2011 3:54 pm

Can you try to change it to English and see if there is a difference?
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby alt_f4 » Mon Dec 19, 2011 4:29 pm

no difference, but withe another template it works fine...seems to be a joomla/template problem.

Same site, other template: http://new.imsware.de/ and it works. That solves it for me...

Regards, alt_f4
alt_f4
 
Posts: 68
Joined: Tue May 31, 2011 2:43 pm

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby Edvard » Mon Dec 19, 2011 4:37 pm

It is strange. I think you have template overrides in your problematic template. Check mod_gtranslate in your template html directory which I think does the override.
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby alt_f4 » Tue Dec 20, 2011 11:48 am

Addendum: I've noticed a strange behavior: if the GTranslate cache is empty (all folders blank), the attribute is displayed correctly.
But if GTranslate starts it´s job, next time the alt-attribute (yes, I know, it´s the title...) is wrong (is it possible, that it´s also translated by GTranslate)?

Still strange...


Regards, alt_f4
alt_f4
 
Posts: 68
Joined: Tue May 31, 2011 2:43 pm

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby alt_f4 » Tue Dec 20, 2011 2:42 pm

Finally, after removing the Google-API and inserting a new BING-API key) I´ve deleted the wohle "cache" folder and uploaded a new, fresh one. Also deleted "limits.txt". Furthermore, I´ve created a new BING-API-key (but in config you write, that the "PHP SOAP client is required", I´m not sure if I´ve choosen the right one, but I just can´t find any alternative Bing-API-keys at http://www.bing.com/developers/createapp.aspx). All just related to the topic above, but the site doesn´t translate anymore. What´s on?

My config.php:

Code: Select all
<?php
define('API_KEY', ''); //  You need to get your Google Translate API key from https://code.google.com/apis/console/?api=translate
define('MAIN_LANG', 'de'); // en, ar, bg, hr, cn, ct, cs, da, et, tl, fi, fr, gl, el, iw, hi, es, nl, id, ja, ca, ko, lt, lv, mt, de, no, pt, ru, ro, sr, sk, sl, sv, th, tr, uk, hu, vi, it, pl, sq
define('AUTO_DETECT_LANG', false); // set to true if you have mixed language content
define('CACHE_TIME', 365*24*60*60); // 1 year by default, no need to decrease
define('LICENSE', 'license.dat');
define('SSL_VERIFY_PEER', true); // disable if you get CA certificate error and cannot reconfigure your server to solve the issue
define('FOLLOW_LOCATION', false); // if your site have redirects for some URLs and for that reason you see blank pages, you need to enable this feature
define('USE_BING_TRANSLATOR', true); // Enable it to use Bing Translotor instead of Google Translate
define('BING_API_KEY', 'BDAD75xxnotyoursxxxxx434E'); // If the option above is enabled you need to get your Bing API key from http://www.bing.com/developers/createapp.aspx (PHP SOAP client is required)
define('DEBUG', false); // turn on for debug mode

// username and password to edit translations, please change for security reasons,
// this is not your google login/pass, you need to think something new
define('USER', 'myuserishere');
define('PASS', 'mypassishere');


Best regards and once again thanks for your professional support!

alt_f4
alt_f4
 
Posts: 68
Joined: Tue May 31, 2011 2:43 pm

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby Edvard » Tue Dec 20, 2011 3:34 pm

There was no need to delete the cache. If possible revert it back.

May be German got translated into English? You can add <span>German</span> somewhere on your page and see if it is being translated into English when you change the language to English. If that happens then you can edit the translations and write a correct translation.

Also, you can add class="notranslate" to the language selector wrapper element.
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: [GTranslate Pro / Joomla 1.5] alt-attribute / Flags

Postby alt_f4 » Tue Dec 20, 2011 4:24 pm

Edvard wrote:...
May be German got translated into English? You can add <span>German</span> somewhere on your page and see if it is being translated into English when you change the language to English. If that happens then you can edit the translations and write a correct translation.
...


Edvard, problem soveld with 5 stars...thanks again :mrgreen:

Regards, alt_f4
alt_f4
 
Posts: 68
Joined: Tue May 31, 2011 2:43 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron