ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/BeOS/user_strings_beos.cpp
Revision: 1.6
Committed: 2008-01-01T09:47:38Z (16 years, 4 months ago) by gbeauche
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
Log Message:
Happy New Year!

File Contents

# Content
1 /*
2 * user_strings_beos.cpp - Localizable strings, BeOS specific strings
3 *
4 * SheepShaver (C) 1997-2008 Christian Bauer and Marc Hellwig
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
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21 #include "sysdeps.h"
22 #include "user_strings.h"
23
24
25 // Platform-specific string definitions
26 user_string_def platform_strings[] = {
27 // Common strings that have a platform-specific variant
28 {STR_VOLUME_IS_MOUNTED_WARN, "The volume '%s' is mounted under BeOS. Basilisk II will try to unmount it."},
29 {STR_EXTFS_CTRL, "BeOS Root"},
30 {STR_EXTFS_NAME, "BeOS Directory Tree"},
31 {STR_EXTFS_VOLUME_NAME, "BeOS"},
32
33 // Purely platform-specific strings
34 {STR_NO_SHEEP_DRIVER_ERR, "Cannot open /dev/sheep: %s (%08x). SheepShaver is not properly installed."},
35 {STR_NO_RAM_AREA_ERR, "Not enough memory to create RAM area: %s (%08x)."},
36 {STR_NO_ROM_AREA_ERR, "Not enough memory to create ROM area."},
37 {STR_NO_SHEEP_MEM_AREA_ERR, "Not enough memory to create SheepShaver area."},
38 {STR_SHEEP_UP_ERR, "Cannot allocate Low Memory Globals: %s (%08x)."},
39 {STR_NO_NET_ADDON_WARN, "The SheepShaver net server add-on cannot be found. Ethernet will not be available."},
40 {STR_NET_CONFIG_MODIFY_WARN, "To enable Ethernet networking for SheepShaver, 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 SheepShaver)?."},
41 {STR_NET_ADDON_INIT_FAILED, "SheepShaver net server add-on found\nbut there seems to be no network hardware.\nPlease check your network preferences."},
42 {STR_NET_ADDON_CLONE_FAILED, "Cloning of the network transfer area failed."},
43 {STR_NO_SHEEP_MEM_AREA_ERR, "Cannot create SheepShaver Globals area: %s (%08x)."},
44 {STR_NO_DR_CACHE_AREA_ERR, "Cannot create DR Cache area: %s (%08x)."},
45 {STR_NO_DR_EMULATOR_AREA_ERR, "Cannot create DR Emulator area: %s (%08x)."},
46
47 {-1, NULL} // End marker
48 };
49
50
51 /*
52 * Fetch pointer to string, given the string number
53 */
54
55 const char *GetString(int num)
56 {
57 // First search for platform-specific string
58 int i = 0;
59 while (platform_strings[i].num >= 0) {
60 if (platform_strings[i].num == num)
61 return platform_strings[i].str;
62 i++;
63 }
64
65 // Not found, search for common string
66 i = 0;
67 while (common_strings[i].num >= 0) {
68 if (common_strings[i].num == num)
69 return common_strings[i].str;
70 i++;
71 }
72 return NULL;
73 }