It is currently October 21st, 2021, 5:57 am

Lua Calendar problem

Discuss the use of Lua in Script measures.
User avatar
lonelyeagle2005
Posts: 2
Joined: November 21st, 2013, 4:36 pm
Location: Serbia

Lua Calendar problem

Post by lonelyeagle2005 »

How can I change week start from Sunday to Monday?

I tried to edit Settings.inc but there is already ;StartOnMonday=1

-------------------------------------
; Please visit http://smurfier.github.com/LuaCalendar for detailed descriptions of the features listed below.

[Variables]
;Name of the Style Sheet
Style=Default

;===== Calendar functionality Options =====
;Uncomment the following settings to use.
[Lua]
;Custom text for Weekday labels. Uses the following format: Sun|Mon|Tue|Wed|Thu|Fri|Sat
;DayLabels=

;Set to 1 to disable Easter which is built into the script becasue of the need for complicated formulas.
;DisableBuiltInEvents=1

;Set to 1 to hide week 6 if not included in the current month
;HideLastWeek=1

;Holidays File names
;Note: For Holiday file names, multiple sources can be used by uisng the pipe delimiter (|).
EventFile=#@#Calendars\Holidays.xml

;Single Folder Mode
;When set to 1, the first parameter in EventFile is the folder all subsiquent files are located are in.
;SingleFolder=1

;Custom Text formatting for Month Labels. See Readme for details.
;LabelText=

;Set to 1 to add a leading zero to any number below 10.
;LeadingZeroes=1

;Custom text for Month labels. Uses the following format: Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec
;MonthLabels=

;Set to 1 to have the week start on Monday
;StartOnMonday=1

;Set to 1 to pull month names from the Localization Settings of your computer. Overrides Custom Month Labels.
UseLocalMonths=1

;The format for the list of upcomming events. {day} and {desc} are valid variables.
;NextFormat={day}: {desc}

User avatar
smurfier
Moderator
Posts: 1930
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Lua Calendar problem

Post by smurfier »

Remove the ; before StartOnMonday=1. The ; means that the line is commented out and is not read as a variable.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
lonelyeagle2005
Posts: 2
Joined: November 21st, 2013, 4:36 pm
Location: Serbia

Re: Lua Calendar problem

Post by lonelyeagle2005 »

Thank you ,it's ok now.