How to translate WinHP to another language ?

First download translate.zip file.
It contains :
- u_ResourceStrings
- a zip file that contains winhp help source files

 

Translate WinHP strings 

You just have to translate u_ResourceStrings :

unit u_ResourceStrings;

interface

resourcestring
// FFormBegin
sFFormBeginToolbarFileCaption = 'File management';
Don't translate these lines
sFFormBeginOpenButtonHint = 'Open';
sFFormBeginSaveButtonHint = 'Save';
sFFormBeginCutButtonHint = 'Cut';
sFFormBeginCopyButtonHint = 'Copy';
sFFormBeginPasteButtonHint = 'Paste';
Translation begins here

// FFormBegin

is the name of the window that you are translating. It can help sometimes.

You only have to translate the text that is between quotes 

eg : 

sFFormBeginOpenButtonHint = 'Open';

becomes

sFFormBeginOpenButtonHint = 'Ouvrir';

after translation in French

 

When you need quotes in translated text, you need to put 2 quotes.

eg :

sFFormBegin_MaintoolbarCaption = 'Barre d''outils principal';

Don't forget to put your name (or your pseudo) :

sFAboutBoxtraduitparCaption = 'Translated in english by your name';


 

Translate WinHP help file 

If you are courageous, you can also translate WinHP help file.

You need FrontPage, Dreamweaver or any other html pages editor.

  1. First translate all the html pages in html directory.
  2. Then translate the index file : index.hhk (with notepad for example)

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
    <HTML>
    <HEAD>
    <meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
    <!-- Sitemap 1.0 -->
    </HEAD><BODY>
    <UL>
    <LI> <OBJECT type="text/sitemap">
    <param name="Name" value="A propos">
    <param name="Local" value="html\WhatIsWinHP.htm">
    </OBJECT>
    <LI> <OBJECT type="text/sitemap">
    <param name="Name" value="Auteur">
    <param name="Local" value="html\HowToContactMe.htm">
    </OBJECT>


    Translate only lines <param name="Name" values="text to translate">
  3. Translate the table of contents (with notepad) "table of contents.hhc"

    <LI> <OBJECT type="text/sitemap">
    <param name="Name" value="Contents">
    <param name="Local" value="html\summary.htm">
    </OBJECT>


    Translate only <param name="Name" value="text to translate">

 

Then compress and send me all to chabanois@newmail.net