6926: display genitive/nominative months as needed

First proof of concept, fixing the original bug for Russian.
Added gramps/gen/datehandler/_datestrings.py, to hold
all the localized strings, with genitive/nominative
context as appropriate.

Remaining TODO:
1) other languages
2) expand the localized string into RE-style
concat via |, so that displayer uses the 1st instance,
and the parser uses the whole RE. Write the corresponding _().
3) same with short names as with long names
4) harmonize with _grampslocale code reading the names from
elsewhere for Julian/Gregorian months
5) expand to other calendars (non-Julian/non-Gregorian)
6) obsolete the public attributes in dd and replace with accessors

svn: r23173
This commit is contained in:
Vassilii Khachaturov
2013-09-20 12:33:00 +00:00
parent 45f9ea5e6d
commit 6eebd80dfc
13 changed files with 608 additions and 133 deletions

View File

@@ -9,6 +9,7 @@ gramps/cli/user.py
gramps/gen/config.py
gramps/gen/const.py
gramps/gen/datehandler/__init__.py
gramps/gen/datehandler/_datestrings.py
gramps/gen/db/base.py
gramps/gen/db/exceptions.py
gramps/gen/db/undoredo.py