You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
does anyone has a good tool (chain) to handle translatable strings in *.policy files owned by polkit?
My idea is to create a pot file of that strings, let translators create there language specific po files. To my knowledge polkit does use the gettext domain and ask the system via gettext for a translation of existing strings.
Here is an example of the XML based source using "backintime" as gettext-domain:
<actionid="net.launchpad.backintime.qtgui">
<messagegettext-domain="backintime">Authentication is required to run Back In Time as root.</message>
<descriptiongettext-domain="backintime">Start Back In Time GUI as root.</description>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotatekey="org.freedesktop.policykit.exec.path">/usr/bin/backintime-qt</annotate>
<annotatekey="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
I checked the gettext tools and po4a. They don't fit.
I can only imagine a self written script (e.g. Python using polib or dealing with plain text files). But I want to prevent that and assuming there are others out their with the same problems and maybe solutions.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello,
does anyone has a good tool (chain) to handle translatable strings in *.policy files owned by polkit?
My idea is to create a pot file of that strings, let translators create there language specific po files. To my knowledge polkit does use the gettext domain and ask the system via gettext for a translation of existing strings.
Here is an example of the XML based source using "backintime" as gettext-domain:
I checked the gettext tools and po4a. They don't fit.
I can only imagine a self written script (e.g. Python using polib or dealing with plain text files). But I want to prevent that and assuming there are others out their with the same problems and maybe solutions.
Thanks
Christian
Related to #17675, about *.desktop files.
All reactions