Use Intl.DateTimeFormat in cZ's strftime function
Categories
(SeaMonkey :: Chat, enhancement)
Tracking
(seamonkey2.53? affected)
People
(Reporter: iannbugzilla, Assigned: iannbugzilla)
Details
(Whiteboard: SM2.53.20)
Attachments
(2 files)
10.44 KB,
patch
|
frg
:
review+
frg
:
approval-comm-release+
|
Details | Diff | Splinter Review |
3.37 KB,
patch
|
iannbugzilla
:
review+
iannbugzilla
:
approval-comm-release+
|
Details | Diff | Splinter Review |
At the moment chatZilla has it's only localisations for weekdays, months and AM/PM. This can be avoided by making use of Intl.DateTimeFormat
At the same time:
- use JS String padStart method for padNumber function
- use the definitions from metacpan https://github.com/houseabsolute/DateTime-Locale for %c, %x and %X for the locales
[Approval Request Comment]
Regression caused by (bug #): n/a
User impact if declined: potential inconsistency of localisation between cZ and other parts of SM
Testing completed (on m-c, etc.): 2.53.20pre
Risk to taking this patch (and alternatives if risky): low
String changes made by this patch: 12 strings removed, 3 strings added
Comment 2•2 months ago
|
||
I think if you use the user locale it will not honor the users prefs / OS regional settings. Maybe use undefined but not really important here. Maybe we should drop the whole pref and format dates like its done in the mail part.
Comment 3•2 months ago
|
||
Comment on attachment 9433548 [details] [diff] [review]
1927348-irc-strftime-25320.patch
lgtm r/a+
See addendum patch for further testing. Not important. Just lets get 2.53.20b1 out of the door.
Updated•2 months ago
|
Comment on attachment 9440925 [details] [diff] [review]
1927348-irc-strftime-addendum-25321.patch
[Triage Comment]
I'd already consider this but was waiting on review comments... r/a=me
Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/bcde333a18eb
Use Intl.DateTimeFormat in cZ's strftime function. r=frg
Description
•