diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-07-03 21:37:00 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-07-03 16:37:00 +0300 |
commit | dde9a8648e5bb4094fd419edb288f8f7e7690a8c (patch) | |
tree | f440100fa8acf794a3ae7adf978c2b2a12b82075 /Makefile | |
parent | f189ccd2d60231485f045ce70a523fe12e401912 (diff) | |
download | gitea-dde9a8648e5bb4094fd419edb288f8f7e7690a8c.tar.gz gitea-dde9a8648e5bb4094fd419edb288f8f7e7690a8c.zip |
Add make command update-translations for update translations from crodwin (#2097)
* add make command update-translations for update translations from crowdin to options/locale
* use curl & resolve double quote on make file
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -278,3 +278,13 @@ swagger-ui: .PHONY: assets assets: javascripts stylesheets + +.PHONY: update-translations +update-translations: + mkdir -p ./translations + cd ./translations && curl -L https://crowdin.com/download/project/gitea.zip > gitea.zip && unzip gitea.zip + rm ./translations/gitea.zip + $(SED_INPLACE) -e 's/="/=/g' -e 's/"$$//g' ./translations/*.ini + $(SED_INPLACE) -e 's/\\"/"/g' ./translations/*.ini + mv ./translations/*.ini ./options/locale/ + rmdir ./translations
\ No newline at end of file |