Closed Bug 757295 Opened 12 years ago Closed 11 years ago

Extract newly added locale information from the manifest.

Categories

(Marketplace Graveyard :: Developer Pages, defect, P4)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: krupa.mozbugs, Assigned: robhudson)

References

Details

(Whiteboard: p=)

We already have a cron which checks for changes in the manifest. If we detect new locales in the manifest, we should extract this information and add it to the developer hub.

* We can do this whenever the cron runs or when the user forces a manifest refresh.
* If the developer has added 4 locales out of which one is not supported by Marketplace, we should fail silently.
* Both successful and unsuccessful attempts to add locales should generate an entry in the activity page.

Still to be answered:
* How do we deal with changes to the default locale?
* How do we deal with locales being removed from the manifest?

Marking this [ddn] to get further suggestions from product
Priority: -- → P3
> * How do we deal with changes to the default locale?

Ignore them because people customize the strings on the marketplace.

> * How do we deal with locales being removed from the manifest?

Ignore that also for now.
Blocks: 766201
No longer blocks: 752013
Priority: P3 → P4
Whiteboard: [ddn]
Blocks: 766199
Blocks: 782711
No longer blocks: 766199
No longer blocks: 782711
Seems like something Basta might be interested in.
(In reply to krupa raj 82[:krupa] from comment #0)
> * How do we deal with changes to the default locale?

To elaborate on what Wil said:

The default_locale element doesn't describe an "intended" locale for the app or a "home" locale. Instead, it describes what language the root attributes of the manifest are written in. So for instance, if the developer has a manifest submitted with a default locale of "en-us" and changes all of the elements in the root to Spanish (and default_locale to "es"), the Spanish version of the app's strings should be updated with the information that's now in the root rather than the english version.

To illustrate, the following two manifests would result in no changes if they were interchanged:

{
  "name": "My App",
  "description": "My elevator pitch goes here",
  "launch_path": "/",
  "icons": {"128": "/img/icon-128.png"},
  "default_locale": "en",
  "locales": {"fr": {"name": "Le App", "description": "Omelet du fromage"}}
}

{
  "name": "Le App",
  "description": "Omelet du fromage",
  "launch_path": "/",
  "icons": {"128": "/img/icon-128.png"},
  "default_locale": "fr",
  "locales": {"en": {"name": "My App", "description": "My elevator pitch goes here"}}
}
Rob - Is this a dupe of bug 749813?
(In reply to Wil Clouser [:clouserw] from comment #5)
> Rob - Is this a dupe of bug 749813?

It seems subtly different.
Assignee: nobody → robhudson.mozbugs
Whiteboard: p=
I think this is done. The code looks like it's doing the right thing (and there have been enough meetings with dbialer to confirm that what we do is what we do).
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.