jmcastagnetto Fri Feb 9 20:46:14 2001 EDT
Modified files:
/phpdoc Makefile.in configure.in
Log:
Added rules in config file, so the PalmPilot DOC version gets the
title in the correct language. Could not input the Japanese title though.
Index: phpdoc/Makefile.in
diff -u phpdoc/Makefile.in:1.57 phpdoc/Makefile.in:1.58
--- phpdoc/Makefile.in:1.57 Tue Feb 6 15:47:24 2001
+++ phpdoc/Makefile.in Fri Feb 9 20:46:14 2001
@@ -26,7 +26,7 @@
# +----------------------------------------------------------------------+
#
-# $Id: Makefile.in,v 1.57 2001/02/06 23:47:24 jimw Exp $
+# $Id: Makefile.in,v 1.58 2001/02/10 04:46:14 jmcastagnetto Exp $
#
VPATH=@srcdir@
@@ -50,6 +50,8 @@
PHPWEB_DEPS=$(PHPWEB_STYLESHEET) html-common.dsl common.dsl
QUICKREF_DEPS=quickref.dsl Makefile
+PALMDOCTITLE=@PALMDOCTITLE@
+
all: html
DIST_FILES=manual.zip manual.tar.gz bigmanual.html.gz \
@@ -150,10 +152,10 @@
manual.txt: bigmanual.html
lynx -nolist -dump file:`pwd`/bigmanual.html > manual.txt
-# really should figure out title based on language
manual_doc.pdb: manual.txt makedoc
- ./makedoc -b manual.txt manual_doc.pdb 'PHP Manual'
+ ./makedoc -b manual.txt manual_doc.pdb $(PALMDOCTITLE)
+# Note: Isilo converter available only in binary from www.isilo.com
manual_isilo.pdb: bigmanual.html
iSilo386 bigmanual.html manual_isilo.pdb
Index: phpdoc/configure.in
diff -u phpdoc/configure.in:1.58 phpdoc/configure.in:1.59
--- phpdoc/configure.in:1.58 Thu Feb 8 05:49:55 2001
+++ phpdoc/configure.in Fri Feb 9 20:46:14 2001
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.58 2001/02/08 13:49:55 jkj Exp $
+dnl $Id: configure.in,v 1.59 2001/02/10 04:46:14 jmcastagnetto Exp $
AC_INIT(global.ent)
@@ -236,6 +236,19 @@
*) ENCODING="ISO-8859-1";;
esac
AC_SUBST(ENCODING)
+
+dnl localize the PalmPilot DOC title
+case "$LANG" in
+ de) PALMDOCTITLE="'PHP Handbuch'";;
+ es) PALMDOCTITLE="'Manual de PHP'";;
+ fr) PALMDOCTITLE="'Manuel PHP'";;
+ hu) PALMDOCTITLE="'PHP Kézikönyv'";;
+ it) PALMDOCTITLE="'Manuale PHP'";;
+ nl) PALMDOCTITLE="'PHP Handleiding'";;
+ pt_BR) PALMDOCTITLE="'Manual do PHP'";;
+ *) PALMDOCTITLE="'PHP Manual'";;
+esac
+AC_SUBST(PALMDOCTITLE)
dnl look for the OpenJade DSSSL parser
AC_PATH_PROG(OPENJADECHK, "openjade", no)