home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Classic / MultimediaClassic.mdf / app_main / dragdict / disk1 / localize.in_ / localize.in
Encoding:
Text File  |  1994-07-25  |  12.7 KB  |  262 lines

  1. '**************************************************************************
  2. '*   Language-specific strings for DDWin Setup script
  3. '*
  4. '* PROJECT: DragonDictate for Windows
  5. '* CREATED: 1 Apr 1994
  6. '* AUTHOR:  Steve Squires
  7. '*
  8. '* (C) Copyright Dragon Systems, Inc. 1993-1994.
  9. '* All Rights Reserved
  10. '*
  11. '* ** DRAGON SYSTEMS CONFIDENTIAL **
  12. '*
  13. '*
  14. '* History
  15. ''    *tlib-revision-history*
  16. ''    *tlib-revision-history*
  17. ''  changed spelling of ModuleYouExecToStart field of AmiPro, WordPerfect,
  18. ''  and WinOA386 (DOS box) app-specific lines to be all uppercase.  Prevents
  19. ''  weirdness in Options/Compatibility dialog
  20. ''
  21. ''  added app-specific entry to map WinOA386 (the module which runs DOS
  22. ''  boxes) to MSDOS, so we get a decent 'pretty name' in the Options
  23. ''   Compatibility dialog.
  24. ''
  25. ''  WP Draw in WordPerfect 6.0 hangs on a mouse drag - disable
  26. ''  DragonDictate Help icon now has default directory set to where DDWin
  27. ''    is installed
  28. ''
  29. ''  WordPerfect 6.0 now has a playback delay of 1 (was 0).  Was messing up
  30. ''   if playback picked a menu item then played immediately to dlgbox.
  31. ''  CrossTalk delay set to 12, which was necessary to get menu picks to
  32. ''    work properly
  33. ''
  34. ''  Added app-specific line for Prodigy to stop input locks
  35. ''
  36. ''  The two cc:Mail applications now have the version of cc:Mail after them.
  37. ''  This the module "CcMail" is now "cc:Mail 2.0" and the module "Wmail"
  38. ''    is now "cc:Mail 1.0".
  39. ''  
  40. ''  Microsoft PowerPoint now flagged for "no mouse drags", lots of playback
  41. ''  delay, and supporting only one instance.  Version 4.0 requires this.
  42. ''
  43. ''  now defining INI file line for DragTut so name is "Tutorial"
  44. ''  "Read Me" icon in Program Manager now called "DragonDictate Read Me"
  45. ''  now using CONST READ_ME instead of "readme.wri" (so ddwin.mst can also
  46. ''    use it)
  47. ''  removed now-obsolete app-specific flags for Write, Codewright
  48. ''
  49. ''  SetAppSpecificIniStuff now adds entries for Control, Write and Codewright
  50. ''  added commented-out line for setting language in Dragon Languages section
  51. ''
  52. ''  FILEPATH_INSTALL moved from ddwin.mst to here, since "c:\ddwin" should
  53. ''    be localized
  54. ''  added ReportBufferOverflow, which Microsoft's setupapi.inc now calls
  55. ''    on (very unlikely) bad error
  56. ''
  57. ''  added ini file entry for WP Office, which has odd module names
  58. ''
  59. ''
  60. '' (JOELG)
  61. ''   The voc name "Dictation" is now "Dictate".  This should be
  62. ''     changed in all international version as well (and not translated).
  63. ''   The voc name "User Selection" is now "User_sel".  This should be
  64. ''     changed in all international version as well (and not translated).
  65. ''   The voc name "Quick Training" is now "Quicktrn".  This should be
  66. ''     changed in all international version as well (and not translated).
  67. ''
  68. '' Now displays wait cursor during delete of Help progman icon
  69. ''
  70. '' (JoelG) Added Archive and Tracking in the compatibility section and
  71. '' changed the name of the voicebar.
  72. ''
  73. '' Now calling DeleteProgmanItem to clobber pre-existing WinHelp icon
  74. '' which will not be overwritten
  75. ''
  76. '' [base users] section now obsolete
  77. '' renamed 'Help' icon to 'DragonDictate Help'
  78. '' added 'Read Me' icon to launch 'write readme.wri'
  79. ''
  80. '' updated names of base files
  81. ''
  82. '' added DragTut.exe to BringUp group as Tutorial
  83. '' Voicebar now called DragonDictate.  Added again at end so ProgMan makes
  84. ''   it the selected icon
  85. ''  added Help to BringUp group, with HelpMin.ico as icon
  86. ''
  87. ''  SetAppSpecific stuff now passes RootDir path to InstallBaseFileMap,
  88. ''  so it can clip last directory off if relative dir on file(s) contains ..\
  89. ''
  90. ''  now calls InstallBaseFileMap in mscuistf.dll to write map of base .USR
  91. ''    files to DGNSRVR.INI
  92. ''  added AddBaseFiles
  93. ''  added lots of stuff to app-specific section in dgnsrvr.ini
  94. '*
  95.  
  96. '' product name
  97. CONST STR_TITLE = "DragonDictate for Windows"
  98.  
  99. '' default install path
  100. CONST FILEPATH_INSTALL = "c:\ddwin"
  101.  
  102. '' appended to product name for Setup's caption bar
  103. CONST STR_SETUP = " Setup"
  104.  
  105. '' name of ReadMe file
  106. CONST READ_ME = "readme.wri"
  107.  
  108. '' death mode message string
  109. CONST STR_CORRUPTED = "Setup sources were corrupted, call technical support."
  110.  
  111. '' caption of Program Manager icon for our WinHelp
  112. CONST CAPTION_HELP = "DragonDictate Help"
  113.  
  114. DECLARE FUNCTION InstallBaseFileMap LIB "mscuistf.dll" () AS INTEGER
  115. DECLARE FUNCTION DeleteProgmanItem LIB "mscuistf.dll" () AS INTEGER
  116.  
  117. DECLARE FUNCTION SetAppSpecificIniStuff (ini$, sec$, root$) AS INTEGER
  118. DECLARE SUB SetProgmanGroupStuff (ProgmanTitle$)
  119. DECLARE SUB AddBaseFiles (ini$, src$, dest$)
  120.  
  121. FUNCTION SetAppSpecificIniStuff (ini$, sec$, root$) STATIC AS INTEGER
  122. '' These apps are known in US market.  Only the PrettyName is likely
  123. '' to change from language to language.  This is the FIRST field
  124. '' in the SECOND quoted string.
  125.  
  126. '' The fields are in the format:
  127. ''    ModuleNameOwningMainWindow=PrettyName, ModuleYouExecToStart,
  128. ''        PlayBackDelay, OnlyOneInstance, NoMouseDrag, NoLockInput
  129. '' NOTE: ModuleYouExecToStart should be UPPERCASE only
  130.     CreateIniKeyValue ini$, sec$, "AmiProUI", "Ami Pro,AMIPRO", cmoOverwrite
  131.     CreateIniKeyValue ini$, sec$, "Calc", "Calculator", cmoOverwrite
  132.     CreateIniKeyValue ini$, sec$, "CcMail", "cc:Mail 2.0", cmoOverwrite
  133.     CreateIniKeyValue ini$, sec$, "Control", "Control Panel", cmoOverwrite
  134.     CreateIniKeyValue ini$, sec$, "CorelDrw", "Corel Draw", cmoOverwrite
  135.     CreateIniKeyValue ini$, sec$, "CW", "Codewright,,1,0,0", cmoOverwrite
  136.     CreateIniKeyValue ini$, sec$, "DragTut", "Tutorial", cmoOverwrite
  137.     CreateIniKeyValue ini$, sec$, "Excel", "Excel", cmoOverwrite
  138.     CreateIniKeyValue ini$, sec$, "FlwMain", "Freelance,FLW", cmoOverwrite
  139.     CreateIniKeyValue ini$, sec$, "Main123W", "1-2-3,123W", cmoOverwrite
  140.     CreateIniKeyValue ini$, sec$, "MPlayer", "Media Player", cmoOverwrite
  141.     CreateIniKeyValue ini$, sec$, "MsMail", "MS Mail", cmoOverwrite
  142.     CreateIniKeyValue ini$, sec$, "OFWINFIL", "WP Office,OFWIN,1,0,0", cmoOverwrite
  143.     CreateIniKeyValue ini$, sec$, "Orgdll", "Organizer,ORGANIZE", cmoOverwrite
  144.     CreateIniKeyValue ini$, sec$, "PBrush", "Paintbrush,,0,0,1", cmoOverwrite
  145.         '' PBrush cannot support mouse drags
  146.     CreateIniKeyValue ini$, sec$, "Pdoxwin", "Paradox", cmoOverwrite
  147.     CreateIniKeyValue ini$, sec$, "Pm5app", "PageMaker,PM5", cmoOverwrite
  148.     '' Powerpoint (4.0) cannot support mouse drags, supports only one
  149.     '' instance, and also needs a LOT of delay, especially immediately
  150.     '' after activation.
  151.     CreateIniKeyValue ini$, sec$, "PowerPnt", "PowerPoint,,7,1,1", cmoOverwrite
  152.     CreateIniKeyValue ini$, sec$, "Prodigy", "Prodigy,,0,1,0,1", cmoOverwrite
  153.     '' Prodigy V1.0 goes into a modal loop, not yeilding processor and
  154.     '' thus hanging DDWin when you drop down a menu.  Set NoLockInput
  155.     '' to prevent us blocking the kbd and mouse.  Also only 1 instance.
  156.  
  157.     CreateIniKeyValue ini$, sec$, "ProgMan", "Program Manager", cmoOverwrite
  158.     CreateIniKeyValue ini$, sec$, "Pw", "ProComm Plus", cmoOverwrite
  159.     CreateIniKeyValue ini$, sec$, "Qw", "Quicken", cmoOverwrite
  160.     CreateIniKeyValue ini$, sec$, "Rumbadsp", "Rumba Terminal", cmoOverwrite
  161.     CreateIniKeyValue ini$, sec$, "Spcks1", "Harvard Graphics,HGW20", cmoOverwrite
  162.     CreateIniKeyValue ini$, sec$, "Vocman", "Vocabulary Manager", cmoOverwrite
  163.     CreateIniKeyValue ini$, sec$, "Voicebar", "VoiceBar", cmoOverwrite
  164.     CreateIniKeyValue ini$, sec$, "WinFile", "File Manager", cmoOverwrite
  165.     CreateIniKeyValue ini$, sec$, "WinHelp", "Help", cmoOverwrite
  166.     CreateIniKeyValue ini$, sec$, "WMail", "cc:Mail 1.0", cmoOverwrite
  167.     CreateIniKeyValue ini$, sec$, "Wpwinfil", "WordPerfect 5.2", cmoOverwrite
  168.     CreateIniKeyValue ini$, sec$, "Wpwin60", "WordPerfect 6.0,WPWIN,1,1", cmoOverwrite
  169.     '' WordPerfect 6.0 supports only one instance
  170.     CreateIniKeyValue ini$, sec$, "WpDrWn21", "WP Draw,,1,0,1", cmoOverwrite
  171.     '' WP Draw in WordPerfect 6.0 cannot handle mouse drags
  172.     CreateIniKeyValue ini$, sec$, "WinWord", "Word", cmoOverwrite
  173.     CreateIniKeyValue ini$, sec$, "WinOA386", "MSDOS,COMMAND", cmoOverwrite
  174.     CreateIniKeyValue ini$, sec$, "Write", "Write,,0,0,0", cmoOverwrite
  175.     CreateIniKeyValue ini$, sec$, "Xtalk", "CrossTalk,,12,0,0", cmoOverwrite
  176.  
  177. '' the following are not a real apps but are the names of logical vocs. we
  178. '' use this same ini file section to rename them.
  179.     CreateIniKeyValue ini$, sec$, "Archive", "Dictation Archive", cmoOverwrite
  180.     CreateIniKeyValue ini$, sec$, "Dictate", "Dictation", cmoOverwrite
  181.     CreateIniKeyValue ini$, sec$, "Quicktrn", "Quick Training", cmoOverwrite
  182.     CreateIniKeyValue ini$, sec$, "User_sel", "User Selection", cmoOverwrite
  183.     CreateIniKeyValue ini$, sec$, "System", "System", cmoOverwrite
  184.     CreateIniKeyValue ini$, sec$, "Tracking", "Tracking Phrases", cmoOverwrite
  185.  
  186.     sec$ = "System's Base Vocabularies"
  187.     CreateIniKeyValue ini$, sec$, "System", MakePath("system.voc"), cmoOverwrite
  188.     CreateIniKeyValue ini$, sec$, "Voicebar", MakePath("voicebar.voc"), cmoOverwrite
  189.     CreateIniKeyValue ini$, sec$, "WinWord", MakePath("winword.voc"), cmoOverwrite
  190.     CreateIniKeyValue ini$, sec$, "Excel", MakePath("excel.voc"), cmoOverwrite
  191.  
  192. '' The following line is used ONLY for languages other than USEnglish
  193. '' To internationalize, change USEnglish to the proper language name, and
  194. '' REMOVE the comment-quotes at the beginning of the line.
  195. ''  CreateIniKeyValue ini$, "Dragon Languages", "Default Language", "USEnglish", cmoOverwrite
  196.  
  197.  
  198.     '' InstallBaseFileMap scans the .INF file for all base files in given
  199.     '' section, and writes info to DgnSrvr.INI so DDWin can find them on
  200.     '' the Setup disks at create user time
  201.     SetSymbolValue "IniFile", ini$
  202.     SetSymbolValue "Section", "BaseUsers"
  203.     SetSymbolValue "RootDir", root$
  204.  
  205.     SetAppSpecificIniStuff = InstallBaseFileMap( )
  206. END FUNCTION
  207.  
  208. SUB AddBaseFiles (ini$, src$, dest$) STATIC
  209. '' this routine is called when user requests that all base files be
  210. '' pre-loaded
  211.     AddSectionFilesToCopyList "BaseUsers", src$, dest$
  212. END SUB
  213.  
  214. SUB SetProgmanGroupStuff (ProgmanTitle$) STATIC
  215. '' these are the apps installed in the DragonDictate For Windows group
  216. '' in Program Manager.  Only the names in the first quoted string
  217. '' are likely to change from country to country
  218.  
  219.     '' we add Voicebar first so it is upper left in group, and again at
  220.     '' end of this routine to make it active
  221.     CreateProgmanItem ProgmanTitle$, "DragonDictate",MakePath(FILE_TOOLBAR), "", cmoOverwrite
  222.     CreateProgmanItem ProgmanTitle$, "Vocabulary Manager",MakePath("vocman.exe"), "", cmoOverwrite
  223.     CreateProgmanItem ProgmanTitle$, "Tutorial",MakePath("dragtut.exe"), "", cmoOverwrite
  224.  
  225.     '' we MUST delete any pre-existing Help icon from a previous install
  226.     '' the cmoOverwrite does not work for Progman icons which have
  227.     '' an explicit icon other than the default.
  228.     SetSymbolValue "ItemName", CAPTION_HELP
  229.     hPrev% = ShowWaitCursor()
  230.     i% = DeleteProgmanItem()
  231.     RestoreCursor hPrev%
  232.  
  233.     '' we must define default directory for WinHelp, so it can find
  234.     '' DragTut.DLL to launch Tutorial if requested
  235.     CreateProgmanItem ProgmanTitle$, CAPTION_HELP,"WinHelp.exe " + MakePath("ddwin.hlp"), MakePath("dgnhelp.ico")+",,,,"+MakePath(""), cmoOverwrite
  236.     CreateProgmanItem ProgmanTitle$, "DragonDictate Read Me","Write.exe " + MakePath(READ_ME), "", cmoOverwrite
  237.  
  238.     '' Add desktop accessories we know about to VoiceControl group
  239.     '' Sorry to bury this deep in middle of the code - but MSSetup BASIC
  240.     '' seems not to support arrays of strings, which would be about the
  241.     '' only way to define this stuff up at the top and reference it here
  242.  
  243.     CreateProgmanItem ProgmanTitle$, "Program Manager", "ProgMan.exe", "", cmoOverwrite
  244.     CreateProgmanItem ProgmanTitle$, "File Manager", "WinFile.exe", "", cmoOverwrite
  245.     '' (These are in same order as Win3.1 Accessories group)
  246.     CreateProgmanItem ProgmanTitle$, "Write", "Write.exe", "", cmoOverwrite
  247.     CreateProgmanItem ProgmanTitle$, "Cardfile", "Cardfile.exe", "", cmoOverwrite
  248.     CreateProgmanItem ProgmanTitle$, "Calendar", "Calendar.exe", "", cmoOverwrite
  249.     CreateProgmanItem ProgmanTitle$, "Calculator", "Calc.exe", "", cmoOverwrite
  250.     CreateProgmanItem ProgmanTitle$, "Clock", "Clock.exe", "", cmoOverwrite
  251.     CreateProgmanItem ProgmanTitle$, "Notepad", "Notepad.exe", "", cmoOverwrite
  252.  
  253.     '' we add Voicebar again at end to force ProgMan to make it active
  254.     CreateProgmanItem ProgmanTitle$, "DragonDictate",MakePath(FILE_TOOLBAR), "", cmoOverwrite
  255. END SUB
  256.  
  257. FUNCTION ReportBufferOverflow( ) STATIC AS INTEGER
  258. '' this is called by several internal functions on severe brain damage
  259. '' that never actually happens
  260.     ReportBufferOverflow = DoMsgBox("Buffer Overflow", "MS-Setup Error", MB_ICONHAND+MB_OK)
  261. END FUNCTION
  262.