-
Notifications
You must be signed in to change notification settings - Fork 101
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
cinnamon-dynamic-wallpaper@TobiZog: Add translation template #560
Conversation
Hi! I want to translate the items in the .glade file. But the cinnamon-spices-makepot ignores the Glade file. Do you know why? |
It just needs to be configured to include those files. As of right now, I believe it checks for gettext strings in Python and JavaScript files. Let me take a look and see what we can do for you here. |
@TobiZog We just need to test with the UI to see if the strings are properly translated. If so, I'll get started on the modified script so that it will be here for future updates. |
I will test it. |
Ok, I try to test it. So, at first, I want to test the basic translation. I created a translation file for German, changed the system language to "German, Germany" and add it to the folder. I used your Spanish file. But the description in the "Extension" window doesn't change. Did I miss something? Here is the config file:
|
The compiled .mo files need to be installed. This is where the translations are actually pulled from. You can run |
After a little bit of testing, it worked now! For future developer, who find this. You have to add this to your python code:
|
You can take a look at the code in this PR too. You may still need to create the helper function. Feel free to open the change for this extension when you're ready! |
cc @TobiZog