summaryrefslogtreecommitdiff
path: root/addons/google_docs/static/src/xml
diff options
context:
space:
mode:
authorVo Minh Thu <vmt@openerp.com>2012-10-12 16:46:34 +0200
committerVo Minh Thu <vmt@openerp.com>2012-10-12 16:46:34 +0200
commit7878f9c7b6e1dae5f536bb08b2415447468859e7 (patch)
treedccf041de34ae8e5b4db3741497480513e72478d /addons/google_docs/static/src/xml
parent496d2035124fe7904ea22a2aa8d2edce0f1186ec (diff)
parente77abb81fe3af1bad710a199b5aeb4b684754518 (diff)
[MERGE] babel: use babel for locale-aware read_group date formatting.
When grouping on a date or datetime field, read_group groups by (year, month), and formats that pair to have a displayable result (as a group title). This is currently done with strftime and the pattern `%B %Y` (complete word month, long year), which is problematic as — at best — it uses the server's locale for its formatting. This means if the server works in an english locale e.g. russian users are going to see the month name in english, instead of their own language. This proposal makes use of `babel.dates.format_date`, which is locale-aware (and to which a locale can be provided directly) and the locale present in the request context to format the month, year pair according to the user's language. bzr revid: vmt@openerp.com-20121012144634-spaqze7d4jc8l00l
Diffstat (limited to 'addons/google_docs/static/src/xml')
0 files changed, 0 insertions, 0 deletions