Changeset 894 for trunk/guitools/shared
- Timestamp:
- Mar 12, 2016, 2:44:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/shared/nlv.vrs
r703 r894 4 4 /* This subroutine is (c) by Alex Taylor, portions (c) Herwig Bauernfeind 5 5 * Sets all UI text from the message file. Any string that can't be loaded 6 * will default to the built-in English. 6 * will default to the built-in English. 7 7 */ 8 8 … … 18 18 say ' NLV srchroot = "'srchRoot'"' 19 19 20 filestem = VRParseFileName( execPath, "N")'_' 21 if translate(filestem) = "EVFSGUI_" then filestem = "evfsi_" 20 filestem = VRParseFileName( execPath, "N") 21 if translate(filestem) = "EVFSGUI" then filestem = "evfsi_" 22 else filestem = SUBSTR( filestem, 1, 6, '_' ) 22 23 say ' NLV filestem = "'filestem'"' 23 24 … … 90 91 end 91 92 end 92 end 93 end 93 94 say time()' NLVSearch() done, returning "'NLVFile'"' 94 95 return NLVFile … … 105 106 106 107 SELECT 107 WHEN ARG() == 2 THEN 108 WHEN ARG() == 2 THEN 108 109 msgtxt = SysGetMessage( msgnum, msgfile, ARG(2) ) 109 WHEN ARG() == 3 THEN 110 WHEN ARG() == 3 THEN 110 111 msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3) ) 111 WHEN ARG() == 4 THEN 112 WHEN ARG() == 4 THEN 112 113 msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4) ) 113 WHEN ARG() == 5 THEN 114 WHEN ARG() == 5 THEN 114 115 msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4), ARG(5) ) 115 WHEN ARG() == 6 THEN 116 WHEN ARG() == 6 THEN 116 117 msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4), ARG(5), ARG(6) ) 117 WHEN ARG() == 7 THEN 118 WHEN ARG() == 7 THEN 118 119 msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(3), ARG(4), ARG(5), ARG(6), ARG(7) ) 119 WHEN ARG() == 8 THEN 120 WHEN ARG() == 8 THEN 120 121 msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(2), ARG(4), ARG(5), ARG(6), ARG(7), ARG(8) ) 121 WHEN ARG() == 9 THEN 122 WHEN ARG() == 9 THEN 122 123 msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(2), ARG(4), ARG(5), ARG(6), ARG(7), ARG(8), ARG(9) ) 123 WHEN ARG() == 10 THEN 124 WHEN ARG() == 10 THEN 124 125 msgtxt = SysGetMessage( msgnum, msgfile, ARG(2), ARG(2), ARG(4), ARG(5), ARG(6), ARG(7), ARG(8), ARG(9), ARG(10) ) 125 126 OTHERWISE … … 135 136 /*:VRX NLVSetText 136 137 */ 137 /* 138 * Sets the specified property of the specified control to the specified 138 /* 139 * Sets the specified property of the specified control to the specified 139 140 * message text. 140 141 */ … … 143 144 144 145 success = 1 145 IF substitution == '' THEN 146 IF substitution == '' THEN 146 147 text = NLVGetMessage( message ) 147 148 ELSE 148 149 text = NLVGetMessage( message, substitution ) 149 150 150 IF text == '' THEN success = 0 151 IF text == '' THEN success = 0 151 152 ELSE CALL VRSet control, property, text 152 153
Note:
See TracChangeset
for help on using the changeset viewer.