From ee4195547ab1222ac470812d3d8658e524608363 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Fri, 4 Aug 2017 10:39:08 +0200 Subject: [PATCH] Handle update-translated-strings.sh being run from a different directory update-source-strings.sh was already solving the same problem in the same way. --- Languages/update-translated-strings.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/Languages/update-translated-strings.sh b/Languages/update-translated-strings.sh index 26cf4c2328..7183627aae 100755 --- a/Languages/update-translated-strings.sh +++ b/Languages/update-translated-strings.sh @@ -5,5 +5,6 @@ # script before committing changes to the .po files, otherwise the .po # files might get modified the next time you try to build using cmake. +cd ${0/update-translated-strings.sh/}/.. POTFILE=./Languages/po/dolphin-emu.pot find ./Languages/po -name '*.po' -exec msgmerge --quiet --update --backup=none -s {} $POTFILE \;