21 lines
338 B
Bash
Executable File
21 lines
338 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Sends the latest strings from the source code to crowdin.
|
|
# To use this, key must be set to a crowdin API key.
|
|
#
|
|
|
|
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
|