Not signed in ( Sign In)

Categories

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorjoako9205
    • CommentTimeJan 26th 2008 edited
     permalink
    Hi:

    I've changed the days and the months in the lang-date-php file, but they remains in english.

    Exist any solution for this?

    Thaks!
  1.  permalink
    I had the same problem too, and I wanted to put the date in italian, but that wasn't possible! If I remember well, Nowhereman once told me that the problem is that the function date_format is only available in english... But I could be wrong!
    •  
      CommentAuthorNoWhereMan
    • CommentTimeJan 27th 2008
     permalink
    You can't unless you try SVN (but you'd have to update your langpack)

    really, date_format (a wrapper around php strfdate()) *could* output dates in foreign languages, but with non-utf8 charsets, producing wrong chars in utf8

    bye!
    •  
      CommentAuthorlaborix
    • CommentTimeJan 27th 2008 edited
     permalink
    On my blog with the german language pack, I do following to get the date and time in german:

    --- theme.conf.php, line 14 (insert these lines) ---
    /* set locale */
    setlocale (LC_TIME, 'de_DE');
    ---

    This work one or two months without any error on my blog. But be aware, read the warning at the bottom of the description (see this in the link from php.net):

    http://de.php.net/manual/en/function.setlocale.php

    Aside from that, I use it on my blog (Flatpress 0.703.6.2) and it seems to work :D
    •  
      CommentAuthorNoWhereMan
    • CommentTimeJan 27th 2008 edited
     permalink
    well it does work and sometimes it doesn't introduce char conversion errors;

    and in particular if the string you output does not contain any non-ascii char;

    so, for instance the Italian for Friday is Venerdì, but if you use the three-char long abbreviation you'll get Ven, so you won't get the stressed "I" "ì", and therefore it won't bug

    that's all :)

    bye