pass the first following parameter as PARAS
add messages_{langcode}.only support to only update for a specified language
This commit is contained in:
@ -9,9 +9,9 @@
|
|||||||
## need to cd into our orignal path - where we call sh.exe from.
|
## need to cd into our orignal path - where we call sh.exe from.
|
||||||
|
|
||||||
cd $CALLFROM
|
cd $CALLFROM
|
||||||
echo $PWD
|
## echo $PWD
|
||||||
|
|
||||||
## except this everything is the same with bundle-message.sh
|
## except this everything is the same with bundle-message.sh
|
||||||
## walking - public domain :-D
|
## walking - public domain :-D
|
||||||
|
|
||||||
source bundle-messages.sh
|
source bundle-messages.sh $PARAS
|
@ -1,6 +1,26 @@
|
|||||||
|
@echo off
|
||||||
|
set Callfrom=%cd%
|
||||||
|
set Paras=%1
|
||||||
|
|
||||||
rem before calling make sure you have msys and mingw 's "bin" path
|
rem before calling make sure you have msys and mingw 's "bin" path
|
||||||
rem in your current searching path
|
rem in your current searching path
|
||||||
rem type "set path" to check
|
rem type "set path" to check
|
||||||
@echo off
|
if not exist ..\locale\*.only goto updateALL
|
||||||
set Callfrom=%cd%
|
|
||||||
sh --login %cd%\bmsg.sh
|
rem put a messages_xx.only(eg messages_zh.only) into locale folder
|
||||||
|
rem this script will only touch the po file(eg zh) you specified, leaving other po files untact.
|
||||||
|
|
||||||
|
for %%i in (..\locale\*.only) do set PO=%%~ni
|
||||||
|
echo [Notice] Yu choose to Ony update the choosen file: %PO%.po
|
||||||
|
for %%i in (..\locale\*.po) do if not %%~ni==%PO% ren %%i %%~ni.po-
|
||||||
|
|
||||||
|
call sh --login %cd%\bmsg.sh
|
||||||
|
|
||||||
|
for %%i in (..\locale\*.po-) do if not %%~ni==%PO% ren %%i %%~ni.po
|
||||||
|
goto end
|
||||||
|
|
||||||
|
:updateALL
|
||||||
|
call sh --login %cd%\bmsg.sh
|
||||||
|
|
||||||
|
:end
|
||||||
|
echo End of Message Bundling
|
Reference in New Issue
Block a user