Added automation of loc files transmission
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
base_path: /media/rick/Lab/Dev/temp
|
||||
|
||||
files:
|
||||
-
|
||||
source: 'Logic/*.resx'
|
||||
translation: '/Logic/%locale%/%file_name%.%locale%.resx'
|
||||
-
|
||||
source: 'Site/*.resx'
|
||||
translation: '/Site/%locale%/%file_name%.%locale%.resx'
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
crowdin-cli download translations
|
||||
|
||||
echo "Downloading latest build..."
|
||||
|
||||
wget https://crowdin.com/download/project/activizr.zip
|
||||
|
||||
echo "Unpacking..."
|
||||
|
||||
unzip activizr.zip
|
||||
|
||||
echo "Deploying..."
|
||||
|
||||
cp -r Logic/* ../../Logic/App_GlobalResources/
|
||||
cp -r Site/* ../../Site5/App_GlobalResources/
|
||||
rm -rf Logic
|
||||
rm -rf Site
|
||||
rm activizr.zip
|
||||
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Go down to Dev root
|
||||
|
||||
cd ../../..
|
||||
if [ -d temp ]; then
|
||||
rm -rf temp/*
|
||||
else
|
||||
mkdir temp
|
||||
fi
|
||||
|
||||
# Create structure
|
||||
|
||||
mkdir temp/Site
|
||||
mkdir temp/Logic
|
||||
|
||||
# Copy Site resources
|
||||
|
||||
echo "Copying resources to temporary folder..."
|
||||
|
||||
cp Swarmops/Site5/App_GlobalResources/*.resx temp/Site
|
||||
cp Swarmops/Logic/App_GlobalResources/*.resx temp/Logic
|
||||
cp Swarmops/BuildFiles/Localization/crowdin.yaml temp
|
||||
|
||||
echo "Uploading en-US source files..."
|
||||
|
||||
cd temp
|
||||
crowdin-cli upload sources
|
||||
cd ..
|
||||
rm -rf temp
|
||||
|
||||
cd Swarmops/BuildFiles/Localization
|
||||
Reference in New Issue
Block a user