[gimp-web/oscp] testing.docs.gimp.org: improve accuracy of translation percentages
- From: Jacob Boerema <jboerema src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/oscp] testing.docs.gimp.org: improve accuracy of translation percentages
- Date: Wed, 20 Jul 2022 19:12:48 +0000 (UTC)
commit 9c18726090b9af88ae4441c6aee1fc370b9db92c
Author: Jacob Boerema <jgboerema gmail com>
Date: Wed Jul 20 15:12:37 2022 -0400
testing.docs.gimp.org: improve accuracy of translation percentages
The accuracy of our translation percentages goes down over time,
especially for languages that don't get updated very often.
The reason being that po files don't get updated with new/updated strings
when our source xml documentation gets updated, but only when a
translation update gets committed.
This causes our makefiles to think files are up-to-date when they aren't.
To fix this, we manually touch all files in /src first, then do make and
make install on our main repo. That way all po files will be updated.
Building our website is the last step, since it needs the updated po files
to determine accurate translation percentages.
testing.docs.gimp.org/docs_build/entrypoint.sh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/testing.docs.gimp.org/docs_build/entrypoint.sh b/testing.docs.gimp.org/docs_build/entrypoint.sh
index bd3138ba..e0fbc7d7 100755
--- a/testing.docs.gimp.org/docs_build/entrypoint.sh
+++ b/testing.docs.gimp.org/docs_build/entrypoint.sh
@@ -7,9 +7,15 @@ RELEASE=2.10
BUILD_PATH=/tmp/gimp-help
git clone --depth 1 --single-branch -b gimp-help-${RELEASE//\./\-}
https://gitlab.gnome.org/GNOME/gimp-help.git ${BUILD_PATH}
-cd ${BUILD_PATH}/web && BUILD_DIR='.' make
+
+#Mark all source files as updated. Needed to get correct translation percentages
+cd ${BUILD_PATH}/src && find . -type f -exec touch {} +
+
cd ${BUILD_PATH} && ./autogen.sh --without-gimp --prefix=${BUILD_PATH}/build && make && make install
+# We need updated po files to get correct percentages, so do make web last
+cd ${BUILD_PATH}/web && BUILD_DIR='.' make
+
if [ -d "/docs_data/docs/${RELEASE}" ]; then
rsync -vlr ${BUILD_PATH}/build/share/gimp/2.0/help/ /docs_data/docs/${RELEASE}/
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]