Use dirname $0 in localization scripts

This commit is contained in:
JosJuice 2017-08-04 19:09:12 +02:00
parent ee4195547a
commit 0db63cefc0
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
# This script updates the dolphin-emu.pot file to match the strings in # This script updates the dolphin-emu.pot file to match the strings in
# the source code. # the source code.
cd ${0/update-source-strings.sh/}/.. cd "$(dirname "$0")/.."
SRCDIR=Source SRCDIR=Source
find $SRCDIR -name '*.cpp' -o -name '*.h' -o -name '*.c' | \ find $SRCDIR -name '*.cpp' -o -name '*.h' -o -name '*.c' | \
xgettext -d dolphin-emu -s --keyword=_ --keyword=wxTRANSLATE --keyword=SuccessAlertT \ xgettext -d dolphin-emu -s --keyword=_ --keyword=wxTRANSLATE --keyword=SuccessAlertT \

View File

@ -5,6 +5,6 @@
# script before committing changes to the .po files, otherwise the .po # script before committing changes to the .po files, otherwise the .po
# files might get modified the next time you try to build using cmake. # files might get modified the next time you try to build using cmake.
cd ${0/update-translated-strings.sh/}/.. cd "$(dirname "$0")/.."
POTFILE=./Languages/po/dolphin-emu.pot POTFILE=./Languages/po/dolphin-emu.pot
find ./Languages/po -name '*.po' -exec msgmerge --quiet --update --backup=none -s {} $POTFILE \; find ./Languages/po -name '*.po' -exec msgmerge --quiet --update --backup=none -s {} $POTFILE \;