2020-01-02 22:59:00 +01:00
|
|
|
#!/bin/bash
|
2020-01-02 23:24:59 +01:00
|
|
|
#
|
|
|
|
# Sends the latest strings from the source code to crowdin.
|
|
|
|
# To use this, key must be set to a crowdin API key.
|
|
|
|
#
|
2020-01-02 22:59:00 +01:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
proj=anki
|
|
|
|
|
|
|
|
if [ "$key" = "" ]; then
|
|
|
|
echo "key not defined"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
./update-pot
|
|
|
|
|
|
|
|
curl \
|
|
|
|
-F "files[/anki.pot]=@anki.pot" \
|
|
|
|
https://api.crowdin.com/api/project/$proj/update-file?key=$key
|