Merge lp:~charlesk/indicator-datetime/lp-1001595 into lp:indicator-datetime/14.04
Status: | Merged |
---|---|
Approved by: | Sebastien Bacher |
Approved revision: | 334 |
Merged at revision: | 335 |
Proposed branch: | lp:~charlesk/indicator-datetime/lp-1001595 |
Merge into: | lp:indicator-datetime/14.04 |
Diff against target: |
225 lines (+125/-27) 4 files modified
src/formatter-desktop.cpp (+35/-14) src/menu.cpp (+5/-1) src/snap.cpp (+2/-0) src/utils.c (+83/-12) |
To merge this branch: | bzr merge lp:~charlesk/indicator-datetime/lp-1001595 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sebastien Bacher | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+213174@code.launchpad.net |
Commit message
Improved translator comments for better time/date localization.
Description of the change
When I started looking into bug #100595, I didn't have to research very many languages before realizing there isn't a one-size-fits-all solution that can be addressed in the source code.
For example, the code could check nl_langinfo(D_FMT) to see whether the month or day goes first, and that would solve the MM DD YYYY <--> DD MM YYYY complaints that are part of bug #100595.
However there are all kinds of other issues and combinations, for example en zh_CN the weekday should go after the date, rather than before, and the date format is YMD rather than DMY or MDY. And there are special cases for lots of locales. Some of this can be handled by looking at nl_langinfo(), but since we have explicit combinations of date fields in indicator-datetime, we can't handle them all without a lot of guesswork.
In the end, this is best fixed on a locale-by-locale basis by the translators who actually know how their specific locale should look. However, indicator-
PASSED: Continuous integration, rev:334 jenkins. qa.ubuntu. com/job/ indicator- datetime- ci/220/ jenkins. qa.ubuntu. com/job/ indicator- datetime- trusty- amd64-ci/ 100 jenkins. qa.ubuntu. com/job/ indicator- datetime- trusty- armhf-ci/ 100 jenkins. qa.ubuntu. com/job/ indicator- datetime- trusty- armhf-ci/ 100/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/indicator- datetime- ci/220/ rebuild
http://