Closed Bug 1048166 Opened 10 years ago Closed 6 years ago

[clock] Alarm set in one language "Time" and "Label" doesn't translate to a different language when language changed within Settings App.

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(tracking-b2g:backlog)

RESOLVED WONTFIX
tracking-b2g backlog

People

(Reporter: vishnubiaora, Unassigned)

Details

(Whiteboard: [LibGLA,TD83396,WW, B])

Attachments

(1 file)

Alarm set in one language "Time" and "Label" doesn't translate to a different language  when language changed within Settings App.
Repro Steps:
1) Tap Clock App
2) Tap Alarm icon
3) Set alarm without entering in label(using default label) and tap Done
4) Tap Homescreen button
5) Tap Settings App
6) Tap Language
7) Select a different language (i.e. japanese)
8) Tap Homescreen button
9) Tap Clock App
10)frequency: 100%

Actual:
Day of week and calendar date are translated to japanese. Alarm names and Time(AM/PM)are not translated.
Expected:Alarm name and Time(AM/PM) should be translated in Japanese.
Flags: needinfo?(m)
Whiteboard: [LibGLA,TD83396,WW, B]
in same issue if we select any days in "Repeat" also not localized after changing language in setting App.
Hi Wayne,
please help us to resolving this issue.
Flags: needinfo?(wchang)
This is minor, leaving for the functional team to take care.
blocking-b2g: --- → backlog
Flags: needinfo?(wchang)
my approach is when language change then window.addEventListener('localized', )
function is called and we localize Time,Repeat and label of respective alarm.
please review this.
Attachment #8472080 - Flags: review?(m)
Comment on attachment 8472080 [details]
Pointer to Pull Request

I think we'll need to take a different, likely more simple approach here: Rather than manually mutating the '.repeat' selector instances, we should just rerender the alarm list (as is done in addOrUpdateAlarm).
Attachment #8472080 - Flags: review?(m)
Flags: needinfo?(m)
blocking-b2g: backlog → ---
Firefox OS is not being worked on
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: