IDEMPIERE-1554 scriptable Translation import

This commit is contained in:
Carlos Ruiz 2015-12-22 22:22:06 -05:00
parent f03a80f3e2
commit 9d73baea76
14 changed files with 124 additions and 41 deletions

View File

@ -255,6 +255,7 @@ Export-Package: bsh,
org.compiere.db, org.compiere.db,
org.compiere.dbPort, org.compiere.dbPort,
org.compiere.impexp, org.compiere.impexp,
org.compiere.install,
org.compiere.interfaces, org.compiere.interfaces,
org.compiere.interfaces.impl, org.compiere.interfaces.impl,
org.compiere.model, org.compiere.model,

View File

@ -116,4 +116,16 @@
</run> </run>
</application> </application>
</extension> </extension>
<extension
id="org.adempiere.install.translation"
point="org.eclipse.core.runtime.applications">
<application
cardinality="singleton-global"
thread="main"
visible="true">
<run
class="org.compiere.install.Translation">
</run>
</application>
</extension>
</plugin> </plugin>

View File

@ -35,6 +35,9 @@ osgi.bundles=org.eclipse.equinox.ds@1:start,\
javax.xml.rpc,\ javax.xml.rpc,\
javax.xml.soap,\ javax.xml.soap,\
javax.xml,\ javax.xml,\
org.apache.xerces@3:start,\
org.apache.xml.resolver@3:start,\
org.apache.xml.serializer@3:start,\
javax.activation,\ javax.activation,\
org.apache.activemq.activemq-core,\ org.apache.activemq.activemq-core,\
org.apache.activemq.kahadb,\ org.apache.activemq.kahadb,\

View File

@ -0,0 +1,27 @@
#!/bin/sh
if [ $IDEMPIERE_HOME ]; then
cd $IDEMPIERE_HOME/utils
else
cd "`dirname $0`"
fi
. ./myEnvironment.sh Server
if [ $JAVA_HOME ]; then
JAVA=$JAVA_HOME/bin/java
else
JAVA=java
fi
# RUN_SyncTerm.sh
echo Synchronize idempiere Terminology - $IDEMPIERE_HOME \($ADEMPIERE_DB_NAME\)
cd ..
echo This Procedure synchronize terminology
$JAVA -Dosgi.compatibility.bootdelegation=true -Dosgi.noShutdown=false -jar plugins/org.eclipse.equinox.launcher_1.*.jar -application org.adempiere.install.translation sync
echo Done
echo .
echo For problems, check log file in base directory

View File

