I would think that the attached patch is what's needed to fix this. Caveat: This is untested. The regular xgettext() would extract those .policy file strings fine, but I don't know if xgettext-go() does. If not, a slightly different solution is needed.
** Patch added: "0001-Translate-polkit-strings.patch" https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1747272/+attachment/5053935/+files/0001-Translate-polkit-strings.patch ** Changed in: snapd (Ubuntu) Importance: Undecided => Medium ** Changed in: snapd (Ubuntu) Status: New => In Progress ** Changed in: snapd (Ubuntu) Assignee: (unassigned) => Gunnar Hjalmarsson (gunnarhj) -- You received this bug notification because you are a member of Ubuntu Translations Coordinators, which is subscribed to Ubuntu Translations. Matching subscriptions: Ubuntu Translations bug mail https://bugs.launchpad.net/bugs/1747272 Title: Polkit dialogs of snapd are not translatable Status in Ubuntu Translations: New Status in snapd package in Ubuntu: In Progress Bug description: The polkit dialogs shown during snap installation/removal cannot be translated using Launchpad and are untranslated on non-English Ubuntu install. See the attached screenshot. Please, make the dialogs translatable. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-translations/+bug/1747272/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-translations-coordinators Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-translations-coordinators More help : https://help.launchpad.net/ListHelp

