Locale date setting

Discussion in 'HOWTO-Related Questions' started by jang, Oct 5, 2006.

  1. jang

    jang New Member

    I've followed the perfect Ubuntu Dapper Drake server setup, with initially English localization.

    Now I want to add support for Dutch dates in a Joomla site, but I can't work it out. It must be related to the server support; simply changing settings in Joomla for Country Locale to nl_NL or nld_NLD doesn't give anything but english dates.

    When I do locale -a on the server I only get:
    C
    en_US.utf8
    POSIX

    How do I change it and add the possibility for dutch and english dates in my websites?

    Thx

    Jang
     
  2. falko

    falko Super Moderator ISPConfig Developer

    You can run
    Code:
    dpkg-reconfigure locales
    and add Dutch there.
     
  3. jang

    jang New Member

    I have already tried that before, but I don't know how to add things:

    dpkg-reconfigure locales

    gives

    Generating locales...
    en_US.UTF-8... up-to-date
    Generation complete.
    Current default timezone: 'Europe/Amsterdam'.
    Local time is now: Fri Oct 6 14:47:02 CEST 2006.
    Universal Time is now: Fri Oct 6 12:47:02 UTC 2006.
    Run 'tzconfig' if you wish to change it.

    But I don't want to change the time-zone :(
     
  4. jang

    jang New Member

    I've finally figured it out:

    it seems that for dapper drake 6.06 you need to add the locale settings manually (nl_NL.UTF-8) to:

    Code:
    */locales/supported.d/local
    For all supported locales see:
    Code:
    vi  /usr/share/i18n/SUPPORTED
    Then
    Code:
    dpkg-reconfigure locales
    and restart apache:
    Code:
    /etc/init.d/apache2 restart
    Set the Joomla Country Locale to:nl_NL.UTF-8

    Working like a charm! :))

    Jang
     

Share This Page