mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Fix l10n of JS strings with format args
The translate() function with a variable number of parameters couldn't be used in conjunction with plural forms support in Boost.Locale, and wasn't getting picked up by the pre-commit hook. Also detect l10n strings in the query handling header files, though someone else had already added them to the POT file.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
# commit if more than one line in it has changed, otherwise discard any changes
|
||||
# to it.
|
||||
|
||||
xgettext -k"translate:1,1t" -k"translate:1c,2,t" --add-location=full --from-code=utf-8 --package-name=LOOT --package-version=0.10.1 --copyright-holder="WrinklyNinja" --msgid-bugs-address="https://github.com/loot/loot/issues" -o resources/l10n/template.pot src/gui/html/js/*.* src/gui/*.cpp src/backend/*/*.* src/backend/*.*
|
||||
xgettext -k"translate:1,1t" -k"translateFormatted:1" --add-location=full --from-code=utf-8 --package-name=LOOT --package-version=0.10.1 --copyright-holder="WrinklyNinja" --msgid-bugs-address="https://github.com/loot/loot/issues" -o resources/l10n/template.pot src/gui/html/js/*.* src/gui/*.cpp src/gui/query/*.h src/backend/*/*.* src/backend/*.*
|
||||
|
||||
sed -i 's|charset=CHARSET|charset=UTF-8|' resources/l10n/template.pot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user