mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-05 00:54:06 +03:00
add transifex message file integration
This commit is contained in:
parent
70b1a8b1ce
commit
d2d04824cf
13
Makefile
13
Makefile
@ -758,6 +758,19 @@ define clean_install_messages
|
||||
)
|
||||
endef
|
||||
|
||||
.PHONY: messages-split-tfx messages-fetch-tfx messages-import-tfx
|
||||
|
||||
# split fat messages into properties files suitable for uploading to transifex
|
||||
messages-split-tfx:
|
||||
for splitlang in $(FAT_LANGUAGES);do perl ./utils/split-messages.pl -l $${splitlang} -f transifex -p any -o Messages.any.$${splitlang}.tfx resources/FatMessages;done
|
||||
|
||||
# download property files from transifex
|
||||
messages-fetch-tfx:
|
||||
for splitlang in $(FAT_LANGUAGES);do $(RM) Messages.any.$${splitlang}.tfx ; perl ./utils/fetch-transifex.pl -w insecure -l $${splitlang} -o Messages.any.$${splitlang}.tfx ;done
|
||||
|
||||
# merge property files into fat messages
|
||||
messages-import-tfx: messages-fetch-tfx
|
||||
for tfxlang in $(FAT_LANGUAGES);do perl ./utils/import-messages.pl -l $${tfxlang} -p any -f transifex -o resources/FatMessages -i resources/FatMessages -I Messages.any.$${tfxlang}.tfx ; $(RM) Messages.any.$${tfxlang}.tfx; done
|
||||
|
||||
# Target installs executable on the host system
|
||||
install: all-program install-$(TARGET)
|
||||
|
Loading…
x
Reference in New Issue
Block a user