home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / RADOOR30.ZIP / ML-MOD.ZIP / ML-READ.ME < prev    next >
Encoding:
Text File  |  1992-10-03  |  2.0 KB  |  77 lines

  1.  
  2.                                 -=( ML info )=-
  3.  
  4. This archive contains the multilanguage extentions for RAdoor 3.0. This
  5. file contains some extra info on the usage.
  6.  
  7. Note: If you use the multilanguage support, make sure that the
  8.       UseMultiLanguage compilerdirective is defined in all the other units.
  9.  
  10.  
  11. How to make a program multilanguage:
  12. ====================================
  13.  
  14. Note: This is purely my way of working.
  15.  
  16. First of all, make a single language version of a program. You can do this
  17. using the normal frame.pas or the MLframe.pas with the default language files.
  18. Just put your own strings in the source until everything works the way you
  19. like it.
  20.  
  21. Once everything works, take a multiwindow editor (MrEd is my personal favorit,
  22. but Qedit and other would do fine to) and load the language def file in one
  23. window and the source in the other.
  24.  
  25. Now start copying strings from the source to the DEF file and the number of
  26. the string back to the source.
  27.  
  28. If you've finished this action, compile the DEF file and test if everything
  29. works ok.
  30.  
  31.  
  32. Watch out for:
  33. ==============
  34.  
  35. A few things to watch out for:
  36.  
  37. - the double quotes like in "IT''S" are not nessecary in the language file
  38. - The ^[ and ^] change into %L and %R
  39.  
  40.  
  41. Tips and tricks:
  42. ================
  43.  
  44. If a string has to be centered on the screen, make sure there are no
  45. colorcodes in the string. Also don't use:
  46.  
  47.   WriteLn('^!^4'+CENTER(']120')+'^0')
  48.  
  49. Because that would first center the ]120 string and after that fill in the
  50. actual text. Use
  51.  
  52.    WriteLn('^!^4'+CENTER(GrabLine(120))+'^0')
  53.  
  54.  
  55. -----
  56.  
  57. In a menu, when you change the language, you have to change the hotkeys to.
  58. This is how it's done:
  59.  
  60. First you define a language string for the keys. Say
  61.  
  62.  ]200 "RWHQ"   (Read Write Help Quit)
  63.  
  64. In your program you now use something like:
  65.  
  66. MenuKeys:=GrabLine(200);
  67.  
  68. Case Pos(Key,MenuKeys) Do
  69.  0 :;
  70.  1 : { Read }
  71.  2 : { Write}
  72.  3 : { Help }
  73.  4 : { Quit }
  74. End; {Case}
  75.  
  76.  
  77.