I have worked on making the website multilingual, and it works well now at least on FAQ and Users Guide directories. I ask all documentation people to test it before I copy them to web/xml.

The idea is we keep the existing files as much as possible. I have already modified and added several files (web/xml/*.xsl, *.dtd, *.i18n.*) and will need to modify web/xml/faq/Makefile as:

-include $(basedir)/Makefile.common
+LANGUAGES = en ja
+include $(basedir)/Makefile.i18n.common

. After that, when you make in we/xml/faq/ will it produce foo.php foo.en.php foo.ja.php as well as header.en.inc and header.ja.inc. foo.en.php should be the same as the existing foo.php, while newer foo.php will have only one line to detect the user browser's language and output foo.en.php|foo.ja.php. foo.php includes phpLang.inc.php to do this, which has sat in the Fink website root direcotry for a while. This will not affect anything else.

If you want to add another language, say German to FAQ, just add de to LANGUAGES in web/xml/faq/Makefile and add faq.de.xml. This should output foo.de.php and header.de.inc.

If something works differently as I mentioned, it is more likely my fault. :p

Please test the new scheme in experimental/babayoshihiko/xml/faq/ and see how it goes. Also, cp x11 and users-guide from web/xml, modify Makefile as above (only two liines) and test them as well.

--
BABA Yoshihiko



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to