Topic: Multiselect combo translation

David Macek pro asked 5 years ago


With my PRO version I can't find out how to translate the texts in multiselect combobox component. I would like to translate "Select All" and "xx options selected" (when more than 4 items selected). Is it possible? 

The important part of my HTML follows:

<div class="form-row"><!-- Row Begin -->
<div class="col-md-4 m-b-3"><select class="mdb-select md-form colorful-select dropdown-primary dma-combo-multiple" multiple name="mcmb_roomslist[]" id="ed_roomslist">
<option value="" disabled selected>Zaškrtněte pokoje ve skupině</option>
<option value="001">1</option>
<option value="011">11</option>
<option value="012">12</option>
<option value="013" selected="selected">13</option>
<option value="002">2</option>
<option value="021" selected="selected">21</option>
<option value="022">22</option>
<option value="023" selected="selected">23</option>
<option value="003">3</option>
<option value="031">31</option>
<option value="032">32</option>
<option value="033">33</option>
<option value="041">41</option>
<option value="042">42</option>
<option value="043">43</option>
</select>
<label>Pokoje</label>
</div>

I tried the following but it does not work: 

$(document).ready(function() {
$('.dma-combo-multiple').materialSelect({
includeSelectAllOption: false,
allSelectedText: 'Vse',
});

MDB4poa2017 pro answered 5 years ago


Any updates after 5 months?



Currently, there's no "easy" way to do that, but I've added it to our TODO list. If you don't want to wait, you can modify the mdb.js file



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.15
  • Device: Notebook
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: Yes
  • Provided link: No