2010-11-04 02:46:38 +07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-09-09 00:37:00 +07:00
|
|
|
if [ "$IDEMPIERE_HOME" ]; then
|
|
|
|
cd "$IDEMPIERE_HOME"/utils || (echo "Cannot cd $IDEMPIERE_HOME/utils"; exit 1)
|
2015-12-23 10:22:06 +07:00
|
|
|
else
|
2020-09-09 00:37:00 +07:00
|
|
|
cd "$(dirname "$0")" || (echo "Cannot cd"; exit 1)
|
2010-11-04 02:46:38 +07:00
|
|
|
fi
|
2020-09-09 00:37:00 +07:00
|
|
|
export ID_ENV=Server
|
|
|
|
. ./myEnvironment.sh
|
2010-11-04 02:46:38 +07:00
|
|
|
|
2020-09-09 00:37:00 +07:00
|
|
|
if [ "$JAVA_HOME" ]; then
|
2015-12-23 10:22:06 +07:00
|
|
|
JAVA=$JAVA_HOME/bin/java
|
|
|
|
else
|
|
|
|
JAVA=java
|
|
|
|
fi
|
2010-11-04 02:46:38 +07:00
|
|
|
|
2015-12-23 10:22:06 +07:00
|
|
|
# $Id: RUN_TrlImport.sh,v 1.3 2005/01/22 21:59:15 jjanke Exp $
|
2020-09-09 00:37:00 +07:00
|
|
|
echo Import idempiere Translation - "$IDEMPIERE_HOME" \("$ADEMPIERE_DB_NAME"\)
|
2015-12-23 10:22:06 +07:00
|
|
|
|
|
|
|
if [ $# -gt 0 ]
|
|
|
|
then
|
|
|
|
export AD_LANGUAGE=$1
|
|
|
|
else
|
|
|
|
# need to change this to reflect your language
|
|
|
|
export AD_LANGUAGE=es_CO
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ $# -gt 1 ]
|
|
|
|
then
|
|
|
|
export DIRECTORY=$2
|
|
|
|
else
|
|
|
|
export DIRECTORY=$IDEMPIERE_HOME/data/$AD_LANGUAGE
|
|
|
|
fi
|
2010-11-04 02:46:38 +07:00
|
|
|
|
2015-12-23 10:22:06 +07:00
|
|
|
cd ..
|
2010-11-04 02:46:38 +07:00
|
|
|
|
2020-09-09 00:37:00 +07:00
|
|
|
echo This Procedure imports language $AD_LANGUAGE from directory "$DIRECTORY"
|
2010-11-04 02:46:38 +07:00
|
|
|
|
2023-10-05 15:13:12 +07:00
|
|
|
"$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
|
2010-11-04 02:46:38 +07:00
|
|
|
|
2015-12-23 10:22:06 +07:00
|
|
|
echo Done
|
|
|
|
echo .
|
|
|
|
echo For problems, check log file in base directory
|