Closed Bug 863297 Opened 11 years ago Closed 11 years ago

[l10n] PIN related labels are not correctly localized

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:tef+, b2g18 fixed, b2g18-v1.0.1 fixed)

RESOLVED FIXED
1.0.1 Cert2 (21may)
blocking-b2g tef+
Tracking Status
b2g18 --- fixed
b2g18-v1.0.1 --- fixed

People

(Reporter: juanpbf, Assigned: fcampo)

Details

(Keywords: late-l10n, Whiteboard: [status: needs partner input] [required_last_cert_round] IOT)

Attachments

(4 files)

Attached image [1]NewPinMenu.png
Ikura, 
gaia commit:
cc0e498 Merge pull request #8186 from jaoo/836257
gecko commit:
2ab9876 Bug 854302 - [Buri][WIFI]Cann't disconnect WIFI when connect AP use WPS. r=mrbkap, a=tef+


Some labels related to the PIN security are not properly translated. When language is set to Spanish, there still are some labels shown in English:
1- In settings-->SIM security-->Change PIN. The last label is in English [1]
2- Try to wrongly change the PIN code by code: Open dialer and dial **04*OLD*NEW*NEW# (where OLD is an incorrectly entered old PIN1 and NEW is the new PIN1) [2]
3- Try to correctly change the PIN code by code: Open dialer and dial **04*OLD*NEW*NEW# (where OLD is the old PIN1 and NEW is the new PIN1) [3]

Nominating to tef? just to discuss if solving is not risky
Attached image [3]PIN_change.png
Summary: [l10n] PIN related labes not correctly localized → [l10n] PIN related labels not correctly localized
Stas - is the English string in NewPinMenu localized on your end?

We're not sure where the second string is coming from.
Assignee: nobody → stas
Summary: [l10n] PIN related labels not correctly localized → [l10n] PIN related labes not correctly localized
Evelyn/Etienne, do you know where this text is coming from?  I remember grepping through my gaia tree the other day and not seeing these strings.
Flags: needinfo?(etienne)
Looks like the #simpin-dialog from the system app (which recently got l10n changes).
Flags: needinfo?(etienne)
(In reply to Juan Perez-Bedmar [:juanpbf] from comment #0)
> 1- In settings-->SIM security-->Change PIN. The last label is in English [1]

I think this was fixed by bug 854031.

> 2- Try to wrongly change the PIN code by code: Open dialer and dial
> **04*OLD*NEW*NEW# (where OLD is an incorrectly entered old PIN1 and NEW is
> the new PIN1) [2]
> 
> 3- Try to correctly change the PIN code by code: Open dialer and dial
> **04*OLD*NEW*NEW# (where OLD is the old PIN1 and NEW is the new PIN1) [3]

Can you re-test with a newer 1.0.1 build, Juan?  Then we can see what needs to be fixed l10n-wise.  Thanks.
Flags: needinfo?(juan.perezbedmar)
(In reply to Andrew Overholt [:overholt] from comment #6)
> > 1- In settings-->SIM security-->Change PIN. The last label is in English [1]
> 
> I think this was fixed by bug 854031.
Yes indeed. I have checked it with a newer version and this is solved

> > 2- Try to wrongly change the PIN code by code: Open dialer and dial
> > **04*OLD*NEW*NEW# (where OLD is an incorrectly entered old PIN1 and NEW is
> > the new PIN1) [2]
> > 
> > 3- Try to correctly change the PIN code by code: Open dialer and dial
> > **04*OLD*NEW*NEW# (where OLD is the old PIN1 and NEW is the new PIN1) [3]
> 
> Can you re-test with a newer 1.0.1 build, Juan?  Then we can see what needs
> to be fixed l10n-wise.  Thanks.
I'm afraid this is still failing. Behaviour is exactly the same
Flags: needinfo?(juan.perezbedmar)
blocking-b2g: tef? → tef+
Target Milestone: --- → 1.0.1 Cert2 (28may)
Whiteboard: IOT
Staś, are you the best assignee here and do you have everything you need to work on this?
Flags: needinfo?(stas)
Regarding 1.0.1: It seems that that string isn't going through l10n hooks, despite being localized.

apps/settings/locales/settings.en-US.properties:confirmNewSimPinMsg=Confirm new PIN

while in settings/index.html, it is

          <div data-l10n-id="confirmNewSimPinMsg">
            Confirm New PIN
          </div>

Given that the string in the screen shot has the upper-case New, there's something in the code that doesn't pick up the localized strings.

Note, gaia-l10n 1.0.1 repo has for 'es':

