bug 828781: give more flexibility to translate application permissions requests

https://bugzilla.mozilla.org/show_bug.cgi?id=828781