]> git.koha-community.org Git - koha.git/commit
Bug 29133: Correct select2 strings
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 29 Sep 2021 09:05:04 +0000 (11:05 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 21 Oct 2021 04:12:22 +0000 (18:12 -1000)
commit6fcd136eddecc6fd49e27f543ec4150a9d6a7cec
tree7b7dcaafb2e5999d7c7b6e53a8ce24f53b2af497
parent3c4c2ebe9d143011913ff3bf0e10791c49a58f0c
Bug 29133: Correct select2 strings

We are using 'max'/'min' when the arguments are 'maximum'/'minimum'.
Also using %n, %d when only %s is working in .format()

Have a look at https://github.com/select2/select2/blob/45f2b83ceed5231afa7b3d5b12b58ad335edd82e/src/js/select2/i18n/en.js
It's Select2 v.4.0.13, the one we are using. We should match what's
there.

Test plan:
Bug 29002 is using minimumInputLength, you can see the difference when
selecting a patron:
 "Please enter %s or more characters"
vs
 "Please enter 3 or more characters"

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Bug 29133: (follow-up) Fix for argument mismatch

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
JK: fix typo in commit message
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 500725826f8e21db79b823c5e5f97618bb3e9fe2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/js/select2.js