--- a/ext-sources/acroread-combined-langs Thu Apr 03 16:00:31 2008 +0000
+++ b/ext-sources/acroread-combined-langs Thu Apr 03 18:05:09 2008 +0000
@@ -8,142 +8,54 @@
{
ST_ER_AR02="ERROR: Cannot find installation directory."
ST_LANG="ENU"
+ ST_SMALL_N="n"
ST_ER_AR01="ERROR: Cannot determine current directory."
ST_ICE_INFO_03="The website presented the following Certificate"
ST_ER_AR04="ERROR: The environment variable TMPDIR points to an invalid path."
ST_ICE_INFO_05="Certificate successfully installed."
ST_ER_DIR="ERROR: Cannot make directory %s."
+ ST_YES="yes"
ST_ER_AR03="ERROR: Cannot find %s."
ST_ICE_INFO_07="Unable to find openssl, please make sure the openssl binary is in the PATH"
ST_INFO_AR04="Installed platform(s) include the following:"
ST_VERSION="version"
ST_INFO_AR01="The OS named %s is currently not installed."
ST_ICE_INFO_04="Do you want to accept and install it (y|n)? "
+ ST_CAPS_Y="Y"
ST_ICE_INFO_01="Fetching certificate from website...."
ST_ICE_INFO_02="Processing ...."
ST_ICE_INFO_08="Not installing the certificate."
ST_INFO_AR03="Try running on an installed platform and connecting to your display."
ST_ICE_INFO_06="There was a problem installing the certificate"
+ ST_SMALL_Y="y"
ST_ER_AR05="%s not installed for this configuration, %s."
}
-set_lang_CHS()
-{
- ST_ER_AR02="�������ҵ���װ·����"
- ST_LANG="CHS"
- ST_ER_AR01="������ȷ����ǰ·����"
- ST_ICE_INFO_03="��վ�ṩ������֤��"
- ST_ER_AR04="���������� TMPDIR ָ����Ч��·����"
- ST_ICE_INFO_05="֤���ѳɹ���װ��"
- ST_ER_DIR="����������·�� %s��"
- ST_ER_AR03="�������ҵ� %s��"
- ST_ICE_INFO_07="�Ҳ��� openssl����ȷ�� PATH �а��� openssl ������"
- ST_INFO_AR04="�Ѱ�װ��ƽ̨������"
- ST_VERSION="�汾"
- ST_INFO_AR01="��ǰδ��װ��Ϊ %s �IJ���ϵͳ��"
- ST_ICE_INFO_04="Ҫ���ܲ���װ֤���� (y|n)��"
- ST_ICE_INFO_01="���ڴ���վ��ȡ֤��..."
- ST_ICE_INFO_02="���ڴ���..."
- ST_ICE_INFO_08="û�а�װ֤�顣"
- ST_INFO_AR03="�������Ѱ�װ��ƽ̨�����в����ӵ�������ʾ�豸��"
- ST_ICE_INFO_06="��װ֤��ʱ��������"
- ST_ER_AR05="�ڱ������£�%s δ��װ��%s��"
-}
-
-
-set_lang_CHS_utf()
-{
- ST_ER_AR02="错误:无法找到安装路径。"
- ST_LANG="CHS"
- ST_ER_AR01="错误:无法确定当前路径。"
- ST_ICE_INFO_03="网站提供了以下证书"
- ST_ER_AR04="错误:环境变量 TMPDIR 指向无效的路径。"
- ST_ICE_INFO_05="证书已成功安装。"
- ST_ER_DIR="错误:无法建立路径 %s。"
- ST_ER_AR03="错误:无法找到 %s。"
- ST_ICE_INFO_07="找不到 openssl,请确保 PATH 中包含 openssl 二进制"
- ST_INFO_AR04="已安装的平台包括:"
- ST_VERSION="版本"
- ST_INFO_AR01="当前未安装名为 %s 的操作系统。"
- ST_ICE_INFO_04="要接受并安装证书吗 (y|n)?"
- ST_ICE_INFO_01="正在从网站获取证书..."
- ST_ICE_INFO_02="正在处理..."
- ST_ICE_INFO_08="没有安装证书。"
- ST_INFO_AR03="尝试在已安装的平台上运行并连接到您的显示设备。"
- ST_ICE_INFO_06="安装证书时出现问题"
- ST_ER_AR05="在本配置下,%s 未安装,%s。"
-}
-
-
-set_lang_CHT()
-{
- ST_ER_AR02="���~�G�䤣��w�˥ؿ��C"
- ST_LANG="CHT"
- ST_ER_AR01="���~�G�L�k�T�w�ثe�ؿ��C"
- ST_ICE_INFO_03="������ܥH�U�{��"
- ST_ER_AR04="���~�G�����ܼ� TMPDIR ���V�L�Ī����|�C"
- ST_ICE_INFO_05="�{�Ҥw���\�w�ˡC"
- ST_ER_DIR="���~�G�L�k�إߥؿ� %s�C"
- ST_ER_AR03="���~�G�䤣�� %s�C"
- ST_ICE_INFO_07="�䤣�� openssl�A�нT�O openssl �G�i��b PATH ��"
- ST_INFO_AR04="�w�w�˪����x�]�A�G"
- ST_VERSION="����"
- ST_INFO_AR01="�ثe�S���w�˦W�٬� %s ���@�~�t�ΡC"
- ST_ICE_INFO_04="�z�n�����æw�˶� (y|n)�H "
- ST_ICE_INFO_01="���b�q�����^���{��..."
- ST_ICE_INFO_02="���b�B�z..."
- ST_ICE_INFO_08="�å��w�˻{�ҡC"
- ST_INFO_AR03="���զb�w�w�˪����x�W����ós����z����ܸ˸m�C"
- ST_ICE_INFO_06="�w�˻{�ҮɥX�{���D"
- ST_ER_AR05="�b���t�m�U�A%s �å��w�ˡA%s�C"
-}
-
-
-set_lang_CHT_utf()
-{
- ST_ER_AR02="錯誤:找不到安裝目錄。"
- ST_LANG="CHT"
- ST_ER_AR01="錯誤:無法確定目前目錄。"
- ST_ICE_INFO_03="網站顯示以下認證"
- ST_ER_AR04="錯誤:環境變數 TMPDIR 指向無效的路徑。"
- ST_ICE_INFO_05="認證已成功安裝。"
- ST_ER_DIR="錯誤:無法建立目錄 %s。"
- ST_ER_AR03="錯誤:找不到 %s。"
- ST_ICE_INFO_07="找不到 openssl,請確保 openssl 二進位在 PATH 中"
- ST_INFO_AR04="已安裝的平台包括:"
- ST_VERSION="版本"
- ST_INFO_AR01="目前沒有安裝名稱為 %s 的作業系統。"
- ST_ICE_INFO_04="您要接受並安裝嗎 (y|n)? "
- ST_ICE_INFO_01="正在從網站擷取認證..."
- ST_ICE_INFO_02="正在處理..."
- ST_ICE_INFO_08="並未安裝認證。"
- ST_INFO_AR03="嘗試在已安裝的平台上執行並連接到您的顯示裝置。"
- ST_ICE_INFO_06="安裝認證時出現問題"
- ST_ER_AR05="在此配置下,%s 並未安裝,%s。"
-}
-
-
set_lang_JPN()
{
ST_ER_AR02="���顼 : ���ȡ���ǥ��쥯�ȥ꤬���Ĥ���ޤ���"
ST_LANG="JPN"
+ ST_SMALL_N="n"
ST_ER_AR01="���顼 : ���ߤΥǥ��쥯�ȥ��Ĵ�٤��ޤ���"
ST_ICE_INFO_03="Web �����Ȥˤϼ��ξ�����ɽ������ޤ�"
ST_ER_AR04="���顼 : �Ķ��ѿ� TMPDIR ��̵���ʥѥ�����ꤷ�Ƥ��ޤ���"
ST_ICE_INFO_05="����������˥��ȡ��뤵��ޤ�����"
ST_ER_DIR="���顼 : �ǥ��쥯�ȥ� %s ������Ǥ��ޤ���"
+ ST_YES="yes"
ST_ER_AR03="���顼 : %s �����Ĥ���ޤ���"
ST_ICE_INFO_07="openssl �����Ĥ���ޤ���Ǥ�����openssl �Х��ʥ꤬ PATH �ˤ��뤳�Ȥ��ǧ���Ƥ���������"
ST_INFO_AR04="���ȡ���ѤߤΥץ�åȥե�����ˤϼ��Τ�Τ�����ޤ� : "
ST_VERSION="�������"
ST_INFO_AR01="���ߡ�%s �Ȥ���̾���� OS �����ȡ��뤵��Ƥ��ޤ���"
ST_ICE_INFO_04="Ʊ�դ��ƥ��ȡ��뤷�ޤ��� (y|n)�� "
+ ST_CAPS_Y="Y"
ST_ICE_INFO_01="Web �����Ȥ���������������Ƥ��ޤ�...."
ST_ICE_INFO_02="������...."
ST_ICE_INFO_08="������ȡ��뤷�Ƥ��ޤ���"
ST_INFO_AR03="���ȡ���ѤߤΥץ�åȥե������Ǽ¹Ԥ������Ȥ��Υǥ����ץ쥤����³���Ƥ���������"
ST_ICE_INFO_06="������Υ��ȡ���������꤬ȯ�����ޤ���"
+ ST_SMALL_Y="y"
ST_ER_AR05="%s �Ϥ������� %s �Ǥϥ��ȡ��뤵��ޤ���"
}
@@ -152,74 +64,30 @@
{
ST_ER_AR02="エラー : インストールディレクトリが見つかりません。"
ST_LANG="JPN"
+ ST_SMALL_N="n"
ST_ER_AR01="エラー : 現在のディレクトリを調べられません。"
ST_ICE_INFO_03="Web サイトには次の証明書が表示されます"
ST_ER_AR04="エラー : 環境変数 TMPDIR が無効なパスを指定しています。"
ST_ICE_INFO_05="証明書が正常にインストールされました。"
ST_ER_DIR="エラー : ディレクトリ %s を作成できません。"
+ ST_YES="yes"
ST_ER_AR03="エラー : %s が見つかりません。"
ST_ICE_INFO_07="openssl が見つかりませんでした。openssl バイナリが PATH にあることを確認してください。"
ST_INFO_AR04="インストール済みのプラットフォームには次のものがあります : "
ST_VERSION="バージョン"
ST_INFO_AR01="現在、%s という名前の OS がインストールされていません。"
+ ST_CAPS_Y="Y"
ST_ICE_INFO_04="同意してインストールしますか (y|n)? "
ST_ICE_INFO_01="Web サイトから証明書を取得しています...."
ST_ICE_INFO_02="処理中...."
ST_ICE_INFO_08="証明書をインストールしていません。"
ST_INFO_AR03="インストール済みのプラットフォーム上で実行し、お使いのディスプレイに接続してください。"
ST_ICE_INFO_06="証明書のインストール中に問題が発生しました"
+ ST_SMALL_Y="y"
ST_ER_AR05="%s はこの設定 %s ではインストールされません。"
}
-set_lang_KOR_utf()
-{
- ST_ER_AR02="오류: 설치 디렉토리를 찾을 수 없습니다."
- ST_LANG="KOR"
- ST_ER_AR01="오류: 현재 디렉토리를 확인할 수 없습니다."
- ST_ICE_INFO_03="웹 사이트에서 다음 인증서를 제공합니다."
- ST_ER_AR04="오류: 환경 변수 TMPDIR이 잘못된 경로를 가리킵니다."
- ST_ICE_INFO_05="인증서가 성공적으로 설치되었습니다."
- ST_ER_DIR="오류: %s 디렉토리를 만들 수 없습니다."
- ST_ER_AR03="오류: %s을(를) 찾을 수 없습니다."
- ST_ICE_INFO_07="openssl을 찾을 수 없습니다. openssl 바이너리가 패스상에 있는지 확인하십시오."
- ST_INFO_AR04="설치된 플랫폼은 다음과 같습니다:"
- ST_VERSION="버전"
- ST_INFO_AR01="%s OS가 현재 설치되어 있지 않습니다."
- ST_ICE_INFO_04="이를 허용하고 설치하시겠습니까(예|아니요)?"
- ST_ICE_INFO_01="웹 사이트에서 인증서 검색...."
- ST_ICE_INFO_02="처리 중 ...."
- ST_ICE_INFO_08="인증서를 설치하지 않습니다."
- ST_INFO_AR03="설치된 플랫폼에서 실행하여 디스플레이에 연결해 보십시오."
- ST_ICE_INFO_06="인증서를 설치하는 동안 문제가 발생했습니다."
- ST_ER_AR05="%s이(가) 이 구성, %s에 설치되어 있지 않습니다."
-}
-
-
-set_lang_KOR()
-{
- ST_ER_AR02="����: ��ġ ���丮�� ã�� �� �����ϴ�."
- ST_LANG="KOR"
- ST_ER_AR01="����: ���� ���丮�� Ȯ���� �� �����ϴ�."
- ST_ICE_INFO_03="�� ����Ʈ���� ���� �������� �����մϴ�."
- ST_ER_AR04="����: ȯ�� ���� TMPDIR�� �߸��� ��θ� ����ŵ�ϴ�."
- ST_ICE_INFO_05="�������� ���������� ��ġ�Ǿ����ϴ�."
- ST_ER_DIR="����: %s ���丮�� ���� �� �����ϴ�."
- ST_ER_AR03="����: %s��(��) ã�� �� �����ϴ�."
- ST_ICE_INFO_07="openssl�� ã�� �� �����ϴ�. openssl ���̳ʸ��� �н��� �ִ��� Ȯ���Ͻʽÿ�."
- ST_INFO_AR04="��ġ�� �÷����� ������ �����ϴ�:"
- ST_VERSION="����"
- ST_INFO_AR01="%s OS�� ���� ��ġ�Ǿ� ���� �ʽ��ϴ�."
- ST_ICE_INFO_04="�̸� ����ϰ� ��ġ�Ͻðڽ��ϱ�(��|�ƴϿ�)?"
- ST_ICE_INFO_01="�� ����Ʈ���� ������ �˻�...."
- ST_ICE_INFO_02="ó�� �� ...."
- ST_ICE_INFO_08="�������� ��ġ���� �ʽ��ϴ�."
- ST_INFO_AR03="��ġ�� �÷������� �����Ͽ� ���÷��̿� ������ ���ʽÿ�."
- ST_ICE_INFO_06="�������� ��ġ�ϴ� ���� ������ ���߽��ϴ�."
- ST_ER_AR05="%s��(��) �� ����, %s�� ��ġ�Ǿ� ���� �ʽ��ϴ�."
-}
-
-
# Determine default language based on current system language.
# Defaults to English (ENU).
LING=`echo $LC_ALL`
@@ -237,20 +105,16 @@
case $LING in
ja*) MYLANG=JPN;;
- zh|zh_CN) MYLANG=CHS;;
- zh_TW|zh_HK) MYLANG=CHT;;
- ko*) MYLANG=KOR;;
*) MYLANG=ENU;;
esac
if [ $MYLANG != "ENU" ]; then
- MYLANG="$MYLANG$MYUTF8"
+ MYLANG="$MYLANG$MYUTF8"
fi
set_lang_${MYLANG}
-
-ver="8.1.1"
+ver="8.1.2"
if [ "$1" = "-version" ]; then
echo "$ver"
@@ -388,16 +252,26 @@
return $status
}
-IsUserAffirmative()
+yesno()
{
- read userResp
- if [ "$userResp" ] ; then
- case "$userResp" in
- y|Y|[yY][eE][sS]) return 0 ;;
- esac
+ msg="$1"
+ def="$2"
+ while : ; do
+ printf "\n%s" "$msg"
+ read answer
+ if [ "$answer" ] ; then
+ case "$answer" in
+ "$ST_SMALL_Y" | "$ST_CAPS_Y" | "$ST_YES")
+ return 0
+ ;;
+ *)
+ return 1
+ ;;
+ esac
+ else
+ return $def
fi
-
- return 1
+ done
}
InstallCertificate()
@@ -442,9 +316,8 @@
printf "%s\n\n" "$ST_ICE_INFO_03"
more "$CERTDATA"
- printf "%s\n" "$ST_ICE_INFO_04"
- if IsUserAffirmative
+ if yesno "$ST_ICE_INFO_04[$ST_SMALL_N] " 1
then
if [ ! -d "$CertificateInstallDirectory" ]
then
@@ -623,6 +496,12 @@
exit 1
fi
+# Enable this if you want Adobe Reader to cache Font-config fonts
+# ACRO_ENABLE_FONT_CONFIG=1
+# export ACRO_ENABLE_FONT_CONFIG
+
+
+
# Enable this if you want to set the MOZILLA_COMP_PATH globally (for all the users)
#if [ -f "$ACRO_INSTALL_DIR/GlobalPrefs/mozilla_config" ]; then
# . "$ACRO_INSTALL_DIR/GlobalPrefs/mozilla_config"
@@ -684,20 +563,6 @@
;;
esac
-DefaultPSRESPATH="$HOME/psres:$HOME/fonts:/usr/psres"
-if [ -z "$PSRESOURCEPATH" ] ; then
- PSRESOURCEPATH="$DefaultPSRESPATH"
-else
- PSRESOURCEPATH="$PSRESOURCEPATH":"$DefaultPSRESPATH"
-fi
-case "$PSRESOURCEPATH" in
- ::*|*::*|*::)
- ;;
- *)
- PSRESOURCEPATH="$PSRESOURCEPATH"::
- ;;
-esac
-export PSRESOURCEPATH
directory="`basename \"$ACRO_INSTALL_DIR\"`"
@@ -749,12 +614,23 @@
# Required for Multimedia plugin
# look for installed realplayer
-if realplayPath="`Which realplay`"; then
- REALPLAYER_HOME=`head "$realplayPath" | grep HELIX_LIBS | awk -F' ' '{print $1}' | awk -F'=' '{print $2}' | sed 's/"//g'`
- export REALPLAYER_HOME
+if [ "$ACRO_CONFIG" = "intellinux" ]; then
+ if ARG0="`which realplay 2> /dev/null`"; then
+ if [ -d "$REALPLAYER_HOME" ] ; then
+ true
+ elif [ "$REALPLAYER_HOME" = "" -a -L ${ARG0} ] ; then
+ REALPLAYER_HOME=`readlink ${ARG0} 2> /dev/null`
+ REALPLAYER_HOME=`dirname ${REALPLAYER_HOME} 2> /dev/null` # Delete trailing file name.
+ export REALPLAYER_HOME
+ elif [ "$REALPLAYER_HOME" = "" -a -f ${ARG0} ] ; then
+ REALPLAYER_HOME=$ARG0
+ REALPLAYER_HOME=`dirname ${REALPLAYER_HOME} 2> /dev/null` # Delete trailing file name.
+ REALPLAYER_HOME=`cd $REALPLAYER_HOME; pwd;`
+ export REALPLAYER_HOME
+ fi
+ fi
fi
-
if [ "$ACRO_AT_ACTIVE" = "true" ]; then
GTK_MODULES=gail:atk-bridge
export GTK_MODULES