mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Update my crowdin scripts
This commit is contained in:
parent
08ad3450c9
commit
c8f322e9c7
6 changed files with 57 additions and 47 deletions
|
@ -32,8 +32,8 @@ This tool is being used by ASF developers for synchronization of strings/transla
|
|||
|
||||
## Usage
|
||||
|
||||
- `archi_upload.bat` for pushing strings to Crowdin (when any `*Strings.resx` file gets modified).
|
||||
- `archi_upload.ps1` for pushing strings to Crowdin.
|
||||
|
||||
- `archi_download.bat` for downloading translations from Crowdin (typically last commit before release).
|
||||
- `archi_download.ps1` for downloading translations from Crowdin (typically last commit before release).
|
||||
|
||||
- `archi_sync.bat` for upload + download (tree sync, e.g. when modifying/removing original strings).
|
||||
- `archi_sync.ps1` for upload + download (tree sync).
|
||||
|
|
|
@ -1,14 +1,18 @@
|
|||
@echo off
|
||||
pushd %~dp0
|
||||
cd ..\\..
|
||||
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml download
|
||||
Set-StrictMode -Version Latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
|
||||
Set-Location $PSScriptRoot
|
||||
Set-Location ..\\..
|
||||
|
||||
crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml download
|
||||
git reset
|
||||
|
||||
cd wiki
|
||||
Push-Location -Path wiki
|
||||
git pull
|
||||
git add -A "locale\*.md"
|
||||
git commit -m "Translations update"
|
||||
cd ..
|
||||
Pop-Location
|
||||
|
||||
git add -A "ArchiSteamFarm\Localization\*.resx" "ArchiSteamFarm\www\locale\*.json" "WebConfigGenerator\src\locale\*.json" "wiki\locale\*.md"
|
||||
git commit -m "Translations update"
|
|
@ -1,26 +0,0 @@
|
|||
@echo off
|
||||
pushd %~dp0
|
||||
cd ..\\..
|
||||
|
||||
cd wiki
|
||||
git reset --hard
|
||||
git clean -fd
|
||||
git pull
|
||||
cd ..
|
||||
|
||||
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml upload sources
|
||||
|
||||
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml download
|
||||
git reset
|
||||
|
||||
cd wiki
|
||||
git pull
|
||||
git add -A "locale\*.md"
|
||||
git commit -m "Translations update"
|
||||
cd ..
|
||||
|
||||
git add -A "ArchiSteamFarm\Localization\*.resx" "ArchiSteamFarm\www\locale\*.json" "WebConfigGenerator\src\locale\*.json" "wiki\locale\*.md"
|
||||
git commit -m "Translations update"
|
||||
|
||||
git push --recurse-submodules=on-demand
|
||||
pause
|
29
tools/crowdin-cli/archi_sync.ps1
Normal file
29
tools/crowdin-cli/archi_sync.ps1
Normal file
|
@ -0,0 +1,29 @@
|
|||
Set-StrictMode -Version Latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
|
||||
Set-Location $PSScriptRoot
|
||||
Set-Location ..\\..
|
||||
|
||||
Push-Location -Path wiki
|
||||
git reset --hard
|
||||
git clean -fd
|
||||
git pull
|
||||
Pop-Location
|
||||
|
||||
crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml upload sources
|
||||
|
||||
crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml download
|
||||
git reset
|
||||
|
||||
Push-Location -Path wiki
|
||||
git pull
|
||||
git add -A "locale\*.md"
|
||||
git commit -m "Translations update"
|
||||
Pop-Location
|
||||
|
||||
git add -A "ArchiSteamFarm\Localization\*.resx" "ArchiSteamFarm\www\locale\*.json" "WebConfigGenerator\src\locale\*.json" "wiki\locale\*.md"
|
||||
git commit -m "Translations update"
|
||||
|
||||
git push --recurse-submodules=on-demand
|
||||
pause
|
|
@ -1,12 +0,0 @@
|
|||
@echo off
|
||||
pushd %~dp0
|
||||
cd ..\\..
|
||||
|
||||
cd wiki
|
||||
git reset --hard
|
||||
git clean -fd
|
||||
git pull
|
||||
cd ..
|
||||
|
||||
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml upload sources
|
||||
pause
|
15
tools/crowdin-cli/archi_upload.ps1
Normal file
15
tools/crowdin-cli/archi_upload.ps1
Normal file
|
@ -0,0 +1,15 @@
|
|||
Set-StrictMode -Version Latest
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
|
||||
Set-Location $PSScriptRoot
|
||||
Set-Location ..\\..
|
||||
|
||||
Push-Location -Path wiki
|
||||
git reset --hard
|
||||
git clean -fd
|
||||
git pull
|
||||
Pop-Location
|
||||
|
||||
crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml upload sources
|
||||
pause
|
Loading…
Reference in a new issue