Re: library.gnome.org index
- From: Frederic Peters <fpeters 0d be>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gnome-web-list gnome org
- Subject: Re: library.gnome.org index
- Date: Sun, 1 Jul 2007 18:35:11 +0200
Murray Cumming wrote:
> > - language selection
> > - sorting documents, some would go under the Developers tab (API
> > references, what else?)
> > - passing gtk-doc documents through an XSL to get them styled
> > - misc improvements
> >
> > And then the big things like annotation support.
>
> Maybe it's time for another update? Has more progress been made? Do you
> need help?
Not much progress; I stalled on language selection and got busy with
other things.
What I did have was a select box in index pages, top right, filled
with all possible languages (well, 3 in my tests):
Index: skin/lgo.css
===================================================================
--- skin/lgo.css (revision 59)
+++ skin/lgo.css (working copy)
@@ -279,3 +279,8 @@
text-decoration: none;
}
+div#language {
+ position: absolute;
+ right: 2em;
+ top: 6ex;
+}
Index: locators/common/heading.xsl
===================================================================
--- locators/common/heading.xsl (revision 59)
+++ locators/common/heading.xsl (working copy)
@@ -4,7 +4,16 @@
xmlns="http://www.w3.org/1999/xhtml"
version="1.0">
+<xsl:template name="libgo.language">
+ <select onchange="document.cookie = 'language=' +
escape(this.value) + ';path=/'; window.location = window.location;">
+ <option><i>Choose a language</i></option>
+ <option value="en">English</option>
+ <option value="fr">French</option>
+ <option value="de">German</option>
+ </select>
+</xsl:template>
<xsl:template name="libgo.header">
<div id="page">
@@ -34,7 +42,7 @@
<h1>library.gnome.org</h1>
<div id="control">
<div id="language">
- <!-- Placeholder for a template that will probably go here
-->
+ <xsl:call-template name="libgo.language" />
</div>
</div>
<div id="tabs">
<%----<%---- cut here
And then some rules in Apache for language negotiation based on
cookie:
SetEnvIf Cookie "language=en" prefer-language=en
SetEnvIf Cookie "language=fr" prefer-language=fr
SetEnvIf Cookie "language=de" prefer-language=de
But that had some problems with reloading documents when changing
language, it sometimes required to explicitely reload the page, but
I failed to look into that problem.
> There's a chance that we'll have a new www.gnome.org ready a few weeks
> before GNOME 2.20. It would make a lot more sense if we had a working
> library.gnome.org too.
I am all for it but I don't have high hopes of free time, we should
probably set up something at guadec to work on that.
Regards,
Frederic
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]