Log in | Register | Lost password

Bottom
Date language definitions
  • Posted: 10.01.2004, 01:42
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I am using this: to display date, but the months are displayed in english (and I want them in Norwegian). In which file are the months defined?

    [Edited on 10/1/2004 by striky]
  • Posted: 10.01.2004, 09:31
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    date_format is a Smarty function that's essentially a wrapper to the PHP function strftime(). Local language settings are set in PHP using setlocale.

    From reading the Smarty docs I think you need a Smarty plug-in to enable you to change local settings, and found this http://smarty.…etLocalePlugin, which may do the job. Beyond that I can't help as I'm only just getting to grips with Smarty myself .

    Hope this helps

    ---
    christag
  • Posted: 10.01.2004, 10:40
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    striky,

    if you are using the new pnRender version, you can modify this file:
    ..\includes\classes\Smarty\plugins\modifier.date_format.php

    As the first line of the function in this file, insert

    setlocale (LC_TIME, "en_EN");

    You have to replace en_EN with the code for Norway (I don't know the it).

    Thomas
  • Posted: 10.01.2004, 13:00
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    Quote

    striky,

    if you are using the new pnRender version, you can modify this file:
    ..\includes\classes\Smarty\plugins\modifier.date_format.php

    As the first line of the function in this file, insert

    setlocale (LC_TIME, "en_EN");

    You have to replace en_EN with the code for Norway (I don't know the it).

    Thomas


    I am sorry to say that this didn't work.
  • Posted: 10.01.2004, 13:21
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    What kind of server do you use? Under Windows, it could be difficult to find the correct code.

    Example for german:
    In my WinXP environment I have to use 'German_Germany'. When I upload the files on the server of my provider (Linux) I have to change it to 'de_DE'.

    Thomas
  • Posted: 10.01.2004, 15:55
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    It's working now. I tried no_NO and that worked (previously I only tried no_EU)

    :D

Template courtesy of Designs By Darren.