mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Crowdin update
This commit is contained in:
@@ -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.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Binary file not shown.
@@ -1,2 +0,0 @@
|
||||
@echo off
|
||||
IF "%CROWDIN_HOME%"=="" (ECHO crowdin is NOT defined) ELSE (java -jar "%CROWDIN_HOME%\crowdin-cli.jar" %*)
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user