KolfKord Posted April 26, 2013 Share Posted April 26, 2013 (edited) Hello to all, is there a way to fit into a tpl file of written manuals that change depending on the language on a site that does not use the URL rewrite? On another site I used to: {if $lang_iso == "it"}Spedizionieri{else}Shipping carrier{/if} but on this one, since there are no rewrite the URL, /it or /en but since /id_lang=1 or /id_lang=2 how can I do? Edited April 26, 2013 by KolfKord (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 26, 2013 Share Posted April 26, 2013 you can use $smarty.cookies to get the id_lang value or use $smarty.get array but why you don't want to use default translations feature? Link to comment Share on other sites More sharing options...
KolfKord Posted April 26, 2013 Author Share Posted April 26, 2013 Because I do not work ... I have the site in Italian and English, bought the modules and Agile Agile MultiSeller Mailer, but choosing the Italian language is always in English! I feel like you said! Link to comment Share on other sites More sharing options...
vekia Posted April 26, 2013 Share Posted April 26, 2013 translations feature doesnt work? You use latest 1.5.4.1 prestashop? (I ask because in 1.5.4.1 translation tool works well) Link to comment Share on other sites More sharing options...
KolfKord Posted April 26, 2013 Author Share Posted April 26, 2013 (edited) But the code I have to set up as well? {if $smarty.cookies == "id_lang=1"}AAAAAAA{else}BBBBBBB{/if} Why not go out I always BBBBB Edit message: Ah no i used Prestashop Ver. 1.5.4.0 Edited April 26, 2013 by KolfKord (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted April 26, 2013 Share Posted April 26, 2013 It depends on what prestashop version you use. the best is : {if $smarty.get.id_lang==1}AAAAAAA{else}BBBBBBB{/if} it works with all prestashop versions Link to comment Share on other sites More sharing options...
KolfKord Posted April 26, 2013 Author Share Posted April 26, 2013 It works! Thank you very much! I like the 1.5.4.0 version! However, now I update the version that is better! I put in the subject of the post solved! thanks Link to comment Share on other sites More sharing options...
vekia Posted April 26, 2013 Share Posted April 26, 2013 thanks for the information, new prestashop 1.5.4.1 works well, I recommend it Link to comment Share on other sites More sharing options...
KolfKord Posted April 26, 2013 Author Share Posted April 26, 2013 thanks for the information, new prestashop 1.5.4.1 works well, I recommend it Thank you soo much! 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