confirmNewSimPinMsg=Confirmar el nuevo número PIN


PS: assigning bugs for needinfo is probably not the smartest thing to see if bugs are owned or not.
Assignee: stas → nobody
Flags: needinfo?(stas)
(In reply to Axel Hecht [:Pike] from comment #9)
> PS: assigning bugs for needinfo is probably not the smartest thing to see if
> bugs are owned or not.

I didn't want to just assign it since I honestly don't know if Staś is the best person here :)
Neither stas nor I are good owners for this bug, independent if it was a code or an l10n bug. We can help distinguishing the two, and dispatch to a localizer if needed, though.
Whiteboard: IOT → IOT [kaze will likely take this when he's not AFK (May 6)]
I'm gonna take it and give it a look, as per comment it's highly probable a regression from bug 860660
Assignee: nobody → fernando.campo
Fernando, with bug 860660 almost finished, do you still think this was a regression from that?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(fernando.campo)
Whiteboard: IOT [kaze will likely take this when he's not AFK (May 6)] → [status: may be fixed by bug 860660] IOT
(In reply to Andrew Overholt [:overholt] from comment #13)
> Fernando, with bug 860660 almost finished, do you still think this was a
> regression from that?

After my tests on v1.0.1 and different languages (where I was unable to get the same strings that Juan but similar, I need to get exactly the same build), I see that is not a regression from bug 860660 (I also tried with master, where it already landed), but a lack of treatment of the messages that server returns after sending mmi codes.

I'm working on a patch, but it will need late-l10n
Flags: needinfo?(fernando.campo)
Keywords: late-l10n
Whiteboard: [status: may be fixed by bug 860660] IOT → [status: needs patch] IOT
Sorry guys for the delay, apparently this one fell off my list during tha last days.

So, I've been testing and I've been getting different messages than the ones posted originally. Actually I was unable to find those strings shown on the screen captures, so I have no idea where are coming from. And as the messages were different depending on the SIM card used, I'm starting to think that they are coming directly from the service provider. Anybody have any other hint about this?

2- Try to wrongly change the PIN code by code: Open dialer and dial **04*OLD*NEW*NEW# (where OLD is an incorrectly entered old PIN1 and NEW is the new PIN1) [2]
Here I get:
- 'The PIN was incorrect' message when trying with master
- IncorrectPassword message when trying with v1.0.1

3- Try to correctly change the PIN code by code: Open dialer and dial **04*OLD*NEW*NEW# (where OLD is the old PIN1 and NEW is the new PIN1) [3]
I get 'Message successfully sent' in all branches

And when I try to change the PIN with **04*OLD*NEW1*NEW2# with NEW1 != NEW2, I get a 'NEW_PIN_MISMATCH' message in all branches too.

So basically my patch would be adding some more error codes to the error handling function (https://github.com/mozilla-b2g/gaia/blob/master/apps/communications/dialer/js/mmi_ui.js#L184).

PS - Do we have a list of the different errors/messages returned when using mmi codes?
Comment on attachment 749344 [details]
Link to PR https://github.com/mozilla-b2g/gaia/pull/9764

r=me the code looks good.

But we should ask the reporter to verify this bug.
Attachment #749344 - Flags: review?(etienne) → review+
(In reply to Etienne Segonzac (:etienne) from comment #17)
> 
> But we should ask the reporter to verify this bug.

Yeah, I agree with that, the patch was just to show the approach I was taking, as I can't actually fix the bug (I'm unable to get the same results as the reporter)
Flags: needinfo?(juan.perezbedmar)
Whiteboard: [status: needs patch] IOT → [status: needs partner input] IOT
Summary: [l10n] PIN related labes not correctly localized → [l10n] PIN related labels are not correctly localized
Certification people has told us that the current patch is enough to remove the blocking issue.
Fernando, please, merge
Flags: needinfo?(fernando.campo)
Merged https://github.com/mozilla-b2g/gaia/commit/d510063ad9ea78cfa47fb27c85246b1c0cf85c44

As problem described in:
1 - was solved by bug 854031
2 - was solved by bug 860660

3 was solved by this merged PR, I'm marking bug as resolved while waiting for an answer from reporter about the original labels that I'm still unable to get.
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(fernando.campo)
Resolution: --- → FIXED
Whiteboard: [status: needs partner input] IOT → [status: needs partner input] [required_last_cert_round] IOT
[v1-train a695cec] Merge pull request #9764 from fcampo/ussd-l10n
[v1.0.1 7dc2fd3] Merge pull request #9764 from fcampo/ussd-l10n
Flags: needinfo?(juan.perezbedmar)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: