adding _() to strings for translator
authorpaul <paul@localhost.(none)>
Tue, 18 Dec 2007 18:05:14 +0000 (19:05 +0100)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 21 Dec 2007 13:41:35 +0000 (07:41 -0600)
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>
koha-tmpl/intranet-tmpl/prog/en/includes/cataloging-toolbar.inc

index af323bc..631dd3b 100644 (file)
        <!-- 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"