home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-08-23 | 4.0 KB | 128 lines | [TEXT/MPS ] |
- # © Apple Computer, 1985-1990
- #
- # For use with localization.
- # Written by Cindy Roberts & Martin Gannholm
- # June 6th--(Cindy)-fixed misc bugs & added script based system compatibility
- # June 22--(Cindy)-added Extract Resources menu item
- # July 15--(Cindy)-changed UserStartup (removed stuff about Temp; deleted MPW:Localization:temp
- # July 21--(Cindy)-added the ability to make a final file from any text file
- # July 21--(Cindy)-added the ability to find the next string in a text file by selecting a menu item command
- # July 21--(Cindy)-added support for insc resources
- # July 28--(Martin)--added support for CNTL.
- # --also removed "strip" command & used MPW 2.0 enhancements to automatize
- # August 18--(Cindy)-changed Select Next String 'cause it didn't always choose the next one;
- # now I'm not sure if it chooses the last one
- #
- # March, 88--(Cindy)-added the ability to Rez and ReRez PREC resouces
- # March 21--(Cindy & Martin)-merged Make Final Installer Script into Make Final File
- # -added a search for the next menu
- # -added support for CTY# resource
- # -added command to RezDet all files on a disk
- #
- # March 25--(Cindy)-added support for signature, MSTR, and MST# resources
- #
- # 1/29/90 ddm Reformatted for ease of reading.
- # 2/1/90 ddm Between 1/29 and 2/1 I have made major changes to the Compare Files
- # menu item. Status messages are sent to the worksheet when starting
- # and finishing. Output is now carefully directed rather than being
- # strewn about in any window that happens to be open.
- # 2/14/90 ddm Added the “About the Localize menu...” item to the Localize menu.
- #
- #
- ##
- ##
- ##
- ##
- set temp "{exit}"
- set exit 0
- DeleteMenu "Project" # ddm- delete the Project menu in MPW 3.0+ to make room for the
- set exit {temp} # ddm- Localize menu on small screens
- unset temp
- #
- #
- #
- #
- addmenu ∂
- "Localize" ∂
- "Extract Resources/1" ∂
- 'set newUS `GetFileName -m "Select a file"`;∂
- Export newUS;∂
- extract'
- #
- #
- ### ddm- Note: The menu item name “Compare Files” is a misnomer. This command generates
- ### ddm- a rez text format file ({filename}.r) for all 3 files, compares the results,
- ### ddm- and changes the {NewUS}.r file to reflect localized text found while
- ### ddm- comparing the {oldUS}.r and {oldLOC}.r files.
- #
- #
- addmenu ∂
- "Localize" ∂
- "Compare Files/2" ∂
- '∂
- if `exists -f "{localization}Errors"`;∂
- delete -y "{localization}Errors";∂
- end;∂
- begin;∂
- open "{worksheet}";∂
- echo >> "{worksheet}";∂
- echo "Starting “Compare Files” -- " `date` >> "{worksheet}";∂
- set oldUS `GetFileName -m "Select the previous US file."`;∂
- Export oldUS;∂
- set newUS `GetFileName -m "Select the current US file."`;∂
- Export newUS;∂
- set oldLOC `GetFileName -m "Select your last localized file."`;∂
- Export oldLOC;∂
- loccomparefiles;∂
- echo "Completing “Compare Files” -- " `date` >> "{worksheet}"; ∂
- end ≥ "{localization}Errors";∂
- if `exists -f "{localization}Errors"`;∂
- open "{localization}Errors";∂
- end;∂
- ;'
- #
- #
- addmenu ∂
- "Localize" ∂
- "Make Final File/3" ∂
- 'set txtfile `GetFileName -m "Select your new translations"`;∂
- set newUS `GetFileName -m "Select your program file"`; ∂
- rez "{localization}newtypes.r" "{txtfile}" -t "rEzƒ" -o "{txtfile}".o;∂
- duplicate "{newUS}" "{newUS}_trans";∂
- target "{localization}merge_it";∂
- find •;∂
- find /∂ ∂"/Δ:Δ/∂"/;∂
- replace § "{newUS}";∂
- find /∂ ∂"/Δ:Δ/∂"/;∂
- replace § "{txtfile}.o";∂
- close -y;∂
- rez "{localization}merge_it" -append -o "{newUS}_trans";∂
- beep 1c,4;beep 1e,4;beep 1f,4;beep 1g,25;∂
- alert "That should be it, folks!"'
- #
- #
- addmenu ∂
- "Localize" ∂
- "Select Next String/4" ∂
- 'find Δ/[ ∂t∂n]∂"≈∂"/!2:Δ/∂"[ ∂t∂n]*[;},∂/][ ∂t∂n;,]+[∂/}rn]/ "{active}"'
- #
- #
- addmenu ∂
- "Localize" ∂
- "Select Next Menu/5" ∂
- 'find Δ/∂/∂n∂t∂t∂"/!5:/∂",[∂ ∂n][A-Z]/Δ¡4 "{active}"'
- #
- #
- addmenu ∂
- "Localize" ∂
- "Check Quality/6" ∂
- 'RezDeting'
- #
- #
- addmenu ∂
- "Localize" ∂
- "Extract Messages/7" ∂
- 'set Rfile `GetFileName -m "Select a resource file"`;∂
- Export Rfile;∂
- messages'
-