home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR3 / LANG20.ZIP / LANG200.DOC < prev    next >
Text File  |  1993-11-08  |  3KB  |  79 lines

  1.  
  2.  LANGUAGE 2.00
  3. ═══════════════════════════════════════════════════════════════════════════════
  4.         Language is a VB(tm) DOS(R) program that I wrote
  5.         with the purpose to make Language-files.
  6.         For us -Dutch people- language is enormous important.
  7.  
  8.         When I found two procedures in the CompuServe MSBASIC forum in a
  9.         message from Karl W. Stembol, I decided to make life much easier.
  10.  
  11.         Now my programs do not anymore have any language hard-coded, except for
  12.         the error-message 'language-module not found' <g>.
  13.         Instead, whenever I need a statement, I call a function: Message$(n)
  14.         which returns a string from an .LNG-file, which is my language-file.
  15.         When I want the program to work in Dutch (which of course is the most
  16.         beautiful language in the world <g>), the name of my language-module
  17.         is DUTCH.LNG, when I want to use English it is ENGLISH.LNG and so on.
  18.  
  19.         Besides: this way of working saves a lot of valuable memory, because
  20.         I don't have any hard-coded fixed strings anymore (I've made all the
  21.         form-captions empty).
  22.  
  23.  How does it work?
  24. ═══════════════════════════════════════════════════════════════════════════════
  25.         Language uses
  26.                 - a large working file          (DUTCH.LNO)
  27.                 - a small -encrypted?- file     (DUTCH.LNG)
  28.  
  29.         My applications will work with the .LNG-file, while Language will get
  30.         his input from the .LNO-file.
  31.         You can make a crunched .LNG-file out of an .LNO-file with Language.
  32.  
  33.         You might want to add an encryption-routine to the routine
  34.         OptimizeFile in FORM1.FRM. Don't forget to de-encrypt the
  35.         statements in your programs. For instance you can encrypt strings
  36.         with the Cipher-routine from PBClone.
  37.  
  38.         But also when you don't encrypt your strings, you better crunch your
  39.         .LNO-files to .LNG-files, because they will shrink a lot!
  40.  
  41.         Every time when I change something in my .LNO-files, I crunch the
  42.         file immediately to an .LNG-file, so it's always up-to-date.
  43.  
  44.         Add PROGRAM.BAS to your own application. Use StartLNG _before_ you
  45.         make any call to Message$(n).
  46.  
  47.         The first five lines will be used as a description of the file, they
  48.         won't be encrypted.
  49.  
  50.  
  51.  Remember
  52. ═══════════════════════════════════════════════════════════════════════════════
  53.         If you want to use the language-file to change your menu-items, you
  54.         must add a CHR$(0) to the caption. This is a bug in VBDOS.
  55.         
  56.  
  57.  Public Domain
  58. ═══════════════════════════════════════════════════════════════════════════════
  59.         You can use Language for free. Share it with your colleagues.
  60.         I would say Thank You Very Much to Karl W. Stembol, who gave me the
  61.         two main routines. I just added a nice screen to it.
  62.  
  63.         If you change something, let me know. Then I can change the same thing
  64.         (if useful), so everybody can benefit from your smart ideas.
  65.  
  66.         If you have problems using it, write me too.
  67.  
  68.         You can reach me at:
  69.                 100117.2545@COMPUSERVE.COM
  70.  
  71.         Or you can write to my company:
  72.                 CC Advies
  73.                 PO Box 351
  74.                 3940 AJ  Doorn
  75.                 the Netherlands
  76.  
  77. God bless you,
  78. Taco Oosterkamp.
  79.