ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/BeOS/user_strings_beos.cpp
Revision: 1.5
Committed: 2002-01-15T14:58:35Z (22 years, 10 months ago) by cebix
Branch: MAIN
CVS Tags: nigel-build-12, nigel-build-13, snapshot-15012002
Changes since 1.4: +1 -1 lines
Log Message:
- documentation updates
- 2001 -> 2002
- version 0.9 -> 1.0

File Contents

# User Rev Content
1 cebix 1.1 /*
2     * user_strings_beos.cpp - BeOS-specific localizable strings
3     *
4 cebix 1.5 * Basilisk II (C) 1997-2002 Christian Bauer
5 cebix 1.1 *
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 cebix 1.2 {STR_EXTFS_CTRL, "BeOS Root"},
30     {STR_EXTFS_NAME, "BeOS Directory Tree"},
31     {STR_EXTFS_VOLUME_NAME, "BeOS"},
32 cebix 1.1
33     // Purely platform-specific strings
34     {STR_NO_SHEEP_DRIVER_ERR, "Cannot open /dev/sheep: %s (%08x). Basilisk II is not properly installed."},
35     {STR_SHEEP_UP_ERR, "Cannot allocate Low Memory Globals: %s (%08x)."},
36     {STR_NO_KERNEL_DATA_ERR, "Cannot create Kernel Data area: %s (%08x)."},
37     {STR_NO_NET_ADDON_WARN, "The SheepShaver net server add-on cannot be found. Ethernet will not be available."},
38     {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)?."},
39     {STR_NET_ADDON_INIT_FAILED, "SheepShaver net server add-on found\nbut there seems to be no network hardware.\nPlease check your network preferences."},
40     {STR_NET_ADDON_CLONE_FAILED, "Cloning of the network transfer area failed."},
41    
42     {-1, NULL} // End marker
43     };
44    
45    
46     /*
47     * Fetch pointer to string, given the string number
48     */
49    
50     const char *GetString(int num)
51     {
52     // First search for platform-specific string
53     int i = 0;
54     while (platform_strings[i].num >= 0) {
55     if (platform_strings[i].num == num)
56     return platform_strings[i].str;
57     i++;
58     }
59    
60     // Not found, search for common string
61     i = 0;
62     while (common_strings[i].num >= 0) {
63     if (common_strings[i].num == num)
64     return common_strings[i].str;
65     i++;
66     }
67     return NULL;
68     }