Update crowdin for wiki localization

This commit is contained in:
JustArchi 2018-05-08 09:19:56 +02:00
parent 221aad25eb
commit 20c9c6c478
8 changed files with 26 additions and 14 deletions

2
.gitignore vendored
View file

@ -19,7 +19,7 @@ out
ArchiSteamFarm/out
# Ignore crowdin CLI secret
tools/crowdin-cli/crowdin_identity.yaml
tools/crowdin-cli/crowdin_identity.yml
#################
## Visual Studio

View file

@ -1,8 +0,0 @@
"preserve_hierarchy": true
files:
- source: /ArchiSteamFarm/Localization/Strings.resx
translation: /ArchiSteamFarm/Localization/Strings.%locale%.resx
- source: /ArchiSteamFarm/www/locale/strings.json
translation: /ArchiSteamFarm/www/locale/strings.%locale%.json
- source: /WebConfigGenerator/src/locale/strings.json
translation: /WebConfigGenerator/src/locale/%locale%.json

20
crowdin.yml Normal file
View file

@ -0,0 +1,20 @@
"preserve_hierarchy": true
"files": [
{
"source": "/ArchiSteamFarm/Localization/Strings.resx",
"translation": "/ArchiSteamFarm/Localization/Strings.%locale%.resx"
},
{
"source": "/ArchiSteamFarm/www/locale/strings.json",
"translation": "/ArchiSteamFarm/www/locale/strings.%locale%.json"
},
{
"source": "/WebConfigGenerator/src/locale/strings.json",
"translation": "/WebConfigGenerator/src/locale/%locale%.json"
},
{
"source": "/wiki/*.md",
"translation": "/wiki/locale/%file_name%-%locale%.%file_extension%",
"ignore": [ "/**/_*.md" ]
}
]

View file

@ -15,7 +15,7 @@ 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.yml` 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.yml` 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.

View file

@ -1,7 +1,7 @@
@echo off
pushd %~dp0
cd ..\\..
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yaml download
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml download
git reset
git add -A "ArchiSteamFarm\Localization\*.resx" "ArchiSteamFarm\www\locale\*.json" "WebConfigGenerator\src\locale\*.json"
git commit -m "Translations update"

View file

@ -1,8 +1,8 @@
@echo off
pushd %~dp0
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
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
git add -A "ArchiSteamFarm\Localization\*.resx" "ArchiSteamFarm\www\locale\*.json" "WebConfigGenerator\src\locale\*.json"
git commit -m "Translations update"

View file

@ -1,5 +1,5 @@
@echo off
pushd %~dp0
cd ..\\..
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yaml upload sources
call crowdin -b master --identity tools\\crowdin-cli\\crowdin_identity.yml upload sources
pause