Import Logging

When import logging is active, VBLM keeps a record of what happens when LMX files are imported into language tables. Here's an annotated copy of one:

The first entries record the date and time, the project, the LMX file, and the LMX file header:

VBLM Import Log: 10-Jan-02 11:55 AM

VB Project = C:\Program Files\DevStudio\VB\samples\PGuide\Optimize\Optimize.vbp

Language Table = Enumerate

Import File = C:\Program Files\DevStudio\VB\samples\PGuide\Optimize\Enumerate.lmx

[Begin LMX File Config]

[ExportFile]

Version=6

SourceLanguage=English

TransLanguage=Enumerate

Format=Pairs

Content=All

Sorted=Yes

Quoted=Yes

NoAmpersands=No

Spacing=Single

ExclusionInfo=Yes

NumEntries=195

IncludeUserInfo=Yes

MissingTrans=NoExport

[End LMX File Config]

 

After this are entries for each sucessful import, including the original string and the line of code it came from, the imported string, and the previous translation, if any, replaced by the one imported

English="E&xit"

Context=[Caption = "E&xit"]

Imported Enumerate="S0095"

Replaced "S0082"

 

English="Oh my goodness!"

Context=[Const WW2 = "Oh my goodness!"]

Imported Enumerate="S0092"

 

English=" Picture Controls"

Context=[sbStatus.SimpleText = Str$(i) & " Picture Controls"]

Imported Enumerate="S0106"

Replaced "S0105"

 

...

And so forth.

After the import entries, any string exclusion entries are recorded with the string and the code (the number after Context is the sequence number of the string in the code, necessary when the string occurs more than once).

The following strings were marked as excluded

"Visual Basic 4.0 Optimization Examples",Context=1,[Description = "Visual Basic 4.0 Optimization Examples"]

"OPTIMIZE",Context=1,[Title = "OPTIMIZE"]

"Visual Basic 4.0 Optimization Sample Code.",Context=1,[VersionComments = "Visual Basic 4.0 Optimization Sample Code."]

"Microsoft Corporation",Context=1,[VersionCompanyName = "Microsoft Corporation"]

"VBits Optimizing Visual Basic 4.0 Session Sample Application.",Context=1,[VersionFileDescription = "VBits Optimizing Visual Basic 4.0 Session Sample Application."]

...

And the log closes with a summary of what happened:

Info: The last successful import was from line 589

 

15 matches found and translations imported

157 translations identical to those already present were not imported.

10 strings were marked as excluded.