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>
}
</style>
+
+<script type="text/javascript">
+ //<![CDATA[
+ function _(s) { return s } // dummy function for gettext
+ //]]>
+</script>
</head>
<body>
[% 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" />