mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Translation: Remove deprecated --sorted-output/-s option
See https://lists.nongnu.org/archive/html/info-gnu/2024-12/msg00000.html
This commit is contained in:
@ -8,7 +8,7 @@ cd "$(dirname "$0")/.."
|
|||||||
# Scan the source code for strings and put them in dolphin-emu.pot
|
# Scan the source code for strings and put them in dolphin-emu.pot
|
||||||
SRCDIR=Source
|
SRCDIR=Source
|
||||||
find $SRCDIR -name '*.cpp' -o -name '*.h' -o -name '*.c' | sort -fd | \
|
find $SRCDIR -name '*.cpp' -o -name '*.h' -o -name '*.c' | sort -fd | \
|
||||||
xgettext -s -p ./Languages/po -o dolphin-emu.pot --package-name="Dolphin Emulator" \
|
xgettext -p ./Languages/po -o dolphin-emu.pot --package-name="Dolphin Emulator" \
|
||||||
--keyword=_ \
|
--keyword=_ \
|
||||||
--keyword=AskYesNoFmtT \
|
--keyword=AskYesNoFmtT \
|
||||||
--keyword=CriticalAlertFmtT \
|
--keyword=CriticalAlertFmtT \
|
||||||
@ -24,7 +24,7 @@ find $SRCDIR -name '*.cpp' -o -name '*.h' -o -name '*.c' | sort -fd | \
|
|||||||
--add-comments=i18n --from-code=utf-8 -f -
|
--add-comments=i18n --from-code=utf-8 -f -
|
||||||
|
|
||||||
# Copy strings from qt-strings.pot to dolphin-emu.pot
|
# Copy strings from qt-strings.pot to dolphin-emu.pot
|
||||||
xgettext -s -p ./Languages/po -o dolphin-emu.pot --package-name="Dolphin Emulator" \
|
xgettext -p ./Languages/po -o dolphin-emu.pot --package-name="Dolphin Emulator" \
|
||||||
-j ./Languages/po/qt-strings.pot
|
-j ./Languages/po/qt-strings.pot
|
||||||
|
|
||||||
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
|
||||||
|
@ -7,4 +7,4 @@
|
|||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
POTFILE=./Languages/po/dolphin-emu.pot
|
POTFILE=./Languages/po/dolphin-emu.pot
|
||||||
find ./Languages/po -name '*.po' -exec msgmerge --quiet --update -N --backup=none -s {} $POTFILE \;
|
find ./Languages/po -name '*.po' -exec msgmerge --quiet --update -N --backup=none {} $POTFILE \;
|
||||||
|
@ -574,7 +574,7 @@ if(GETTEXT_MSGFMT_EXECUTABLE)
|
|||||||
else()
|
else()
|
||||||
add_custom_command(OUTPUT ${mo}
|
add_custom_command(OUTPUT ${mo}
|
||||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${mo_dir}
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${mo_dir}
|
||||||
COMMAND ${GETTEXT_MSGMERGE_EXECUTABLE} --quiet --update --backup=none -s ${po} ${pot_file}
|
COMMAND ${GETTEXT_MSGMERGE_EXECUTABLE} --quiet --update --backup=none ${po} ${pot_file}
|
||||||
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${mo} ${po}
|
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${mo} ${po}
|
||||||
DEPENDS ${po}
|
DEPENDS ${po}
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user