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
Missing translations in in launcher popupmenus #511
Comments
Huh, I never realized this. Anyway, I fixed it here: https://github.com/franglais125/dash-to-dock/tree/translations All translation files need to be updated though. So checking out that branch is not enough. These are the steps to update the po files, right?
Edit: so far, this commit franglais125@c429130 |
Is it working for you? I did try a similar thing (https://github.com/micheleg/dash-to-dock/tree/fix_translations) but it seems I cannot access the extension gettext domain. It still only traslate strings which are present in the shell too. We actually even loose some of the upstream translated strings (e.g. "Remove from Fovorites").
|
It is working for me. I just uploaded some further modifications I had done, we ended up doing similar things actually. |
Strange, It doesn't seem to work in Debian/3.22. Are you on 3.24? |
I'll test your branch and see what happens. |
I think you are missing the |
Yes, I think I did try that as well, I don;t remember. In any case, I tested your branch and it doesn't work on my system. However, I normally don't use a localized language, therefore maybe something is wrong on my setup. |
I don't use localization either, plain English. I just have a separate user with a different language for testing this sort of thing. Perhaps it would be nice to have confirmation from someone else that is works, or not. I'll include updated po* files, so it's easier to test. |
@zapashcanon Sorry to bother, do you think you can test this branch? https://github.com/franglais125/dash-to-dock/tree/translations We are trying to see if the string "All Windows" gets translated. It comes with the option "Show open windows previews", when using the right click menu. Merci! |
Ok, I found out the issue was with the Italian translation file. I never realized entries marked as |
Ah! Yes, those lines are usually automatically included by the internationalization tool as a "guess" of how to translate the strings, but with that tag to be safe. |
Good to know... Now, beside the missing initialization in my branch, the only difference is that I was excluding the generation of strings from (_), converting all files to use a different function (__), reserving the original for those strings already translated upstream (i.e. when reusing someof the upstream code). In this way we avoid to "ask" for translation of those strings in the pot file. In my system, _ turns out to be always defined, and it works. What do you think about this? |
I noticed the exact same thing. However, when I use your branch, it keeps adding the regular single I had done something similar: I modified the prefix |
I forgot to upload the latest changes, now it should not add those strings. Not sure about __ vs _dtd. It's mainly a matter of clarity, but I wouldn't be bothered too much about the choice. |
Ah, perfect! Now I'm ok with it :). |
I've merged my branch into master [51db80a]. |
Perfect, thanks. Do you mind picking up [a4d30e3] ? It's in my master branch. |
Done [e11ba1f]. Thanks for the help. I think I'll prepare the release now. |
@franglais125 sorry for the late answer, do you still need me to test this ? For another gnome-shell extensions, I removed the |
@zapashcanon Sorry I didn't mention it again, I think we are ok with this issue now, and the fix was included in master as well. So don't worry about it, and thanks! As for the translations workflow, there is a similar functionality already in the Makefile. Running |
The few custom strings in the launcher popupmenus (e.g. "All windows") are not currently getting translated. We need to find a way to use both the extensions gettext domain and the shell one to reuse the strings.
The text was updated successfully, but these errors were encountered: