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

html_select_date en Français

 
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
bibine
Smarty n00b


Joined: 27 Oct 2006
Posts: 4

PostPosted: Fri Oct 27, 2006 11:53 am    Post subject: html_select_date en Français Reply with quote

Bonjour, à tous !

Voilà je voulais savoir si il était possible de transformer les mois qui s'affiche grâce à html_select_date (par défaut en anglais ) , les traduire en français automatiquement ou bien en une toute autre langue que l'anglais !

Il y t'il une variable spécifique à assigner pour cela ??

Merci par avance pour les réponses que vous me donnerez !!
Back to top
View user's profile Send private message
ciboulette
Smarty Regular


Joined: 13 Jul 2006
Posts: 45

PostPosted: Fri Oct 27, 2006 1:01 pm    Post subject: Reply with quote

Jamais fait mais a mon avis si tu modifie un peu le fichier :

libs/plugins/function.html_select_date.php

tu doit pouvoir sans trop de probleme
Back to top
View user's profile Send private message
bibine
Smarty n00b


Joined: 27 Oct 2006
Posts: 4

PostPosted: Fri Oct 27, 2006 5:55 pm    Post subject: Reply with quote

Re !

Merci, de me l'avoir rappeller! Wink j'avais complétement que c'était une fonction personnalisée. Embarassed

Pour ceux que cela intéresse, j'ai résolu mon probléme, c'était trés simple fallait juste rajouter : setlocale(LC_TIME, "French"); à l'intérieur de la fonction smarty_function_html_select_date.

Voilà ++
Back to top
View user's profile Send private message
ele
Smarty Rookie


Joined: 15 Mar 2006
Posts: 6

PostPosted: Thu Nov 09, 2006 3:52 pm    Post subject: Reply with quote

Ce n'est pas nécessaire de modifier un fichier de smarty. Il suffit de appeler

Code:
setlocale(LC_TIME, "French");


avant de utiliser smarty. C'est mieux de faire de cette manière parceque sinon la prochaine foix que tu fais un update de smarty tes changements seront perdus.

Excuse mon Français terrible. Il sont passé plus de dix ans depuis ma dernière leçon de Français...
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