Support

  1. av
  2. Features Request
  3. Wednesday, May 06 2015, 07:53 PM
How to change the first day of the week for localization?
For example, for the United States the first day of the week - Sunday.
And for Russia - on Monday.

In folder plugins\jsn\socialnetwork\app\Locale\ru_RU to be a file "LC_TIME".

The file has a line:
first_weekday 2
first_workday 2

But when we fill a field of type "Date", the first day of the calendar shows Sunday
Screenshot attached.

Thanks in advance
Attachments (1)
admin Accepted Answer
Admin
Hi,
for now this is not supported because this calendar become from static Javascript (not PHP), to change firstday from Sunday do Monday in calendar follow these steps:

- Go into Social Network Admin panel
- Click on "Themes Manager" on left menu
- under "Base Theme" title click on "Social Network"
- Choose on left side "Events/create.ctp" file
- Click on "Copy" Button and select "Blue Theme"
- Return on "Themes Manager" Page and choose "Blue Theme"
- Choose on left side "Events/create.ctp" file
- Edit this template file , you can add this code after line 30:
firstDay: true,

- Save the file

In the steps above, we take care to copy the file into the "Blue Theme" template, this because the basic template is overwritten when you update the plugin.
  1. more than a month ago
  2. Features Request
  3. # 1
av Accepted Answer
Fulfilled all the recommendations.
In the fields of "date" when creating events Valid Monday was the first day. Thank you.

But when editing the user profile, such as a birthday, the first day of the week in the calendar - Sunday.

How can globally set a rule to the first day of the week was Monday?
Thanks in advance.
  1. more than a month ago
  2. Features Request
  3. # 2
admin Accepted Answer
Admin
Hi,
at file /administrators/components/com_jsn/models/fields/date.php at line 93 replace add this parameter:
data-date-weekstart="1"


so line 93 becomes:
return '<div data-date-weekstart="1" data-date-viewmode=.........


To fix both problems in next release we will add some language constant (if not already present in Joomla).
  1. more than a month ago
  2. Features Request
  3. # 3
av Accepted Answer
Line 93 in the file has changed, the cache cleared.
But all the same calendar week begins Sunday

Maybe it somewhere else to be done?
  1. more than a month ago
  2. Features Request
  3. # 4
av Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 5
admin Accepted Answer
Admin
Easy Profile strings are parsed by Joomla language manager.

Try to read this post: https://www.easy-profile.com/support/all-default-fields-in-back-end-greyed-out-in-front-end-invisible.html#reply-7337
  1. more than a month ago
  2. Features Request
  3. # 6
admin Accepted Answer
Admin
Hi,
strange for me works, post me your site link please, we will check.
Attachments (1)
  1. more than a month ago
  2. Features Request
  3. # 7
av Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 8
admin Accepted Answer
Admin
I can't see the code (see screenshot)
Sorry so many questions.
No problem ;). Your question help us to make a best component.

I see another small problem on your site, in the green button on GMap field missing Pin icon, re-download latest version and reinstall, during first hour of release we have re-uploaded a correct version.
Attachments (1)
  1. more than a month ago
  2. Features Request
  3. # 9
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.