Closed Bug 916293 Opened 11 years ago Closed 11 years ago

[Clock]: Changes to nRemainHours need ID change to get picked up by l10n

Categories

(Firefox OS Graveyard :: Gaia::Clock, defect)

defect
Not set
normal

Tracking

(blocking-b2g:koi+, b2g-v1.2 fixed)

RESOLVED FIXED
blocking-b2g koi+
Tracking Status
b2g-v1.2 --- fixed

People

(Reporter: Pike, Assigned: gnarf)

Details

Attachments

(1 file, 1 obsolete file)

https://github.com/mozilla-b2g/gaia/commit/718c7638b05697b2d7f761f7462a62aa6ff7dc97 doesn't mention bug nor review, so it's hard to track down.

It did change the context in which nRemainHours is used, though, and this won't be picked up by l10n for 1.2.
Assignee: nobody → gnarf37
Attached patch patch v1 (obsolete) — Splinter Review
Attachment #809355 - Flags: review?(mike)
Comment on attachment 809355 [details] [diff] [review]
patch v1

Axel - Could you please take a look at this and let me know if I interpreted the meaning of this bug correctly?  Thanks!
Attachment #809355 - Flags: review?(l10n)
This seems to be a request from the l10n team for 1.2 - marking koi?
blocking-b2g: --- → koi?
Comment on attachment 809355 [details] [diff] [review]
patch v1

Review of attachment 809355 [details] [diff] [review]:
-----------------------------------------------------------------

Yep, this is the intention.
Attachment #809355 - Flags: review?(l10n) → feedback+
blocking since this is being requested by l10n
blocking-b2g: koi? → koi+
Comment on attachment 809355 [details] [diff] [review]
patch v1

Review of attachment 809355 [details] [diff] [review]:
-----------------------------------------------------------------

This looks good to me. I have some questions about process for the localization team, but (since they've already given this "feedback+") it shouldn't block this patch. I'll flag them for "needsinfo" in just a moment.
Attachment #809355 - Flags: review?(mike) → review+
Does this bug require the "late-l10n" flag? Also, would you mind verifying/assigning bug 921093, which I have created to track the "staleness" of the test localization files hosted in the Gaia repository? Thanks!
Flags: needinfo?(community)
This is a question for release management at which point they want to track and nail down late-l10n bugs.

PS: community@localization.bugs is an alias, and there's no real ownership on requests on that alias.
Flags: needinfo?(community)
Attached patch patch v2Splinter Review
Same as the last patch only I added units to cover all of the render cases.
Attachment #809355 - Attachment is obsolete: true
Attachment #811108 - Flags: review?(mike)
Comment on attachment 811108 [details] [diff] [review]
patch v2

Review of attachment 811108 [details] [diff] [review]:
-----------------------------------------------------------------

::: apps/clock/test/unit/banner_test.js
@@ +21,5 @@
> +
> +    // +10 hours +12 minutes + 20 seconds
> +    this.hours = this.minutes + (10 * 60 * 60 * 1000);
> +
> +    // +2 day +10 hours + 12 minutes + 20 seconds

In my local copy I've fixed all of the +x ____ to be + right before the number (no space)

@@ +41,5 @@
>    suite('#show', function() {
>      test('should make notification visible ', function(done) {
>        var visible;
>  
>        this.banner.show(this.fourish);

In my local copy I've also updated this.fourish to be this.hours
Comment on attachment 811108 [details] [diff] [review]
patch v2

Review of attachment 811108 [details] [diff] [review]:
-----------------------------------------------------------------

Thanks for adding these unit tests, Corey!

This should be good to land, provided you make the changes you described (plus the one I've requested).

::: apps/clock/test/unit/banner_test.js
@@ +54,5 @@
>    suite('#render', function() {
> +    setup(function() {
> +      this._ = this.sinon.spy(navigator.mozL10n, 'get');
> +    });
> +    test('minutes ahead', function(done) {

Since these tests are synchronous, we don't have to use the `done` callback. (I don't know why it was used in the previous test.)
Attachment #811108 - Flags: review?(mike) → review+
Thanks for catching the `done` -- copy pasta gets me every time!
master: https://github.com/mozilla-b2g/gaia/commit/7c372b9919ae0de5843e2f842c0c99b7d628126d
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Uplifted 7c372b9919ae0de5843e2f842c0c99b7d628126d to:
v1.2: ad8b627e15819acf5526d6e213615ba3cffbb211
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: