Tags are extracted from XML files and stored in msgctxt entry of pot file.
This will invalidate existing translations but there aren't too many of them (only 20 very small files).
aacid |
Tags are extracted from XML files and stored in msgctxt entry of pot file.
This will invalidate existing translations but there aren't too many of them (only 20 very small files).
Tested extraction with extract-xml script with two tags (message, description).
Created one po file corresponding to pot file.
Injected translation back by running python fillxmlfrompo.py ~/repositories/kde/kpmcore/src/util/org.kde.kpmcore.externalcommand.policy ~/repositories/kde/kpmcore/src/po kpmcore kpmcore._policy_.po
Lint Skipped |
Unit Tests Skipped |
fillxmlfrompo.py | ||
---|---|---|
47 | This should read presenttagindices |
extract-xml.sh | ||
---|---|---|
18 | echo "Failed to change directory into $subdir" |
Get rid of find_tags function since it introduces scoping problems (main program body in this file is not scoped)
fillxmlfrompo.py | ||
---|---|---|
22 | should nbot this be templates/messages instead of templates? |
fillxmlfrompo.py | ||
---|---|---|
22 | Indeed. And my local testing of course wasn't able to catch this, because I created new directory structure. Thanks for spotting. |