[library-web] [devcenter] translate strings on devcenter
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] [devcenter] translate strings on devcenter
- Date: Wed, 6 Apr 2011 08:48:45 +0000 (UTC)
commit 71527df8cee7b01c4107fd1de92fa2b7495e57cf
Author: Frédéric Péters <fpeters 0d be>
Date: Wed Apr 6 14:17:34 2011 +0530
[devcenter] translate strings on devcenter
data/catalog.xml.in | 18 ++++++++
data/xslt/dev_indexes.xsl | 101 ++++++++++++++++++++++++++++++++------------
2 files changed, 91 insertions(+), 28 deletions(-)
---
diff --git a/data/catalog.xml.in b/data/catalog.xml.in
index 8cfacb9..5cf84e7 100644
--- a/data/catalog.xml.in
+++ b/data/catalog.xml.in
@@ -87,4 +87,22 @@ find information on tools and methods to work with many GNOME desktops.
<_msgstr msgid="ApplicationsProgramming">Manuals</_msgstr>
<_msgstr msgid="switchlang">Switching Language</_msgstr>
<_msgstr msgid="activelang">Active Language:</_msgstr>
+ <_msgstr msgid="gnome-developer-center">GNOME Developer Center</_msgstr>
+ <_msgstr msgid="10-minute-tutorials">10-minute Tutorials</_msgstr>
+ <_msgstr msgid="getting-started">Getting Started</_msgstr>
+ <_msgstr msgid="get-ready-for-dev">Get ready for GNOME Development</_msgstr>
+ <_msgstr msgid="download-dev-tools">Download GNOME Development Tools</_msgstr>
+ <_msgstr msgid="platform-overview">Platform Overview</_msgstr>
+ <_msgstr msgid="api-documentation">API Documentation</_msgstr>
+ <_msgstr msgid="user-interface">User Interface</_msgstr>
+ <_msgstr msgid="multimedia">Multimedia</_msgstr>
+ <_msgstr msgid="communication">Communication</_msgstr>
+ <_msgstr msgid="data-storage">Data Storage</_msgstr>
+ <_msgstr msgid="utilities">Utilities</_msgstr>
+ <_msgstr msgid="core">Core</_msgstr>
+ <_msgstr msgid="system-integration">System Integration</_msgstr>
+ <_msgstr msgid="desktop-integration">Desktop Integration</_msgstr>
+ <_msgstr msgid="nightly-documents">Nightly Generated Documents</_msgstr>
+ <_msgstr msgid="deprecated-api-references">Deprecated API References</_msgstr>
+ <_msgstr msgid="welcome-to-gnome-devcenter">Welcome to GNOME. Getting started is easy - install our dev tools and take a look at a tutorial.</_msgstr>
</msgcat>
diff --git a/data/xslt/dev_indexes.xsl b/data/xslt/dev_indexes.xsl
index b5454b0..0708c61 100644
--- a/data/xslt/dev_indexes.xsl
+++ b/data/xslt/dev_indexes.xsl
@@ -280,7 +280,10 @@ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
doctype-system="http://www.w3.org/TR/html4/loose.dtd">
<html lang="{$lang}">
<head>
- <title><xsl:value-of select="title" /> - GNOME Developer Center</title>
+ <title><xsl:value-of select="title" /> -
+ <xsl:call-template name="gettext"><xsl:with-param name="lang"
+ select="$lang"/><xsl:with-param name="msgid"
+ select="'gnome-developer-center'"/></xsl:call-template></title>
<xsl:call-template name="libgo.head">
<xsl:with-param name="channel" select="@channel"/>
</xsl:call-template>
@@ -556,25 +559,36 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd">
<title>
<xsl:choose>
<xsl:when test="@channel = 'users'">
- GNOME Developer Center -
<xsl:call-template name="gettext"><xsl:with-param name="lang"
select="@lang"/><xsl:with-param name="msgid"
select="'userslabel'"/></xsl:call-template>
+ -
+ <xsl:call-template name="gettext"><xsl:with-param name="lang"
+ select="@lang"/><xsl:with-param name="msgid"
+ select="'gnome-developer-center'"/></xsl:call-template>
</xsl:when>
<xsl:when test="@channel = 'devel'">
- GNOME Developer Center -
<xsl:call-template name="gettext"><xsl:with-param name="lang"
select="@lang"/><xsl:with-param name="msgid"
select="'developerslabel'"/></xsl:call-template>
+ -
+ <xsl:call-template name="gettext"><xsl:with-param name="lang"
+ select="@lang"/><xsl:with-param name="msgid"
+ select="'gnome-developer-center'"/></xsl:call-template>
</xsl:when>
<xsl:when test="@channel = 'admin'">
- GNOME Developer Center -
<xsl:call-template name="gettext"><xsl:with-param name="lang"
select="@lang"/><xsl:with-param name="msgid"
select="'sysadminslabel'"/></xsl:call-template>
+ -
+ <xsl:call-template name="gettext"><xsl:with-param name="lang"
+ select="@lang"/><xsl:with-param name="msgid"
+ select="'gnome-developer-center'"/></xsl:call-template>
</xsl:when>
<xsl:otherwise>
- GNOME Developer Center
+ <xsl:call-template name="gettext"><xsl:with-param name="lang"
+ select="@lang"/><xsl:with-param name="msgid"
+ select="'gnome-developer-center'"/></xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</title>
@@ -687,7 +701,9 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd">
doctype-system="http://www.w3.org/TR/html4/loose.dtd">
<html lang="{ lang}">
<head>
- <title>GNOME Developer Center</title>
+ <title><xsl:call-template name="gettext"><xsl:with-param name="lang"
+ select="@lang"/><xsl:with-param name="msgid"
+ select="'gnome-developer-center'"/></xsl:call-template></title>
<xsl:call-template name="libgo.head"/>
<xsl:comment>[if IE]>
<style>
@@ -713,7 +729,10 @@ div.body-sidebar { width: 100%; }
jQuery('#applications').jcarousel({
wrap: 'circular'
});
-}); </script><h1>GNOME Developer Center</h1><h3>10-minute tutorials</h3><div id="wrap">
+}); </script>
+ <h1><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'gnome-developer-center'"/></xsl:call-template></h1>
+ <h3><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'10-minute-tutorials'"/></xsl:call-template></h3>
+ <div id="wrap">
<ul id="tutorials" class="jcarousel-skin-tango">
<li><a href="gnome-devel-demos/unstable/" title="Image Viewer"><img src="images/tutorial/image-viewer.png"></img></a></li>
<li><a href="gnome-devel-demos/unstable/" title="Photo Wall"><img src="images/tutorial/clutter-image-viewer.png"></img></a></li>
@@ -724,39 +743,42 @@ div.body-sidebar { width: 100%; }
</div><div class="container_16">
<div class="grid_12">
+<h2><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'getting-started'"/></xsl:call-template></h2>
-<h2>Getting Started</h2>
-<p>Welcome to GNOME. Getting started is easy - install our dev tools and take a look at a tutorial.</p>
+<p><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'welcome-to-gnome-devcenter'"/></xsl:call-template></p>
-<h2>Get ready for GNOME development</h2>
-<a href="gnome-devel-demos/unstable/getting-ready" class="action_button">Download GNOME dev tools.</a>
+<h2><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'get-ready-for-dev'"/></xsl:call-template></h2>
+
+<a href="gnome-devel-demos/unstable/getting-ready" class="action_button">
+<xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'download-dev-tools'"/></xsl:call-template></a>
+
+<h2><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'platform-overview'"/></xsl:call-template></h2>
-<h2>Platform Overview</h2>
<table id="platform-overview">
<tr>
<td colspan="3" rowspan="3" class="user-interface">
-<p>User Interface</p>
+<p><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'user-interface'"/></xsl:call-template></p>
<a href="gtk3/stable/">GTK+</a><a href="cairo/stable/">Cairo</a><a href="clutter/stable/">Clutter</a>
<a href="atk/stable/">ATK</a><a href="pango/stable/">Pango</a><a href="http://webkitgtk.org/reference/">Webkit</a>
</td>
<td colspan="1" rowspan="5" class="multimedia">
-<p>Multimedia</p>
+<p><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'multimedia'"/></xsl:call-template></p>
<a href="http://www.gstreamer.net/documentation/">GStreamer</a><a href="libcanberra/stable/">Canberra</a><a href="#">Pulseaudio</a>
</td>
<td colspan="1" rowspan="5" class="communication">
-<p>Communication</p>
+<p><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'communication'"/></xsl:call-template></p>
<a href="#">Telepathy</a><a href="#">Avahi</a><a href="#">GUPnP</a>
</td>
<td colspan="1" rowspan="5" class="data-storage">
-<p>Data Storage</p>
+<p><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'data-storage'"/></xsl:call-template></p>
<a href="#">EDS</a><a href="libgda/stable/">GDA</a><a href="#">Tracker</a>
</td>
<td colspan="1" rowspan="5" class="utilities">
-<p>Utilities</p>
+<p><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'utilities'"/></xsl:call-template></p>
<a href="libchamplain/stable/">Champlain</a><a href="#">Enchant</a><a href="poppler/stable/">Poppler</a><a href="#">GeoClue</a>
</td>
@@ -766,7 +788,7 @@ div.body-sidebar { width: 100%; }
<tr> </tr>
<tr>
<td colspan="3" rowspan="2" class="core">
-<p>Core</p>
+<p><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'core'"/></xsl:call-template></p>
<a href="gio/stable/">GIO</a><a href="glib/stable/">Glib</a><a href="gobject/stable/">GObject</a>
</td>
</tr>
@@ -775,11 +797,11 @@ div.body-sidebar { width: 100%; }
<tr>
<td colspan="3" rowspan="2" class="system-integration">
-<p>System Integration</p>
+<p><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'system-integration'"/></xsl:call-template></p>
<a href="#">upower</a><a href="#">udisks</a><a href="#">policykit</a>
</td>
<td colspan="4" rowspan="2" class="desktop-integration">
-<p>Desktop Integration</p>
+<p><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'desktop-integration'"/></xsl:call-template></p>
<a href="#">packagekit</a><a href="#">libnotify</a><a href="#">seahorse</a>
</td>
</tr>
@@ -789,7 +811,7 @@ div.body-sidebar { width: 100%; }
</div>
<div id="api-doc-box" class="grid_4 subtle_box">
-<h2>API Documentation</h2>
+<h2><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param name="msgid" select="'api-documentation'"/></xsl:call-template></h2>
<form role="search" method="get" id="searchform" action="/symbols/"><div>
<label class="hidden" for="q">Search:
</label><input type="text" value="" name="q" id="s" placeholder="Search" />
@@ -825,13 +847,21 @@ GStreamer <a href="http://www.gstreamer.net/documentation/">C</a>, <a href="gstr
</xsl:template>
<xsl:template match="indexes" mode="nightly">
- <exsl:document href="nightly.html"
+ <xsl:param name="lang"/>
+ <exsl:document href="nightly.html.{$lang}"
method="html" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
doctype-system="http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
- <title>Nightly Documents - GNOME Developer Center</title>
+ <title>
+ <xsl:call-template name="gettext"><xsl:with-param name="lang"
+ select="$lang"/><xsl:with-param name="msgid"
+ select="'nightly-documents'"/></xsl:call-template>
+ -
+ <xsl:call-template name="gettext"><xsl:with-param name="lang"
+ select="$lang"/><xsl:with-param name="msgid"
+ select="'gnome-developer-center'"/></xsl:call-template></title>
<xsl:call-template name="libgo.head"/>
<script type="text/javascript" src="/js/strings.js" />
</head>
@@ -841,7 +871,10 @@ GStreamer <a href="http://www.gstreamer.net/documentation/">C</a>, <a href="gstr
</xsl:call-template>
<div id="container" class="two_columns">
<div class="container_12">
- <div class="page_title"><h1 class="title">Nightly Generated Documents</h1></div>
+ <div class="page_title"><h1 class="title">
+ <xsl:call-template name="gettext"><xsl:with-param name="lang"
+ select="$lang"/><xsl:with-param name="msgid"
+ select="'nightly-documents'"/></xsl:call-template></h1></div>
<ul>
<xsl:for-each select="index[ lang = 'en']//document">
<xsl:if test="versions/version[ href='nightly'] = 'nightly'">
@@ -930,14 +963,22 @@ GStreamer <a href="http://www.gstreamer.net/documentation/">C</a>, <a href="gstr
</xsl:template>
<xsl:template match="indexes" mode="deprecated">
+ <xsl:param name="lang"/>
<xsl:message>Writing deprecated.html</xsl:message>
- <exsl:document href="deprecated.html"
+ <exsl:document href="deprecated.html.{$lang}"
method="html" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
doctype-system="http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
- <title>Deprecated API References - GNOME Developer Center</title>
+ <title>
+ <xsl:call-template name="gettext"><xsl:with-param name="lang"
+ select="$lang"/><xsl:with-param name="msgid"
+ select="'deprecated-api-references'"/></xsl:call-template>
+ -
+ <xsl:call-template name="gettext"><xsl:with-param name="lang"
+ select="$lang"/><xsl:with-param name="msgid"
+ select="'gnome-developer-center'"/></xsl:call-template></title>
<xsl:call-template name="libgo.head"/>
<script type="text/javascript" src="/js/strings.js" />
</head>
@@ -993,9 +1034,13 @@ var remove_cookie_text = "<xsl:value-of select="$remove_cookie"/>";
<xsl:apply-templates select="../index[ lang = $lang]//document" mode="modindex">
<xsl:with-param name="lang" select="$lang"/>
</xsl:apply-templates>
+ <xsl:apply-templates select=".." mode="nightly">
+ <xsl:with-param name="lang" select="$lang"/>
+ </xsl:apply-templates>
+ <xsl:apply-templates select=".." mode="deprecated">
+ <xsl:with-param name="lang" select="$lang"/>
+ </xsl:apply-templates>
</xsl:for-each>
- <xsl:apply-templates select="." mode="nightly"/>
- <xsl:apply-templates select="." mode="deprecated"/>
<xsl:apply-templates select="." mode="languages"/>
<xsl:apply-templates select="home" mode="javascript"/>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]