mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-24 11:19:43 +02:00
removed some doubles from the resourcestrings from Graeme
git-svn-id: trunk@9958 -
This commit is contained in:
parent
1439364b64
commit
2d3d206b40
@ -121,6 +121,8 @@ begin
|
|||||||
Result:=rsLanguageChinese
|
Result:=rsLanguageChinese
|
||||||
else if CompareText(ID,'id')=0 then
|
else if CompareText(ID,'id')=0 then
|
||||||
Result:=rsLanguageIndonesian
|
Result:=rsLanguageIndonesian
|
||||||
|
else if CompareText(ID,'af_ZA')=0 then
|
||||||
|
Result:=rsLanguageAfrikaans
|
||||||
else
|
else
|
||||||
Result:=ID;
|
Result:=ID;
|
||||||
end;
|
end;
|
||||||
|
@ -1246,16 +1246,16 @@ begin
|
|||||||
ecGotoEditor0 : Result:= Format(srkmecGotoEditor,[cmd-ecGotoEditor1]);
|
ecGotoEditor0 : Result:= Format(srkmecGotoEditor,[cmd-ecGotoEditor1]);
|
||||||
|
|
||||||
// file menu
|
// file menu
|
||||||
ecNew : Result:= srkmecNew;
|
ecNew : Result:= lisMenuNewOther;
|
||||||
ecNewUnit : Result:= srkmecNewUnit;
|
ecNewUnit : Result:= lisMenuNewUnit;
|
||||||
ecNewForm : Result:= srkmecNewForm;
|
ecNewForm : Result:= lisMenuNewForm;
|
||||||
ecOpen : Result:= lisMenuOpen;
|
ecOpen : Result:= lisMenuOpen;
|
||||||
ecRevert : Result:= lisMenuRevert;
|
ecRevert : Result:= lisMenuRevert;
|
||||||
ecSave : Result:= lisMenuSave;
|
ecSave : Result:= lisMenuSave;
|
||||||
ecSaveAs : Result:= srkmecSaveAs;
|
ecSaveAs : Result:= lisMenuSaveAs;
|
||||||
ecSaveAll : Result:= srkmecSaveAll;
|
ecSaveAll : Result:= lisMenuSaveAll;
|
||||||
ecClose : Result:= lismenuclose;
|
ecClose : Result:= lisMenuClose;
|
||||||
ecCloseAll : Result:= srkmecCloseAll;
|
ecCloseAll : Result:= lisMenuCloseAll;
|
||||||
ecCleanDirectory : Result:= lisMenuCleanDirectory;
|
ecCleanDirectory : Result:= lisMenuCleanDirectory;
|
||||||
ecRestart : Result:= lisMenuRestart;
|
ecRestart : Result:= lisMenuRestart;
|
||||||
ecQuit : Result:= lisMenuQuit;
|
ecQuit : Result:= lisMenuQuit;
|
||||||
@ -1415,7 +1415,7 @@ begin
|
|||||||
ecRescanFPCSrcDir : Result:= lisMenuRescanFPCSourceDirectory;
|
ecRescanFPCSrcDir : Result:= lisMenuRescanFPCSourceDirectory;
|
||||||
|
|
||||||
// help menu
|
// help menu
|
||||||
ecAboutLazarus : Result:= lisMenuAboutLazarus;
|
ecAboutLazarus : Result:= lisAboutLazarus;
|
||||||
ecOnlineHelp : Result:= lisMenuOnlineHelp;
|
ecOnlineHelp : Result:= lisMenuOnlineHelp;
|
||||||
ecConfigureHelp : Result:= lisMenuConfigureHelp;
|
ecConfigureHelp : Result:= lisMenuConfigureHelp;
|
||||||
ecContextHelp : Result:= lisMenuContextHelp;
|
ecContextHelp : Result:= lisMenuContextHelp;
|
||||||
|
@ -143,9 +143,8 @@ resourcestring
|
|||||||
lisMenuNewUnit = 'New Unit';
|
lisMenuNewUnit = 'New Unit';
|
||||||
lisMenuNewForm = 'New Form';
|
lisMenuNewForm = 'New Form';
|
||||||
lisMenuNewOther = 'New ...';
|
lisMenuNewOther = 'New ...';
|
||||||
lisMenuOpen = 'Open';
|
lisMenuOpen = 'Open ...';
|
||||||
lisMenuRevert = 'Revert';
|
lisMenuRevert = 'Revert';
|
||||||
lisOpen = 'Open ...';
|
|
||||||
lisPkgEditPublishPackage = 'Publish Package';
|
lisPkgEditPublishPackage = 'Publish Package';
|
||||||
lisMenuOpenRecent = 'Open Recent ...';
|
lisMenuOpenRecent = 'Open Recent ...';
|
||||||
lisMenuSave = 'Save';
|
lisMenuSave = 'Save';
|
||||||
@ -320,7 +319,6 @@ resourcestring
|
|||||||
lisMenuCodeToolsOptions = 'CodeTools Options ...';
|
lisMenuCodeToolsOptions = 'CodeTools Options ...';
|
||||||
lisMenuCodeToolsDefinesEditor = 'CodeTools defines editor ...';
|
lisMenuCodeToolsDefinesEditor = 'CodeTools defines editor ...';
|
||||||
|
|
||||||
lisMenuAboutLazarus = 'About Lazarus ...';
|
|
||||||
lisMenuOnlineHelp = 'Online Help';
|
lisMenuOnlineHelp = 'Online Help';
|
||||||
lisMenuConfigureHelp = 'Configure Help ...';
|
lisMenuConfigureHelp = 'Configure Help ...';
|
||||||
lisMenuContextHelp = 'Context sensitive Help';
|
lisMenuContextHelp = 'Context sensitive Help';
|
||||||
@ -673,11 +671,9 @@ resourcestring
|
|||||||
lisCopyError = 'Copy Error';
|
lisCopyError = 'Copy Error';
|
||||||
|
|
||||||
// hints
|
// hints
|
||||||
lisHintNewUnit = 'New Unit';
|
|
||||||
lisHintOpen = 'Open';
|
lisHintOpen = 'Open';
|
||||||
lisHintSave = 'Save';
|
lisHintSave = 'Save';
|
||||||
lisHintSaveAll = 'Save all';
|
lisHintSaveAll = 'Save all';
|
||||||
lisHintNewForm = 'New Form';
|
|
||||||
lisHintToggleFormUnit = 'Toggle Form/Unit';
|
lisHintToggleFormUnit = 'Toggle Form/Unit';
|
||||||
lisHintViewUnits = 'View Units';
|
lisHintViewUnits = 'View Units';
|
||||||
lisHintViewForms = 'View Forms';
|
lisHintViewForms = 'View Forms';
|
||||||
@ -1474,14 +1470,6 @@ resourcestring
|
|||||||
srkmecMoveEditorRight = 'Move editor right';
|
srkmecMoveEditorRight = 'Move editor right';
|
||||||
srkmecGotoEditor = 'Go to editor %d';
|
srkmecGotoEditor = 'Go to editor %d';
|
||||||
|
|
||||||
// file menu
|
|
||||||
srkmecNew = 'New';
|
|
||||||
srkmecNewUnit = 'New unit';
|
|
||||||
srkmecNewForm = 'New form';
|
|
||||||
srkmecSaveAs = 'Save as';
|
|
||||||
srkmecSaveAll = 'Save all';
|
|
||||||
srkmecCloseAll = 'Close all';
|
|
||||||
|
|
||||||
// edit menu
|
// edit menu
|
||||||
srkmecSelectionTabs2Spaces = 'Convert tabs to spaces in selection';
|
srkmecSelectionTabs2Spaces = 'Convert tabs to spaces in selection';
|
||||||
srkmecInsertCharacter = 'Insert from Charactermap';
|
srkmecInsertCharacter = 'Insert from Charactermap';
|
||||||
@ -1677,6 +1665,7 @@ resourcestring
|
|||||||
rsLanguageJapanese = 'Japanese';
|
rsLanguageJapanese = 'Japanese';
|
||||||
rsLanguageChinese = 'Chinese';
|
rsLanguageChinese = 'Chinese';
|
||||||
rsLanguageIndonesian = 'Indonesian';
|
rsLanguageIndonesian = 'Indonesian';
|
||||||
|
rsLanguageAfrikaans = 'Afrikaans';
|
||||||
|
|
||||||
// Unit dependencies
|
// Unit dependencies
|
||||||
dlgUnitDepCaption = 'Unit dependencies';
|
dlgUnitDepCaption = 'Unit dependencies';
|
||||||
@ -3150,5 +3139,17 @@ resourcestring
|
|||||||
|
|
||||||
// version info tab
|
// version info tab
|
||||||
VersionInfoTitle = 'Version Info';
|
VersionInfoTitle = 'Version Info';
|
||||||
|
|
||||||
|
// Procedure List dialog
|
||||||
|
lisPListObjects = '&Objects';
|
||||||
|
lisPListJumpToSelection = 'Jump To Selection';
|
||||||
|
lisPListFilterAny = 'Filter by matching any part of method';
|
||||||
|
lisPListFilterStart = 'Filter by matching with start of method';
|
||||||
|
lisPListChangeFont = 'Change Font';
|
||||||
|
lisPListCopyMethodToClipboard = 'Copy method name to the clipboard';
|
||||||
|
lisPListType = 'Type';
|
||||||
|
lisPListAll = '<All>';
|
||||||
|
lisPListNone = '<None>';
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
end.
|
end.
|
||||||
|
@ -1369,7 +1369,7 @@ begin
|
|||||||
|
|
||||||
ButtonTop := 2;
|
ButtonTop := 2;
|
||||||
ButtonLeft := 2;
|
ButtonLeft := 2;
|
||||||
MainIDEBar.NewUnitSpeedBtn := CreateButton('NewUnitSpeedBtn' , 'btn_newunit' , 1, ButtonLeft, ButtonTop, [mfLeft], @mnuNewUnitClicked, lisHintNewUnit);
|
MainIDEBar.NewUnitSpeedBtn := CreateButton('NewUnitSpeedBtn' , 'btn_newunit' , 1, ButtonLeft, ButtonTop, [mfLeft], @mnuNewUnitClicked, lisMenuNewUnit);
|
||||||
|
|
||||||
MainIDEBar.OpenFileSpeedBtn := CreateButton('OpenFileSpeedBtn' , 'btn_openfile' , 1, ButtonLeft, ButtonTop, [mfLeft], @mnuOpenClicked, lisHintOpen);
|
MainIDEBar.OpenFileSpeedBtn := CreateButton('OpenFileSpeedBtn' , 'btn_openfile' , 1, ButtonLeft, ButtonTop, [mfLeft], @mnuOpenClicked, lisHintOpen);
|
||||||
|
|
||||||
@ -1381,7 +1381,7 @@ begin
|
|||||||
|
|
||||||
MainIDEBar.SaveSpeedBtn := CreateButton('SaveSpeedBtn' , 'btn_save' , 2, ButtonLeft, ButtonTop, [mfLeft], @mnuSaveClicked, lisHintSave);
|
MainIDEBar.SaveSpeedBtn := CreateButton('SaveSpeedBtn' , 'btn_save' , 2, ButtonLeft, ButtonTop, [mfLeft], @mnuSaveClicked, lisHintSave);
|
||||||
MainIDEBar.SaveAllSpeedBtn := CreateButton('SaveAllSpeedBtn' , 'btn_saveall' , 1, ButtonLeft, ButtonTop, [mfLeft], @mnuSaveAllClicked, lisHintSaveAll);
|
MainIDEBar.SaveAllSpeedBtn := CreateButton('SaveAllSpeedBtn' , 'btn_saveall' , 1, ButtonLeft, ButtonTop, [mfLeft], @mnuSaveAllClicked, lisHintSaveAll);
|
||||||
MainIDEBar.NewFormSpeedBtn := CreateButton('NewFormSpeedBtn' , 'btn_newform' , 1, ButtonLeft, ButtonTop, [mfLeft], @mnuNewFormClicked, lisHintNewForm);
|
MainIDEBar.NewFormSpeedBtn := CreateButton('NewFormSpeedBtn' , 'btn_newform' , 1, ButtonLeft, ButtonTop, [mfLeft], @mnuNewFormClicked, lisMenuNewForm);
|
||||||
MainIDEBar.ToggleFormSpeedBtn := CreateButton('ToggleFormSpeedBtn' , 'btn_toggleform', 2, ButtonLeft, ButtonTop, [mfLeft, mfTop], @mnuToggleFormUnitCLicked, lisHintToggleFormUnit);
|
MainIDEBar.ToggleFormSpeedBtn := CreateButton('ToggleFormSpeedBtn' , 'btn_toggleform', 2, ButtonLeft, ButtonTop, [mfLeft, mfTop], @mnuToggleFormUnitCLicked, lisHintToggleFormUnit);
|
||||||
|
|
||||||
// new row
|
// new row
|
||||||
|
@ -323,7 +323,7 @@ begin
|
|||||||
CreateMenuSeparatorSection(mnuFile,itmFileOpenSave,'itmFileOpenSave');
|
CreateMenuSeparatorSection(mnuFile,itmFileOpenSave,'itmFileOpenSave');
|
||||||
ParentMI:=itmFileOpenSave;
|
ParentMI:=itmFileOpenSave;
|
||||||
|
|
||||||
CreateMenuItem(ParentMI, itmFileOpen, 'itmFileOpen', lisOpen, 'menu_open');
|
CreateMenuItem(ParentMI, itmFileOpen, 'itmFileOpen', lisMenuOpen, 'menu_open');
|
||||||
CreateMenuItem(ParentMI,itmFileRevert,'itmFileRevert',lisMenuRevert,'menu_undo');
|
CreateMenuItem(ParentMI,itmFileRevert,'itmFileRevert',lisMenuRevert,'menu_undo');
|
||||||
CreateMenuSubSection(ParentMI,itmFileRecentOpen,'itmFileRecentOpen',lisMenuOpenRecent);
|
CreateMenuSubSection(ParentMI,itmFileRecentOpen,'itmFileRecentOpen',lisMenuOpenRecent);
|
||||||
CreateMenuItem(ParentMI,itmFileSave,'itmFileSave',lisMenuSave,'menu_save');
|
CreateMenuItem(ParentMI,itmFileSave,'itmFileSave',lisMenuSave,'menu_save');
|
||||||
@ -738,7 +738,7 @@ begin
|
|||||||
ParentMI:=itmInfoHelps;
|
ParentMI:=itmInfoHelps;
|
||||||
|
|
||||||
CreateMenuItem(ParentMI,itmHelpAboutLazarus,'itmHelpAboutLazarus',
|
CreateMenuItem(ParentMI,itmHelpAboutLazarus,'itmHelpAboutLazarus',
|
||||||
lisMenuAboutLazarus);
|
lisAboutLazarus);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -115,27 +115,17 @@ uses
|
|||||||
,LazIDEIntf
|
,LazIDEIntf
|
||||||
,IDECommands
|
,IDECommands
|
||||||
,Clipbrd
|
,Clipbrd
|
||||||
|
,LazarusIDEStrConsts
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
||||||
const
|
const
|
||||||
cProcedureList = 'ProcedureList';
|
|
||||||
cAbout =
|
cAbout =
|
||||||
'Procedure List (Lazarus addon)' + #10#10 +
|
'Procedure List (Lazarus addon)' + #10#10 +
|
||||||
'Author: Graeme Geldenhuys (graemeg@gmail.com)' + #10 +
|
'Author: Graeme Geldenhuys (graemeg@gmail.com)' + #10 +
|
||||||
'Inspired by: GExperts (www.gexperts.org)';
|
'Inspired by: GExperts (www.gexperts.org)';
|
||||||
|
|
||||||
|
|
||||||
resourcestring
|
|
||||||
SProcedureListCaption = 'Procedure List...';
|
|
||||||
SAllString = '<All>';
|
|
||||||
SNoneString = '<None>';
|
|
||||||
SUnknown = 'Unknown';
|
|
||||||
SImplementationNotFound = 'Implementation section not found (parser error?)';
|
|
||||||
SObjects = '&Objects';
|
|
||||||
SSearch = '&Search';
|
|
||||||
|
|
||||||
|
|
||||||
{ This is where it all starts. Gets called from Lazarus. }
|
{ This is where it all starts. Gets called from Lazarus. }
|
||||||
procedure ExecuteProcedureList(Sender: TObject);
|
procedure ExecuteProcedureList(Sender: TObject);
|
||||||
var
|
var
|
||||||
@ -264,8 +254,19 @@ begin
|
|||||||
self.KeyPreview := True;
|
self.KeyPreview := True;
|
||||||
self.Position := poDesktopCenter;
|
self.Position := poDesktopCenter;
|
||||||
|
|
||||||
lblObjects.Caption := SObjects;
|
// assign resource strings to Captions and Hints
|
||||||
lblSearch.Caption := SSearch;
|
self.Caption := srkmecProcedureList;
|
||||||
|
lblObjects.Caption := lisPListObjects;
|
||||||
|
lblSearch.Caption := lisMenuSearch;
|
||||||
|
tbAbout.Hint := lisMenuTemplateAbout;
|
||||||
|
tbJumpTo.Hint := lisPListJumpToSelection;
|
||||||
|
tbFilterAny.Hint := lisPListFilterAny;
|
||||||
|
tbFilterStart.Hint := lisPListFilterStart;
|
||||||
|
tbChangeFont.Hint := lisPListChangeFont;
|
||||||
|
tbCopy.Hint := lisPListCopyMethodToClipboard;
|
||||||
|
LV.Column[1].Caption := lisProcedure;
|
||||||
|
LV.Column[2].Caption := lisPListType;
|
||||||
|
LV.Column[3].Caption := lisToDoLLine;
|
||||||
|
|
||||||
LV.Column[0].Width := 20;
|
LV.Column[0].Width := 20;
|
||||||
LV.Column[1].Width := 300;
|
LV.Column[1].Width := 300;
|
||||||
@ -384,8 +385,8 @@ var
|
|||||||
lNodeText: string;
|
lNodeText: string;
|
||||||
begin
|
begin
|
||||||
cbObjects.Items.Clear;
|
cbObjects.Items.Clear;
|
||||||
cbObjects.Items.Add(SAllString);
|
cbObjects.Items.Add(lisPListAll);
|
||||||
cbObjects.Items.Add(SNoneString);
|
cbObjects.Items.Add(lisPListNone);
|
||||||
try
|
try
|
||||||
{ get active source editor }
|
{ get active source editor }
|
||||||
lSrcEditor := SourceEditorWindow.ActiveEditor;
|
lSrcEditor := SourceEditorWindow.ActiveEditor;
|
||||||
@ -439,7 +440,7 @@ var
|
|||||||
lCaret: TCodeXYPosition;
|
lCaret: TCodeXYPosition;
|
||||||
FSearchAll: boolean;
|
FSearchAll: boolean;
|
||||||
begin
|
begin
|
||||||
FSearchAll := cbObjects.Text = SAllString;
|
FSearchAll := cbObjects.Text = lisPListAll;
|
||||||
lNodeText := pCodeTool.ExtractProcHead(pNode,
|
lNodeText := pCodeTool.ExtractProcHead(pNode,
|
||||||
[phpWithoutClassKeyword, phpWithoutParamList, phpWithoutBrackets,
|
[phpWithoutClassKeyword, phpWithoutParamList, phpWithoutBrackets,
|
||||||
phpWithoutSemicolon, phpWithoutClassName]);
|
phpWithoutSemicolon, phpWithoutClassName]);
|
||||||
@ -492,7 +493,7 @@ var
|
|||||||
begin
|
begin
|
||||||
{ lets filter by class selection. }
|
{ lets filter by class selection. }
|
||||||
lClass := pCodeTool.ExtractClassNameOfProcNode(pNode);
|
lClass := pCodeTool.ExtractClassNameOfProcNode(pNode);
|
||||||
if cbObjects.Text = SNoneString then
|
if cbObjects.Text = lisPListNone then
|
||||||
Result := lClass = ''
|
Result := lClass = ''
|
||||||
else
|
else
|
||||||
Result := lClass = cbObjects.Text;
|
Result := lClass = cbObjects.Text;
|
||||||
|
@ -745,7 +745,7 @@ begin
|
|||||||
InputHistories.ApplyFileDialogSettings(SaveDialog);
|
InputHistories.ApplyFileDialogSettings(SaveDialog);
|
||||||
SaveDialog.InitialDir :=
|
SaveDialog.InitialDir :=
|
||||||
LazPackage.GetFileDialogInitialDir(SaveDialog.InitialDir);
|
LazPackage.GetFileDialogInitialDir(SaveDialog.InitialDir);
|
||||||
SaveDialog.Title:=srkmecSaveAs;
|
SaveDialog.Title := lisMenuSaveAs;
|
||||||
SaveDialog.Options := SaveDialog.Options+[ofPathMustExist];
|
SaveDialog.Options := SaveDialog.Options+[ofPathMustExist];
|
||||||
if SaveDialog.Execute then begin
|
if SaveDialog.Execute then begin
|
||||||
AFilename := CleanAndExpandFilename(SaveDialog.Filename);
|
AFilename := CleanAndExpandFilename(SaveDialog.Filename);
|
||||||
|
Loading…
Reference in New Issue
Block a user