Commit graph

27 commits

Author SHA1 Message Date
Simon L. B. Nielsen
3d2f6b6faf Fix html-index-events-items to actually take the 5 next events, and not
just the first five entries from events.xml which are in the future.

Noticed by:	ceri
2005-11-09 22:10:00 +00:00
Hiroki Sato
b58f3a3466 - Use concat() instead of successive <xsl:value-of>.
- Remove $day in html-index-news-press-items because
  currently press.xml does not have <day>.
  It should be fixed first that the press.xml file has
  duplicate information such as year/name and story/date
  in a not-reusable way.
2005-10-06 01:45:27 +00:00
Murray Stokely
4f71e4be93 MFP4: New header/footer/navigation designs.
Submitted by:  Emily Boyd (soc-emily@freebsd.org)
Sponsored by:  Google Summer of Code 2005
2005-10-04 06:13:33 +00:00
Hiroki Sato
c0719f33c9 In html-usergroups-list-regions template:
- optimize the translated entry search algorithm.
- fix <description> handling to output the child elements
  properly.
2005-09-30 18:12:58 +00:00
Hiroki Sato
66229ed32d Add localization support for www/<lang>/usergroups.html.
- www/<lang>/share/sgml/templates.usergroups.xsl:
  customization layer for each language.

- www/<lang>/share/sgml/usergroups.xml:
  translation of www/share/sgml/usergroups.xml.  The translation teams
  can simply copy it from the language-independent directory and keep
  the translated items only; items which are not in the translated
  file are automatically inserted from the original file on the
  fly (so old items in the translated file are harmful).
2005-09-18 06:25:01 +00:00
Hiroki Sato
19b48b56c5 Add usergroup database and related XSLT templates. Translated
database and automatic selection support like news.xml will
be added soon.

Discussed with:	remko
PR:		www/79239
2005-07-16 09:58:17 +00:00
Christian Brueffer
081975b699 Add the new 2003 directory to html-news-make-olditems-list. 2005-04-19 21:20:55 +00:00
Hiroki Sato
ea01e24b92 Use the html-news-generate-anchor template consistently.
This fixes a malformed anchor id used in <a> or <link> element.

Spotted by:	Osmany Guirola Cruz (osmany.guirola at cigb dot edu dot cu)
2005-03-10 14:40:34 +00:00
Ceri Davies
fb10301704 Use the leadingmark variable in one last place. 2005-01-10 21:43:13 +00:00
Ceri Davies
ea6bfd9c71 Correct typo. 2005-01-10 20:26:08 +00:00
Ceri Davies
269e10fae1 Remove the "Download" link due to this implementation's unpopularity. 2005-01-02 12:37:49 +00:00
Ceri Davies
64a37fa7d2 Add a really big link that says "Download", along with some smaller ones
for each platform.
2005-01-01 21:15:08 +00:00
Hiroki Sato
05140db83b Add a generic l10n template for formatting date string and
clean up the previous hack.  Now we can redefine the following
parameters in the localized includes.xsl:

 <xsl:param name="param-l10n-date-format-YMD" select="'%D %M, %Y'" />
 <xsl:param name="param-l10n-date-format-YM" select="'%M %Y'" />
 <xsl:param name="param-l10n-date-format-MD" select="'%D %M'" />
2004-12-31 07:24:05 +00:00
Hiroki Sato
12ed2a0397 Implement templates for selectively picking up the latest
news items and putting them into the localized web pages.
If the translation is available it will be used, otherwise
the original (English) version of the news item will be used.
2004-12-30 17:53:44 +00:00
Simon L. B. Nielsen
a3f66a062f Make the "right box" a bit less cluttered:
- Removing the announcement links for the 5.X and the 4.X releases.
- Point the title link for the 5.X release to the
  announcement, as it is already the case for the 4.X release.
- Only show the 5 first items from the project news and the press
  sections.

Reviewed by:	hrs
2004-06-27 19:18:00 +00:00
Hiroki Sato
0f6387bcfc Fix typos. 2004-06-27 08:28:21 +00:00
Hiroki Sato
64b7893d90 Add notices.xml for Errata Notices and a new section
for them on the top page.

Based on work by:	kensmith
2004-06-27 06:22:31 +00:00
Hiroki Sato
513b27c144 Add rss feed support for the FreeBSD security advisories.
Reviewed by:	simon
2004-05-25 01:19:50 +00:00
Alex Dupre
839379aa02 Complete support for localized web sites.
Approved by:	blackend (mentor)
2004-02-03 22:25:23 +00:00
Alex Dupre
868770ec6f Enhance support for localized navigation menu.
Approved by:	josef, blackend (mentor)
2004-02-01 22:56:56 +00:00
Josef El-Rayes
b0c3856a5f Remove plain html navigation and replace it with xml/xslt based navigation
So navigation is now maintained through navigation.xml.
This makes adding links very simple now.

Approved by:    simon(mentor)
	        trhodes
2004-02-01 00:02:58 +00:00
Hiroki Sato
db86c6c974 Add a workaround to prevent bogus link generation.
Submitted by:	ceri
2004-01-24 12:10:02 +00:00
Hiroki Sato
64ef5f2490 Move templates in mkindex.xsl into includes.misc.xsl. 2004-01-17 18:58:07 +00:00
Hiroki Sato
925e309a67 Improve transtable.{xml,xsl}, including:
- The structure of transtable.xml is revised.  <word> should be
   bracketed with <group>.

 - A sorting order of the FreeBSD mirror sites rendered using
   mirrors.xml has been determined by sort(1).

 - A template "transtable-lookup" has been added for localization on
   word-by-word basis.

 - Replace English month names in news.xml, press.xml, and
   advisories.xml with numbers that correspond to the names.
   The number->name translation is performed on the fly.

 - Since information in mirrors.xml is used in www/ tree, it depends on
   doc/ tree now.  When WITHOUT_DOC is defined it can be built without
   doc/ tree, but some information becomes unavailable.  For example,
   a list of the mirror sites generated in index.html becomes a dummy
   one, and calling "transtable-lookup" with a word returns the word
   itself.

Neither www/ nor doc/ build should be broken due to this commit, but
until the necessary changes are applied in the localized directories,
the transtable does not work; it simply generates non-localized contents
even if transtable.xsl is used.
2004-01-12 21:27:01 +00:00
Hiroki Sato
ffc4169bfa Fix a condition; "@a!=b" becomes false when @a does not exist. 2004-01-06 23:47:08 +00:00
Hiroki Sato
52aee72dda - Add news/news.xml dependency to index.html.
- Add several templates for index.xsl into includes.misc.xsl.

- The structure of mirrors.xml has been changed; <host> is
  a container of <name> and <url> now.
2003-12-06 07:39:32 +00:00
Hiroki Sato
c1cc8a1352 Add refinements on mirrors.xml:
- add doc.common.mk, which defines variables, targets, and
   dependencies commonly used in www/ and doc/.

 - move www/<lang>/includes.xsl to the language independent
   directory and split into several files.

 - add transtable*.xsl and transtable.xml to support localized
   mirror names.

 - make doc/{en_US.ISO8859-1,ja_JP.eucJP}/books/handbook/ use
   mirrors.xml (mirrors and eresources).

 - make www/{en,ja}/index.xsl use mirrors.xml.

For details, please see doc/share/sgml/README.mirrors for the moment.

Reviewed by:	simon and Alex Dupre <sysadmin@alexdupre.com>
2003-11-24 18:26:35 +00:00