::@echo off

:: Add to VS Pre-Build Step
::------------------------------------
::cd "$(ProjectDir)/v2/locale/"
::"$(ProjectDir)/v2/locale/concat.bat"
::
:: Or MSBuild ...
:: <Target Name="BeforeBuild">
::  <Exec WorkingDirectory="$(ProjectDir)/v2/" Command="$(ProjectDir)/v2/concat.bat"/>
::  <Exec Command="$(ProjectDir)/v2/lib/jsl-0.3.0/jsl.exe -conf $(ProjectDir)/v2/lib/jsl-0.3.0/jsl.conf" ContinueOnError="false">
::      <Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
::  </Exec>
::  <Error Text="Error running JSLint" Condition="'$(ErrorCode)'&gt;'0'" />
:: </Target>
::------------------------------------

:: English
del Messages_en.properties
for /r "./" %%F in (*_en.properties) do type "%%F" >> Messages_en.properties
::xcopy /y Messages_en.properties Messages.properties

:: Spanish
del Messages_es.properties
for /r "./" %%F in (*_es.properties) do type "%%F" >> Messages_es.properties

:: Duch
del Messages_nl.properties
for /r "./" %%F in (*_nl.properties) do type "%%F" >> Messages_nl.properties

:: Arabic
del Messages_ar.properties
for /r "./" %%F in (*_ar.properties) do type "%%F" >> Messages_ar.properties

:: Urdo
del Messages_ur.properties
for /r "./" %%F in (*_ur.properties) do type "%%F" >> Messages_ur.properties
