aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-11-29 13:32:15 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-11-29 13:32:15 +0100
commit247389963e854ff114cd212a53a22bf466d0ea5d (patch)
treec3a6cea3cc75126922fd2ad8d9d1a60533b324b5
parentc9a4c8658e1cf689e8565d664677dfd7f56f023d (diff)
downloadayatana-indicator-printers-247389963e854ff114cd212a53a22bf466d0ea5d.tar.gz
ayatana-indicator-printers-247389963e854ff114cd212a53a22bf466d0ea5d.tar.bz2
ayatana-indicator-printers-247389963e854ff114cd212a53a22bf466d0ea5d.zip
update-po.sh: Fix for previous commit.
-rwxr-xr-xupdate-po.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-po.sh b/update-po.sh
index dff6f3a..5f9e9fd 100755
--- a/update-po.sh
+++ b/update-po.sh
@@ -16,14 +16,14 @@ set -x
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
-GETTEXT_DOMAIN=$(cat CMakeLists.txt | grep 'set.*(.*GETTEXT_PACKAGE' | sed -r -e 's/.*\"([^"]+)\"\)/\1/')
+GETTEXT_DOMAIN=$(cat configure.ac | grep -E "^GETTEXT_PACKAGE=" | sed -e 's/GETTEXT_PACKAGE=//')
cp po/${GETTEXT_DOMAIN}.pot po/${GETTEXT_DOMAIN}.pot~
cd po/
cat LINGUAS | while read lingua; do
if [ ! -e ${lingua}.po ]; then
- msginit --input=${GETTEXT_DOMAIN}.pot --locale=${lingua} --no-translator --output-file=$lingua.po
+ msginit --input=${GETTEXT_DOMAIN}.pot --locale=${lingua} --no-translator --output-file=$lingua.po
else
intltool-update --gettext-package ${GETTEXT_DOMAIN} $(basename ${lingua})
fi