From e930a1ab782e0525e277ba3df87e7c847d3a8633 Mon Sep 17 00:00:00 2001 From: Jesse Vickery Date: Tue, 9 Dec 2025 18:56:34 +0000 Subject: [PATCH 1/2] feat(i18n): autcomplete more i18n; - Add more i18n to the autocomplete js module. --- .../public/base/javascript/modules/autocomplete.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ckan/public/base/javascript/modules/autocomplete.js b/ckan/public/base/javascript/modules/autocomplete.js index 89276661846..4b9b8bc2538 100644 --- a/ckan/public/base/javascript/modules/autocomplete.js +++ b/ckan/public/base/javascript/modules/autocomplete.js @@ -55,6 +55,9 @@ this.ckan.module('autocomplete', function (jQuery) { formatResult: this.formatResult, formatNoMatches: this.formatNoMatches, formatInputTooShort: this.formatInputTooShort, + // (canada fork only): more i18n + // TODO: upstream contrib!! + formatSearching: this.formatSearching, dropdownCssClass: this.options.dropdownClass, containerCssClass: this.options.containerClass, tokenSeparators: this.options.tokensep.split(''), @@ -236,6 +239,17 @@ this.ckan.module('autocomplete', function (jQuery) { ); }, + /* (canada fork only): more i18n + * TODO: upstream contrib!! + * Formatter used by the select2 plugin that returns a string when + * XHR is being performed. + * + * Returns a string. + */ + formatSearching: function () { + return this._('Searching...'); + }, + formatTerm: function (term) { // (canada fork only): initial label if( this.options.initial_value.length > 0 ){ From 5a4b26fa73dd57fcb1f68a2b8cb0300096dc93eb Mon Sep 17 00:00:00 2001 From: Jesse Vickery Date: Tue, 9 Dec 2025 19:01:16 +0000 Subject: [PATCH 2/2] feat(misc): changelog; - Added change log file. --- changes/215.canada.changes | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/215.canada.changes diff --git a/changes/215.canada.changes b/changes/215.canada.changes new file mode 100644 index 00000000000..f0c7e3651ab --- /dev/null +++ b/changes/215.canada.changes @@ -0,0 +1 @@ +Added French translation for `Searching...` in the Select2 JS autocomplete module. \ No newline at end of file