This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository pyhoca-gui. commit 7cf79d1c52ec48c0ca250ea4974c1d78c4756036 Author: Mihai Moldovan <ionic@ionic.de> Date: Thu Aug 24 06:15:30 2023 +0200 /: add update-pot.sh for updating just the translation template. --- debian/changelog | 1 + update-pot.sh | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/debian/changelog b/debian/changelog index 81f0b19..f8690de 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,7 @@ pyhoca-gui (0.6.1.2-0x2go1) UNRELEASED; urgency=medium - po/: drop pyhoca-gui.pot again, replaced by PyHoca-GUI.pot a long time ago. - po/*.po{,t}: update translations. + - /: add update-pot.sh for updating just the translation template. -- X2Go Release Manager <git-admin@x2go.org> Thu, 02 Jan 2020 13:14:06 +0100 diff --git a/update-pot.sh b/update-pot.sh new file mode 100755 index 0000000..9358757 --- /dev/null +++ b/update-pot.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +set -x + +# Copyright (C) 2023 by Mihai Moldovan <ionic@ionic.de> +# +# This package is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 3 of the License. +# +# This package is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/> + +GETTEXT_DOMAIN="PyHoca-GUI" + +cp "po/${GETTEXT_DOMAIN}.pot" "po/${GETTEXT_DOMAIN}.pot~" + +pushd 'po/' > '/dev/null' + +intltool-update --pot --gettext-package "${GETTEXT_DOMAIN}" || cp "${GETTEXT_DOMAIN}.pot~" "${GETTEXT_DOMAIN}.pot" + +popd > '/dev/null' + +rm -f "po/${GETTEXT_DOMAIN}.pot~" -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git