mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
changed way translation functions called for non string literals
This commit is contained in:
parent
b1a97cd01b
commit
2c239b591b
@ -814,10 +814,14 @@ define([
|
||||
//#issue 3961, update the checkbox aria-label when it changed
|
||||
if(selected.length>=1){
|
||||
if($('#select-all').prop("checked")){
|
||||
$('#button-select-all').attr("aria-label", i18n.msg._("Selected All "+ selected.length+" items"));
|
||||
// $('#button-select-all').attr("aria-label", i18n.msg._("Selected All "+ selected.length +" items"));
|
||||
var msg1 = i18n.msg._("Selected All %d items")
|
||||
$('#button-select-all').attr("aria-label", i18n.msg.sprintf(msg1, selected.length));
|
||||
}
|
||||
else{
|
||||
$('#button-select-all').attr("aria-label", i18n.msg._("Selected, "+ selected.length+" items"));
|
||||
// $('#button-select-all').attr("aria-label", i18n.msg._("Selected, "+ selected.length+" items"));
|
||||
var msg2 = i18n.msg._("Selected, %d items")
|
||||
$('#button-select-all').attr("aria-label", i18n.msg.sprintf(msg2, selected.length));
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
Loading…
Reference in New Issue
Block a user