Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization #1653

Closed
shehi opened this issue Feb 27, 2017 · 3 comments
Closed

Localization #1653

shehi opened this issue Feb 27, 2017 · 3 comments

Comments

@shehi
Copy link

shehi commented Feb 27, 2017

When data-selected-text-format = count, a label such as "2 items selected" is being displayed. Any idea how we can localize these strings?

@shehi
Copy link
Author

shehi commented Mar 7, 2017

Any feedback on this one please?

@fatihhayri
Copy link

#1593

data-count-selected-text="Property Type ({0})"

<select name="propertyType" id="propertyType" class="selectpicker btn-noborder" title="Property Type" data-selected-text-format="count" data-count-selected-text="Property Type ({0})" multiple>
  <option value="1">Detached</option>
  <option value="2">Semi-detached</option>
  <option value="3">Terraced</option>
  <option value="4">Flat</option>
  <option value="5">Bungalow</option>
  <option value="6">Land</option>
</select>

@caseyjhol
Copy link
Member

Use one of the translation files. Alternatively, set it yourself:

    countSelectedText: function (numSelected, numTotal) {
      return (numSelected == 1) ? "{0} item selected" : "{0} items selected";
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants