Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

[Résolu] Hook sur le tag {_("texte")}

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
zakwil
Smarty n00b


Joined: 30 Jul 2014
Posts: 4
Location: France

PostPosted: Wed Jul 30, 2014 7:21 am    Post subject: [Résolu] Hook sur le tag {_("texte")} Reply with quote

Bonjour,

Dans le but de gérer du multilingue je voudrai savoir comment faire pour mettre un hook sur le tag : {_("texte")}

Ce dernier affiche "texte" depuis le tpl mais je voudrai lui associer une fonction php, le mieux étant d'en faire un plug-in (smarty3).

Mais je ne trouve pas où placer mon code.

Solution : J'ai trouvé dans le répertoire de cache : <?php echo _("texte");?>
J'ai donc simplement à gérer la fonction php : _()
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP