Instead of instantly applying the translations, add them to an array.
That way users can include the language files that their site supports
and apply the required language using $.extend($.fn.select2.defaults,
$.fn.select2.locales["nl"]);
Signed-off-by: Kevin Brown <kevin@kevinbrown.in>
This changes `formatMatches` to notify the user that they can
select the single result. This is a more clear result compared to
the previous one.
This closes the following issue: https://github.com/ivaynberg/select2/issues/2329
This change syncs the translation template with the actual string
used for `$.fn.select2.defaults.formatInputTooLong`.
The source was changed by 5193dc40b9.