home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windoware
/
WINDOWARE_1_6.iso
/
winutil
/
intl
/
iniinfoo.txt
< prev
next >
Wrap
Text File
|
1992-04-08
|
3KB
|
80 lines
What are the .ini file for?
If you have tried the IntlDemo program, you have noticed that it is
multilingual. This is done through the ini-files, which are the dictionaries
of INTL.DLL. INTL.INI contains strings that are very often used, especially
then the names of the months and weekdays. There are also all the strings
mentioned in the CUA. INTLDEMO.INI contains the phrases and messages that
are specific for the IntlDemo program. The reason for phrases and messages
to be stored in ini-files, is that it makes it easy for anyone, even the end
user, to add a new language to the program using the DLL. All that is
necessary is to add the words in that new language, and Voila! Done. The
program "speaks" that language.
That was in general terms. More into details now. The French section of
INTL.INI looks like this:
[frn]
;French
January=janvier
Jan=janv.
February=février
Feb=fév.
March=mars
Mar=mars
April=avril
Apr=avr.
_May=mai
June=juin
Jun=juin
July=juillet
Jul=juil.
August=août
Aug=août
September=septembre
Sep=sept.
October=octobre
Oct=oct.
November=novembre
Nov=nov.
December=décembre
Dec=déc.
Sunday=dimanche
Monday=lundi
Tuesday=mardi
Wednesday=mercredi
Thursday=jeudi
Friday=vendredi
Saturday=samedi
.
.
.
First there is a direct translation of the English names of the months, to
the French names. Also the abbrewiation of the names, are translated. If
the abbrewiation of a name is identical to the 3 first letters of the name,
the translation of the abbrewiation is not necessary. That is the case with
May, in French. Why is may called "_May"? In some languages, the word for
May is longer than 3 letters, and the abbrewiation is not necessarily the 3
first letters in that word. There must be some way of distinguishing the
full name of May from it's abbrewiation. "_May" is the full name, and "May"
is the abbrewiation. The same principle goes for the names of the weekdays.
Other parts of INTL.INI and INTLDEMO.INI are very straightforward and self-
explanatory if examined, with the possible exception of escape-codes. Long
messages can contain escape codes. These are:
\a Alert
\b Backspace
\f Form feed
\n New line
\r Carriage return
\t tab
\v Vertical tab
\' Single quote
\" Double quote
\\ Backslash
The length of a message is not limited by INTL.DLL. The upper limit (if any)
is unknown, but messages with a length exceeding 650 characters are used in
INTLDEMO.INI, and works.