mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
remove obsolete source strings, run xgettext without --join-existing
This commit is contained in:
parent
c78aeb3947
commit
f775734cac
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue