mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 14:19:10 +02:00
IDE: environment: added turkish
git-svn-id: trunk@15469 -
This commit is contained in:
parent
2b65ae6477
commit
faf4ac0821
@ -32,9 +32,29 @@ implementation
|
|||||||
|
|
||||||
function TSynBeautifierPas.GetIndentForLineBreak(Editor: TCustomSynEdit;
|
function TSynBeautifierPas.GetIndentForLineBreak(Editor: TCustomSynEdit;
|
||||||
InsertPos: TPoint; var NextText: string): integer;
|
InsertPos: TPoint; var NextText: string): integer;
|
||||||
|
var
|
||||||
|
LastTextY: LongInt;
|
||||||
|
Line: string;
|
||||||
|
Lines: TStrings;
|
||||||
begin
|
begin
|
||||||
Result:=inherited GetIndentForLineBreak(Editor, InsertPos, NextText);
|
Result:=0;
|
||||||
|
//DebugLn(['TSynCustomBeautifier.GetIndentForLineBreak ',dbgs(InsertPos)]);
|
||||||
|
NextText:=Trim(NextText);
|
||||||
|
if InsertPos.Y<1 then exit;
|
||||||
|
LastTextY:=InsertPos.Y;
|
||||||
|
Lines:=Editor.Lines;
|
||||||
|
if LastTextY>Lines.Count then
|
||||||
|
LastTextY:=Lines.Count;
|
||||||
|
while (LastTextY>0) do begin
|
||||||
|
Line:=Lines[LastTextY-1];
|
||||||
|
if LastTextY=InsertPos.Y then
|
||||||
|
Line:=copy(Line,1,InsertPos.X-1);
|
||||||
|
if Line<>'' then begin
|
||||||
|
Result:=LeftSpaces(Editor,Line,false);
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
dec(LastTextY);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
@ -11410,7 +11410,6 @@ var
|
|||||||
Lines: TStrings;
|
Lines: TStrings;
|
||||||
begin
|
begin
|
||||||
Result:=0;
|
Result:=0;
|
||||||
DebugLn(['TSynCustomBeautifier.GetIndentForLineBreak ',dbgs(InsertPos)]);
|
|
||||||
if InsertPos.Y<1 then exit;
|
if InsertPos.Y<1 then exit;
|
||||||
LastTextY:=InsertPos.Y;
|
LastTextY:=InsertPos.Y;
|
||||||
Lines:=Editor.Lines;
|
Lines:=Editor.Lines;
|
||||||
|
@ -131,6 +131,8 @@ begin
|
|||||||
Result:=rsLanguageLithuanian
|
Result:=rsLanguageLithuanian
|
||||||
else if CompareText(ID,'sk')=0 then
|
else if CompareText(ID,'sk')=0 then
|
||||||
Result:=rsLanguageSlovak
|
Result:=rsLanguageSlovak
|
||||||
|
else if CompareText(ID,'tr')=0 then
|
||||||
|
Result:=rsLanguageTurkish
|
||||||
else
|
else
|
||||||
Result:=ID;
|
Result:=ID;
|
||||||
end;
|
end;
|
||||||
|
@ -2065,6 +2065,7 @@ resourcestring
|
|||||||
rsLanguageAfrikaans = 'Afrikaans';
|
rsLanguageAfrikaans = 'Afrikaans';
|
||||||
rsLanguageLithuanian = 'Lithuanian';
|
rsLanguageLithuanian = 'Lithuanian';
|
||||||
rsLanguageSlovak = 'Slovak';
|
rsLanguageSlovak = 'Slovak';
|
||||||
|
rsLanguageTurkish = 'Turkish';
|
||||||
|
|
||||||
// Unit dependencies
|
// Unit dependencies
|
||||||
dlgUnitDepCaption = 'Unit dependencies';
|
dlgUnitDepCaption = 'Unit dependencies';
|
||||||
|
Loading…
Reference in New Issue
Block a user