diff --git a/tools/crowdin-cli/README.md b/tools/crowdin-cli/README.md index 9728686ce..a95b08f74 100644 --- a/tools/crowdin-cli/README.md +++ b/tools/crowdin-cli/README.md @@ -1,15 +1,13 @@ Crowdin CLI =================== -**[Latest release](https://downloads.crowdin.com/cli/v2/crowdin-cli.zip)** +**[Info](https://support.crowdin.com/cli-tool)** **[Source](https://github.com/crowdin/crowdin-cli-2)** -**[Help](https://support.crowdin.com/cli-tool/#cli-2)** - --- -This tool is being used by ASF developers for synchronization of strings/translations between GitHub and **[Crowdin](https://github.com/JustArchi/ArchiSteamFarm/wiki/Localization)**. If you're not ASF developer that has access to our localization platform, then you won't find anything interesting here. +Scripts included in this directory are used by ASF developers for synchronization of strings/translations between GitHub and **[Crowdin](https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Localization)**. If you're not ASF developer that has access to our localization platform, then you won't find anything interesting here. --- @@ -21,18 +19,7 @@ This tool is being used by ASF developers for synchronization of strings/transla ## Installation -### Windows - -- Install **[Java JRE](http://www.oracle.com/technetwork/java/javase/downloads/index.html)** (or entire JDK). -- **[Set JAVA_HOME properly](https://confluence.atlassian.com/doc/setting-the-java_home-variable-in-windows-8895.html)**. -- Launch `setup_crowdin.bat` as administrator. - -### Linux -- Install **[OpenJDK JRE](http://openjdk.java.net/install)** (or entire JDK). -- **[Set JAVA_HOME properly](https://stackoverflow.com/questions/24641536/how-to-set-java-home-in-linux-for-all-users)**. -- Launch `crowdin.sh` as root. - -Afterwards you should verify in shell that `crowdin help` command is recognized. +Follow **[instructions](https://support.crowdin.com/cli-tool/#installation)** and ensure that `crowdin` command is recognized by your shell. --- diff --git a/tools/crowdin-cli/crowdin-cli.jar b/tools/crowdin-cli/crowdin-cli.jar deleted file mode 100644 index 90bd9b4b5..000000000 Binary files a/tools/crowdin-cli/crowdin-cli.jar and /dev/null differ diff --git a/tools/crowdin-cli/crowdin.bat b/tools/crowdin-cli/crowdin.bat deleted file mode 100644 index a0673369d..000000000 --- a/tools/crowdin-cli/crowdin.bat +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -IF "%CROWDIN_HOME%"=="" (ECHO crowdin is NOT defined) ELSE (java -jar "%CROWDIN_HOME%\crowdin-cli.jar" %*) diff --git a/tools/crowdin-cli/crowdin.sh b/tools/crowdin-cli/crowdin.sh deleted file mode 100755 index 84b721cfe..000000000 --- a/tools/crowdin-cli/crowdin.sh +++ /dev/null @@ -1,26 +0,0 @@ -if type -p java; then - _java=java -elif [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]]; then - _java="$JAVA_HOME/bin/java" -else - echo "Looks like JAVA is not installed. You can download it from https://www.java.com/" -fi -if [[ "$_java" ]]; then - version=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}') - if [[ "$version" > "1.7" ]]; then - echo Your Java version is "$version" - OK - sudo cp crowdin-cli.jar /usr/local/bin - echo alias crowdin="'java -jar /usr/local/bin/crowdin-cli.jar'" >> ~/.bashrc - echo alias crowdin="'java -jar /usr/local/bin/crowdin-cli.jar'" >> ~/.bash_profile - - if [ -f ~/.bashrc ]; then - . ~/.bashrc - fi - - if [ -f ~/.bash_profile ]; then - . ~/.bash_profile - fi - else - echo Your Java version is "$version" - needs to be updated. You can download it from https://www.java.com/ - fi -fi diff --git a/tools/crowdin-cli/setup_crowdin.bat b/tools/crowdin-cli/setup_crowdin.bat deleted file mode 100644 index fdf9d6d26..000000000 --- a/tools/crowdin-cli/setup_crowdin.bat +++ /dev/null @@ -1,23 +0,0 @@ -@echo off -SETLOCAL -SET TEMPFILE=%TEMP%\tmpfile - -pushd %~dp0 -setx /M CROWDIN_HOME "%cd%" -setx /M PATH "%PATH%;%cd%" - -"%JAVA_HOME%\bin\java" -version 2>& 1 | FIND "java version" > %TEMPFILE% -SET /p VERSIONSTRING= < %TEMPFILE% -DEL %TEMPFILE% -SET MAJORVERSION=%VERSIONSTRING:~14,1% -SET MINORVERSION=%VERSIONSTRING:~16,1% -SET UPDATEVERSION=%VERSIONSTRING:~20,-1% -IF %MAJORVERSION% GTR 1 GOTO VALID -IF %MINORVERSION% GTR 7 GOTO VALID -IF %UPDATEVERSION% GTR 0 GOTO VALID -ECHO Your JAVA version should be updated. You can download it from https://www.java.com/ -GOTO EXIT - -:EXIT -ENDLOCAL -