On Wed, May 23, 2012 at 11:46 AM, Lucas Adamski <[email protected]>wrote:
> > The problem I see is in localizing these strings. Admittedly, I haven't
> > followed this discussion as much as I should have. Is there a strategy
> > for providing localized "reason" strings to present users?
>
> Good question, ouch. I'd imagine we have a localization problem with
> manifests in general.
I'm unclear from that document exactly what the manifest would look like
for permissions, but there's a general localization solution for the
manifests. Making up a permission syntax:
{
name: "My creepy app",
permissions: {
"camera": {reason: "To spy on you while you are sleeping"}
},
locales: {
"es": {
permissions: {
"camera": {reason: "Para espiar a usted mientras usted está
durmiendo"}
}
}
},
default_locale: "en-US"
}
Generally we have a whitelist of what locales is allowed to overlay, so it
wouldn't be able to add a new permission, but we'd specifically allow
permissions.*.reason (while making sure that the locale overlay does not
add any new items to the permission list).
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps