sucrenoir Posted March 8, 2013 Share Posted March 8, 2013 Bonjour La réponse doit déjà exister quelque part mais je ne la trouve pas. J'ai besoin d'effectuer un if dans un fichier tpl selon la langue en cours. Comment puis je faire ? Merci d'avance Link to comment Share on other sites More sharing options...
Bondaty and Co Posted March 8, 2013 Share Posted March 8, 2013 {if $language.id_lang == id de la langue} Link to comment Share on other sites More sharing options...
sucrenoir Posted March 8, 2013 Author Share Posted March 8, 2013 (edited) Merci pour la réponse :-) Cela ne fonctionne pas. Ca retourne une chaine vide. {$language.id_lang} Edited March 8, 2013 by sucrenoir (see edit history) Link to comment Share on other sites More sharing options...
Bondaty and Co Posted March 11, 2013 Share Posted March 11, 2013 {if $lang_iso == fr}test{/if} Link to comment Share on other sites More sharing options...
sucrenoir Posted March 11, 2013 Author Share Posted March 11, 2013 Merci ça marche super ! Nos traductions dans les modules ne fonctionnent plus et donc on est obligé d'utiliser ce stratagème pour traduire nos modules :-( Bonne journée ! Link to comment Share on other sites More sharing options...
Bondaty and Co Posted March 11, 2013 Share Posted March 11, 2013 On 3/11/2013 at 8:23 AM, sucrenoir said: Nos traductions dans les modules ne fonctionnent plus et donc on est obligé d'utiliser ce stratagème pour traduire nos modules les champs textes sont bien renseignés ainsi : {l s='english text' mod='nomdumodule'} 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