mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merge pull request #5735 from JosJuice/split-gettextize-script
Split gettextize script into two
This commit is contained in:
@ -1,6 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd ${0/gettextize/}/..
|
# This script updates the dolphin-emu.pot file to match the strings in
|
||||||
|
# the source code.
|
||||||
|
|
||||||
|
cd ${0/update-source-strings.sh/}/..
|
||||||
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 \
|
||||||
@ -11,11 +14,3 @@ find $SRCDIR -name '*.cpp' -o -name '*.h' -o -name '*.c' | \
|
|||||||
sed -i "s/SOME DESCRIPTIVE TITLE\./Translation of dolphin-emu.pot to LANGUAGE/" Languages/po/dolphin-emu.pot
|
sed -i "s/SOME DESCRIPTIVE TITLE\./Translation of dolphin-emu.pot to LANGUAGE/" Languages/po/dolphin-emu.pot
|
||||||
sed -i "s/YEAR THE PACKAGE'S COPYRIGHT HOLDER/2003-2013/" Languages/po/dolphin-emu.pot
|
sed -i "s/YEAR THE PACKAGE'S COPYRIGHT HOLDER/2003-2013/" Languages/po/dolphin-emu.pot
|
||||||
sed -i "s/license as the PACKAGE package/license as the dolphin-emu package/" Languages/po/dolphin-emu.pot
|
sed -i "s/license as the PACKAGE package/license as the dolphin-emu package/" Languages/po/dolphin-emu.pot
|
||||||
|
|
||||||
# XXX: Disabled now that we use Transifex (the tool will handle this automatically).
|
|
||||||
#POTFILE=./Languages/po/dolphin-emu.pot
|
|
||||||
#PO_FILES=$(find ./Languages/po -name '*.po')
|
|
||||||
#for PO in $PO_FILES
|
|
||||||
#do
|
|
||||||
# msgmerge --quiet --update --backup=none -s $PO $POTFILE
|
|
||||||
#done
|
|
9
Languages/update-translated-strings.sh
Executable file
9
Languages/update-translated-strings.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This script goes through the translated .po files to ensure that they
|
||||||
|
# match dolphin-emu.pot and are correctly formatted. You must run this
|
||||||
|
# script before committing changes to the .po files, otherwise the .po
|
||||||
|
# files might get modified the next time you try to build using cmake.
|
||||||
|
|
||||||
|
POTFILE=./Languages/po/dolphin-emu.pot
|
||||||
|
find ./Languages/po -name '*.po' -exec msgmerge --quiet --update --backup=none -s {} $POTFILE \;
|
Reference in New Issue
Block a user