-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Bug 1207044 - Refactor L10n/Intl in Clock to prepare for NGA #31961
Bug 1207044 - Refactor L10n/Intl in Clock to prepare for NGA #31961
Conversation
nSpinnerHours[two] = {{n}} hours | ||
nSpinnerHours[few] = {{n}} hours | ||
nSpinnerHours[many] = {{n}} hours | ||
nSpinnerHours[other] = {{n}} hours |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
those were not used
7a5463b
to
8d25446
Compare
09f7a44
to
6a6c422
Compare
6a6c422
to
f13abd9
Compare
f13abd9
to
7aa4bee
Compare
7aa4bee
to
8e16fc1
Compare
8e16fc1
to
3836442
Compare
3836442
to
f295031
Compare
} | ||
|
||
this.spinners[picker] = new Spinner({ | ||
element: this.nodes[picker], | ||
values: values, | ||
textValues: textValues.length ? textValues : values | ||
isPadded: isPadded, | ||
l10nId: setup.pickers[picker].l10nId | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm considering making the picker reverse the order of spinners for RTL. I'll wait for @anefzaoui opinion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this point we're in a good shape to follow the spec as we finally have a near-final, polished one.
[in RTL] Continuous/Spinner Icon and animation (should point and move counter clockwise)
From Page 4
https://bug1179459.bmoattachments.org/attachment.cgi?id=8663887
So indeed we should mirror those :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet. Added. I was able to accomplish that exclusively in CSS!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After IRC chat with Zibi, it turns out I was mistaking the clock time spinner with the round arrow icon that happens to be also called spinner.
For the clock time spinner/picker, it should NOT be RTL'ed.
if there's a suffix it should look like "p hh:mm" and if there isn't it should be "hh:mm"
Sorry for the confusion!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet! Reverted! I'm expert in time pickers now! AMA!
I see one more bug - sometimes after switching locales back and forth I move time picker to 0:0 and the "create" button is not getting disabled. Will fix it tomorrow |
|
||
alarmMinutes={[ plural(minutes) ]} | ||
alarmMinutes[zero] = less than a minute | ||
alarmMinutes[one] = one minute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OCD moment: fix weird indentation in zero/one cases (also for nSpinnerMinutes.ariaValuetext)?
6e16510
to
ac0c7be
Compare
|
||
# Character used in timePicker to separate hours from minutes | ||
hourMinutesSeparator=: | ||
|
||
# Separator used for list formatting. \u0020 represents a blank space | ||
# Note that the trailing space is meaningful - "X, Y" vs. "X,Y" | ||
listSeparator_middle =,\u0020 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this belong in date.properties
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be in moz_intl.properties, but I wanted to avoid having to add moz_intl.properties and then ask developers to include both, or migrate eveyrthing from date.properties to moz_intl.properties and cause more work for localizers :( (also, migrating would require patching many apps).
So I just sticked to using date.properties for mozIntl.
3f7eb20
to
47108c5
Compare
47108c5
to
6a973db
Compare
6a973db
to
332f08f
Compare
332f08f
to
c34efbd
Compare
c34efbd
to
cf04529
Compare
@@ -140,7 +173,10 @@ | |||
}, | |||
|
|||
handleEvent: function(evt) { | |||
const affectedObjects = resetObjects(evt.type); | |||
// This is a temporary hack to help handling l10n.js' event | |||
var type = evt.type === 'localized' ? 'DOMLocalized' : evt.type; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Also const
? And remove blank lines?
cf04529
to
da3752f
Compare
da3752f
to
1550b14
Compare
1550b14
to
bf7020f
Compare
bf7020f
to
4a463df
Compare
4a463df
to
702a3ec
Compare
702a3ec
to
9cfe94b
Compare
…-and-intl Bug 1207044 - Refactor L10n/Intl in Clock to prepare for NGA. r=mcav
https://bugzilla.mozilla.org/show_bug.cgi?id=1207044