diff --git a/tools/crowdin-cli/README.md b/tools/crowdin-cli/README.md index 030c69a92..f06b120b7 100644 --- a/tools/crowdin-cli/README.md +++ b/tools/crowdin-cli/README.md @@ -15,9 +15,9 @@ This tool is being used by ASF developers for synchronization of strings/transla ## Before you begin -- Make sure that your ```crowdin_identity.yaml``` file exists - this is the file with login credentials that is not being committed to GitHub. If it doesn't exist yet (e.g. because you've just cloned the repo), create it from ```crowdin_identity_example.yaml``` and fill ```api_key``` that can be found **[here](http://l10n.asf.justarchi.net/project/archisteamfarm/settings#api)**. +- Make sure that your `crowdin_identity.yaml` file exists - this is the file with login credentials that is not being committed to GitHub. If it doesn't exist yet (e.g. because you've just cloned the repo), create it from `crowdin_identity_example.yaml` and fill `api_key` that can be found **[here](http://l10n.asf.justarchi.net/project/archisteamfarm/settings#api)**. -- Ensure that ```crowdin``` command is recognized by your OS. +- Ensure that `crowdin` command is recognized by your OS. --- @@ -25,14 +25,16 @@ This tool is being used by ASF developers for synchronization of strings/transla - Install **[Java JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html)**. - **[Set JAVA_HOME properly](https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html)**. -- Launch ```setup_crowdin.bat``` as administrator. -- Open new ```cmd``` prompt and verify that ```crowdin help``` indeed works. +- Launch `setup_crowdin.bat` as administrator. +- Open new `cmd` prompt and verify that `crowdin help` indeed works. --- ## Usage -- ```archi_download.bat``` for downloading translations from Crowdin (typically last commit before release). +- `archi_upload.bat` for pushing strings to Crowdin (when any `*Strings.resx` file gets modified). -- ```archi_upload.bat``` for pushing strings to Crowdin (when any ```*Strings.resx``` file gets modified). +- `archi_download.bat` for downloading translations from Crowdin (typically last commit before release). + +- `archi_sync.bat` for upload + download (tree sync). diff --git a/tools/crowdin-cli/archi_upload+download.bat b/tools/crowdin-cli/archi_upload+download.bat new file mode 100644 index 000000000..17915b14d --- /dev/null +++ b/tools/crowdin-cli/archi_upload+download.bat @@ -0,0 +1,5 @@ +@echo off +cd ..\\.. +call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yaml upload sources +call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yaml download +pause