Rhobur Posted December 20, 2012 Share Posted December 20, 2012 (edited) Hi, I have an unusual situation such as I need to display for each shop's language a different logo of the same manufacturers. To be clear, each manufacturer logo has a text which needs to be in the same language as the one selected by the visitor. Any idea of how this could be accomplished ? Best Regards, Edited December 28, 2012 by Caprice (see edit history) Link to comment Share on other sites More sharing options...
Carlsen Posted December 22, 2012 Share Posted December 22, 2012 You could adding {l s=''} inside the image code for the manufacturer logo: <img src="../img/m/caprice_{l s='en'}.png" /> and translate that in the backoffice to "fr", "de" and so on.. Link to comment Share on other sites More sharing options...
Rhobur Posted December 22, 2012 Author Share Posted December 22, 2012 Thanks for suggestion! Problem is that the logo, the picture itself has some text included so a German customer will see a logo which besides the graphic has also English words. Have a great weekend! Link to comment Share on other sites More sharing options...
Carlsen Posted December 22, 2012 Share Posted December 22, 2012 (edited) Hi Caprice, But I belive you could solve that by using {l s=''} inside the image code. The manufacturer logo source would then be with the correct language extension, for example caprice_de.png. I have just tested it, this is how it looks when I have selected "English" as language: And when I have German: The code: <img src="/img/m/{$product->id_manufacturer}_{l s='EN'}.jpg" title=""/> I translated EN to DE in the backoffice. Then I uploaded 1_EN.jpg and 1_DE.jpg to the manufacturer image folder. (By the way, the text is not on top of the image, but in the image it self..) Isn't this what you are aiming for? Also a good weekend to you Edited December 22, 2012 by Carlsen (see edit history) 1 Link to comment Share on other sites More sharing options...
Rhobur Posted December 23, 2012 Author Share Posted December 23, 2012 Yes it is. I didn't understand what you meant in the beginning. Thank you for your complete explanation. I will try as you suggest, it is an elegant solution with the least trouble. Merry Christmas to you! Link to comment Share on other sites More sharing options...
Rhobur Posted December 27, 2012 Author Share Posted December 27, 2012 @Carlsen: it totally works, man! Thank you and I wish you a very Happy New Year! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now