meeting-room-booking-system / mrbs-code

MRBS application code
Other
124 stars 61 forks source link

How can I change layout of day names in mini cal? #1380

Open jberanek opened 9 years ago

jberanek commented 9 years ago

I am running Norwegian user interface and it works OK. I want to change how the days in mini calendar are shown. I don't understand as the config file says: $strftime_format['dayname_cal'] = "%a";

According to php documentation days should then be shown in a three letter representation, not two characters and a dot. Monday=Mon, Saturday = Sat and so on. How can i fix this?

The same is true in the footer navigations as months are shown as Des. and not Des I really want it to look like 12. Des and not 12 Des. And there is a leading 0 in 01-09. I have done some investigations in the trailer.inc file but am not able to see what to change. I see use of %d while I thought %e should fix it but not. Any suggestion how I can fix this as well as the mini cal problem?

Reported by: *anonymous

Original Ticket: mrbs/support-requests/650

jberanek commented 9 years ago

The PHP documentation just says that %a gives "an abbreviated textual representation of the day". The example in English shows "Sun through Sat" but that does not mean that all locales will show a three letter abbreviation. As you say, for Norwegian you get "sø." and "lø." - although on Windows servers you get "søn" and "lør". The text is therefore coming from the system - I'm not sure how you define your own locale.

Original comment by: campbell-m

jberanek commented 9 years ago

OK, I will check if this is something I can configure. My old Linux server showed this correctly while my new Linux server does not. Any idea about the issue in the trailer?

Original comment by: *anonymous

jberanek commented 9 years ago

Setting

$strftime_format['daymonth'] = "%b %e"; // Used in trailer

in your config file should get rid of the leading zeroes. The "Des." issue is just another example of the server locale setting using that abbreviation.

Original comment by: campbell-m

jberanek commented 9 years ago

You mean uncommenting it in the config file? No effect. Do you have any idea of where I change the abbreviation issue on a Centos server? I have been googling a lot without any luck.

Original comment by: *anonymous

jberanek commented 9 years ago

Yes, I mean putting that line in the config file. Not quite sure about uncommenting it - it would only be there commented if you had put it there previously. Don't know why it's not working - maybe it's overridden later on in the file?

Sorry - I don't know how you change the abbreviation issue either. I tried a quick Google but couldn't find anything useful.

Original comment by: campbell-m

jberanek commented 9 years ago

it was commented out with // in the default file and I uncommented the line in my consifg file but it did not change anything.

Original comment by: *anonymous