home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-10-05 | 1.3 KB | 50 lines | [TEXT/MPS ] |
- #
- # File: LocalizeExample.vu
- #
- # Contains: An example on how to write your scripts so that they are easily
- # localizable.
- #
- # Conventions: Global variables begin with a capital letter
- #
- # Written by: P Nagarajan
- #
- # Copyright: © 1990 by Apple Computer, Inc., all rights reserved.
- #
- # Change History:
- #
- # 8/3/89 naga creation
- #
-
-
- # *************************************************************************************
- task initialize_strings(system_type)
- begin
- If (system_type = 'KANJITALK') do
- begin
- Global Quit_str := 'èIóπ';
- # or put the string in a string resource (STR#) of this file
- # and use for example: Global Quit_str := getIndString(1000,1);
- ### more such strings here ###
- end;
- else If (system_type = 'ROMAN') do
- begin
- Global Quit_str := 'Quit';
- # or put the string in a string resource (STR#) of this file
- # and use for example: Global Quit_str := getIndString(1000,2);
- ### more such strings here ###
- end;
- ### more else if for other system types here ###
- end;
-
-
- ##### EXECUTION STARTS HERE ######
-
- Initialize_strings('KANJITALK'); ### or initialize_strings('ROMAN'); ###
- # use match[system v:?sys_version s:?sys_script]
- # to get the system version and system script information and
- # decide which type of initialization is required.
-
-
- select[menuItem t: global Quit_str m:[menu o:2]]!;
-
-