You are here: How to > Localisation
LMD DialogPack
ContentsIndexHome
PreviousUpNext
Localisation

Describes how to localise LMD DialogPack to use a language other than English.

LMD DialogPack supports the following languages for buttons. 

 

  • English
  • German
  • Czech

 

You enable your required language by enabling the corresponding DEFINE in the jed-software.inc file. The jed-software.inc file is located in the source folder where the source files are located. 

 

At the bottom of this file you will see the following lines: 

 

{$DEFINE LANG_ENGLISH}
{.$DEFINE LANG_GERMAN}
{.$DEFINE LANG_CZECH}

To enable a different language to the default (LANG_ENGLISH) just add a period between the { and $ of the LANG_ENGLISH define and remove the period from the language you wish to activate. 

 

If you prefer you could also override the selected language by making a change to the JSDialogStrs.pas unit directly. Just define your chosen language after the line where jed-software.inc is included. 

 

If redefining the language to use in the JSDialogStrs.pas unit, you will have to include the following define before the new language define.

{$UNDEF LANG_ENGLISH}

There are two examples presented here. 

 

  1. Defining German language by modifying the jed-software.inc file
  2. Defining Czech language by modifying JSDialogStrs.pas

 

Example 1

 

To enable the German language using the jed-software.inc file. 

 

Existing 

 

<jed-software.inc> 

 

... 

 

// Select the language you wish to use
{$DEFINE LANG_ENGLISH}
{.$DEFINE LANG_GERMAN}
{.$DEFINE LANG_CZECH}

 

Change to 

 

<jed-software.inc> 

 

... 

 

// Select the language you wish to use
{.$DEFINE LANG_ENGLISH}
{$DEFINE LANG_GERMAN}
{.$DEFINE LANG_CZECH}

 

 

Example 2

 

To define your selected language in the JSDialogStrs.pas unit do the following. 

 

Existing

unit JSDialogStrs;

{
   This unit is just a stub for the real strings unit.
   This is required to support unicode file format for BDS
   environments and an ansi file format for Delphi 6 and Delphi 7.
 }

{$I jed-software.inc}
{$IFDEF BDS}
  {$I JSDialogStrs.inc}
{$ELSE}
  {$I JSDialogStrsDelphi.inc}
{$ENDIF}

 

Change to: 

 

unit JSDialogStrs;

{
   This unit is just a stub for the real strings unit.
   This is required to support unicode file format for BDS
   environments and an ansi file format for Delphi 6 and Delphi 7.
 }

{$I jed-software.inc}
{$UNDEF LANG_ENGLISH}  // must undefine LANG_ENGLISH
{$DEFINE LANG_CZECH} // define strings to be LANG_CZECH
{$IFDEF BDS}
  {$I JSDialogStrs.inc}
{$ELSE}
  {$I JSDialogStrsDelphi.inc}
{$ENDIF
Name 
Description 
LMD DialogPack allows for two other different ways to localising the string contents. 
Copyright © 2013 by LMD Innovative. All rights reserved.
Copyright © 2013 by LMD Innovative. All rights reserved.
What do you think about this topic? Send feedback!