mirror of https://github.com/odrling/Aegisub
po/Make_pot: replace xmlstarelet+jq with gettext
gettext can deal with AppData (and other XML files) since version 0.19.6 (2015). We already depend on gettext anyway so let’s utilise this, to get rid of two build dependencies and simplify the extraction logic. This depends on the removal of underscore prefixes as done in a prior commit. After this the developer name "Aegisub Group" is now also treated as a translateable string.
This commit is contained in:
parent
6d9901ee3c
commit
f417f6f1ad
|
@ -45,9 +45,8 @@ find ../automation -name *.lua \
|
|||
xgettext ../packages/desktop/aegisub.desktop.in.in \
|
||||
--language=Desktop --join-existing --omit-header -o aegisub.pot
|
||||
|
||||
for i in 'name' 'summary' 'p' 'li' 'caption'; do
|
||||
xmlstarlet sel -t -v "//$i" ../packages/desktop/aegisub.appdata.xml.in.in | jq -R .
|
||||
done | nl -v0 -w1 -s'|' | sed -re 's/^/aegisub.appdata.xml|/' | maybe_append
|
||||
xgettext ../packages/desktop/aegisub.appdata.xml.in.in \
|
||||
--language=AppData --join-existing --omit-header -o aegisub.pot
|
||||
|
||||
grep '^_[A-Za-z0-9]*=.*' ../packages/win_installer/fragment_strings.iss.in | while read line
|
||||
do
|
||||
|
|
Loading…
Reference in New Issue