Closed Bug 995940 Opened 10 years ago Closed 10 years ago

[tarako][L10N] No 'data-l10n-id' for ./elements/sim_manager.html: <h2>SIM settings</h2>

Categories

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

Other
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:1.3T+, b2g-v1.3T fixed, b2g-v1.4 fixed)

RESOLVED FIXED
blocking-b2g 1.3T+
Tracking Status
b2g-v1.3T --- fixed
b2g-v1.4 --- fixed

People

(Reporter: angelc04, Assigned: eragonj)

Details

(Whiteboard: [sprd295789][partner-blocker][1.4-approval-needed])

Attachments

(3 files, 2 obsolete files)

Attached image screenshot
Steps to reproduce
------------------------------------------------------------------------
1. Set Launguage to Bengali
2. Go to Settings -> SIM Setting
   --> You will see "SIM settings" section title was not translated. Please see attached screenshot.

This is bcz there is no  'data-l10n-id' for ./elements/sim_manager.html: <h2>SIM settings</h2>


Test build
-----------------------------------------------------------------------
Gaia b2802627a974795ccba989cede0540f20fadc633 
Gecko https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/c8491a42d4e8 
BuildID 20140413164001 │
Version 28.1 ro.build.version.incremental=eng.cltbld.20140413.210357
blocking-b2g: --- → 1.3T?
triage: let's not block on this but we should uplift when we have a solution

ni? Arthur
ni? l10n for late l10n
Flags: needinfo?(l10n)
Flags: needinfo?(arthur.chen)
I'm checking master but I can't find a "SIM Settings" section in Settings. Is this supposed to be displayed only under some conditions?
FWIW, on branches, we should just re-use the "Settings" string instead of exposing "SIM Settings".

For master, I wonder if that string is the best UX given how often SIM shows up on that screen already.
Flags: needinfo?(l10n)
I think it's kinda late to add a new string in v1.3t and not necessary. 

How about use `settings` l10n-id in 1.3t while adding another new string called `simSettings` >= 1.4 ? (in 1.4, 2.0)

Any idea !?
Flags: needinfo?(arthur.chen)
Sounds good for > 1.4, it's too late for 1.4 as well.
triage: not  blocking release with this. to backlog
blocking-b2g: 1.3T? → backlog
Whiteboard: [sprd295789]
I add the following "string=value" pair in apps/settings/settings.properties for the four languages:
bn-BD
simSettings=SIM সেটিংস

hi-IN
simSettings=SIM सेटिंग्स

ta
simSettings=SIM அமைவுகள்

en-US
simSettings=SIM settings

Meanwhile,we need add 'data-l10n-id="simSettings"' in gaia/apps/settings/elements/sim_manager.html as following:
 <h2 data-l10n-id="simSettings">SIM settings</h2>

