On Mon, Jul 2, 2012 at 5:36 PM, Lucas Adamski <[email protected]> wrote:
> > 5. How can these strings be localized into the app runtime's chosen
> > locale? ianb suggested:
> > {
> > name: "Stachy (beta)",
> > permissions: {
> > "camera": {usage: "To spy on you while you are sleeping"}
> > },
> > locales: {
> > "es": {
> > permissions: {
> > "camera": {usage: "Para espiar a usted mientras usted está
> > durmiendo"}
> > }
> > }
> > },
> > default_locale: "en-US"
> > }
>
> Paul brought this up too but it does seem like it would be prone to
> cut&paste mistakes (resulting in different permissions sets for different
> locales). Maybe having a single permission list with per-locale usages
> would work.
>
We already have rules about what a locale can override. In this case we
can say that it can override the usage on a permission, but not add a
permission or change any other properties. Then if you had "es":
{permissions: {camra: {usage: "..."}}} it would either be ignored or signal
a warning.
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps