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

DatePicker is not localized / translated (JavaScript) #2717

Closed
phili67 opened this issue Jul 6, 2017 · 3 comments · Fixed by #2731
Closed

DatePicker is not localized / translated (JavaScript) #2717

phili67 opened this issue Jul 6, 2017 · 3 comments · Fixed by #2731

Comments

@phili67
Copy link

phili67 commented Jul 6, 2017

First you have to solve this point :
capture d ecran 2017-07-06 a 10 27 25

You have to edit : skin/js/Footer.js

And to modify the line like this one :
capture d ecran 2017-07-06 a 10 28 37

Second, I mentioned this bug four times the bootstrap-datepicker can't work correctly :
You have to edit : Include/Footer.php and to add

<script src="<?= SystemURLs::getRootPath() ?>/skin/fullcalendar/fullcalendar.js"></script>
After the line : <script src="<?= SystemURLs::getRootPath() ?>/skin/adminlte/plugins/datepicker/bootstrap-datepicker.js"></script>

The translation way trough the messages.js don't work !!!!!!!!
( I have three web servers, one to develop and the others in production).

I make a fresh install of a LAMP server, and nothing work easely.
On the three servers the translation process with the js files doesn't work.

Every time, I update I have to retranslate the CRM :

  • GroupView.php
  • GroupEdit.php

So the code to replace in Include/ folder is :
Footer.php.zip

I don't know where to put the correction, i put the code on git on the branch etc ... but nothing is updated.

You can see here that the table is translated, I have my own method, not the js solution :
capture d ecran 2017-07-06 a 02 05 37

@phili67 phili67 changed the title Bug resolution with the problem in GroupView.php : null null and more Solution to the Bug with the problem in GroupView.php : null null and more Jul 6, 2017
@crossan007 crossan007 changed the title Solution to the Bug with the problem in GroupView.php : null null and more DatePicker is not localized (JavaScript) Jul 9, 2017
@crossan007
Copy link
Contributor

This relates to #964

@crossan007
Copy link
Contributor

Comment taken from #2628:

Ok I add a correction to the translation process.
In the : Include/Footer.php

I modify :

<script src="<?= SystemURLs::getRootPath() ?>/skin/adminlte/plugins/datepicker/bootstrap-datepicker.js"></script>
**<script src="<?= SystemURLs::getRootPath() ?>/skin/fullcalendar/fullcalendar.js"></script>**
<script src="<?= SystemURLs::getRootPath() ?>/skin/adminlte/plugins/daterangepicker/daterangepicker.js"></script>

This solve the datePicker translation problem.

Philippe

@crossan007
Copy link
Contributor

Comment taken from #2628 (author @DawoudIO ):

why are we adding <script src="/skin/fullcalendar/fullcalendar.js"></script> to the footer.php it is only used in the Calendar.php for now

@crossan007 crossan007 changed the title DatePicker is not localized (JavaScript) DatePicker is not localized / translated (JavaScript) Jul 9, 2017
@ghost ghost assigned crossan007 Jul 9, 2017
@ghost ghost added the In Review label Jul 9, 2017
@ghost ghost removed the In Review label Jul 9, 2017
@DawoudIO DawoudIO modified the milestones: 2.8.0, 2.9.0 Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants