The
format of a language file
A language file is a
text file that is formatted in the same way as a
traditional INI file. If you are familiar with INI files
you will understand how a language file is constructed.
Generally, a section
in language file is formatted in this way:
[Section]
Object1 = Text for object 1
Object2 = Text for object 2
The
example below shows how a section that contains texts
for the
Destination Folder dialog box look like:
[Dialog_DestinationDir]
Title = Destination Folder
Text = Please choose destination folder for your
program. This is the folder where the program and its
support files are installed to.
FieldTitle = &Folder:
GroupSizeInfo = Space
SpaceReq = Required:
SpaceFree = Free:
If
you want to change the text for an object in the dialog
box, you can change the text to the right of the equal
sign. The text to the left of the equal sign must never
be altered. For example, if you want to change the text
in this section to Spanish, you can specify the texts
like this:
[Dialog_DestinationDir]
Title = Carpeta de destino
Text = Por favor, elija la carpeta de destino
para su programa. Esta es la carpeta donde el programa y
sus archivos de soporte se instalan.
FieldTitle = &Carpeta:
GroupSizeInfo = Espacio
SpaceReq = Requerido:
SpaceFree = Libre:
Special characters that can be used in texts
A & character
in a text will underline the character to the right of
the & character. This character tells Visual
Installer that the underlined character will be a
keyboard shortcut for jumping to the specific dialog box
control. If the user presses ALT and the
character, the control will get the focus, or if it is a
button, the button will be pressed. For example, if you
specify the text "&Folder", the control will get
the focus when the user presses ALT F.
Other special
characters that can be used is the character combination
%s. When Visual Installer encounters these
characters in a string, %s will be replaced with
a text string which contents depends of the
circumstances. For example if a file that should be
installed already exists and the settings are that
Visual Installer must warn, the following text string is
shown in a message box:
Msg_FileExists
= The file '%s' already exists! Do you want to replace
it?
The
%s
characters will be replaced with the actual name of the
file. For example like this:
The file
'Readme.doc' already exists! Do you want to replace it?
|
Where
are the language files located?
A language file has
normally the filename extension .LNG and the
files are normally located in the following folder in
the C: drive:
In Windows XP (or
older):
\Program\SamLogic\VI2012\Language
In Windows Vista:
\Document\Visual Installer\Languages Files
In Windows 7:
\My
Document\Visual Installer\Languages Files
In Windows 8:
\My
Document\Visual Installer\Languages Files
In Windows 10:
\My
Document\Visual Installer\Languages Files
You can edit a language file directly, without invoking
Visual Installer, by opening the file via your text
editor or word processor (for example Microsoft Word).
Just make sure that you save the file as a pure text
file and not in another document format.
How to delete a language
file
If you want to delete
a language file you can do it via Windows Explorer /
File Explorer by erasing the file from the folder above.
When you open the Language dialog box in Visual
Installer, the contents of the folder will be read in.
If a language file has been deleted from the folder, it
will not be shown in the Language dialog box
anymore.
|
|