Closed Bug 260803 Opened 20 years ago Closed 20 years ago

Allow localization of 'Click here to get the plugin' string in content generated for missing plugin

Categories

(Core Graveyard :: Plug-ins, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: p.franc, Assigned: doronr)

References

Details

(Keywords: fixed-aviary1.0, late-l10n)

Attachments

(1 file, 2 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; rv:1.7.3) Gecko/20040913 Firefox/0.10 npnul plugin contains several english string that are in corresponding resource files: http://lxr.mozilla.org/aviarybranch/source/modules/plugin/samples/default/windows/npnul32.rc http://lxr.mozilla.org/aviarybranch/source/modules/plugin/samples/default/os2/npnulos2.rc http://lxr.mozilla.org/aviarybranch/source/modules/plugin/samples/default/unix/nullplugin.h To allow full localization of FF move them to locale dependant file and setup the build procces to build npnul.* locale dependant Reproducible: Always Steps to Reproduce: 1. Use the l10n version of FF 2. Go to a page that requires missing plugin. 3. "Click here to get the plugin" message appears
Blocks: 259167
This is probably WONTFIX for 1.0, and perhaps forever. The new plugin finder service hides the null plugin by default, I think.
Assignee: bryner → nobody
Component: Build Config → Plug-ins
Product: Firefox → Browser
QA Contact: asa → core.plugins
Version: unspecified → Trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
Yeah, but there's one localizable string in it too, the text "Click here to download plugin" is static in the code. Do we care for 1.0? IMO no...
The "Click here to get the plugin." localization problem can be also fixed by fixing bug 83754 and moving this string into .dtd file.
Summary: Build npnul plugin locale dependant → Allow localization of 'Click here to get the plugin' string in PFS / npnul plugin
Firefox doesn't use the default plugin any more, so bug 83754 doesn't apply to Firefox any more.
> Firefox doesn't use the default plugin any more, so bug 83754 doesn't apply to > Firefox any more. Ok. Please, clarify the summary and dependences to clearly identify this bug with the request to be able to translate the somewhere hard-coded english sentence that is displayed at the place of missing plugin. Thanks.
Summary: Allow localization of 'Click here to get the plugin' string in PFS / npnul plugin → Allow localization of 'Click here to get the plugin' string in content generated for missing plugin
Attached patch make the string localizable. (obsolete) — Splinter Review
Attached patch better patch (obsolete) — Splinter Review
Attachment #160662 - Attachment is obsolete: true
Attachment #160664 - Flags: review?(bsmedberg)
Attachment #160664 - Flags: approval-aviary?
Attached patch even betterSplinter Review
Attachment #160664 - Attachment is obsolete: true
Attachment #160665 - Flags: review?(bsmedberg)
Attachment #160665 - Flags: approval-aviary?
Attachment #160664 - Flags: review?(bsmedberg)
Attachment #160664 - Flags: approval-aviary?
Attachment #160665 - Flags: review?(bsmedberg)
Attachment #160665 - Flags: review+
Attachment #160665 - Flags: approval-aviary?
Attachment #160665 - Flags: approval-aviary+
Comment on attachment 160665 [details] [diff] [review] even better + // get the localized text + nsXPIDLString missingPluginLabel; + missingPluginLabel = NS_LITERAL_STRING("Click here to download plugin."); + + nsCOMPtr<nsIStringBundleService> stringBundleService = + do_GetService(NS_STRINGBUNDLE_CONTRACTID); + + if (stringBundleService) { [...] + rv = stringBundle->GetStringFromName(NS_LITERAL_STRING("missingPlugin.label").get(), + getter_Copies(missingPluginLabel)); + if (NS_FAILED(rv)) + missingPluginLabel = NS_LITERAL_STRING("Click here to download plugin."); + } How about eliminating the duplication of the literal by changing that to something like: + // get the localized text + nsXPIDLString missingPluginLabel; + + nsCOMPtr<nsIStringBundleService> stringBundleService = + do_GetService(NS_STRINGBUNDLE_CONTRACTID); + + if (stringBundleService) { [...] + rv = stringBundle->GetStringFromName(NS_LITERAL_STRING("missingPlugin.label").get(), + getter_Copies(missingPluginLabel)); + } + + if (!stringBundleService || NS_FAILED(rv)) { + missingPluginLabel = NS_LITERAL_STRING("Click here to download plugin."); + } sr=jst with such a change.
Attachment #160665 - Flags: superreview+
fixed.
Status: NEW → RESOLVED
Closed: 20 years ago
Keywords: late-l10n
Resolution: --- → FIXED
Keywords: fixed-aviary1.0
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: