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

Translation for "is not responding" from cinnamon-close-dialog script is not shown correctly #11738

Closed
ChoquePumper opened this issue Jul 2, 2023 · 0 comments · Fixed by #11739

Comments

@ChoquePumper
Copy link

Distribution

Mint 21.1

Package version

5.6.8

Graphics hardware in use

No response

Frequency

Always

Bug description

On the window that pops up when a window is hung, the text "is not responding" is not translated when the language is other than English.
Example (language set to Spanish):
Captura de pantalla de 2023-07-01 19-50-58
Note that the texts for "Force quit" and "Wait" in the buttons are translated.

Steps to reproduce

  1. Run any program that shows up a window.
  2. Hang that program somehow. Hint: From System Monitor, send a Stop signal to the corresponding process.
  3. Try to interact with the window of the program (e.g. pressing the close button).
  4. The window that says the program is not responing should pop up.

Expected behavior

The window should display the traslation for "is not responding". In the case of Spanish language, it should be "no está respondiendo" as it says here.
Captura de pantalla de 2023-07-01 20-00-36

Additional information

Line 49 of cinnamon-close-dialog installed as "/usr/bin/cinnamon-close-dialog":
text = _("%s is not responding." % title)
In this line of code, the _ function (from the gettext module) receives a formatted text with the title. The formatting should be done after the _(...) call, like the line below:
text = _("%s is not responding.") % title
I tried changing that line in my system and the result is as shown above in "Expected behaviour".
This should be a quick fix.

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 a pull request may close this issue.

1 participant