cvs commit: www/en Makefile index.xsl navigation.xml
www/share/mk web.site.mk www/share/sgml includes.misc.xsl
Hiroki Sato
hrs at FreeBSD.org
Mon Feb 2 06:46:39 PST 2004
Alex Dupre <ale at FreeBSD.org> wrote
in <401E554A.30707 at FreeBSD.org>:
ale> The problem is that localized web sites often have a mixture of $base
ale> and $enbase path, so they should maintain their own navigation.xml in
ale> any case...setting a default of $base is not a solution, since a new
ale> link may point to a non-existant localized page (and having broken links
ale> in home page is not good).
Hmmm, is it enough that an item (label and URL) can be overridden
accordingly? I think localization can be archived using language-independent
navigation.xml and optional, localized one (not that the localized
one should be removed completely). The localized one is used to override
items in the language-independent one, so two of the $base are different from
each other (resolved independently) and no broken link can appear; it
should likely a link to an English contents.
If using the localized one only, modification to includes.misc.xsl easily
breaks the build. This is what I learned from the advisories.xml case.
ale> > By the way, I am working on making new, not-translated items in
ale> > news.xml appear in the localized www page in English. I think
ale> > this sort of changes help the translation teams and the readers
ale> > because the translation tends to get behind. Comments?
ale>
ale> We (italian) directly link the engligh news for this reason (no
ale> translation of news), so the important thing is that this will continue
ale> to work.
No problem. This simply looks up both of en/news/news.xml and
<lang>/news/news.xml, and an item in the English version is overridden
if the translation is available. If no translation is available, the English
item is used as it is. It should not break the current structure, and this way
can be applied to navigation.xml.
--
| Hiroki SATO
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-doc/attachments/20040202/1182817e/attachment-0001.bin
More information about the cvs-doc
mailing list