ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/user_strings.cpp
(Generate patch)

Comparing BasiliskII/src/user_strings.cpp (file contents):
Revision 1.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.12 by gbeauche, 2002-09-17T16:06:37Z

# Line 1 | Line 1
1   /*
2 < *  user_strings.cpp - Localizable strings
2 > *  user_strings.cpp - Common localizable strings
3   *
4 < *  Basilisk II (C) 1997-1999 Christian Bauer
4 > *  Basilisk II (C) 1997-2002 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 34 | Line 34
34   #include "user_strings.h"
35  
36   #ifdef __BEOS__
37 < #define UTF8_ELLIPSIS "\xE2\x80\xA6"
37 > #define ELLIPSIS "\xE2\x80\xA6"
38   #else
39 < #define UTF8_ELLIPSIS "..."
39 > #define ELLIPSIS "..."
40   #endif
41  
42  
43 < struct str_def {
44 <        int num;
45 <        char *str;
46 < };
47 <
48 <
49 < // Localized strings
50 < #if 0
51 < static const str_def loc_strings[] = {
52 <        {STR_READING_ROM_FILE, "ROM-Datei wird gelesen...\n"},
53 <        {-1, NULL}      // End marker
54 < };
55 < #else
56 < static const str_def loc_strings[] = {
57 <        {-1, NULL}      // End marker
58 < };
59 < #endif
60 <
61 <
62 < // Default strings
63 < static const str_def default_strings[] = {
43 > // Common string definitions
44 > user_string_def common_strings[] = {
45          {STR_ABOUT_TEXT1, "Basilisk II V%d.%d"},
46          {STR_ABOUT_TEXT2, "by Christian Bauer et al."},
47          {STR_READING_ROM_FILE, "Reading ROM file...\n"},
# Line 92 | Line 73 | static const str_def default_strings[] =
73  
74          {STR_SMALL_RAM_WARN, "Selected less than 1MB Mac RAM, using 1MB."},
75          {STR_CREATE_VOLUME_WARN, "Cannot create hardfile (%s)."},
76 +        {STR_VOLUME_IS_MOUNTED_WARN, "The volume '%s' is mounted. Basilisk II will try to unmount it."},
77 +        {STR_CANNOT_UNMOUNT_WARN, "The volume '%s' could not be unmounted. Basilisk II will not use it."},
78  
79          {STR_PREFS_TITLE, "Basilisk II Settings"},
80          {STR_PREFS_MENU, "Settings"},
81 <        {STR_PREFS_ITEM_ABOUT, "About Basilisk II" UTF8_ELLIPSIS},
81 >        {STR_PREFS_ITEM_ABOUT, "About Basilisk II" ELLIPSIS},
82          {STR_PREFS_ITEM_START, "Start Basilisk II"},
83          {STR_PREFS_ITEM_ZAP_PRAM, "Zap PRAM File"},
84          {STR_PREFS_ITEM_QUIT, "Quit Basilisk II"},
85 <        {STR_PREFS_MENU_FILE_GTK, "/_File"},
86 <        {STR_PREFS_ITEM_START_GTK, "/File/_Start Basilisk II"},
104 <        {STR_PREFS_ITEM_ZAP_PRAM_GTK, "/File/_Zap PRAM File"},
105 <        {STR_PREFS_ITEM_SEPL_GTK, "/File/sepl"},
106 <        {STR_PREFS_ITEM_QUIT_GTK, "/File/_Quit Basilisk II"},
107 <        {STR_HELP_MENU_GTK, "/_Help"},
108 <        {STR_HELP_ITEM_ABOUT_GTK, "/Help/_About Basilisk II"},
85 >
86 >        {STR_NONE_LAB, "<none>"},
87  
88          {STR_VOLUMES_PANE_TITLE, "Volumes"},
89          {STR_VOLUMES_CTRL, "Mac Volumes"},
90 <        {STR_ADD_VOLUME_BUTTON, "Add" UTF8_ELLIPSIS},
91 <        {STR_CREATE_VOLUME_BUTTON, "Create" UTF8_ELLIPSIS},
92 <        {STR_EDIT_VOLUME_BUTTON, "Edit" UTF8_ELLIPSIS},
90 >        {STR_ADD_VOLUME_BUTTON, "Add" ELLIPSIS},
91 >        {STR_CREATE_VOLUME_BUTTON, "Create" ELLIPSIS},
92 >        {STR_EDIT_VOLUME_BUTTON, "Edit" ELLIPSIS},
93          {STR_REMOVE_VOLUME_BUTTON, "Remove"},
94          {STR_ADD_VOLUME_PANEL_BUTTON, "Add"},
95          {STR_CREATE_VOLUME_PANEL_BUTTON, "Create"},
# Line 120 | Line 98 | static const str_def default_strings[] =
98          {STR_BOOT_ANY_LAB, "Any"},
99          {STR_BOOT_CDROM_LAB, "CD-ROM"},
100          {STR_NOCDROM_CTRL, "Disable CD-ROM Driver"},
101 +        {STR_EXTFS_CTRL, "Host Root"},
102          {STR_DEVICE_CTRL, "Device"},
103          {STR_UNIT_CTRL, "Unit"},
104          {STR_ADD_VOLUME_TITLE, "Add Volume"},
# Line 158 | Line 137 | static const str_def default_strings[] =
137          {STR_REF_15HZ_LAB, "15 Hz"},
138          {STR_REF_30HZ_LAB, "30 Hz"},
139          {STR_REF_60HZ_LAB, "60 Hz"},
140 +        {STR_REF_DYNAMIC_LAB, "Dynamic"},
141          {STR_DISPLAY_X_CTRL, "Width"},
142          {STR_DISPLAY_Y_CTRL, "Height"},
143 +        {STR_SIZE_384_LAB, "384"},
144 +        {STR_SIZE_480_LAB, "480"},
145 +        {STR_SIZE_512_LAB, "512"},
146 +        {STR_SIZE_600_LAB, "600"},
147 +        {STR_SIZE_640_LAB, "640"},
148 +        {STR_SIZE_768_LAB, "768"},
149 +        {STR_SIZE_800_LAB, "800"},
150 +        {STR_SIZE_1024_LAB, "1024"},
151 +        {STR_SIZE_MAX_LAB, "Maximum"},
152          {STR_COLOR_DEPTH_CTRL, "Color Depth"},
153          {STR_1_BIT_LAB, "B/W (1 Bit)"},
154          {STR_2_BIT_LAB, "4 (2 Bit)"},
# Line 187 | Line 176 | static const str_def default_strings[] =
176          {STR_24_BIT_1280x1024_LAB, "1280x1024, 24 Bit"},
177          {STR_24_BIT_1600x1200_LAB, "1600x1200, 24 Bit"},
178          {STR_SOUND_CTRL, "Sound"},
190        {STR_AHI_MODE_CTRL, "AHI Mode"},
179          {STR_NOSOUND_CTRL, "Disable Sound Output"},
180  
181          {STR_SERIAL_NETWORK_PANE_TITLE, "Serial/Network"},
# Line 196 | Line 184 | static const str_def default_strings[] =
184          {STR_ISPAR_CTRL, "Parallel Device"},
185          {STR_ETHER_ENABLE_CTRL, "Enable Ethernet"},
186          {STR_ETHERNET_IF_CTRL, "Ethernet Interface"},
187 +        {STR_UDPTUNNEL_CTRL, "Tunnel MacOS Networking over UDP"},
188 +        {STR_UDPPORT_CTRL, "UDP Port Number"},
189  
190          {STR_MEMORY_MISC_PANE_TITLE, "Memory/Misc"},
191          {STR_RAMSIZE_SLIDER, "MacOS RAM Size:"},
# Line 203 | Line 193 | static const str_def default_strings[] =
193          {STR_MODELID_CTRL, "Mac Model ID"},
194          {STR_MODELID_5_LAB, "Mac IIci (MacOS 7.x)"},
195          {STR_MODELID_14_LAB, "Quadra 900 (MacOS 8.x)"},
196 +        {STR_CPU_CTRL, "CPU Type"},
197 +        {STR_CPU_68020_LAB, "68020"},
198 +        {STR_CPU_68020_FPU_LAB, "68020 with FPU"},
199 +        {STR_CPU_68030_LAB, "68030"},
200 +        {STR_CPU_68030_FPU_LAB, "68030 with FPU"},
201 +        {STR_CPU_68040_LAB, "68040"},
202          {STR_ROM_FILE_CTRL, "ROM File"},
203 <        {STR_KEYCODES_CTRL, "Use Raw Keycodes"},
204 <        {STR_KEYCODE_FILE_CTRL, "Keycode Translation File"},
203 >
204 >        {STR_JIT_PANE_TITLE, "JIT Compiler"},
205 >        {STR_JIT_CTRL, "Enable JIT Compiler"},
206 >        {STR_JIT_FPU_CTRL, "Compile FPU Instructions"},
207 >        {STR_JIT_CACHE_SIZE_CTRL, "Translation Cache Size"},
208 >        {STR_JIT_CACHE_SIZE_2MB_LAB, "2048"},
209 >        {STR_JIT_CACHE_SIZE_4MB_LAB, "4096"},
210 >        {STR_JIT_CACHE_SIZE_8MB_LAB, "8192"},
211 >        {STR_JIT_CACHE_SIZE_16MB_LAB, "16384"},
212 >        {STR_JIT_LAZY_CINV_CTRL, "Enable lazy invalidation of translation cache"},
213  
214          {STR_WINDOW_TITLE, "Basilisk II"},
215          {STR_WINDOW_TITLE_FROZEN, "Basilisk II *** FROZEN ***"},
216          {STR_WINDOW_MENU, "Basilisk II"},
217 <        {STR_WINDOW_ITEM_ABOUT, "About Basilisk II" UTF8_ELLIPSIS},
217 >        {STR_WINDOW_ITEM_ABOUT, "About Basilisk II" ELLIPSIS},
218          {STR_WINDOW_ITEM_REFRESH, "Refresh Rate"},
219          {STR_WINDOW_ITEM_MOUNT, "Mount"},
220          {STR_SUSPEND_WINDOW_TITLE, "Basilisk II suspended. Press space to reactivate."},
221  
222 <        {STR_NO_SHEEP_DRIVER_ERR, "Cannot open /dev/sheep: %s (%08x). Basilisk II is not properly installed."},
223 <        {STR_SHEEP_UP_ERR, "Cannot allocate Low Memory Globals: %s (%08x)."},
220 <        {STR_NO_KERNEL_DATA_ERR, "Cannot create Kernel Data area: %s (%08x)."},
221 <        {STR_VOLUME_IS_MOUNTED_WARN, "The volume '%s' is mounted under BeOS. Basilisk II will try to unmount it."},
222 <        {STR_CANNOT_UNMOUNT_WARN, "The volume '%s' could not be unmounted. Basilisk II will not use it."},
223 <        {STR_NO_NET_ADDON_WARN, "The SheepShaver net server add-on cannot be found. Ethernet will not be available."},
224 <        {STR_NET_CONFIG_MODIFY_WARN, "To enable Ethernet networking for Basilisk II, your network configuration has to be modified and the network restarted. Do you want this to be done now (selecting \"Cancel\" will disable Ethernet under Basilisk II)?."},
225 <        {STR_NET_ADDON_INIT_FAILED, "SheepShaver net server add-on found\nbut there seems to be no network hardware.\nPlease check your network preferences."},
226 <        {STR_NET_ADDON_CLONE_FAILED, "Cloning of the network transfer area failed."},
227 <
228 <        {STR_NO_XSERVER_ERR, "Cannot connect to X server '%s'."},
229 <        {STR_NO_XVISUAL_ERR, "Cannot obtain appropriate X visual."},
230 <        {STR_UNSUPP_DEPTH_ERR, "Unsupported color depth of screen."},
231 <        {STR_NO_SHEEP_NET_DRIVER_WARN, "Cannot open %s (%s). Ethernet will not be available."},
232 <        {STR_SHEEP_NET_ATTACH_WARN, "Cannot attach to Ethernet card (%s). Ethernet will not be available."},
233 <        {STR_SCSI_DEVICE_OPEN_WARN, "Cannot open %s (%s). SCSI Manager access to this device will be disabled."},
234 <        {STR_SCSI_DEVICE_NOT_SCSI_WARN, "%s doesn't seem to comply to the Generic SCSI API. SCSI Manager access to this device will be disabled."},
235 <        {STR_NO_AUDIO_DEV_WARN, "Cannot open %s (%s). Audio output will be disabled."},
236 <        {STR_AUDIO_FORMAT_WARN, "Audio hardware doesn't support signed 16 bit format. Audio output will be disabled."},
237 <        {STR_KEYCODE_FILE_WARN, "Cannot open keycode translation file %s (%s)."},
238 <        {STR_KEYCODE_VENDOR_WARN, "Cannot find vendor '%s' in keycode translation file %s."},
239 <
240 <        {STR_NO_PREPARE_EMUL_ERR, "PrepareEmul is not installed. Run PrepareEmul and then try again to start Basilisk II."},
241 <        {STR_NO_GADTOOLS_LIB_ERR, "Cannot open gadtools.library V39."},
242 <        {STR_NO_ASL_LIB_ERR, "Cannot open asl.library V36."},
243 <        {STR_NO_TIMER_DEV_ERR, "Cannot open timer.device."},
244 <        {STR_NO_P96_MODE_ERR, "The selected screen mode is not a Picasso96 mode."},
245 <        {STR_WRONG_SCREEN_DEPTH_ERR, "Basilisk II only supports 8, 16 or 24 bit screens."},
246 <        {STR_WRONG_SCREEN_FORMAT_ERR, "Basilisk II only supports big-endian chunky ARGB screen modes."},
247 <        {STR_NOT_ETHERNET_WARN, "The selected network device is not an Ethernet device. Networking will be disabled."},
248 <        {STR_NO_MULTICAST_WARN, "Your Ethernet card does not support multicast and is not usable with AppleTalk. Please report this to the manufacturer of the card."},
249 <        {STR_NO_GTLAYOUT_LIB_WARN, "Cannot open gtlayout.library V39. The preferences editor GUI will not be available."},
250 <        {STR_NO_AHI_WARN, "Cannot open ahi.device V2. Audio output will be disabled."},
251 <        {STR_NO_AHI_CTRL_WARN, "Cannot open AHI control structure. Audio output will be disabled."},
222 >        {STR_EXTFS_NAME, "Host Directory Tree"},
223 >        {STR_EXTFS_VOLUME_NAME, "Host"},
224  
225          {-1, NULL}      // End marker
226   };
255
256
257 /*
258 *  Fetch pointer to string, given the string number
259 */
260
261 char *GetString(int num)
262 {
263        // First search for localized string
264        int i = 0;
265        while (loc_strings[i].num >= 0) {
266                if (loc_strings[i].num == num)
267                        return loc_strings[i].str;
268                i++;
269        }
270
271        // Not found, then get default string
272        i = 0;
273        while (default_strings[i].num >= 0) {
274                if (default_strings[i].num == num)
275                        return default_strings[i].str;
276                i++;
277        }
278        return NULL;
279 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines