Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add make command update-translations for update translations from crodwin #2097

Merged
merged 2 commits into from
Jul 3, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 && wget https://crowdin.com/download/project/gitea.zip && tar zxvf gitea.zip
rm ./translations/gitea.zip
$(SED_INPLACE) 's/"`/`/g' ./translations/*.ini
$(SED_INPLACE) 's/`"/`/g' ./translations/*.ini
mv ./translations/*.ini ./options/locale/
rmdir ./translations