1
LashaeTR
Editin Smarty Code
  • 2004/6/15 23:07

  • LashaeTR

  • Just popping in

  • Posts: 11

  • Since: 2004/6/5 2


Hi,
the theme i'm using displays the date and time on the main page; and of course the day name is in English; i want to translate it into Turkish; to do so i guess i have to edit the mechanism of the smarty code below:

<{$smarty.now|date_format:"%A. %B %e. %Y"}>


but i don't know; where the smarty libs are stored, any idea?
Lashae-

2
Dave_L
Re: Editin Smarty Code
  • 2004/6/15 23:34

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


That particular Smarty function is in class/smarty/plugins/modifier.date_format.php

You might be able to do the translation with the PHP function setlocale. According to the PHP manual, that function affects the output of the function strftime, which the Smarty date_format modifier uses. I haven't tried it myself, though.

Login

Who's Online

202 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 202


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits