Bug 12658: Wording of link text and translatability inside JavaScript
authorMarc Véron <veron@veron.ch>
Sun, 27 Jul 2014 12:02:02 +0000 (14:02 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 15 Aug 2014 18:36:11 +0000 (15:36 -0300)
This patch changes 'Select all frameworks' to 'Select all sample data' and exposes it to translation through function _().

To test:
Apply first patch.
See "Select all frameworks" on Webinstaller > Step3
Apply second patch
Text changes to "Select all sample data"
Check translation
Check for JavaScript errors

http://bugs.koha-community.org/show_bug.cgi?id=12658
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Changes link text and also makes it translatable.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/installer-doc-head-close.inc
koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt

index 122a06c..bf95879 100644 (file)
@@ -68,5 +68,11 @@ td input { font-size: 1.5em; }
 }
 
 </style>
+
+<script type="text/javascript">
+    //<![CDATA[
+        function _(s) { return s } // dummy function for gettext
+    //]]>
+</script>
 </head>
 <body>
index 8eee0a3..3ae276f 100644 (file)
@@ -89,7 +89,8 @@
 [% IF ( selectframeworks ) %]
     <h2 align="center">Selecting Default Settings</h2>
     <script type="text/javascript">
-        document.write('<p><a href="#" onclick="return selectAllFrameworks();">Select all frameworks</a></p>');
+        var linklabel = _("Select all sample data");
+        document.write('<p><a href="#" onclick="return selectAllFrameworks();">'+linklabel+'</a></p>');
     </script>
     <form name="frameworkselection" method="post" action="install.pl">
     <input type="hidden" name="step" value="3" />