Closed Bug 459777 Opened 16 years ago Closed 16 years ago

[zh-CN] search plugin, add wikipedia (zh) or modify current wikipedia (en) to (zh)

Categories

(Mozilla Localizations :: zh-CN / Chinese (Simplified), defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.1b3

People

(Reporter: shaohua.wen, Assigned: Pike)

Details

(Keywords: fixed1.9.1)

Attachments

(3 files, 1 obsolete file)

Now we are able to access wikipedia (zh) after the Olympic games.
maybe we should add wikipedia zh or modify the current en wikipedia search plugin to zh ?
Attachment #342996 - Flags: review?(l10n)
Thank you Shaohua, this is great. Will this meet FF3.1 release schedule?
If it's possible for ff 3.0.x , that would be great.
What do you think?
If that's too much for 3.0.x , we can add it for 3.1 only.
Attachment #342996 - Flags: review?(l10n) → review-
Comment on attachment 342996 [details] [diff] [review]
patch for replace en with zh wikipedia

Taking this off from Axel's review queue.

We generally prefer using only the MozSearch namespace (it extends the OpenSearch format), so there's no need to use <os:.../>, which improves readability. Same for putting the URL parameters in the URL template: the preferred way is to use the <Param/> elements.

I suggest simply taking the en-US plug-in and changing the following lines:

>-<ShortName>Wikipedia (en)</ShortName>
>-<Description>Wikipedia, the free encyclopedia</Description>

>-<Url type="application/x-suggestions+json" method="GET" template="http://en.wikipedia.org/w/api.php">

>-<Url type="text/html" method="GET" template="http://en.wikipedia.org/wiki/Special:Search">

>-<SearchForm>http://en.wikipedia.org/wiki/Special:Search</SearchForm>

If we fix this this week, we should be able to make it both for 3.0.4 and 3.1 beta2.
Attachment #342996 - Attachment is obsolete: true
Attachment #343018 - Flags: review?(l10n)
Attachment #343018 - Flags: review?(l10n) → review?(stas)
Attachment #343018 - Flags: review?(stas)
Attachment #343018 - Flags: review+
Attachment #343018 - Flags: approval1.9.0.4?
Comment on attachment 343018 [details] [diff] [review]
patch for replace en with zh wikipedia

r=me. Please commit the change to hg. For cvs, please wait for Axel's approval.

Thanks.
changeset:  24:e9a981f58431
user/date:  shaohua.wen@gmail.com	2008-10-14 08:30:34
parent:     23:65239c374d42 sync with en 10.12
tags:       tip
We generally refrain from changing our search set on a minor update channel, not sure if this would be a good exception. But from a user experience, I'd rather not, in particular in the light of our stricter rules for the stable branches now.

For 3.1, we still need a patch for removed-files.in to clear the en-CN one on major update, which I think we should do.
Looks like that we also missed list.txt which need to be modified also.
Want to come up with a bustage-fix patch for list.txt?
Attachment #343028 - Flags: review?(l10n)
Attachment #343028 - Flags: review?(l10n) → review+
Ouch, sorry for missing that, my bad.
Comment on attachment 343018 [details] [diff] [review]
patch for replace en with zh wikipedia

Per Axel's comment 8, cancelling the approval1.9.0.4 request.
Attachment #343018 - Flags: approval1.9.0.4?
changeset:  25:f2487e2f19b9
user/date:  shaohua.wen@gmail.com	2008-10-14 09:29:32
parent:     24:e9a981f58431  Bug 459777 -  [zh-CN] search plugin, add wikipedia (zh) or modify current wikipedia (en) to (zh) a=stas@mozilla.com
tags:       tip
Per comment 8: Axel, is this correct?

Also, out of curiosity: why did we have a en-CN file in the first place (instead of putting en-US wikipedia in list.txt)?
Attachment #343032 - Flags: review?(l10n)
Comment on attachment 343032 [details] [diff] [review]
removed-files.in patch

r=me.

The reason we used wikipedia-en-CN.xml is exactly to be able to create this patch. We can only remove particularly named files in all localized builds. So using a name that isn't precise to specify the xml we shipped with zh-CN could lead us into trouble somewhere down the road.

Requesting review from Nick, too, he's our removing overlord.
Attachment #343032 - Flags: review?(nthomas)
Attachment #343032 - Flags: review?(l10n)
Attachment #343032 - Flags: review+
Comment on attachment 343032 [details] [diff] [review]
removed-files.in patch

/me smiles benevolently.

(In reply to comment #8)
> For 3.1, we still need a patch for removed-files.in to clear the en-CN one on
> major update, which I think we should do.

This will affect minor updates for 3.1b1 onwards too, but that seems fine to me.
Attachment #343032 - Flags: review?(nthomas) → review+
Taking this bug so that I know it's on my radar to actually land this.
Assignee: shaohua.wen → l10n
... "this" being the change to removed-files.in. Moving over to the Firefox product so that I get some flags.
Component: zh-CN / Chinese (Simplified) → Search
Product: Mozilla Localizations → Firefox
Target Milestone: --- → Firefox 3.1b3
Comment on attachment 343032 [details] [diff] [review]
removed-files.in patch

This is a follow up landing to actually remove the cn-only version of en.wikipedia.org we used to ship. This is an anticipated change, and as such, really low risk.
Attachment #343032 - Flags: approval1.9.1?
Comment on attachment 343032 [details] [diff] [review]
removed-files.in patch

a191=beltzner
Attachment #343032 - Flags: approval1.9.1? → approval1.9.1+
QA Contact: shaohua.wen → search
http://hg.mozilla.org/mozilla-central/rev/6f34b3d7748d and http://hg.mozilla.org/releases/mozilla-1.9.1/rev/617e310fa0aa, marking FIXED and fixed1.9.1.

Moving back into the Mozilla Localizations, too.
Status: NEW → RESOLVED
Closed: 16 years ago
Component: Search → zh-CN / Chinese (Simplified)
Keywords: fixed1.9.1
Product: Firefox → Mozilla Localizations
QA Contact: search → shaohua.wen
Resolution: --- → FIXED
Target Milestone: Firefox 3.1b3 → mozilla1.9.1b3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: