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

Optimize laptop-mode-tools to support internationalization #170

Open
wants to merge 3 commits into
base: lmt-upstream
Choose a base branch
from

Conversation

mrdengbo
Copy link
Contributor

Support laptop-mode-tools gui title display internationalization
Fix the problem that the root privileges prompt does not display the corresponding user when the system is in the Chinese environment
Added instructions for developers of internationalized languages

Support laptop-mode-tools gui title display internationalization
Fix the problem that the root privileges prompt does not display the corresponding user when the system is in the Chinese environment
Added instructions for developers of internationalized languages
@mrdengbo
Copy link
Contributor Author

In this submission, I added a description of the language internationalization of laptop mode tools and optimized some minor issues

@@ -3,413 +3,413 @@
<context>
<name>MainWidget</name>
<message>
<location filename="../gui/lmt.py" line="55"/>
<location filename="../../../../gui/lmt.py" line="53"/>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this path correct ?

I assume the CWDIR would be usr/share/laptop-mode-tools/locale/ and in your proposed patch, if you traverse ../../../../ you are essentially chdir()ing to /

Can you please enlighten on this ?

Support laptop-mode-tools gui title display internationalization
Fix the problem that the root privileges prompt does not display the corresponding user when the system is in the Chinese environment
Added instructions for developers of internationalized languages
@mrdengbo
Copy link
Contributor Author

I added a script under the / directory to generate the.ts file through the script, so that the path of the filename is correct

@rickysarraf rickysarraf self-assigned this Apr 12, 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

Successfully merging this pull request may close these issues.

None yet

3 participants