lxqt / lxqt-policykit

The LXQt PolicyKit agent
https://lxqt.github.io
GNU Lesser General Public License v2.1
31 stars 20 forks source link

Localization "Password:" string #127

Closed Survolog closed 2 years ago

Survolog commented 2 years ago

Hello! When I use tools like partition manager I see lost localization for "Password:" src/policykit agent gui.ui

    <<widget class="QLabel" name="prompt Label">
     <property name="text">
      <string>Password:</string>

In src/policykitagentgui.cpp I found promptLabel->setText(text); and

    if (text != QVariant{})
        prompt Label->setText(text.toString());

I dropped that lines and it helps me with localization. But I don't know what I done. Maybe it will be useful to someone else.

tsujan commented 2 years ago

When I use tools like partition manager I see lost localization for "Password:"

Then, the request is non-localized.

I dropped that lines...

Those lines say: "Use our (localized) string if no string is given."