IDEMPIERE-1554 scriptable Translation import
This commit is contained in:
parent
f03a80f3e2
commit
9d73baea76
|
@ -255,6 +255,7 @@ Export-Package: bsh,
|
|||
org.compiere.db,
|
||||
org.compiere.dbPort,
|
||||
org.compiere.impexp,
|
||||
org.compiere.install,
|
||||
org.compiere.interfaces,
|
||||
org.compiere.interfaces.impl,
|
||||
org.compiere.model,
|
||||
|
|
|
@ -116,4 +116,16 @@
|
|||
</run>
|
||||
</application>
|
||||
</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>
|
||||
|
|
|
@ -35,6 +35,9 @@ osgi.bundles=org.eclipse.equinox.ds@1:start,\
|
|||
javax.xml.rpc,\
|
||||
javax.xml.soap,\
|
||||
javax.xml,\
|
||||
org.apache.xerces@3:start,\
|
||||
org.apache.xml.resolver@3:start,\
|
||||
org.apache.xml.serializer@3:start,\
|
||||
javax.activation,\
|
||||
org.apache.activemq.activemq-core,\
|
||||
org.apache.activemq.kahadb,\
|
||||
|
|
|
@ -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
|
|
@ -1,21 +1,42 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id: RUN_TrlExport.sh,v 1.4 2005/01/22 21:59:15 jjanke Exp $
|
||||
|
||||
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
|
||||
|
||||
# $Id: RUN_TrlExport.sh,v 1.3 2005/01/22 21:59:15 jjanke Exp $
|
||||
echo Export idempiere Translation - $IDEMPIERE_HOME \($ADEMPIERE_DB_NAME\)
|
||||
|
||||
if [ $# -gt 0 ]
|
||||
then
|
||||
export AD_LANGUAGE=$1
|
||||
else
|
||||
# need to change this to reflect your language
|
||||
export AD_LANGUAGE=ca_ES
|
||||
export AD_LANGUAGE=es_CO
|
||||
fi
|
||||
|
||||
if [ $# -gt 1 ]
|
||||
then
|
||||
export DIRECTORY=$2
|
||||
else
|
||||
export DIRECTORY=$IDEMPIERE_HOME/data/$AD_LANGUAGE
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
echo This Procedure exports language $AD_LANGUAGE to directory $DIRECTORY
|
||||
|
||||
$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
|
||||
$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
|
||||
|
|
|
@ -1,21 +1,42 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $Id: RUN_TrlImport.sh,v 1.3 2005/01/22 21:59:15 jjanke Exp $
|
||||
|
||||
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
|
||||
|
||||
# $Id: RUN_TrlImport.sh,v 1.3 2005/01/22 21:59:15 jjanke Exp $
|
||||
echo Import idempiere Translation - $IDEMPIERE_HOME \($ADEMPIERE_DB_NAME\)
|
||||
|
||||
if [ $# -gt 0 ]
|
||||
then
|
||||
export AD_LANGUAGE=$1
|
||||
else
|
||||
# need to change this to reflect your language
|
||||
export AD_LANGUAGE=ca_ES
|
||||
export AD_LANGUAGE=es_CO
|
||||
fi
|
||||
|
||||
if [ $# -gt 1 ]
|
||||
then
|
||||
export DIRECTORY=$2
|
||||
else
|
||||
export DIRECTORY=$IDEMPIERE_HOME/data/$AD_LANGUAGE
|
||||
fi
|
||||
|
||||
cd ..
|
||||
|
||||
echo This Procedure imports language $AD_LANGUAGE from directory $DIRECTORY
|
||||
|
||||
$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
|
||||
$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
|
||||
|
|
|
@ -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
|
|
@ -3,12 +3,13 @@
|
|||
@if (%IDEMPIERE_HOME%) == () (CALL myEnvironment.bat Server) else (CALL %IDEMPIERE_HOME%\utils\myEnvironment.bat Server)
|
||||
@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%
|
||||
|
||||
@echo This Procedure exports language %AD_LANGUAGE% into directory %DIRECTORY%
|
||||
@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
|
||||
|
|
|
@ -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)
|
||||
@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%
|
||||
|
||||
@echo This Procedure imports language %AD_LANGUAGE% from directory %DIRECTORY%
|
||||
@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
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue