translate "select some options" in multi select dropdown

mahmoodee

Member
Hello,
I use multi select dropdown in database join element with Enhanced Dropdowns
the placeholder of the field show "select some options"
How I can translate it ?
I have searched in Github and I did not find any thing
please help me
 
Ah, I'd never noticed that before.

OK, reading the 'chosen' documentation, you can set that in the options ...

https://harvesthq.github.io/chosen/options.html

So in the Fabrik global settings, under Form, in the "Enhanced Dropdown Options", you can add "placeholder_text_multiple" ... I just did a test, adding it to my existing 'search_contains' option ...

Code:
{"search_contains":true, "placeholder_text_multiple":"some test string"}

So to set the single and multiple ...

Code:
{"placeholder_text_single":"your string here","placeholder_text_multiple":"some test string"}

... or just the multiple ...

Code:
{"placeholder_text_multiple":"some test string"}

At some point I might bake that in, so we automatically set those two options, using language strings.

-- hugh
 
OK, I went ahead and fixed it so we just use the global J! strings ...

https://github.com/Fabrik/fabrik/commit/b25d44968017509496b8d6e5ccb1e45eeb65056c

... using the same three strings J! uses for 'chosen' options:

placeholder_text_multiple = JGLOBAL_TYPE_OR_SELECT_SOME_OPTIONS
placeholder_text_single = JGLOBAL_SELECT_AN_OPTION
no_results_text = JGLOBAL_SELECT_NO_RESULTS_MATCH

If you specify any of those three options in your custom "Enhanced Dropdown Options", we'll use what you set. If you don't, we'll use those language strings.

So ... they should automatically translate to the language in use.

You'll need to do a github update to pick up the changes.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top