Note that it DOES not work as expected. It seem that the translator misses the _() string inside expandable button
(it does not miss them in simple button)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
<!-- TMPL_ELSE -->
var newmenu = [
- { text: "Default Framework", url: "/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=" },
- <!-- TMPL_LOOP NAME="frameworkcodeloop" -->{ text: "<!-- TMPL_VAR name="frameworktext" --> Framework", url: "/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=<!-- TMPL_VAR name="value" -->"},
+ { text: _("Default Framework"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=" },
+ <!-- TMPL_LOOP NAME="frameworkcodeloop" -->{ text: _("<!-- TMPL_VAR name="frameworktext" --> Framework"), url: "/cgi-bin/koha/cataloguing/addbiblio.pl?frameworkcode=<!-- TMPL_VAR name="value" -->"},
<!-- /TMPL_LOOP -->
]
new YAHOO.widget.Button({
type: "menu",
- label: "New Record",
+ label: _("New Record"),
name: "newmenubutton",
menu: newmenu,
container: "newmenuc"