Language Dependent Logo configured on site somehow?

Popular automatic website translation tool

Language Dependent Logo configured on site somehow?

Postby evebohnett » Fri Jul 15, 2011 2:08 am

Greetings,

I have a jpg image for the logo on my site. It's the only thing that doesn't translate with gtranslate pro. I'm wondering if I can somehow manipuate the code to have different logos appear from the differentlanguage folders? Also, since I really don't want to have to create JPG's because that would be too much work... I'm not sure how else to translate a photoshop file... maybe if someone knows a trick I could use the help... Can i somehow create the .psd into another file format and use that as the logo?
evebohnett
 
Posts: 16
Joined: Fri Jul 15, 2011 2:02 am

Re: Language Dependent Logo configured on site somehow?

Postby Edvard » Fri Jul 15, 2011 2:53 pm

You need to create a separate logo for each language and use PHP to show the correct one.

You may read this article to find out how you get the selected language with PHP:
gtranslate/url-language-code-t320.html
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: 4184
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Language Dependent Logo configured on site somehow?

Postby evebohnett » Sat Jul 16, 2011 9:41 pm

Hmmm.. that will work.
However, I'm unsure of how to write the php code for this specific example, and I'm also equally unsure of which file to place it in.

If you're expert and can easily make one php line for one jpg in one language... I can easily do the rest.

Also, does same code example apply to changing translations on the website? by using rewrite?

I have gtranslate pro and am still figuring out all of the features. So far, I'm really impressed. It works very fast.
However, I'm unsure if my international readers will be able to navigate to the site and know how to chose the translation if the site renders in english automatically... and they have to read english to find the translation module. I tried doing flags but it disabled javascript on my site, and the site doesn't look as good w/o it... sooo I'm kind of wondering if there's another way... but if they can search in their search engines in their languages and find content on my site, that may be good enough.

Thank you for all of your help. I know this support ticket is kind of long.
evebohnett
 
Posts: 16
Joined: Fri Jul 15, 2011 2:02 am

Re: Language Dependent Logo configured on site somehow?

Postby Edvard » Sat Jul 16, 2011 11:01 pm

Probably the logo is inside your template index.php file and has a static image to your logo. You can try to do this:

<img src=".../logo-<?php echo (isset($_GET['glang']) ? $_GET['glang'] : 'en'); ?>.png"... />

and you will need to create a new logo-XX.png for each language.

I'm not sure I understand the 2nd question.
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: 4184
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Language Dependent Logo configured on site somehow?

Postby evebohnett » Wed Oct 12, 2011 7:28 am

Okay great,
I just got around to actually configuring this part of the site.

So you're saying, that if I add 58 different lines into my index.php for the logo with 58 different logos, then I will be able to click on a flag on my site, and the translated logo will come up?

I just need to double check, because that's a lot of work...
evebohnett
 
Posts: 16
Joined: Fri Jul 15, 2011 2:02 am

Re: Language Dependent Logo configured on site somehow?

Postby Edvard » Wed Oct 12, 2011 3:15 pm

There is no need to add 58 lines. You need to modify only one line and add the language code in the end of the logo file. After that you need to stick to one format for naming logos in different languages. Ex. logo-en.png, logo-de.png, logo-it.png, etc...
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: 4184
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux