Closed
Bug 415085
Opened 17 years ago
Closed 17 years ago
Redirect unsupported locales to one that works
Categories
(addons.mozilla.org Graveyard :: Public Pages, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.2
People
(Reporter: dev-null, Assigned: clouserw)
Details
Attachments
(1 file)
|
3.55 KB,
patch
|
laura
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; ja; rv:1.9b3pre) Gecko/2008013104 Minefield/3.0b3pre Firefox/3.0b
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; ja-JP-mac; rv:1.9b3pre) Gecko/2008013104 Minefield/3.0b3pre
Get Add-ons does not work with ja-JP-mac (Japanese for Mac OS X) locale.
Reproducible: Always
Steps to Reproduce:
1. Use Firefox with ja-JP-mac locale.
2. Open Tools -> Add-ons -> Get Add-ons
3.
Actual Results:
Get Add-ons does not work.
Expected Results:
Get Add-ons works.
The cause of this bug is that
https://services.addons.mozilla.org/ja-JP-mac/firefox/api/list/featured/all/10
and
https://services.addons.mozilla.org/ja-JP-mac/firefox/api/search/add-ons
is redirected to invalid URL.
Updated•17 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: unspecified → 3.0
Comment 1•17 years ago
|
||
addons.mozilla.org doesn't support the ja-JP-mac locale (hence the API doesn't
either, since it uses the same data).
addons has this problem with the redirection too: if you go to
https://addons.mozilla.org/ja-JP-mac/firefox/
you get redirected to
https://addons.mozilla.org/en-US/firefox/ja-JP-mac/firefox/
which 404s.
I'm trying to work out if we should fall back to en-US - or if there's even a
way to distinguish between a request for an unsupported locale/app for a page
that is valid in en-US and a request for a page that just isn't valid.
Updated•17 years ago
|
Status: NEW → ASSIGNED
Comment 2•17 years ago
|
||
Hmm, www.mozilla.com/www.mozilla.org has supported this since very early on. I wonder why AMO never added support for this locale. Making this into a general "support ja-JP-mac" bug.
Status: ASSIGNED → NEW
Component: API → Public Pages
QA Contact: api → web-ui
Summary: Get Add-ons does not work with ja-JP-mac locale → Support ja-JP-mac locale
Comment 3•17 years ago
|
||
This should be solved at a global app level -- Wil can you take a look?
Assignee: nobody → clouserw
Target Milestone: --- → 3.2
| Assignee | ||
Comment 4•17 years ago
|
||
ja-JP-mac is not the problem here. It happens with any locale FF supports and AMO doesn't.
| Assignee | ||
Updated•17 years ago
|
Summary: Support ja-JP-mac locale → Redirect unsupported locales to one that works
Comment 5•17 years ago
|
||
(In reply to comment #2)
> Hmm, www.mozilla.com/www.mozilla.org has supported this since very early on. I
> wonder why AMO never added support for this locale.
It's because nobody volunteered yet to translate it :)
Comment 6•17 years ago
|
||
(In reply to comment #5)
> It's because nobody volunteered yet to translate it :)
No, it's because AMO doesn't special-case it like we do. "ja-JP-mac" is the same thing as "ja", as far as localizing goes.
Comment 7•17 years ago
|
||
(In reply to comment #6)
> > It's because nobody volunteered yet to translate it :)
>
> No, it's because AMO doesn't special-case it like we do. "ja-JP-mac" is the
> same thing as "ja", as far as localizing goes.
Ah, thanks for the additional info. Gotta love the special cases *sigh*.
| Assignee | ||
Comment 8•17 years ago
|
||
This patch adds support for the ja-JP-mac special case and it also makes a best guess effort on locales that AMO doesn't support (like ar). Unsupported locales are redirected to en-US.
Attachment #300745 -
Flags: review?
| Assignee | ||
Comment 9•17 years ago
|
||
Comment on attachment 300745 [details] [diff] [review]
add unsupported locale redirection
laura@mozilla and lthomson@mozilla didn't match anything so I'm giving up and going with fligtar. <3
Attachment #300745 -
Flags: review? → review?(fligtar)
Updated•17 years ago
|
Attachment #300745 -
Flags: review+
| Assignee | ||
Comment 10•17 years ago
|
||
Thanks, this is fixed in r9893
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•17 years ago
|
Attachment #300745 -
Flags: review?(fligtar)
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•