IDE: improved FPDoc editor dialog i18n

This commit is contained in:
Maxim Ganetsky 2025-01-05 23:14:30 +03:00
parent 4d840c6866
commit 73061f3b95
3 changed files with 8 additions and 4 deletions

View File

@ -1606,7 +1606,7 @@ begin
//DebugLn(['TFPDocEditForm.CopyFromInheritedButtonClick ']);
if ShortEdit.Text<>'' then begin
if IDEQuestionDialog(lisConfirmReplace,
GetContextTitle(fChain[0])+' already contains the help:'+LineEnding+ShortEdit.Text,
Format(lisAlreadyContainsTheHe, [GetContextTitle(fChain[0]), ShortEdit.Text]),
mtConfirmation, [mrYes, lisReplace,
mrCancel]) <> mrYes then exit;
end;

View File

@ -1020,7 +1020,9 @@
<Unit>
<Filename Value="fpdoceditwindow.pas"/>
<IsPartOfProject Value="True"/>
<ComponentName Value="FPDocEditor"/>
<HasResources Value="True"/>
<ResourceBaseClass Value="Form"/>
<UnitName Value="FPDocEditWindow"/>
</Unit>
<Unit>

View File

@ -52,7 +52,6 @@ resourcestring
lisBtnRename = '&Rename';
lisRename2 = 'Rename ...';
lisReplace = 'Replace';
lisConfirmReplace = 'Confirm Replace';
lisBtnReplace = '&Replace';
lisBtnDlgReplace = '&Replace ...';
lisEdit = 'Edit';
@ -1511,11 +1510,14 @@ resourcestring
lisQuickCheckFppkgConfigurationAtStart = 'Quick check Fppkg configuration at'
+' start';
// open-dialog filters
dlgFilterAll = 'All files';
lisConfirmReplace = 'Confirm Replace';
lisAlreadyContainsTheHe = '%s already contains the help:'+LineEnding+'%s';
lisInvalidDeclaration = 'Invalid Declaration';
lisPleasePlaceTheEditorCaretOnAnIdentifierIfThisIsANe = 'Please place the editor caret on an '
+'identifier. If this is a new unit, please save the file first.';
// open-dialog filters
dlgFilterAll = 'All files';
dlgFilterXML = 'XML files';
dlgFilterHTML = 'HTML files';
dlgFilterPrograms = 'Programs';