From de0193157e3b09f5da4ac1a1f17625cc3bf62c14 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Sat, 2 Sep 2017 11:48:43 -0300 Subject: Add localization to helponline UI * Add support for localization in helponline UI. + translate 4 words + prepare for focused google search * Tweak the index search, open search index for all modules. Change-Id: Id7ad4fd63fe1f9d1334fb65febdee6f60c24361a Reviewed-on: https://gerrit.libreoffice.org/41839 Reviewed-by: Olivier Hallot Tested-by: Olivier Hallot --- help3xsl/help.js | 1 - help3xsl/localized.xsl | 74 +++++++++++++++++++++++++++++++++++++++++++ help3xsl/online_transform.xsl | 40 ++++++++++++++--------- 3 files changed, 99 insertions(+), 16 deletions(-) create mode 100644 help3xsl/localized.xsl diff --git a/help3xsl/help.js b/help3xsl/help.js index 1901a96ad0..e576cb54b5 100644 --- a/help3xsl/help.js +++ b/help3xsl/help.js @@ -10,7 +10,6 @@ // Used to set Apllication in caseinlie=APP function setModule(module){ if (module == null){module="WRITER"} - document.getElementById("bookmark"+module).hidden=false; var itemspan = document.getElementsByTagName("span"); var n = itemspan.length; for (var i = 0; i < n; i++){ diff --git a/help3xsl/localized.xsl b/help3xsl/localized.xsl new file mode 100644 index 0000000000..c5b0a8afc8 --- /dev/null +++ b/help3xsl/localized.xsl @@ -0,0 +1,74 @@ + + + + + + + + + + Contents + Contents + Contents + Conteúdo + Conteúdo + Contents + + + + + + + Index + Index + Index + Índice + Índice + Index + + + + + + + Find + Find + Find + Pesquisar + Pesquisar + Find + + + + + + + Language + Language + Language + Idioma + Idioma + Language + + + + + + + 123456 + 123456 + 123456 + 1234567890 + + + + + diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 857109c39b..22ed9ff28f 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -21,7 +21,7 @@ - +