Bug 15674: Make "Column visibility" translatable

The "Column visibility" text button was not translatable, now it is.

Test plan:
1/ Update the template for a given language and translate the "Column
visibility" string
2/ Go on admin/currency.pl
=> The string should be translated.

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
This commit is contained in:
Jonathan Druart 2016-02-29 07:32:14 +00:00 committed by Julian Maurice
parent fcff4ee1a6
commit 2c186dd5a0
1 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,10 @@ function KohaTable(selector, dt_parameters, columns_settings) {
}
id++;
});
dt_parameters[ "oColVis" ] = { "aiExclude": excluded_ids };
dt_parameters[ "oColVis" ] = {
"aiExclude": excluded_ids,
"buttonText": _("Column visibility")
};
var table = $(selector).dataTable($.extend(true, {}, dataTablesDefaults, dt_parameters));
$(hidden_ids).each(function(index, value) {