|
341 | 341 | var input = document.createElement("input"); |
342 | 342 | input.type = isNumeric(col.dtype) ? "number" : "text"; |
343 | 343 | input.className = "gd-tbl-fw-input"; |
344 | | - input.placeholder = "Enter value\u2026"; |
| 344 | + input.placeholder = _gdT("tbl_filter_enter_value", "Enter value\u2026"); |
345 | 345 | input.setAttribute("aria-label", "Filter value"); |
346 | 346 | inputRow.appendChild(input); |
347 | 347 |
|
|
352 | 352 | caseBtn.className = "gd-tbl-fw-case"; |
353 | 353 | caseBtn.textContent = "Aa"; |
354 | 354 | caseBtn.setAttribute("aria-label", "Toggle case sensitivity"); |
355 | | - caseBtn.title = "Case insensitive"; |
| 355 | + caseBtn.title = _gdT("tbl_filter_case_insensitive", "Case insensitive"); |
356 | 356 | caseBtn.addEventListener("click", function () { |
357 | 357 | caseSensitive = !caseSensitive; |
358 | 358 | caseBtn.classList.toggle("active", caseSensitive); |
359 | | - caseBtn.title = caseSensitive ? "Case sensitive" : "Case insensitive"; |
| 359 | + caseBtn.title = caseSensitive ? _gdT("tbl_filter_case_sensitive", "Case sensitive") : _gdT("tbl_filter_case_insensitive", "Case insensitive"); |
360 | 360 | }); |
361 | 361 | inputRow.appendChild(caseBtn); |
362 | 362 | } |
363 | 363 | wizard.appendChild(inputRow); |
364 | 364 |
|
365 | 365 | var commitBtn = document.createElement("button"); |
366 | 366 | commitBtn.className = "gd-tbl-btn gd-tbl-fw-commit"; |
367 | | - commitBtn.textContent = "Apply"; |
| 367 | + commitBtn.textContent = _gdT("tbl_filter_apply", "Apply"); |
368 | 368 | commitBtn.addEventListener("click", function () { |
369 | 369 | var val = input.value.trim(); |
370 | 370 | if (!val) return; |
|
400 | 400 | var inputLo = document.createElement("input"); |
401 | 401 | inputLo.type = "number"; |
402 | 402 | inputLo.className = "gd-tbl-fw-input"; |
403 | | - inputLo.placeholder = "min"; |
| 403 | + inputLo.placeholder = _gdT("tbl_filter_min", "min"); |
404 | 404 | inputLo.setAttribute("aria-label", "Minimum value"); |
405 | 405 | row.appendChild(inputLo); |
406 | 406 |
|
407 | 407 | var sep = document.createElement("span"); |
408 | | - sep.textContent = " and "; |
| 408 | + sep.textContent = " " + _gdT("tbl_filter_and", "and") + " "; |
409 | 409 | sep.className = "gd-tbl-fw-sep"; |
410 | 410 | row.appendChild(sep); |
411 | 411 |
|
412 | 412 | var inputHi = document.createElement("input"); |
413 | 413 | inputHi.type = "number"; |
414 | 414 | inputHi.className = "gd-tbl-fw-input"; |
415 | | - inputHi.placeholder = "max"; |
| 415 | + inputHi.placeholder = _gdT("tbl_filter_max", "max"); |
416 | 416 | inputHi.setAttribute("aria-label", "Maximum value"); |
417 | 417 | row.appendChild(inputHi); |
418 | 418 | wizard.appendChild(row); |
419 | 419 |
|
420 | 420 | var commitBtn = document.createElement("button"); |
421 | 421 | commitBtn.className = "gd-tbl-btn gd-tbl-fw-commit"; |
422 | | - commitBtn.textContent = "Apply"; |
| 422 | + commitBtn.textContent = _gdT("tbl_filter_apply", "Apply"); |
423 | 423 | commitBtn.addEventListener("click", function () { |
424 | 424 | var lo = inputLo.value.trim(); |
425 | 425 | var hi = inputHi.value.trim(); |
|
0 commit comments