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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 5 10:05:55 PDT 2012


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

             Bug #: 51755
           Summary: i18n issues with systemd-logind's inhibit API
    Classification: Unclassified
           Product: systemd
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: systemd-bugs at lists.freedesktop.org
        ReportedBy: zeuthen at gmail.com
         QAContact: systemd-bugs at lists.freedesktop.org


<davidz> mezcaler1: so udisks now allows you to clear data before formatting a
disk (in various ways, write zeroes or using ATA secure erase). Bottom-line is
that these operations easily take hours....

<davidz> mezcaler1: so the natural thing to do is to use
http://www.freedesktop.org/wiki/Software/systemd/inhibit

<davidz> mezcaler1: however... I'm a system-level process... so the @who and
@why parameters are suspect

<davidz> mezcaler1: in terms of i18n and l10n
<davidz> (geek-speak for grown ups)

<davidz> mezcaler1: so... I'd say that this API is kinda busted. I wonder how
open you are to repairing it...

<davidz> mezcaler1: one way to repair it could be to impose a protocol on the
strings... for example, could mandate that
i18n:gettext-domain=udisks2;gettext-message=Hello%20World means: use gettext(3)
from the client app with gettext-domain 'udisks2' and untranslated string
"Hello World"

<davidz> mezcaler1: that's sorta how polkit does it and it can be made to work
fine

<davidz> mezcaler1: notably you would be able to do this (almost) without
breaking your API....

-- 
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