Patch Factory - Full-featured byte-level patching and version management system for efficient software updating. Patch Factory - Full-featured byte-level patching and version management system for efficient software updating.
Home | Products | Downloads | Order/Purchase | Support | Forums




  Closed TopicStart new topicStart Poll

> Localization Instructions - PatchFactory v3, Read carefully before posting a question
Development Team
  Posted: June 21, 2004 02:36 am
Quote Post


Support Team
****

Group: Forum Administrators
Posts: 24
Member No.: 3
Joined: March 30, 2004




Please, read the following instructions carefully before posting any question and sending us the prepared Language module!

Localization instructions:

1. Look in the folder "<PatchFactory Installation Folder>\Inno\Languages\" - possibly the prepared isl-file for your language is already included in the original Inno Setup distribution package.
If it exists - copy it to the folder "<PatchFactory Installation Folder>\Scripts\Languages\" (with the new name, if you want, for example MyLanguage.isl).

2. If isl-template was not found at the previous step, perform the same procedure with file Default.isl, which is located in "<PatchFactory Installation Folder>\Inno\" folder.

3. Edit MyLanguage.isl file (using notepad or other tool)
  • Set parameters : LanguageName, LanguageID, LanguageCodePage according to your language.
    See http://msdn.microsoft.com/library/en-us/intl/nls_238z.asp for a list of valid language IDs.
    If no language ID currently exists for your language, use zero.
  • Copy to the end of MyLanguage.isl the lines from file
    "<PatchFactory Installation Folder>\Scripts\Languages\Default.isl",
    starting from the line containing the following text:
    "; ===== PatchFactory ====="
    and so on to the end of file.
  • Make the translation of the necessary lines (in case of usage of the existing isl-file from Inno Setup you should translate only copied lines);
  • Please use Windows-style line breaks (CR/LF) and not Unix-style line breaks (LF only).
  • Some messages take arguments such as %1 and %2. You can rearrange the order of the arguments (i.e. move the %2 before a %1) and also duplicate arguments if needed (i.e. "%1 ... %1 %2"). On messages with arguments, use two consecutive "%" characters to embed a single "%". "%n" creates a line break.
4. Add the following line in the [Languages] section of the default.iss file (located in "<PatchFactory Installation Folder>\Scripts\" folder):
    Name: "xx"; MessagesFile: "${SCRIPT_PATH}Languages\MyLanguage.isl"
    ...where "xx" is the internal name of the language, which you can set to anything you like (usually 2-symbol code of the language).
5. Test your translation (try to build a patch). It should not cause any errors or warnings at compilation.
6. Localization finished.

Additional information can be found in the Inno Setup PDF help file inno_manual.pdf or in the original InnoSetup Help file "<PatchFactory Installation Folder>\Inno\ISetup.hlp".
See description of the sections [LangOptions] and [Messages] and parameters LanguageDetectionMethod, ShowLanguageDialog in the [Setup] section topic.

After you edit resources and make tests - please, send us a copy to publish the localized module at our site and to make it available for others.

Please note, that when populating the list of available languages on the "Select Language" dialog in a multilingual installation, if a specific language cannot be properly displayed, it will not be listed.

To override this behavior you can uncomment the following line in the default.iss file (section [LangOptions]).
    LanguageCodePage=0
LanguageCodePage specifies the "code page" needed to display the language. When populating the list of available languages on the Select Language dialog
in a multilingual installation, it compares the LanguageCodePage values against the system code page to determine which languages should be listed.

Only languages whose LanguageCodePage values match the system code page are shown.
The goal of this is to hide languages that can't be displayed properly
on the user's system.

If LanguageCodePage is set to 0, the language will always be listed, regardless of the system code page. It makes sense to use 0 on languages that contain pure ASCII, such as English, since ASCII is identical across all code pages.

If you have any questions, please e-mail to sales@agensoft.com for assistance.
We would really appreciate your comments, remarks or suggestions regarding future improvements to PatchFactory.


--------------------
Best regards, PatchFactory Support Team

AgenSoft.Com - Complete Software Update Solutions
PMEmail PosterUsers Website
Top

Topic Options Closed TopicStart new topicStart Poll

 




[ Home ]   [ About Us ]   [ News ]   [ Awards ]   [ PatchFactory ]   [ ScreenShots ]   [ Downloads ]   [ Order/Register ]   [ Affiliate Program ]
[ Support ]   [ Feedback ]   [ FAQ ]   [ Online Help ]   [ Support Forums ]

© 2002-2006 AgenSoft. All rights reserved.   |   Terms of Use   |   Privacy Statement