-
Notifications
You must be signed in to change notification settings - Fork 101
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
per-column filter input placeholder does not respect lang attribute of its b:datatable #434
Comments
You're right, the search fields placeholders seem to be Maybe we forgot to include them in the localization files or it even is a bug of the datatables component itself. After having a quick look at https://datatables.net/manual/i18n it rather seems that those fields may not be included in the component though. |
That might be the reasonable solution not to show the placeholder if not specified or not attempted to be altered. Thank you for having a look at it. |
Yes, the word "search" is "hard coded" in the |
Actually it would be "[FELDNAME] durchsuchen", wouldn't it? Probably we could also recycle the search field translation and append the field's name to it. We may check if this introduces any problems with some languages, but may still be viable. |
@susanne69 Yes, that may be a solution that suits the needs of most developers:
|
Another solution would be to drop to literal part completely and use a symbolic term for search. However, I'm not sure, how that works out. See http://stackoverflow.com/questions/12036038/is-there-unicode-glyph-symbol-to-represent-search |
@zhedar Dunno. If the column was a city, the placeholder would be "Stadt durchsuchen". Which sounds like leaving the house and looking everywhere in the city :). Be that as it may, the i18n file could look like so:
The %1 being a placeholder that may be moved around freely. |
@zhedar The symbolic search approach sounds promising. We could simply use |
…make internationalization easier
I've implemented the solution using symbols instead of texts. |
Hi,
I am using Bundle-Version: 0.8.6, Bundle-Date: 20160522-21:44:31.
My b:datatable has the attribute lang set to "de",the per-column filter input fields show as placeholder the English translation though.
Kind regards,
susanne69
The text was updated successfully, but these errors were encountered: