[WIP] Add mnemonic for menu items / actions#199
[WIP] Add mnemonic for menu items / actions#199schoettl wants to merge 3 commits intoPintaProject:masterfrom
Conversation
|
I think this looks good so far. To update the translation template you can run 'make updatepot' which will regenerate messages.pot with all the updated strings used in the code. That file is then pulled into the launchpad website for translators (Also, I'll be on vacation so might not be responsive for the next week or so) |
|
There are some (almost-) duplicates in the translations now, e.g. "_Invert Selection" and "Invert Selection". The first one is used in the menu, the second one in the action history list. That's not so clean. It would be better if the action's names would be used with the first @cameronwhite Can you explain to me how the translations work? If I update only the |
|
Yes, the I agree that reducing the number of almost-duplicate translations would be ideal, especially since there are a lot of strings affected by this change |
https://bugs.launchpad.net/pinta/+bug/1940763
In this PR, I started to define single-letter mnemonics as shortcuts (used with the Alt key).
E.g.:
This can not be done only in .po files because one
msgids in .po files often reference names of menu items and labels in other places. E.g. "Palette" appears as a menu item as well as a label for the palette toolbar. Therefore I cannot just change themsgstrin the .po files.Also, it seems good to change the original
msgidbecause this hints translators to also define mnemonics.If maintainers agree, I'd continue with:
messages.potfile