#221 Date format option

closed
nobody
5
2012-07-18
2005-12-10
No

distinguish two flavours of localisation settings -
user interface language and date convention (30.1.2006,
30/1/2006, 30.1., 30/1)

it will allow use of the program even for people, who
don't need (have) their own language for user interface
(english is enough), but can't accept english
convention for dates (order of digits), and so on

Discussion

  • ~RowC~

    ~RowC~ - 2006-01-04

    Logged In: YES
    user_id=1215975

    Dates particularly are my issue, I'm used to the 4th of
    november to be represented as 4/11/05, whereas I can't seem
    to change it in ganttproject from the 11/4/05 --I find this
    quirk a bit confusing when glancing at the project.

     
  • Elio Voci

    Elio Voci - 2006-08-19

    Logged In: YES
    user_id=895255

    To have date (and numbers) format linked with the OS
    regional settings is an option

     
  • Janne Pasanen

    Janne Pasanen - 2006-09-01

    Logged In: YES
    user_id=384145

    Same problem. I'm in Finland and would like to have the user
    interface language in Swedish. The quick-and-dirty solution
    was to overwrite the i18n_fi.properties file with the
    i18n_sv.properties one. Now the dates in the short format
    are correct, but the long format with the names of months
    are wrong.

     
  • simonu

    simonu - 2006-09-22

    Logged In: YES
    user_id=1603874

    My Fellow Australians... (and others who want DD/MM/YYY)

    Based on a Comment from jzpasane, I found if you added:
    date=\ P\u00e4iv\u00e4ys\
    to file named
    i18n_en.properties
    located in
    C:\Program
    Files\GanttProject\plugins\net.sourceforge.ganttproject_2.0.0\data\resources\language
    (at least it is on mine). It changes the date format to
    (DD/MM/YYYY).

     
  • Rudi von Staden

    Rudi von Staden - 2008-03-19

    Logged In: YES
    user_id=1817383
    Originator: NO

    I tried this and it didn't work for me. As far as I can tell, the date= setting is just for the local translation of the word "Date" and not actually for assigning the local format.

    If I set my language to "es" (<language selection="es"/> in ~/.ganttproject settings file) the date format changes to DD/MM/YYYY. Can someone please let me know where the date format flag is set for each language (or is it hard-coded)? It does not seem to be in the /plugins/net.sourceforge.ganttproject_2.0.0/data/resources/language files at all.

     
  • Rudi von Staden

    Rudi von Staden - 2008-03-19

    Logged In: YES
    user_id=1817383
    Originator: NO

    I think this is actually a locale issue. Java has default date, time, currency, etc. formats defined for specific locales. You can set the locale that GanttProject follows by editing the .ganttproject file in your home directory (if you're using Linux). I'm not sure what the equivalent settings file is in Windows.

    Where it says <language selection="en">, change it to <language selection="en_GB"> and you will have dates in dd/mm/yy format. You can also change it to en_AU for Australia or en_ZA for South Africa for example, but then it seems to set the default date format to yy/mm/dd, which is also not ideal for me at least. If you decide to do it this way, I think you will probably need to create a i18n_en_AU.properties file in the .../plugins/net.sourceforge.ganttproject_2.0.0/data/resources/language directory (you can probably just copy the i18n_en.properties file, but I haven't tested this). If you don't do this (in my experience) it will revert to <language selection="en"> the next time you run GanttProject.

    To see a list of supported locales, you can look at:
    http://java.sun.com/javase/6/docs/technotes/guides/intl/locale.doc.html

    I would be interested to know if there's a way to override (or define?) the default date format for your locale.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks