ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/BeOS/user_strings_beos.cpp
Revision: 1.1
Committed: 1999-10-12T20:05:15Z (25 years, 1 month ago) by cebix
Branch: MAIN
Log Message:
- added missing strings files

File Contents

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