Skip to content

Commit

Permalink
Merge pull request #5879 from JosJuice/update-translated-strings-dire…
Browse files Browse the repository at this point in the history
…ctory

Handle update-translated-strings.sh being run from a different directory
  • Loading branch information
leoetlino committed Aug 5, 2017
2 parents 737e045 + 0db63ce commit 4f2fd3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Languages/update-source-strings.sh
Expand Up @@ -3,7 +3,7 @@
# This script updates the dolphin-emu.pot file to match the strings in
# the source code.

cd ${0/update-source-strings.sh/}/..
cd "$(dirname "$0")/.."
SRCDIR=Source
find $SRCDIR -name '*.cpp' -o -name '*.h' -o -name '*.c' | \
xgettext -d dolphin-emu -s --keyword=_ --keyword=wxTRANSLATE --keyword=SuccessAlertT \
Expand Down
1 change: 1 addition & 0 deletions Languages/update-translated-strings.sh
Expand Up @@ -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 "$(dirname "$0")/.."
POTFILE=./Languages/po/dolphin-emu.pot
find ./Languages/po -name '*.po' -exec msgmerge --quiet --update --backup=none -s {} $POTFILE \;

0 comments on commit 4f2fd3a

Please sign in to comment.