https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37814

            Bug ID: 37814
           Summary: Wrong use of __() in .tt files
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Templates
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

__() does not work in .tt files (only .js files)
_() must be used instead

The 4 occurrences returned here are wrong.

% git grep '__(' **/*.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/alert-subscriptions.tt:        
       return confirmDelete(__("Are you sure you want to unsubscribe %s from
email alerts for %s?").format(patron, title));
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt:             
  node.addClass("collapsed").removeClass("expanded").attr("title", __("Click to
expand this section") );
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt:             
  node.addClass("expanded").removeClass("collapsed").attr("title", __("Click to
collapse this section") );
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-alert-subscriptions.tt:          
 return confirmDelete(__("Are you sure you want to unsubscribe %s from email
alerts for %s?").format(patron, title));

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to