Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix update_translations.py
The resource must be imported so shortcuts and menues can be read.
parse_menus
is unsed, they are read inparse_shortcuts
too.Update translations.py
The
pylupdate5
only gathers translation keys from python sources, and not from the menu/shortcut files indata
. To still make it work,update_translation.py
exists to read these data files, extract their translation keys and insert them intotranslations.py
as code. That waypylupdate5
will pick them up and properly update the.ts
files.$ ./update_translations.py de
Compile translations
The
.qm
file are a binary form of the.ts
file, that is used during runtime.$ lrelease translations/*.ts
Regenerate resource.py
All data files including compiled translations are not read directly from the filesystem during runtime, they are provided by the Qt
resource system. So for updated translation to actually be used, you have to regenerate the
resource.py
too.$ pyrcc5 puddlestuff/resource.qrc -o puddlestuff/resource.py