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

Add russian translation of polkit messages #278

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

antohami
Copy link

@antohami antohami commented May 4, 2023

No description provided.

@stefonarch
Copy link
Member

Does this work for you? I started lxqt-policykit-agent and lxqt-admin-time with LANG=ru but the translation isn't displayed:
screen_area_gio_22:02:31_

On a general note: we have a translation issue here to solve.

@tsujan
Copy link
Member

tsujan commented May 4, 2023

On a general note: we have a translation issue here to solve.

Can that string be translated through Weblate at all? If not, does @antohami's method work in the app (it seems correct in the XML file)? If yes, it may be the only way.

@stefonarch
Copy link
Member

I stopped investigating about weblate when I noticed that the translation method doesn't seem to work. I didn't test logging in a complete russian session though.

@antohami
Copy link
Author

antohami commented May 5, 2023

This message by the polkitd. It must be run in the required locale.
It's work:
authentication-ru

@stefonarch
Copy link
Member

This message by the polkitd. It must be run in the required locale.

I tried adding the italian translation, but I find no way to have it displayed, no idea what I'm missing. lxqt-policykit-agent is running in italian of course.

@antohami
Copy link
Author

antohami commented May 5, 2023

I tried adding the italian translation, but I find no way to have it displayed, no idea what I'm missing. lxqt-policykit-agent is running in italian of course.

What is the system locale? Session language Italian?

Try running gparted. Also not showing the Italian translation?
It should be in /usr/share/polkit-1/actions/org.gnome.gparted.policy
<message xml:lang="it">È richiesto autenticarsi per eseguire «Editor di partizioni GParted» come root</message>

@stefonarch
Copy link
Member

stefonarch commented Jan 25, 2024

Coming back to this, I noticed that here for org.lxqt.lxqt-admin-user.policy.in adding an italian translation works, but not in the other 2 files for time, because <message>Authentication is required for time administration</message> is never displayed but is dynamically generated for the several items, like

screen_area_gio_21:50:49_

Atm I didn't find any file which contains those elements.

@stefonarch
Copy link
Member

stefonarch commented Jan 26, 2024

The various message in authorizations for lxqt-admin-time are inherited from org.freedesktop.timedate1.policy, so no hope to translate that, except we change it to a general text.

@stefonarch
Copy link
Member

One reason could be this line which should be <annotate key="org.freedesktop.policykit.exec.path">@CMAKE_INSTALL_PREFIX@/bin/lxqt-admin-user-helper</annotate>:

<annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/lxqt-admin-time-helper</annotate>

But there is no lxqt-admin-time-helper in usual system, it is only in BSD and nosd systems installed.

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

Successfully merging this pull request may close these issues.

3 participants