From: <mic...@ea...> - 2004-11-08 11:36:10
|
BABA Yoshihiko wrote: > News editors and translators, > > I've been testing on my machine to make the news section of Fink website > to multilingual. Please give me a comment about my plan. > > It is important to note that news/news.rdf will not be affected by > this.news.rdf will still be generated, as well as news.en.rdf. They are > identical. news/index.php and news/news.inc use phpLang to get the > correct news/index.*.php and news.*.inc. > > News editors: Make sure to edit news/news.en.xml, not news/news.xml. > Please add newsitem to the files of all the languages. This will let the > users of other languages see the news in English. It can be done > automatically from English (zero) file during make process, but that is > a next step. > > Translators: The same as other XML based files. Just translate > news.*.xml and add your language in Makefile before make; make install. > This will put news.*.inc, news.*.rdf and index.*.php into web/news. > > If you want to test the new scheme, just cvs update the XML tree and get > Makefile from experimental/babayoshihiko/news/Makefile and put it into > xml/news/. I've tried to test it. Here are the problems I've noticed: 1 - Following strictly the instructions, i.e. cvs-updating the xml tree, then cvs updating the experimental tree, then copy the Makefile from experimental/babayoshihiko/news directory into the xml/news directory, and issuing make && make install gives the following error: make: *** No rule to make target `news.inc', needed by `all'. Stop. 2 - In an attempt to bypass this error, I've copied the news.xml under news.en.xml (since it did not exist) and changed the header to reflect the one of news.de.xml, ie: <news fsroot="../.." lang="en"> And issuing make clean; make && make install gives the following errors: news.es.xml:3: element news: validity error : No declaration for attribute filename of element news <news filename="index" lang="es" fsroot="../.."> ^ news.fr.xml:3: element news: validity error : No declaration for attribute filename of element news <news filename="index" lang="fr" fsroot="../.."> ^ news.fr.xml:1361: parser error : Opening and ending tag mismatch: newsitem line 67 and news </news> ^ news.fr.xml:1362: parser error : Premature end of data in tag news line 3 ^ make: *** [news.inc.tmp] Error 1 3 - Again, correction of the above errors by changing the header in news.fr.xml and news.en.xml: <news fsroot="../.." lang="es"> in news.es.xml <news fsroot="../.." lang="en"> in news.fr.xml plus deletion of a superfluous <newsitem> around line 67 in news.fr.xml (an error of mine). Reuissing make clean; make && make install gives the following error: xmllint --noout --valid news.en.xml news.de.xml news.es.xml news.fr.xml news.zh.xml xsltproc -o index.en.php.tmp finknews.i18n.xsl news.en.xml; xsltproc -o index.de.php.tmp finknews.i18n.xsl news.de.xml; xsltproc -o index.es.php.tmp finknews.i18n.xsl news.es.xml; xsltproc -o index.fr.php.tmp finknews.i18n.xsl news.fr.xml; xsltproc -o index.zh.php.tmp finknews.i18n.xsl news.zh.xml; echo '<? include_once "../phpLang.inc.php"; ?>' > index.php.tmp echo '<? include_once "news.en.inc"; ?>' > news.inc.tmp /usr/bin/perl ../postprocess.pl <news.inc.tmp >news.inc make: *** No rule to make target `news.rdf', needed by `all'. Stop. rm news.inc.tmp Here I'm stuck. How can it be bypassed? It seems that the process implies that it should only be run if new news (i.e. therefore news.rdf) are generated. Hence I don't see a way to translate thereafter. I should have missed something. Michèle |