Kleindberg Posted July 25, 2012 Share Posted July 25, 2012 (edited) Hello, The English language in Prestashop have an international abbreviation EN, Russian - RU, France - FR etc. So every language had an own personal code. I want to insert this language code into my template URLs. We write: http://mysite.com/shop/themes/mytheme/{CURRENT-LANUGAGE-CODE}/img.png ...and get link looks like http://mysite.com/shop/themes/mytheme/en/img.png ...if customers current language is English. If user switch site language to Russian, links become looks like http://mysite.com/shop/themes/mytheme/ru/img.png Now I use code {l s='en'} and translate it to get another language, but it's isn't good solution. What code I must to insert to get current language abbreviation? Edited July 25, 2012 by Kleindberg (see edit history) Link to comment Share on other sites More sharing options...
spem77 Posted December 10, 2012 Share Posted December 10, 2012 Hello, The English language in Prestashop have an international abbreviation EN, Russian - RU, France - FR etc. So every language had an own personal code. I want to insert this language code into my template URLs. We write: http://mysite.com/shop/themes/mytheme/{CURRENT-LANUGAGE-CODE}/img.png ...and get link looks like http://mysite.com/shop/themes/mytheme/en/img.png ...if customers current language is English. If user switch site language to Russian, links become looks like http://mysite.com/shop/themes/mytheme/ru/img.png Now I use code {l s='en'} and translate it to get another language, but it's isn't good solution. What code I must to insert to get current language abbreviation? Use (PS_LANG_DEFAULT) Link to comment Share on other sites More sharing options...
Burhan BVK Posted December 10, 2012 Share Posted December 10, 2012 I think it was {$lang_iso} 1 Link to comment Share on other sites More sharing options...
Pronux Posted March 22, 2014 Share Posted March 22, 2014 I think it was {$lang_iso} it is {$lang_iso} ! 1 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