Share
 
 

About the Structure of a Multi-Language Dictionary File (AutoCAD Mechanical Toolset)

Multi-language dictionary (*.mld) files are ASCII files that you can open in a text editor such as Notepad.

Text is organized into a grid of columns (languages) and numbered rows for reference. Consider the following text, extracted from a multi-language dictionary file that translates between English and German.

/lg ENU DEU

/cp ISO8859-1 ISO8859-1

;This is a user-defined mld file

0001 "english text ENU" "deutscher Text DEU"

0002 "This is free message number %d ENU" "Dies ist die freie %d. Meldung DEU"

0003 "This is a %s1 message %s2 ENU" "Dies ist eine %s2 Meldung %s1 DEU"

A multi-language dictionary file contains the following four line types:

Language Definition Line

A text file begins with a language definition line. The line begins with the abbreviation /lg.

Valid language abbreviations appear in the Online Translation dialog box; for example, ENU for English, DEU for German.

Example: An example for a language definition file could look like the following: /lg ENU DEU FRA

Page Code Definition Line

The next line after the language definition line is the page code definition line.

A page code line begins with the abbreviation "/cp" and contains a number for the page codes that is equal to the number of the language abbreviations you entered in the first line.

Valid page code abbreviations are:

arabic08

dos855

ansi_1200

dos869

iso8859-6

arabic09

dos857

ansi_1250

dos874

iso8859-7

arabic10

dos860

ansi_1251

dos852

iso8859-8

arabic20

dos861

ansi_1252

dos932

iso8859-2

big5

dos862

ansi_1253

gb2312

johab

dos437

dos863

ansi_1254

ksc5601

mac-roman

dos737

dos864

ansi_1255

iso8859-3

dos775

dos865

ansi_1256

iso8859-4

dos850

dos866

ansi_1257

iso8859-5

Example: An example for a page code definition file could look like the following: /cp ISO8859-1 ISO8859-1 iso8859-1

Text String Line

Here are guidelines for creating a text string line:

  • A text string line begins with a number from 1 through 32000. The numbers can include leading nulls.
  • Enter a text string for every language abbreviation specified in the language line.
  • Separate individual entries with quotation marks.
  • Enter individual language columns in the appropriate code page.
  • Use only one line for each message line.

Example: An example for a text string line could look like the following: 0001 “english text ENU” “deutscher Text DEU”

Comment Line

Each line beginning with a semicolon is a comment line.

Example: An example for a comment line could look like the following: ;This is a user-defined message file.

Was this information helpful?