Language Dependent Logo configured on site somehow?
Jul 14, 2011 10:08 pm by evebohnett
Jul 14, 2011 10:08 pm by evebohnett
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?
Re: Language Dependent Logo configured on site somehow?
Jul 15, 2011 10:53 am by Edvard
Jul 15, 2011 10:53 am by Edvard
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
Re: Language Dependent Logo configured on site somehow?
Jul 16, 2011 5:41 pm by evebohnett
Jul 16, 2011 5:41 pm by evebohnett
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.
Re: Language Dependent Logo configured on site somehow?
Jul 16, 2011 7:01 pm by Edvard
Jul 16, 2011 7:01 pm by Edvard
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.
Re: Language Dependent Logo configured on site somehow?
Oct 12, 2011 3:28 am by evebohnett
Oct 12, 2011 3:28 am by evebohnett
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...
Re: Language Dependent Logo configured on site somehow?
Oct 12, 2011 11:15 am by Edvard
Oct 12, 2011 11:15 am by Edvard
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...
SIMILAR TOPICS
Large numbers of crawl errors with double language code | Jan 24, 2019 1:43 am | Replies: 1 | Post by: natastna2 |
Translate website to any specific language, on page load | Jan 19, 2019 6:49 am | Replies: 1 | Post by: Leaon7756 |
how to translate site right to left for arabic in WordPress | Dec 26, 2018 9:02 am | Replies: 1 | Post by: Hammond753 |
Graphic translation for every language is missing | Dec 19, 2018 7:54 am | Replies: 1 | Post by: Daryl Dixon |
How to remove mobile Language Select Button transparency | Dec 5, 2018 10:06 pm | Replies: 10 | Post by: JeffTR |