Skip to content

Commit

Permalink
Add make command update-translations for update translations from cro…
Browse files Browse the repository at this point in the history
…dwin (go-gitea#2097)

* add make command update-translations for update translations from crowdin to options/locale

* use curl & resolve double quote on make file
  • Loading branch information
lunny authored and lafriks committed Jul 3, 2017
1 parent f189ccd commit dde9a86
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dde9a86

Please sign in to comment.