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

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
Copyright © 2013 by LMD Innovative. All rights reserved.
Copyright © 2013 by LMD Innovative. All rights reserved.