CalLite: Add Greek language, but mark Languages as deprecated. v0.3.4.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6772 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2018-12-27 13:31:26 +00:00
parent 21f4237f04
commit f822a3d475
3 changed files with 20 additions and 9 deletions

View File

@ -13,7 +13,7 @@
</CompilerOptions> </CompilerOptions>
<Description Value="A lightweight calendar component"/> <Description Value="A lightweight calendar component"/>
<License Value="Modified LGL2 (with linking exception)"/> <License Value="Modified LGL2 (with linking exception)"/>
<Version Minor="3" Release="3"/> <Version Minor="3" Release="4"/>
<Files Count="1"> <Files Count="1">
<Item1> <Item1>
<Filename Value="source/calendarlite.pas"/> <Filename Value="source/calendarlite.pas"/>

View File

@ -9,7 +9,7 @@ object Form1: TForm1
Color = clWindow Color = clWindow
Font.CharSet = ANSI_CHARSET Font.CharSet = ANSI_CHARSET
OnCreate = FormCreate OnCreate = FormCreate
LCLVersion = '1.7' LCLVersion = '2.1.0.0'
object PSettings: TPanel object PSettings: TPanel
Left = 0 Left = 0
Height = 432 Height = 432
@ -117,8 +117,8 @@ object Form1: TForm1
end end
object rgLanguage: TRadioGroup object rgLanguage: TRadioGroup
Left = 200 Left = 200
Height = 200 Height = 208
Top = 224 Top = 216
Width = 160 Width = 160
AutoFill = True AutoFill = True
Caption = 'Language to use' Caption = 'Language to use'
@ -130,7 +130,7 @@ object Form1: TForm1
ChildSizing.ShrinkVertical = crsScaleChilds ChildSizing.ShrinkVertical = crsScaleChilds
ChildSizing.Layout = cclLeftToRightThenTopToBottom ChildSizing.Layout = cclLeftToRightThenTopToBottom
ChildSizing.ControlsPerLine = 1 ChildSizing.ControlsPerLine = 1
ClientHeight = 180 ClientHeight = 188
ClientWidth = 156 ClientWidth = 156
ItemIndex = 0 ItemIndex = 0
Items.Strings = ( Items.Strings = (
@ -142,13 +142,14 @@ object Form1: TForm1
'Italian' 'Italian'
'Polish' 'Polish'
'Finnish' 'Finnish'
'Greek'
) )
OnClick = rgLanguageClick OnClick = rgLanguageClick
TabOrder = 4 TabOrder = 4
end end
object rgStartingDOW: TRadioGroup object rgStartingDOW: TRadioGroup
Left = 200 Left = 200
Height = 176 Height = 168
Top = 40 Top = 40
Width = 160 Width = 160
AutoFill = True AutoFill = True
@ -161,7 +162,7 @@ object Form1: TForm1
ChildSizing.ShrinkVertical = crsScaleChilds ChildSizing.ShrinkVertical = crsScaleChilds
ChildSizing.Layout = cclLeftToRightThenTopToBottom ChildSizing.Layout = cclLeftToRightThenTopToBottom
ChildSizing.ControlsPerLine = 1 ChildSizing.ControlsPerLine = 1
ClientHeight = 156 ClientHeight = 148
ClientWidth = 156 ClientWidth = 156
Items.Strings = ( Items.Strings = (
'Sunday' 'Sunday'

View File

@ -95,6 +95,10 @@ const
FinnishMonths = 'Tammikuu,Helmikuu,Maaliskuu,Huhtikuu,Toukokuu,Kesäkuu,Heinäkuu,Elokuu,Syyskuu,Lokakuu,Marraskuu,Joulukuu'; FinnishMonths = 'Tammikuu,Helmikuu,Maaliskuu,Huhtikuu,Toukokuu,Kesäkuu,Heinäkuu,Elokuu,Syyskuu,Lokakuu,Marraskuu,Joulukuu';
FinnishDays = 'Su,Ma,Ti,ke,To,Pe,La'; FinnishDays = 'Su,Ma,Ti,ke,To,Pe,La';
GreekDays = 'Κυρ,Δευ,Τρί,Τετ,Πεμ,Παρ,Σαβ';
GreekMonths = 'Ιανουάριος,Φεβρουάριος,Μάρτιος,Απρίλος,Μάιος,Ιούνιος,Ιούλιος,Αύγουστος,Σεπτέμβριος,Οκτώβριος,Νοέμβριος,Δεκέμβριος';
GreekTexts = 'Σήμερα είναι,"mmm dd"","" yyyy",Καμία γιορτή,Δεν έχει καμία αργία';
type type
TCalendarLite = class; TCalendarLite = class;
@ -140,7 +144,7 @@ type
smFirstWeek, smNextWeek, smNextWeekRange); smFirstWeek, smNextWeek, smNextWeekRange);
TLanguage = (lgEnglish, lgFrench, lgGerman, lgHebrew, lgSpanish, lgItalian, TLanguage = (lgEnglish, lgFrench, lgGerman, lgHebrew, lgSpanish, lgItalian,
lgPolish, lgFinnish); lgPolish, lgFinnish, lgGreek);
{ TCalDateList } { TCalDateList }
@ -379,7 +383,7 @@ type
property WeekendDays: TDaysOfWeek read FWeekendDays property WeekendDays: TDaysOfWeek read FWeekendDays
write SetWeekendDays default [dowSunday]; write SetWeekendDays default [dowSunday];
property Languages: TLanguage read FLanguage property Languages: TLanguage read FLanguage
write SetLanguage default lgEnglish; write SetLanguage default lgEnglish; deprecated 'Use DayNames, DisplayTexts, and MonthNames instead.';
// new event properties // new event properties
property OnDateChange: TNotifyEvent read FOnDateChange write FOnDateChange; property OnDateChange: TNotifyEvent read FOnDateChange write FOnDateChange;
@ -1833,6 +1837,12 @@ begin
DisplayTexts := FinnishTexts; DisplayTexts := FinnishTexts;
BiDiMode := bdLeftToRight; BiDiMode := bdLeftToRight;
end; end;
lgGreek: begin
DayNames := GreekDays;
MonthNames := GreekMonths;
DisplayTexts := GreekTexts;
BiDiMode := bdLeftToRight;
end;
end; end;
Invalidate; Invalidate;