Jump to content

Language, language, language


krimster

Recommended Posts

Hi, still trying to work thru getting different headers for different languages.

 

New to the template system, but I added some custom language fields for my main navigation, and it seemed to work, so when language is changed the navigation (main site, not WHMCS) changes, which is cool.

 

But I'd like to swap logos as well. Does anyone have a simple solution to change logos, an image, in the header template? I can't add image paths to the language file, can I?

 

Thanks in advance!

Link to comment
Share on other sites

Actually, here is what I did and it seems to work, but if anyone has a better idea, or a reason why this is no good then please say it.

 

I made another entry in the lang file for the logo, just with "logo_en.jpg" and then used this in the image path and it seems to work well.

Link to comment
Share on other sites

you can replace the entire image in your header.tpl? However I guess you have something on your header image which is language specific? -- if so then yes, using the language file and pointing each language file its own logo.. and setting that as a variable in the header.tpl would work..

 

Rarely have i seen it done tho, as few people have language specific headers. Nice touch tho :)

Link to comment
Share on other sites

Actually, here is what I did and it seems to work, but if anyone has a better idea, or a reason why this is no good then please say it.

 

I made another entry in the lang file for the logo, just with "logo_en.jpg" and then used this in the image path and it seems to work well.

 

If its a language issue, i really think thats the best way to do it.

Link to comment
Share on other sites

Thanks for the replies, I think this solution will work as well as any.

 

I do need the different headers, as they hold the main site nav, which needs to be seperate languages, and the logos as well, one is in the cyrillic alphabet, others not.

Link to comment
Share on other sites

  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated