From f4bd79217c16ccaf487f6dafbe0730516bf116e1 Mon Sep 17 00:00:00 2001 From: Amit Gupta Date: Tue, 4 Nov 2014 21:33:36 +0530 Subject: [PATCH] Bug 13144: Google transliteration does not work on bootstrap To Test: Use Google Indic Transliteration API to allow users to transliterate english typed words into Indic languages. http://git.koha-community.org/gitweb/?p=koha.git;a=commit;h=6ae7b60962e7d07aa00a45a7af692939a4ce7aa6 Signed-off-by: Frederic Demians I had been able to reproduce the bug (a regression), and I can confirm that this patch fix it. But I had to create manualy GoogleIndicTransliteration system preference, which doesn't exist in standard .pref file. It may be necessary to add it. In my opinion, it shouldn't prevent to include this patch. Signed-off-by: Katrin Fischer Fixes a somewhat 'hidden' feature, no problems found. Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 4 ++-- .../opac-tmpl/bootstrap/js/googleindictransliteration.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 5355d756d9..94dec72c40 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -197,9 +197,9 @@
[% END %] [% IF ( ms_value ) %] - + [% ELSE %] - + [% END # /ms_value %] [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/googleindictransliteration.js b/koha-tmpl/opac-tmpl/bootstrap/js/googleindictransliteration.js index a251cefbf3..027ad61d5b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/googleindictransliteration.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/googleindictransliteration.js @@ -8,7 +8,7 @@ sourceLanguage: 'en', destinationLanguage: ['hi','kn','ml','ta','te'], shortcutKey: 'ctrl+g', - transliterationEnabled: true + transliterationEnabled: false }; // Create an instance on TransliterationControl with the required @@ -17,7 +17,7 @@ new google.elements.transliteration.TransliterationControl(options); // Enable transliteration in the textfields with the given ids. - var ids = [ "transl1" ]; + var ids = [ "translControl1" ]; control.makeTransliteratable(ids); // Show the transliteration control which can be used to toggle between -- 2.39.5