[Koha-bugs] [Bug 7599] New: Cart JavaScript contains untranslatable English strings

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 24 21:55:49 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7599

             Bug #: 7599
           Summary: Cart JavaScript contains untranslatable English
                    strings
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: master
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Staff Client
        AssignedTo: oleonard at myacpl.org
        ReportedBy: oleonard at myacpl.org
         QAContact: koha.sekjal at gmail.com
                CC: gmcharlt at gmail.com


In the OPAC and staff client cart JavaScript:

function updateBasket(updated_value,target) {
    if(target){
    target.$('#basketcount').html(" <span>("+updated_value+")</span>");
    target.$('#cartDetails').html(_("Your cart contains ")+updated_value+_("
items"));
    } else {
    $('#basketcount').html(" <span>("+updated_value+")</span>");
    $('#cartDetails').html(_("Your cart contains ")+updated_value+_(" items"));
    }
    var basketcount = updated_value;
}

Not only is this untranslatable, the structure of the sentence is probably too
English-centric. Perhaps, "Items in your cart: " + count ?

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list