Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Bug 1207044 - Refactor L10n/Intl in Clock to prepare for NGA #31961

Merged

Conversation

zbraniecki
Copy link
Contributor

nSpinnerHours[two] = {{n}} hours
nSpinnerHours[few] = {{n}} hours
nSpinnerHours[many] = {{n}} hours
nSpinnerHours[other] = {{n}} hours
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

those were not used

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 7a5463b to 8d25446 Compare September 23, 2015 04:21
@mozilla-autolander-deprecated
Copy link
Contributor

@mozilla-autolander-deprecated
Copy link
Contributor

@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 09f7a44 to 6a6c422 Compare September 23, 2015 21:01
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 6a6c422 to f13abd9 Compare September 24, 2015 00:04
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from f13abd9 to 7aa4bee Compare September 24, 2015 00:46
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 7aa4bee to 8e16fc1 Compare September 24, 2015 01:15
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 8e16fc1 to 3836442 Compare September 24, 2015 02:39
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 3836442 to f295031 Compare September 24, 2015 02:39
@mozilla-autolander-deprecated
Copy link
Contributor

}

this.spinners[picker] = new Spinner({
element: this.nodes[picker],
values: values,
textValues: textValues.length ? textValues : values
isPadded: isPadded,
l10nId: setup.pickers[picker].l10nId
});
Copy link
Contributor Author

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

Copy link
Contributor

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 :)

Copy link
Contributor Author

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!

Copy link
Contributor

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!

Copy link
Contributor Author

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!

@zbraniecki
Copy link
Contributor Author

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
Copy link
Contributor

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)?

@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 6e16510 to ac0c7be Compare September 24, 2015 17:40
@mozilla-autolander-deprecated
Copy link
Contributor


# 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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 3f7eb20 to 47108c5 Compare September 25, 2015 01:31
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 47108c5 to 6a973db Compare September 25, 2015 04:40
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 6a973db to 332f08f Compare September 25, 2015 04:42
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 332f08f to c34efbd Compare September 25, 2015 05:25
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from c34efbd to cf04529 Compare September 25, 2015 05:47
@mozilla-autolander-deprecated
Copy link
Contributor

@@ -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;
Copy link
Contributor

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?

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from cf04529 to da3752f Compare September 25, 2015 17:00
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from da3752f to 1550b14 Compare September 25, 2015 17:35
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 1550b14 to bf7020f Compare September 25, 2015 17:38
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from bf7020f to 4a463df Compare September 25, 2015 18:07
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 4a463df to 702a3ec Compare September 28, 2015 07:08
@mozilla-autolander-deprecated
Copy link
Contributor

@zbraniecki zbraniecki force-pushed the 1207044-refactor-clock-l10n-and-intl branch from 702a3ec to 9cfe94b Compare September 28, 2015 23:17
@mozilla-autolander-deprecated
Copy link
Contributor

zbraniecki added a commit that referenced this pull request Sep 28, 2015
…-and-intl

Bug 1207044 - Refactor L10n/Intl in Clock to prepare for NGA. r=mcav
@zbraniecki zbraniecki merged commit a0d0a11 into mozilla-b2g:master Sep 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants