summaryrefslogtreecommitdiff
path: root/help3xsl
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2018-02-16 10:08:00 -0200
committerOlivier Hallot <olivier.hallot@libreoffice.org>2018-02-16 13:31:12 +0100
commit54fb08a20e9b92af1e8085f9357fbd68b515678f (patch)
treea48795fa5719bb56409ac90d2aff47c5afb1964d /help3xsl
parentd1ea71763345803f861bba8a6171825888822d48 (diff)
Add more support for languages in online new Help
Added SL token for google Tooltip for clipboard Donation links Change-Id: Ib73c07f64992553abb1b4048c10e1dbb9a2c3573 Reviewed-on: https://gerrit.libreoffice.org/49854 Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl')
-rw-r--r--help3xsl/localized.xsl22
-rw-r--r--help3xsl/online_transform.xsl4
2 files changed, 22 insertions, 4 deletions
diff --git a/help3xsl/localized.xsl b/help3xsl/localized.xsl
index 9549eb9f1a..45f6f56699 100644
--- a/help3xsl/localized.xsl
+++ b/help3xsl/localized.xsl
@@ -283,6 +283,7 @@ Stylesheet map language-dependent parameters and translation
<xsl:when test="$lang='pt'"><xsl:text>var cx = '010161382024564278136:1x2uk8j-rbw';</xsl:text></xsl:when>
<xsl:when test="$lang='pt-BR'"><xsl:text>var cx = '010161382024564278136:1x2uk8j-rbw';</xsl:text></xsl:when>
<xsl:when test="$lang='ru'"><xsl:text>var cx = '010161382024564278136:syzgysikzms';</xsl:text></xsl:when>
+ <xsl:when test="$lang='sl'"><xsl:text>var cx = '010161382024564278136:5varjpouixi';</xsl:text></xsl:when>
<xsl:when test="$lang='tr'"><xsl:text>var cx = '010161382024564278136:gzcz3ueyhkw';</xsl:text></xsl:when>
<xsl:when test="$lang='zh-CN'"><xsl:text>var cx = '010161382024564278136:vkf9curztm8';</xsl:text></xsl:when>
<xsl:when test="$lang='zh-TW'"><xsl:text>var cx = '010161382024564278136:_goysgr6ptm';</xsl:text></xsl:when>
@@ -292,10 +293,25 @@ Stylesheet map language-dependent parameters and translation
<xsl:template name="getTooltip">
<xsl:param name="lang"/>
+ <xsl:attribute name="data-tooltip">
+ <xsl:choose>
+ <xsl:when test="$lang='fi'">Klikkaa kopioidaksesi leikepöydälle</xsl:when>
+ <xsl:when test="$lang='pt'">Clique no texto para copiar para a área de transferência</xsl:when>
+ <xsl:when test="$lang='pt-BR'">Clique no texto para copiar para a área de transferência</xsl:when>
+ <xsl:otherwise>Click on text to copy to clipboard</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
+</xsl:template>
+
+<xsl:template name="getDonation">
+ <xsl:param name="lang"/>
<xsl:choose>
- <xsl:when test="$lang='fi'"><xsl:attribute name="data-tooltip">Klikkaa kopioidaksesi leikepöydälle</xsl:attribute></xsl:when>
- <xsl:otherwise><xsl:attribute name="data-tooltip">Click on text to copy to clipboard</xsl:attribute></xsl:otherwise>
-</xsl:choose>
+ <xsl:when test="$lang='nb'"><xsl:text>Hvis du har funnet denne siden nyttig kan du bidra.</xsl:text></xsl:when>
+ <xsl:when test="$lang='pt'"><xsl:text>Se esta página lhe foi útil, dê-nos seu apoio!</xsl:text></xsl:when>
+ <xsl:when test="$lang='pt-BR'"><xsl:text>Se esta página lhe foi útil, dê-nos seu apoio!</xsl:text></xsl:when>
+ <xsl:when test="$lang='sl'"><xsl:text>Če vam je stran v pomoč, nam lahko pomagate!</xsl:text></xsl:when>
+ <xsl:otherwise><xsl:text>If this page has been helpful, you can support us!</xsl:text></xsl:otherwise>
+ </xsl:choose>
</xsl:template>
</xsl:stylesheet>
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl
index db296cbf6c..ee93c80bf7 100644
--- a/help3xsl/online_transform.xsl
+++ b/help3xsl/online_transform.xsl
@@ -284,7 +284,9 @@
</xsl:if>
<xsl:if test="$online">
<div class="donation">
- <p>If this page has been helpful, <a href="https://www.libreoffice.org/donate/?pk_campaign=help" target ="_blank">you can support us!</a></p>
+ <p><a href="https://www.libreoffice.org/donate/?pk_campaign=help" target ="_blank">
+ <xsl:call-template name="getDonation"><xsl:with-param name="lang" select="$lang"/></xsl:call-template>
+ </a></p>
</div>
</xsl:if>
<p><a href="http://www.libreoffice.org/imprint" target="_blank">Impressum (Legal Info)</a> | <a href="http://www.libreoffice.org/privacy" target="_blank">Privacy Policy</a> | <a href="http://www.documentfoundation.org/statutes.pdf" target="_blank">Statutes (non-binding English translation)</a> - <a href="http://www.documentfoundation.org/satzung.pdf" target="_blank">Satzung (binding German version)</a> | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the <a href="http://www.libreoffice.org/download/license/" target="_blank">Mozilla Public License v2.0</a>. “LibreOffice” and “The Document Foundation” are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="http://wiki.documentfoundation.org/TradeMark_Policy" target="_blank">trademark policy</a>. LibreOffice was based on OpenOffice.org.</p>