2018-09-06 15:13:09 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ -e ~/.transifex.key ]; then
|
|
|
|
echo "## portal.json"
|
|
|
|
curl -i -L --user api:`cat ~/.transifex.key` \
|
|
|
|
-F file=@lemonldap-ng-portal/site/htdocs/static/languages/en.json \
|
|
|
|
-X PUT https://www.transifex.com/api/2/project/lemonldapng/resource/portaljson/content/
|
2019-04-23 15:21:05 +02:00
|
|
|
curl -i -L --user api:`cat ~/.transifex.key` \
|
|
|
|
-F file=@lemonldap-ng-portal/site/htdocs/static/languages/fr.json \
|
|
|
|
-X PUT https://www.transifex.com/api/2/project/lemonldapng/resource/portaljson/translation/fr/
|
2018-09-06 15:13:09 +02:00
|
|
|
echo
|
|
|
|
|
|
|
|
echo "## manager.json"
|
|
|
|
curl -i -L --user api:`cat ~/.transifex.key` \
|
|
|
|
-F file=@lemonldap-ng-manager/site/htdocs/static/languages/en.json \
|
|
|
|
-X PUT https://www.transifex.com/api/2/project/lemonldapng/resource/managerjson/content/
|
2019-04-23 15:21:05 +02:00
|
|
|
curl -i -L --user api:`cat ~/.transifex.key` \
|
|
|
|
-F file=@lemonldap-ng-manager/site/htdocs/static/languages/fr.json \
|
|
|
|
-X PUT https://www.transifex.com/api/2/project/lemonldapng/resource/managerjson/translation/fr/
|
2018-09-06 15:13:09 +02:00
|
|
|
echo
|
|
|
|
|
|
|
|
echo "## portal mail.json"
|
|
|
|
curl -i -L --user api:`cat ~/.transifex.key` \
|
|
|
|
-F file=@lemonldap-ng-portal/site/templates/common/mail/en.json \
|
|
|
|
-X PUT https://www.transifex.com/api/2/project/lemonldapng/resource/mailjson_1/content/
|
2019-04-23 15:21:05 +02:00
|
|
|
curl -i -L --user api:`cat ~/.transifex.key` \
|
|
|
|
-F file=@lemonldap-ng-portal/site/templates/common/mail/fr.json \
|
|
|
|
-X PUT https://www.transifex.com/api/2/project/lemonldapng/resource/mailjson_1/translation/fr/
|
2018-09-06 15:13:09 +02:00
|
|
|
echo
|
|
|
|
|
|
|
|
else
|
|
|
|
echo "No ~/.transifex.key file found, exiting" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|