소스 검색

Merged revisions 3596 via svnmerge from
http://svn.freepascal.org/svn/fpc/trunk

r3596 (florian)
+ display helpfull message if no help files are installed

git-svn-id: branches/fixes_2_0@3598 -

florian 19 년 전
부모
커밋
b60c653981
3개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      ide/fpmhelp.inc
  2. 5 1
      ide/wconstse.inc
  3. 5 1
      ide/whelp.pas

+ 1 - 1
ide/fpmhelp.inc

@@ -23,7 +23,7 @@ begin
   if Found then
      Help(FileID,Ctx,false)
   else
-     Help(0,hcContents,false);
+     HelpIndex('');
 end;
 
 procedure TIDEApp.HelpHelpIndex;

+ 5 - 1
ide/wconstse.inc

@@ -99,7 +99,11 @@
     msg_cutting = 'Cutting';
     { Help system }
 
-    msg_nohelpfilesinstalled = 'No help files installed.';
+    msg_nohelpfilesinstalled1 = 'To keep the size of the FPC download reasonable low, it comes without html formatted docs';
+    msg_nohelpfilesinstalled2 = 'which are necessary for the IDE.';
+    msg_nohelpfilesinstalled3 = 'To get these docs, go to http://www.freepascal.org/down/docs/docs.html and get one';
+    msg_nohelpfilesinstalled4 = 'of the html doc archives and unpack the enclosed contents into your FPC directory.';
+    msg_nohelpfilesinstalled5 = 'Add fpcdoc.html via Help|Files ... to the IDE help file system.';
     msg_helpindex = 'Help index';
     msg_nohelpavailabelforthistopic = 'No help available for this topic.';
     msg_pagenotavailable = 'Page not available';

+ 5 - 1
ide/whelp.pas

@@ -901,7 +901,11 @@ begin
   if HelpFiles^.Count=0 then
     begin
       AddLine('');
-      AddLine(' '+msg_nohelpfilesinstalled)
+      AddLine(msg_nohelpfilesinstalled1);
+      AddLine(msg_nohelpfilesinstalled2);
+      AddLine(msg_nohelpfilesinstalled3);
+      AddLine(msg_nohelpfilesinstalled4);
+      AddLine(msg_nohelpfilesinstalled5);
     end else
   begin
     AddLine(' '+msg_helpindex);