-
Notifications
You must be signed in to change notification settings - Fork 824
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
[2012-07-19] Datefield, DatePicker not displayed in the user language #1540
Comments
comment by: otiteca I modified the DateField.php class and now it's fully working with i18n support in jquery. I attach the modified DateField to this ticket. I keep the ticket open, until one of the contributor push the modified file to the repo. Olivier |
comment by: otiteca I saw that this issue have been changed from Critical to Medium. On my point of view, if you're not applying the changes i posted, Silverstripe is unusable for international users, that uses DataField. I think that's critical. |
comment by: @vanlawrence (clawrence) Replying to [comment:3 otiteca]:
I'll be taking this up with Hamish on Monday, and if he is able I'm sure he'll merge your fix. Thank you for your contribution, please don't think the change in priority is related to the importance of the issue but rather a number of factors, including existing backlog issues, resource management and the fact that the issue you raised had already been solved (by you). In the future, you might find that your fixes are reviewed much sooner if you submit a pull request. Thanks for your help and I apologise for any misunderstanding. |
comment by: @kmayo-ss (kmayo) Hi Otiteca, I have been testing the changes you have made on a fresh SilverStripe install which has been set to French and I have not been able to replicate the fix. One of the things I noticed is that the changes you made were to Datefield_View_JQuery::onAfterRender which does not actually make any changes to the html that has been passed to it and the Javascript files it adds do not end up in the final page source. I think I will go over this with a colleague in case there is something that has been missed and will update this ticket accordingly. Regards Kirk |
comment by: otiteca Sorry to not come back earlier. To explain, you have to remember that we are talking about a javascript calendar. so if you did not see the difference using my fix, certainly you forgot to download the date translation files for jquery, which are not part of the 3rd party framework, you guys omitted it. "working", because there's still an issue for which i opened an ticket for userdefinedform modules, and their date field.
|
+1 we also need a localized calendar |
It might be the case, once we get further to a react-based user interface, that we build a new date picker field that supports custom formats. :D |
We'll fix this by simply removing our reliance on jQuery UI, and using built-in browser behaviour for 4.x: #6626 |
created by: otiteca
created at: 2012-07-19
original ticket: http://open.silverstripe.org/ticket/7687
For now the Date picker is displayed only in English when using a DateField.
reason:
the jquery i18n language files are not existing in thirdparty folder under framework.
for my personal case, i did want it in French.
What i did to solve the problem:
DateField.php line 470, added a map for fr_FR:
then into framework/thirdparty/jquery-ui, i
(I did not find the minified versions).
then I modified DateField.php line 514:
this was to point the not minified version i checkout.
The text was updated successfully, but these errors were encountered: