diff options
| author | Vo Minh Thu <vmt@openerp.com> | 2012-10-12 16:46:34 +0200 |
|---|---|---|
| committer | Vo Minh Thu <vmt@openerp.com> | 2012-10-12 16:46:34 +0200 |
| commit | 7878f9c7b6e1dae5f536bb08b2415447468859e7 (patch) | |
| tree | dccf041de34ae8e5b4db3741497480513e72478d /addons/base_import/static/lib/javascript-state-machine/Rakefile | |
| parent | 496d2035124fe7904ea22a2aa8d2edce0f1186ec (diff) | |
| parent | e77abb81fe3af1bad710a199b5aeb4b684754518 (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/base_import/static/lib/javascript-state-machine/Rakefile')
0 files changed, 0 insertions, 0 deletions