James,please help to check it and find a person to uplift it.Thank you!
Flags: needinfo?(james.zhang)
blocking-b2g: backlog → 1.3T?
Flags: needinfo?(jcheng)
(In reply to yang.zhao from comment #7)
> I add the following "string=value" pair in apps/settings/settings.properties
> for the four languages:
> bn-BD
> simSettings=SIM সেটিংস
> 
> hi-IN
> simSettings=SIM सेटिंग्स
> 
> ta
> simSettings=SIM அமைவுகள்
> 
> en-US
> simSettings=SIM settings
> 
> Meanwhile,we need add 'data-l10n-id="simSettings"' in
> gaia/apps/settings/elements/sim_manager.html as following:
>  <h2 data-l10n-id="simSettings">SIM settings</h2>
> 
> James,please help to check it and find a person to uplift it.Thank you!

Please attach your patch first.
Flags: needinfo?(james.zhang)
Attached patch simSettings.patch (obsolete) — Splinter Review
Attachment #8414156 - Flags: review?(ehung)
Only add bn-BD/en-US/ta/hi-IN languages on our branch.---->The patch didn't include these.Please see comment#7

Then need mozilla add this data-l10n-id in gaia.
Flags: needinfo?(james.zhang)
Flags: needinfo?(ttsai)
Flags: needinfo?(styang)
Flags: needinfo?(james.zhang)
Whiteboard: [sprd295789] → [sprd295789][partner-blocker]
Comment on attachment 8414156 [details] [diff] [review]
simSettings.patch

Hi, thanks for the patch. You also need to add 'simSettings' to settings.en-US.properties.
Attachment #8414156 - Flags: review?(ehung)
(In reply to yang.zhao from comment #10)
> Only add bn-BD/en-US/ta/hi-IN languages on our branch.---->The patch didn't
> include these.Please see comment#7
> 
> Then need mozilla add this data-l10n-id in gaia.

Please add to settings.en-US.properties to make sure they are consistent.
Yang, please update your patch.
Flags: needinfo?(yang.zhao)
(In reply to Evelyn Hung [:evelyn] from comment #11)
> Comment on attachment 8414156 [details] [diff] [review]
> simSettings.patch
> 
> Hi, thanks for the patch. You also need to add 'simSettings' to
> settings.en-US.properties.

Please see comment#7 ,I already added to en-US.
Flags: needinfo?(yang.zhao)
(In reply to James Zhang from comment #13)
> Yang, please update your patch.

I add four languages:bn-BD /hi-IN /ta /en-US
Already including en-US.
(In reply to yang.zhao from comment #15)
> (In reply to James Zhang from comment #13)
> > Yang, please update your patch.
> 
> I add four languages:bn-BD /hi-IN /ta /en-US
> Already including en-US.

No, please add one to en-US file in code base, not in your local.
(In reply to yang.zhao from comment #15)
> (In reply to James Zhang from comment #13)
> > Yang, please update your patch.
> 
> I add four languages:bn-BD /hi-IN /ta /en-US
> Already including en-US.

git add .
git diff <your last commit> to generate patch.
Attached patch en-US.patch (obsolete) — Splinter Review
(In reply to Evelyn Hung [:evelyn] from comment #16)
> (In reply to yang.zhao from comment #15)
> > (In reply to James Zhang from comment #13)
> > > Yang, please update your patch.
> > 
> > I add four languages:bn-BD /hi-IN /ta /en-US
> > Already including en-US.
> 
> No, please add one to en-US file in code base, not in your local.

Ok,please see the attachment en-US.patch
Flags: needinfo?(styang)
triage: 1.3T+ partner blocker
blocking-b2g: 1.3T? → 1.3T+
Flags: needinfo?(jcheng)
Attached patch bug-995940-patchSplinter Review
This patch is squashed from attachment 8414156 [details] [diff] [review] and 8414326, please merge this one.
Attachment #8414156 - Attachment is obsolete: true
Attachment #8414326 - Attachment is obsolete: true
Attachment #8414378 - Flags: review+
Hi Yang, I think you can merge this patch to 1.3t by yourself so your name can be kept in commit history.
Flags: needinfo?(yang.zhao)
Hi Yang: please check-in bug-995940-patch to 1.3t.
Flags: needinfo?(ttsai) → needinfo?(james.zhang)
(In reply to thomas tsai from comment #23)
> Hi Yang: please check-in bug-995940-patch to 1.3t.

Hi Yang,
I just help you commit the patch to gaia master with your name
https://github.com/mozilla-b2g/gaia/commit/2ca4964e6d6eacae35c439e84f69e7e48f456f07

Please uplift this commit to 1.3t. Thanks!
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
(In reply to Evelyn Hung [:evelyn] from comment #24)
> (In reply to thomas tsai from comment #23)
> > Hi Yang: please check-in bug-995940-patch to 1.3t.
> 
> Hi Yang,
> I just help you commit the patch to gaia master with your name
> https://github.com/mozilla-b2g/gaia/commit/
> 2ca4964e6d6eacae35c439e84f69e7e48f456f07
> 
> Please uplift this commit to 1.3t. Thanks!

Already merge it before this comment.
commit:77ba36a191dfc950bc097fcc0f92fb749ac07c2a
Flags: needinfo?(yang.zhao)
Flags: needinfo?(james.zhang)
Delphine - Wouldn't we also need this patch on 1.4? There is phones shipping in 1.4 with DSDS support to my understanding.
Flags: needinfo?(lebedel.delphine)
Yes, we should get this into 1.4 if it's not too late
Flags: needinfo?(lebedel.delphine)
Evelyn - Can you ask for 1.4 approval?
Flags: needinfo?(ehung)
Whiteboard: [sprd295789][partner-blocker] → [sprd295789][partner-blocker][1.4-approval-needed]
Comment on attachment 8414378 [details] [diff] [review]
bug-995940-patch

NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #): a lost string id
[User impact] if declined: a string won't be localized 
[Testing completed]: yes
[Risk to taking this patch] (and alternatives if risky): No
[String changes made]: add a l10n-id 'simSettings'
Attachment #8414378 - Flags: approval-gaia-v1.4?(21)
Flags: needinfo?(ehung)
(In reply to Delphine Lebédel [:delphine - use needinfo] from comment #27)
> Yes, we should get this into 1.4 if it's not too late

Just to double check: you're aware that this patch breaks string freeze on 1.4, right?
Flags: needinfo?(lebedel.delphine)
Comment on attachment 8414378 [details] [diff] [review]
bug-995940-patch

The patch looks good but let's forward approvals to fabrice :)
Attachment #8414378 - Flags: approval-gaia-v1.4?(21) → approval-gaia-v1.4?(fabrice)
I strongly suggest to not take this for 1.4
(In reply to Axel Hecht [:Pike] from comment #32)
> I strongly suggest to not take this for 1.4

I disagree on this. DSDS is a requirement for Dolphin & this a front-facing feature in the settings app for DSDS. This has to be translated. Otherwise, we will likely not survive certification.
See comment 4, we can just work around this string.
(In reply to Axel Hecht [:Pike] from comment #34)
> See comment 4, we can just work around this string.

Ok - should we open a new bug then to get that implemented for 1.4?
In other areas of mozilla, it's totally fine to do per-branch patches in one bug. Not really my call.
Yes, dolphin project is on going.
Comment on attachment 8414378 [details] [diff] [review]
bug-995940-patch

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

I'm not doing 1.4 approvals.
Attachment #8414378 - Flags: approval-gaia-v1.4?(fabrice) → approval-gaia-v1.4?(release-mgmt)
Attachment #8414378 - Flags: approval-gaia-v1.4?(release-mgmt)
Please provide a different patch that reuses an existing string named settings. l10n seems to be nervous taking this in 1.4
Flags: needinfo?(ehung)
(In reply to Francesco Lodolo [:flod] from comment #30)
> (In reply to Delphine Lebédel [:delphine - use needinfo] from comment #27)
> > Yes, we should get this into 1.4 if it's not too late
> 
> Just to double check: you're aware that this patch breaks string freeze on
> 1.4, right?

Sorry, I read this bug a bit too quickly and misread Jason's comment :/ 
I agree with Flod and Pike. Let's do per comment 4
Flags: needinfo?(lebedel.delphine)
EJ, can you help this case? Thanks!
Flags: needinfo?(ehung) → needinfo?(ejchen)
Sure !
Assignee: nobody → ejchen
Flags: needinfo?(ejchen)
Attached file patch on v1.4
NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.

[Approval Request Comment]
[Bug caused by] (feature/regressing bug #):
[User impact] if declined: users would see unlocalized string on screen
[Testing completed]: no, just add an data-id on the element.
[Risk to taking this patch] (and alternatives if risky): low
[String changes made]: no
Attachment #8426767 - Flags: review?(arthur.chen)
Attachment #8426767 - Flags: approval-gaia-v1.4?
Comment on attachment 8426767 [details] [review]
patch on v1.4

Please make the default text consistent to the string specified in the localization file, thanks.
Attachment #8426767 - Flags: review?(arthur.chen)
Comment on attachment 8426767 [details] [review]
patch on v1.4

Arthur, I just fixed the nits. 

Thanks :)
Attachment #8426767 - Flags: review?(arthur.chen)
Comment on attachment 8426767 [details] [review]
patch on v1.4

r=me, thanks.
Attachment #8426767 - Flags: review?(arthur.chen) → review+
Cool, thanks Arthur. 

Let's wait for 1.4 approval ! :D
Comment on attachment 8426767 [details] [review]
patch on v1.4

Taking for 1.4
Attachment #8426767 - Flags: approval-gaia-v1.4? → approval-gaia-v1.4+
Thanks all,

merged the v1.4 patch into Gaia/v1.4 : 60e32bc9334eb21f1ae9b6fef187aab131b837cf
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: