SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Smarty "date_format" in Dutch?

    Hey there,

    Does anyone know which Smarty files I need to edit in order to output the "date_format" modifier in Dutch? It is currently in English.

    Thanks for your help.

  2. #2
    SitePoint Wizard silver trophy Jelena's Avatar
    Join Date
    Feb 2005
    Location
    Universum, 3rd Corner
    Posts
    3,001
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    As far as I know, date_format modifier works with php function strftime so you would need to use setlocale to change the language used, so you don't need to change the modifier. However, if you want to take a look at it, it is located in libs/plugins folder.
    -- Jelena --

  3. #3
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jelena View Post
    As far as I know, date_format modifier works with php function strftime so you would need to use setlocale to change the language used, so you don't need to change the modifier. However, if you want to take a look at it, it is located in libs/plugins folder.
    What chocolates do you like? Hehe
    You are right. It uses "strftime()" PHP function.
    I haven't really used "setlocale()" before, so I'll need to do some research on that.
    Thanks for your help.

  4. #4
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I have a single file which is included at the top of each PHP document. This file includes my classes and does some other things. All I did was add the line of code below into this include file.

    PHP Code:
    setlocale(LC_ALL'nl_NL'); 
    The client is dutch, and the site has to be completely Dutch, though I cannot really understand, speak or write dutch. Been using language files and the Smarty templating system for translation.

    The moment I tested the system with this line of code, the results were just astonishing.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •