mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-06-30 14:40:09 +02:00
remove obsolete source strings, run xgettext without --join-existing
This commit is contained in:
parent
c78aeb3947
commit
f775734cac
|
@ -31,6 +31,7 @@ clean:
|
|||
-rm -f -- $(MOFILES)
|
||||
-rm -f -- $(POFILES:=~)
|
||||
|
||||
# to remove obsolete source strings, run xgettext without --join-existing
|
||||
$(TEMPLATE): $(FILES)
|
||||
xgettext --join-existing --from-code=UTF-8 \
|
||||
--language=Python --keyword=_ \
|
||||
|
@ -44,6 +45,7 @@ $(TEMPLATE): $(FILES)
|
|||
sed -i 's,CHARSET,UTF-8,' $(TEMPLATE)
|
||||
|
||||
%.po: $(TEMPLATE)
|
||||
msgattrib --set-obsolete --ignore-file=$(TEMPLATE) -o $@ $@
|
||||
msgattrib $(OPTS) --no-obsolete --output-file=$@ $@
|
||||
msguniq $(OPTS) --use-first --output-file=$@ $@
|
||||
msgmerge $(OPTS) --update $@ $(TEMPLATE)
|
||||
|
|
Loading…
Reference in New Issue
Block a user