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 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 ){