home *** CD-ROM | disk | FTP | other *** search
/ CICA 1992 November / CICA_MS_Windows_CD-ROM_Walnut_Creek_November_1992.iso / win3 / misc / intl / iniinfoa.txt next >
Text File  |  1992-04-08  |  3KB  |  80 lines

  1. What are the .ini file for?
  2.  
  3. If you have tried the IntlDemo program, you have noticed that it is
  4. multilingual. This is done through the ini-files, which are the dictionaries
  5. of INTL.DLL. INTL.INI contains strings that are very often used, especially
  6. then the names of the months and weekdays. There are also all the strings
  7. mentioned in the CUA. INTLDEMO.INI contains the phrases and messages that
  8. are specific for the IntlDemo program. The reason for phrases and messages
  9. to be stored in ini-files, is that it makes it easy for anyone, even the end
  10. user, to add a new language to the program using the DLL. All that is
  11. necessary is to add the words in that new language, and Voila! Done. The
  12. program "speaks" that language.
  13.  
  14. That was in general terms. More into details now. The French section of
  15. INTL.INI looks like this:
  16.  
  17.     [frn]
  18.     ;French
  19.     January=janvier
  20.     Jan=janv.
  21.     February=fΘvrier
  22.     Feb=fΘv.
  23.     March=mars
  24.     Mar=mars
  25.     April=avril
  26.     Apr=avr.
  27.     _May=mai
  28.     June=juin
  29.     Jun=juin
  30.     July=juillet
  31.     Jul=juil.
  32.     August=ao√t
  33.     Aug=ao√t
  34.     September=septembre
  35.     Sep=sept.
  36.     October=octobre
  37.     Oct=oct.
  38.     November=novembre
  39.     Nov=nov.
  40.     December=dΘcembre
  41.     Dec=dΘc.
  42.     Sunday=dimanche
  43.     Monday=lundi
  44.     Tuesday=mardi
  45.     Wednesday=mercredi
  46.     Thursday=jeudi
  47.     Friday=vendredi
  48.     Saturday=samedi
  49.     .
  50.     .
  51.     .
  52.  
  53. First there is a direct translation of the English names of the months, to
  54. the French names.  Also the abbrewiation of the names, are translated. If
  55. the abbrewiation of a name is identical to the 3 first letters of the name,
  56. the translation of the abbrewiation is not necessary. That is the case with
  57. May, in French. Why is may called "_May"? In some languages, the word for
  58. May is longer than 3 letters, and the abbrewiation is not necessarily the 3
  59. first letters in that word. There must be some way of distinguishing the
  60. full name of May from it's abbrewiation. "_May" is the full name, and "May"
  61. is the abbrewiation. The same principle goes for the names of the weekdays.
  62. Other parts of INTL.INI and INTLDEMO.INI are very straightforward and self-
  63. explanatory if examined, with the possible exception of escape-codes. Long
  64. messages can contain escape codes. These are:
  65.     \a    Alert
  66.     \b    Backspace
  67.     \f    Form feed
  68.     \n    New line
  69.     \r    Carriage return
  70.     \t    tab
  71.     \v    Vertical tab
  72.     \'    Single quote
  73.     \"    Double quote
  74.     \\    Backslash
  75.  
  76. The length of a message is not limited by INTL.DLL. The upper limit (if any)
  77. is unknown, but messages with a length exceeding 650 characters are used in 
  78. INTLDEMO.INI, and works.
  79.  
  80.