Quoting Axel Hecht (2014-09-19 13:05:54)
> Hi stas,
> 
> the overview looks good, renaming the thread for easier reference.
> 
> On 9/18/14 8:50 PM, Staś Małolepszy wrote:
> >   G2. An app can register a number of languages with the l10n framework
> >       to say 'here are the languages I'm available in';  this list can
> >       be extended by a language package service, so the registration
> >       needs to be asynchronous.
> 
> I think I know what you mean here, but folks that didn't dial into our 
> calls for the last year probably need more detail to understand this.

You're right, let me try to describe the scoop.

There are three actors involved:

  - the user whose preferred langs are [A, B],
  - the app, version v2, which is available in [B v1, C v2, D v2] 
    (i.e., the B language is outdated),
  - the langpack service, which has the following langs for this app 
    available: [A v2, B v2, E v1]

The app registers the langs its bundled with.  The Env queries the 
langpack service to check if there are any additional languages it 
could use.  The final list of available langs for this app is:

  [A v2, B v2, C v2, D v2, E v1]

The Env proceeds to language negotiation against user's preferred 
languages [A, B].

The result is the list of supported languages:

  [A v2, B v2]

…which is much better coverage than the langs the app originally 
shipped with: [B v1, C v2, D v2].

HTH,
-stas

-- 
@stas
_______________________________________________
tools-l10n mailing list
[email protected]
https://lists.mozilla.org/listinfo/tools-l10n

Reply via email to