From dde9a8648e5bb4094fd419edb288f8f7e7690a8c Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 3 Jul 2017 21:37:00 +0800 Subject: [PATCH] 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 --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 659af47f4..999cced67 100644 --- a/Makefile +++ b/Makefile @@ -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