The strip-po target modifies files in place. This sometimes creates
conflicts with other make targets when make is run in parallel mode.
* split strip-po into strip-po and strip-pot
* move strip-po[t] from dependency to explicit, serial execution
* declare dependencies on POT/POFILES
* don't run strip on clean
Fixes: https://pagure.io/freeipa/issue/8323
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Several translated strings were splitted and old translations do not
apply directly anymore.
Reviewed-By: Christian Heimes <cheimes@redhat.com>
(cherry picked from commit 42e86692b6)
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Several translated strings were splitted and old translations do not
apply directly anymore.
Reviewed-By: Christian Heimes <cheimes@redhat.com>
(cherry picked from commit 9fcae1590d)
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Several translated strings were splitted and old translations do not
apply directly anymore.
Reviewed-By: Christian Heimes <cheimes@redhat.com>
(cherry picked from commit ad3ef9de44)
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Several translated strings were splitted and old translations do not
apply directly anymore.
Reviewed-By: Christian Heimes <cheimes@redhat.com>
(cherry picked from commit 047c8cc55d)
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Several translated strings were splitted and old translations do not
apply directly anymore.
Reviewed-By: Christian Heimes <cheimes@redhat.com>
(cherry picked from commit 1a0232a693)
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Several translated strings were splitted and old translations do not
apply directly anymore.
Reviewed-By: Christian Heimes <cheimes@redhat.com>
(cherry picked from commit 2859216b4c)
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Several translated strings were splitted into smaller ones. The older
translation either is a duplicate of the new one or does not apply
anymore.
Reviewed-By: Christian Heimes <cheimes@redhat.com>
(cherry picked from commit 117893f03e)
Reviewed-By: Christian Heimes <cheimes@redhat.com>
1. Build po/ipa.pot every time we update PO files (each build)
2. Drop any rebuilt PO changes if the only difference is in the
translation file's header in a timestamp or timestamp+bug report
link.
3. Only apply the logic for dropping the changes if we are operating on
a git tree checkout because there is no otherwise an easy way to
detect the changes.
4. Hook strip-po target to the cleanup target to allow dropping unneeded
translation changes automatically.
5. Finally, strip ipaclient/remote_plugins/* locations from the ipa.pot
template. This saves us around 23,000 lines from the ipa.pot file and
reduces visual clutter in the translation files.
This approach allows to avoid unneccesary commits because even when
there are no changes to translation files, po/ipa.pot header would be
updated with a new translation update timestamp.
Fixes: https://pagure.io/freeipa/issue/8159
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
(cherry picked from commit b4722f3917)
Reviewed-By: Christian Heimes <cheimes@redhat.com>
When releasing FreeIPA 4.8.0, I forgot to create ipa-4-8 branch in
Zanata. As result, we were tracking changes for master branch in the
released one. Fix this and bring translations from Ukrainian team that
happened since 4.8.0 release.
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Make it possible to run API, ACI, and potests under Python 3.
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
The Makefile test targets were lost when gettextize infrastructure was
introduced. Now it is re-added in its modernized form which counts with
generated .pot files.
ipatests/i18n.py is now explicitly setting character encoding in files
it generates. According to gettext manual chapter "Filling in the Header Entry"
the Content-Type header is language-specific so it does not make sense
to fill it in in .pot file.
https://fedorahosted.org/freeipa/ticket/6418
Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Lukas Slebodnik <lslebodn@redhat.com>
configure is easiest option how to automatically generate POTFILES.in.
Attempts to add it to po/Makefile* have big potential to create cyclic
depedencies and cause other trouble.
Given how rare operation adding a source file is, I think it is sufficient
to document that configure needs to be run again after adding a source file
with translatable strings.
https://fedorahosted.org/freeipa/ticket/6418
Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Lukas Slebodnik <lslebodn@redhat.com>