diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2004-01-21 20:49:57 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2004-01-21 20:49:57 +0000 |
commit | a44ab8a59f86476e541d2b9d01fd7432ebff873f (patch) | |
tree | b58a5547d18e2f204d7a2d1f914743efc0680a53 /stylesheets | |
parent | 70924c99f64df94fc1e1aff65abae23d14db0f71 (diff) | |
download | yelp-a44ab8a59f86476e541d2b9d01fd7432ebff873f.tar.gz |
- Added string 'About This Article'. - Made gettext behave more nicely
* stylesheets/gettext.xsl:
* stylesheets/l10n.xml.in:
- Added string 'About This Article'.
- Made gettext behave more nicely when a string isn't found.
Diffstat (limited to 'stylesheets')
-rw-r--r-- | stylesheets/gettext.xsl | 10 | ||||
-rw-r--r-- | stylesheets/l10n.xml.in | 5 |
2 files changed, 14 insertions, 1 deletions
diff --git a/stylesheets/gettext.xsl b/stylesheets/gettext.xsl index 3ad423d7..efec66b2 100644 --- a/stylesheets/gettext.xsl +++ b/stylesheets/gettext.xsl @@ -18,8 +18,16 @@ <xsl:when test="$msg/msgstr[@xml:lang = $lang]"> <xsl:value-of select="$msg/msgstr[@xml:lang = $lang]"/> </xsl:when> - <xsl:otherwise> + <xsl:when test="$msg/msgstr[not(@xml:lang)]"> <xsl:value-of select="$msg/msgstr[not(@xml:lang)]"/> + </xsl:when> + <xsl:otherwise> + <xsl:message> + <xsl:text>No translation available for string '</xsl:text> + <xsl:value-of select="$msgid"/> + <xsl:text>'.</xsl:text> + </xsl:message> + <xsl:value-of select="$msgid"/> </xsl:otherwise> </xsl:choose> </xsl:for-each> diff --git a/stylesheets/l10n.xml.in b/stylesheets/l10n.xml.in index cd749516..31b62e17 100644 --- a/stylesheets/l10n.xml.in +++ b/stylesheets/l10n.xml.in @@ -28,6 +28,11 @@ </msg> <msg> + <!-- Link to the titlepage of a <article> --> + <msgid>About This Article</msgid> + <_msgstr>About This Article</_msgstr> +</msg> +<msg> <!-- Link to the titlepage of a <bibliography> --> <msgid>About This Bibliography</msgid> <_msgstr>About This Bibliography</_msgstr> |