Closed Bug 933272 Opened 11 years ago Closed 11 years ago

Click to play "Tap here to activate plugin." is not localized on multi-locale build

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(firefox26+ verified, firefox27+ verified, firefox28+ verified, b2g-v1.2 fixed, fennec+)

VERIFIED FIXED
Firefox 28
Tracking Status
firefox26 + verified
firefox27 + verified
firefox28 + verified
b2g-v1.2 --- fixed
fennec + ---

People

(Reporter: flod, Assigned: rnewman)

References

Details

Attachments

(2 files)

I'm running a multi-locale build (Firefox 25.0) on a phone set to Italian and this text is displayed in English.
tracking-fennec: --- → ?
Summary: Click to play "Tap here to activate plugin. " is not localized on multi-locale build → Click to play "Tap here to activate plugin." is not localized on multi-locale build
Assignee: nobody → rnewman
tracking-fennec: ? → 25+
flod: this is all new to me, but I would guess from your Comment 1 that this is a one-line fix: add that DTD to jar.mn?

Is there anything more to it?

How can I verify a fix?
Flags: needinfo?(francesco.lodolo)
With bug 792077 we started shipping as few strings as possible, with time we discovered some missing pieces (e.g. bug 890726), fixed with landings like this one
https://hg.mozilla.org/mozilla-central/rev/c1443b4d7e51

For sure this string is in mozapps/plugins/plugins.dtd, not sure if we're using strings from plugins.properties as well for Click to Play, and we're already importing a plugins.properties from dom

CCing Mark Finkle who reviewed a patch for this file in the past and for sure knows more than me about this.
Flags: needinfo?(francesco.lodolo)
This is entirely cargo-culted. But it does build (and I verified that screwing up the paths causes the build to fail).

Flod: how do I verify this fix?
Attachment #825605 - Flags: review?(mark.finkle)
Attachment #825605 - Flags: feedback?(francesco.lodolo)
Comment on attachment 825605 [details] [diff] [review]
Cargo-culted patch. v1

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

(In reply to Richard Newman [:rnewman] from comment #4)
> Flod: how do I verify this fix?

1) Install the multi-locale build you've created
2) Set the phone to a foreign language you can understand (French, Spanish, etc)
3) Open a website with flash and check if the string for click to play is localized or not.

For example, if I open http://www.adobe.com/software/flash/about on my Nexus 7 I get "A plugin is needed to display this content." (another string in plugins.dtd), on Galaxy S II "Tap here to activate plugin." (I guess one has Flash installed, the other doesn't).

For what I can understand this file the patch looks good.
Attachment #825605 - Flags: feedback?(francesco.lodolo) → feedback+
(In reply to Francesco Lodolo [:flod] from comment #5)

> 1) Install the multi-locale build you've created

And to confirm, 'cos I know nothing at all about this -- are these instructions to make a multi-locale build accurate?

https://wiki.mozilla.org/Mobile/Fennec/Android#Multilocale_builds


> For what I can understand this file the patch looks good.

Thanks for the feedback!
Status: NEW → ASSIGNED
Comment on attachment 825605 [details] [diff] [review]
Cargo-culted patch. v1

This seems correct to me.
Attachment #825605 - Flags: review?(mark.finkle) → review+
Comment on attachment 825605 [details] [diff] [review]
Cargo-culted patch. v1

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

Yep, this should work.
Attachment #825605 - Flags: feedback+
Depends on: 933290
Waiting to land this until I can verify it, which requires some build fixes (Bug 933290).
tracking-fennec: 25+ → +
Flags: needinfo?(rnewman)
Verified patch: once the locale was actually specified (matchOS defaults to false in my locale build, for some reason, and thus despite the OS being in es-ES, Gecko was in en-US!), I correctly see "Se necesita un plugin para mostrar este contenido" (the missingPlugin case).

https://hg.mozilla.org/integration/fx-team/rev/4dc1ce530241

We should probably uplift this…
Flags: needinfo?(rnewman)
Target Milestone: --- → Firefox 28
(In reply to Richard Newman [:rnewman] from comment #10)
> We should probably uplift this…

As far as possible :-)
Yes please, nominate with risk assessment asap to get into the second-to-last 26 beta
Comment on attachment 825605 [details] [diff] [review]
Cargo-culted patch. v1

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 
  Long-standing omission.

User impact if declined: 
  Plugin-related Gecko content strings will always be presented in English.

Testing completed (on m-c, etc.): 
  Manual testing only.

Risk to taking this patch (and alternatives if risky): 
  Slim to none; adds existing DTD and property files to the manifest, so they're included on Android much as they would be on desktop.
String or IDL/UUID changes made by this patch:
Attachment #825605 - Flags: approval-mozilla-beta?
Attachment #825605 - Flags: approval-mozilla-aurora?
Attachment #825605 - Flags: approval-mozilla-beta?
Attachment #825605 - Flags: approval-mozilla-beta+
Attachment #825605 - Flags: approval-mozilla-aurora?
Attachment #825605 - Flags: approval-mozilla-aurora+
Tested with Galaxy Nexus (4.3) and Galaxy Tab 2 (4.0) using:
Firefox 26 Beta 8 
Firefox 27.0a2
Firefox 28.0a1

The string for tap to play and other text related  to plugins ("You need Adobe Flash Player to .. ") are localized. I will set this to verify fixed.
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: