Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization "Password:" string #127

Closed
Survolog opened this issue Sep 22, 2022 · 1 comment
Closed

Localization "Password:" string #127

Survolog opened this issue Sep 22, 2022 · 1 comment

Comments

@Survolog
Copy link

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
Copy link
Member

tsujan commented Sep 23, 2022

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

@tsujan tsujan closed this as completed Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants