Joomla-cms: [4.0] jQuery Chosen Plugin text vars not mulitlingual

Created on 5 Nov 2020  路  4Comments  路  Source: joomla/joomla-cms

Steps to reproduce the issue

media\vendor\chosen\js\chosen.jquery.js

    AbstractChosen.default_multiple_text = "Select Some Options";

    AbstractChosen.default_single_text = "Select an Option";

    AbstractChosen.default_no_result_text = "No results match";

The text strings are hard coded to the chosen.jquery.js and not translateable.

Affects chosen select, multiple fields

#

Would suggest to implement Joomla.Text._('

System information (as much as possible)

Joomla! 4.0.0-beta5 Beta

No Code Attached Yet

Most helpful comment

A more constructive comment would be
For Joomla 4 it is recommended that you use choices.js instead
You can see how this is implemented in the select module position

All 4 comments

the fix even more easy, do not use chosen :wink:

  1. Chosen is an external library => we don't change here anything
  2. That are the default values => you can overwrite them easily by your script giving the correct values

Otherwise:

the fix even more easy, do not use chosen 馃槈

A more constructive comment would be
For Joomla 4 it is recommended that you use choices.js instead
You can see how this is implemented in the select module position

Many thanks for the feedback

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brianteeman picture brianteeman  路  6Comments

dougbevan picture dougbevan  路  4Comments

B3nito picture B3nito  路  5Comments

chmst picture chmst  路  5Comments

joomleb picture joomleb  路  3Comments