The source project of this merge request has been removed.
Check if strings are updated by the submitted commits
In !51 (closed), I unintentionally updated a string and your discerning eye has noticed it. This MR proposes the following:
- I updated the
update-trans
command in order to generate another file,code.po
which contains only code strings. The syntax has been a little bit changed in order to conform a bit more to the Martin’sclean code
practices. - I added a
pre-commit
hook that compares the current po file (underpo/
) which the newly generatedcode.po
file. If any change is noticeable, a PO file with the differences is generated. - The check has been added in the
gitlab-ci.yml
file. Failure is non blocking as it’s mainly to inform the reviewer that some strings changed, which can obviously happen some times. The difference file is uploaded to the MR. - I updated the
CONTRIBUTING.md
file to inform contributors they have to override thecore.hooksPath
setting.