GTranslate problem - unable to minimise width

Popular automatic website translation tool

GTranslate problem - unable to minimise width

Postby Art POS » Sun Dec 16, 2012 4:53 am

GTranslate is unable to reduce the width of the module to less than the longest name of language in the drop down list.
When GTranslate is used with just the flags, then it can shrink its width because the flags can wrap around to the next line.
When it is used with "flags and drop down list", or just the "drop down list", it can not shrink its width to less than the longest language name (plus a small end clearance).

Solutions include;
1a) Let the module width shrink by not depending on the list width, and let the list width overflow the side boundaries when it is dropped down.
1b) same as 1a, but can show the full length of the selected name when it is hovered over.
2) let long language names able to line wrap.
3) Have options to automatically or manually select a smaller font, for either just the long names, or the entire list.
4) Truncate the long names, either by chopping off the end, or chopping out the middle. The full name can be displayed when hovered over.
5) let user choose how the long names are handled when the width is small.

Thank you for a nice translator.
Art POS
Art POS
 
Posts: 3
Joined: Sun Dec 16, 2012 4:39 am

Re: GTranslate problem - unable to minimise width

Postby Yana » Mon Dec 17, 2012 2:16 am

Hi,
You can edit /modules/mod_gtranslate/tmpl/default.php file and customize the free module to meet your needs.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: GTranslate problem - unable to minimise width

Postby Art POS » Mon Dec 17, 2012 2:51 am

Hi,
Thanks for the tip.
I modified the the following line, which is the first large paragraph at the start ;

$lang_array = array('en'=>'English','ar'=>'Arabic','bg'=>'Bulgarian','zh-CN'=>'Chinese (Simplified)','zh-TW'=>'Chinese (Traditional)', ......

to

$lang_array = array('en'=>'English','ar'=>'Arabic','bg'=>'Bulgarian','zh-CN'=>'Chinese (Simpl)','zh-TW'=>'Chinese (Trad)', .....

This solved the problem of the entire module overlapping the right edge of the left side.
The language selection drop down box, is narrower now, so it fits. But it is left justified, which makes the module appear off balance.
So it would be handy if the drop down selection box, was able to automatically re-size (maybe by adding blank spaces to the longest name on the list) so that the drop down selection box spanned the full width of the bottom of the module, to make it look nicely balanced.

And additional note, is that the flags fit by wrapping lines, but they too are left justified, which often means there is a larger gap on the right side of the module. If these were centre or full justified the module would maintain a visual balance.

We are sorry that our programming expertise in php is almost non-existent, and that this problem involves feature requests that are beyond our ability to make them ourselves.

However, if (some of) the changes were able to be made, then we are sure that many users and site viewers would appreciate the improvement in the appearance.
Art POS
 
Posts: 3
Joined: Sun Dec 16, 2012 4:39 am

Re: GTranslate problem - unable to minimise width

Postby Yana » Tue Dec 18, 2012 12:54 am

Hi,
Sorry, but we do not provide customization service. All the extra customization of the language selector need to be done on your side. You can ask your designer or developer to do that for you.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4133
Joined: Thu Jan 12, 2012 6:21 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest

2GLux
cron