home *** CD-ROM | disk | FTP | other *** search
-
- -=( ML info )=-
-
- This archive contains the multilanguage extentions for RAdoor 3.0. This
- file contains some extra info on the usage.
-
- Note: If you use the multilanguage support, make sure that the
- UseMultiLanguage compilerdirective is defined in all the other units.
-
-
- How to make a program multilanguage:
- ====================================
-
- Note: This is purely my way of working.
-
- First of all, make a single language version of a program. You can do this
- using the normal frame.pas or the MLframe.pas with the default language files.
- Just put your own strings in the source until everything works the way you
- like it.
-
- Once everything works, take a multiwindow editor (MrEd is my personal favorit,
- but Qedit and other would do fine to) and load the language def file in one
- window and the source in the other.
-
- Now start copying strings from the source to the DEF file and the number of
- the string back to the source.
-
- If you've finished this action, compile the DEF file and test if everything
- works ok.
-
-
- Watch out for:
- ==============
-
- A few things to watch out for:
-
- - the double quotes like in "IT''S" are not nessecary in the language file
- - The ^[ and ^] change into %L and %R
-
-
- Tips and tricks:
- ================
-
- If a string has to be centered on the screen, make sure there are no
- colorcodes in the string. Also don't use:
-
- WriteLn('^!^4'+CENTER(']120')+'^0')
-
- Because that would first center the ]120 string and after that fill in the
- actual text. Use
-
- WriteLn('^!^4'+CENTER(GrabLine(120))+'^0')
-
-
- -----
-
- In a menu, when you change the language, you have to change the hotkeys to.
- This is how it's done:
-
- First you define a language string for the keys. Say
-
- ]200 "RWHQ" (Read Write Help Quit)
-
- In your program you now use something like:
-
- MenuKeys:=GrabLine(200);
-
- Case Pos(Key,MenuKeys) Do
- 0 :;
- 1 : { Read }
- 2 : { Write}
- 3 : { Help }
- 4 : { Quit }
- End; {Case}
-
-
-