Added automation of loc files transmission

This commit is contained in:
Rick Falkvinge
2014-10-10 19:10:29 +02:00
parent 99999be24e
commit ac3a06e6de
169 changed files with 29008 additions and 31 deletions
+9
View File
@@ -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'
+18
View File
@@ -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
+32
View File
@@ -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