[systemd-bugs] [Bug 51755] i18n issues with systemd-logind's inhibit API

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 5 13:50:14 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=51755

--- Comment #3 from David Zeuthen <zeuthen at gmail.com> 2012-07-05 13:50:14 PDT ---
Btw, to support non-trivial and more useful inhibitor messages, the protocol
should support strings like


i18n:gettext-domain=udisks2;gettext-message=Formatting%20Device$(device);variable.device=/dev/sda1

The client will use gettext(3) to expand this to

 Formatting Device $(device)
 Formatterer enhed $(device)   # da_DK
 Formatierungseinrichtung $(device)

and then the client also replaces all instances of $(foo) with the value of
variable.foo so we get

 Formatting Device /dev/sda1
 Formatterer enhed /dev/sda1   # da_DK
 Formatierungseinrichtung /dev/sda1

Again, this is pretty much how polkit works, see


http://people.freedesktop.org/~david/gnome-disks-ata-secure-erase-confirmation.png
 http://people.freedesktop.org/~david/udisks2-translations-pt_BR.png

for an example.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the systemd-bugs mailing list