From: Josip <jo...@pi...> - 2009-10-28 15:20:54
|
Brian Matherly wrote: > > Excellent question. > > The DateDisplay class is used to build date strings that can be used in either reports or the UI. In the preferences you can change the date format. Depending on your language, there are various options. > > That format is used in the "date" columns of the user interface (birth, death in people view, for example). If you choose a date format that spells out the month, then these strings will be used. So, for example, in English, I can choose the format: "Month Day, Year" in the preferences. Then, Christmas would be displayed in the person view as "December 25, 2009". > > The DateDisplay class is also used to get date strings for sentences in reports. For example, in the Detailed Descendant Report, you would see a sentences like this: "Edwin was born on October 28, 2009". The "October 28, 2009" part of that sentence comes from the DateDisplay class (assuming that is the date format selected in the preferences). > > The strings in the new arrays previously came from GrampsLocale.long_months and GrampsLocale.short_months respectively. Those definitions are still in GrampsLocale if you would like to see what they are for your language. > > I hope that helps, > So basically it means they be used most as a part of dates and in my case they should be in genitive form. But i already use months enumerated in DateDisplay() both in genitive form or as roman numbers (see _Date_hr.py). Would that still works? -- Josip |