diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-01-10 11:46:33 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-01-11 02:29:50 +0100 |
commit | 01879555450189381cc02517433807056b193af8 (patch) | |
tree | 15200c8d9d20733b8ad1b0be176745f0d6621bc2 /help3xsl/online_transform.xsl | |
parent | 2c7cfc527a05ef757ab3ecfd6ab5a2582a104680 (diff) |
Add L10n to labels, in New help UI
* Add l10n for "%PRODUCTNAME %PRODUCTVERSION Help"
* same for "Module"
* Content-Security-Policy only for online case
Change-Id: Iedad3e198211c122fe5845171d5dcbc6edd4778d
Reviewed-on: https://gerrit.libreoffice.org/47713
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/online_transform.xsl')
-rw-r--r-- | help3xsl/online_transform.xsl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 31295b51d3..3ba532578b 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -120,7 +120,9 @@ <head> <base href="{$install}"/> <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> - <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' piwik.documentfoundation.org *.google.com *.googleapis.com"/> + <xsl:if test="$online"> + <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' piwik.documentfoundation.org *.google.com *.googleapis.com"/> + </xsl:if> <title><xsl:value-of select="$titleL10N"/></title> <link rel="shortcut icon" href="{$productversion}/media/navigation/favicon.ico" /> <link type="text/css" href="{$productversion}/normalize.css" rel="Stylesheet" /> @@ -141,7 +143,9 @@ <div class="logo-container"> <a class="logo" href="https://helponline.libreoffice.org/"> <div class="symbol"></div> - <p>LibreOffice <xsl:value-of select="$productversion"/> Help</p> + <p><xsl:call-template name="brand"><xsl:with-param name="string"> + <xsl:call-template name="getLogo"><xsl:with-param name="lang" select="$lang"/><xsl:with-param name="version" select="$productversion"/></xsl:call-template> + </xsl:with-param></xsl:call-template></p> </a> </div> </header> |