@ -1,21 +1,42 @@
#!/bin/sh #!/bin/sh
# $Id: RUN_TrlExport.sh,v 1.4 2005/01/22 21:59:15 jjanke Exp $
if [ $IDEMPIERE_HOME ]; then if [ $IDEMPIERE_HOME ]; then
cd $IDEMPIERE_HOME/utils cd $IDEMPIERE_HOME/utils
else
cd "`dirname $0`"
fi fi
. ./myEnvironment.sh Server . ./myEnvironment.sh Server
echo Export idempiere Translation - $IDEMPIERE_HOME \($ADEMPIERE_DB_NAME\) if [ $JAVA_HOME ]; then
JAVA=$JAVA_HOME/bin/java
else
JAVA=java
fi
# need to change this to reflect your language # $Id: RUN_TrlExport.sh,v 1.3 2005/01/22 21:59:15 jjanke Exp $
export AD_LANGUAGE=ca_ES echo Export idempiere Translation - $IDEMPIERE_HOME \($ADEMPIERE_DB_NAME\)
export DIRECTORY=$IDEMPIERE_HOME/data/$AD_LANGUAGE if [ $# -gt 0 ]
then
export AD_LANGUAGE=$1
else
# need to change this to reflect your language
export AD_LANGUAGE=es_CO
fi
echo This Procedure exports language $AD_LANGUAGE to directory $DIRECTORY if [ $# -gt 1 ]
then
export DIRECTORY=$2
else
export DIRECTORY=$IDEMPIERE_HOME/data/$AD_LANGUAGE
fi
$JAVA -Dosgi.compatibility.bootdelegation=true -Dosgi.noShutdown=true -Dosgi.framework.activeThreadType=normal -XX:MaxPermSize=192m -jar plugins/org.eclipse.equinox.launcher_1.*.jar -console 12612 -application org.adempiere.ui.translation export $DIRECTORY $AD_LANGUAGE cd ..
echo Done echo This Procedure exports language $AD_LANGUAGE to directory $DIRECTORY
$JAVA -Dosgi.compatibility.bootdelegation=true -Dosgi.noShutdown=false -jar plugins/org.eclipse.equinox.launcher_1.*.jar -application org.adempiere.install.translation export $DIRECTORY $AD_LANGUAGE
echo Done
echo .
echo For problems, check log file in base directory

View File

@ -1,21 +1,42 @@
#!/bin/sh #!/bin/sh
# $Id: RUN_TrlImport.sh,v 1.3 2005/01/22 21:59:15 jjanke Exp $
if [ $IDEMPIERE_HOME ]; then if [ $IDEMPIERE_HOME ]; then
cd $IDEMPIERE_HOME/utils cd $IDEMPIERE_HOME/utils
else
cd "`dirname $0`"
fi fi
. ./myEnvironment.sh Server . ./myEnvironment.sh Server
echo Import idempiere Translation - $IDEMPIERE_HOME \($ADEMPIERE_DB_NAME\) if [ $JAVA_HOME ]; then
JAVA=$JAVA_HOME/bin/java
else
JAVA=java
fi
# need to change this to reflect your language # $Id: RUN_TrlImport.sh,v 1.3 2005/01/22 21:59:15 jjanke Exp $
export AD_LANGUAGE=ca_ES echo Import idempiere Translation - $IDEMPIERE_HOME \($ADEMPIERE_DB_NAME\)
export DIRECTORY=$IDEMPIERE_HOME/data/$AD_LANGUAGE if [ $# -gt 0 ]
then
export AD_LANGUAGE=$1
else
# need to change this to reflect your language
export AD_LANGUAGE=es_CO
fi
echo This Procedure imports language $AD_LANGUAGE from directory $DIRECTORY if [ $# -gt 1 ]
then
export DIRECTORY=$2
else
export DIRECTORY=$IDEMPIERE_HOME/data/$AD_LANGUAGE
fi
$JAVA -Dosgi.compatibility.bootdelegation=true -Dosgi.noShutdown=true -Dosgi.framework.activeThreadType=normal -XX:MaxPermSize=192m -jar plugins/org.eclipse.equinox.launcher_1.*.jar -console 12612 -application org.adempiere.ui.translation import $DIRECTORY $AD_LANGUAGE cd ..
echo Done echo This Procedure imports language $AD_LANGUAGE from directory $DIRECTORY
$JAVA -Dosgi.compatibility.bootdelegation=true -Dosgi.noShutdown=false -jar plugins/org.eclipse.equinox.launcher_1.*.jar -application org.adempiere.install.translation import $DIRECTORY $AD_LANGUAGE
echo Done
echo .
echo For problems, check log file in base directory

View File

@ -0,0 +1,12 @@
@Rem $Id: RUN_TrlImport.bat,v 1.4 2005/09/16 00:49:37 jjanke Imp $
@if (%IDEMPIERE_HOME%) == () (CALL myEnvironment.bat Server) else (CALL %IDEMPIERE_HOME%\utils\myEnvironment.bat Server)
@Title Import Translation - %IDEMPIERE_HOME% (%ADEMPIERE_DB_NAME%)
@echo This Procedure synchronizes idempiere terminology
@pause
FOR %%c in (plugins\org.eclipse.equinox.launcher_1.*.jar) DO set JARFILE=%%c
@"%JAVA_HOME%\bin\java" -Dosgi.compatibility.bootdelegation=true -Dosgi.noShutdown=false -jar %JARFILE% -application org.adempiere.install.translation sync
@pause

View File

@ -3,12 +3,13 @@
@if (%IDEMPIERE_HOME%) == () (CALL myEnvironment.bat Server) else (CALL %IDEMPIERE_HOME%\utils\myEnvironment.bat Server) @if (%IDEMPIERE_HOME%) == () (CALL myEnvironment.bat Server) else (CALL %IDEMPIERE_HOME%\utils\myEnvironment.bat Server)
@Title Export Translation - %IDEMPIERE_HOME% (%ADEMPIERE_DB_NAME%) @Title Export Translation - %IDEMPIERE_HOME% (%ADEMPIERE_DB_NAME%)
@SET AD_LANGUAGE=de_DE @SET AD_LANGUAGE=es_CO
@SET DIRECTORY=%IDEMPIERE_HOME%\data\%AD_LANGUAGE% @SET DIRECTORY=%IDEMPIERE_HOME%\data\%AD_LANGUAGE%
@echo This Procedure exports language %AD_LANGUAGE% into directory %DIRECTORY% @echo This Procedure exports language %AD_LANGUAGE% into directory %DIRECTORY%
@pause @pause
@"%JAVA_HOME%\bin\java" -cp %CLASSPATH% org.compiere.install.Translation %DIRECTORY% %AD_LANGUAGE% export FOR %%c in (plugins\org.eclipse.equinox.launcher_1.*.jar) DO set JARFILE=%%c
@"%JAVA_HOME%\bin\java" -Dosgi.compatibility.bootdelegation=true -Dosgi.noShutdown=false -jar %JARFILE% -application org.adempiere.install.translation export %DIRECTORY% %AD_LANGUAGE%
@pause @pause

View File

@ -1,14 +1,15 @@
@Rem $Id: RUN_TrlImport.bat,v 1.4 2005/09/16 00:49:37 jjanke Exp $ @Rem $Id: RUN_TrlImport.bat,v 1.4 2005/09/16 00:49:37 jjanke Imp $
@if (%IDEMPIERE_HOME%) == () (CALL myEnvironment.bat Server) else (CALL %IDEMPIERE_HOME%\utils\myEnvironment.bat Server) @if (%IDEMPIERE_HOME%) == () (CALL myEnvironment.bat Server) else (CALL %IDEMPIERE_HOME%\utils\myEnvironment.bat Server)
@Title Import Translation - %IDEMPIERE_HOME% (%ADEMPIERE_DB_NAME%) @Title Import Translation - %IDEMPIERE_HOME% (%ADEMPIERE_DB_NAME%)
@SET AD_LANGUAGE=de_DE @SET AD_LANGUAGE=es_CO
@SET DIRECTORY=%IDEMPIERE_HOME%\data\%AD_LANGUAGE% @SET DIRECTORY=%IDEMPIERE_HOME%\data\%AD_LANGUAGE%
@echo This Procedure imports language %AD_LANGUAGE% from directory %DIRECTORY% @echo This Procedure imports language %AD_LANGUAGE% from directory %DIRECTORY%
@pause @pause
@"%JAVA_HOME%\bin\java" -cp %CLASSPATH% org.compiere.install.Translation %DIRECTORY% %AD_LANGUAGE% import FOR %%c in (plugins\org.eclipse.equinox.launcher_1.*.jar) DO set JARFILE=%%c
@"%JAVA_HOME%\bin\java" -Dosgi.compatibility.bootdelegation=true -Dosgi.noShutdown=false -jar %JARFILE% -application org.adempiere.install.translation import %DIRECTORY% %AD_LANGUAGE%
@pause @pause

View File

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
id="org.adempiere.install.translation"
point="org.eclipse.core.runtime.applications">
<application
cardinality="singleton-global"
thread="main"
visible="true">
<run
class="org.compiere.install.Translation">
</run>
</application>
</extension>
</plugin>