1 |
cebix |
1.1 |
/* |
2 |
|
|
* user_strings_beos.cpp - Localizable strings, BeOS specific strings |
3 |
|
|
* |
4 |
|
|
* SheepShaver (C) 1997-2002 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_SHEEP_UP_ERR, "Cannot allocate Low Memory Globals: %s (%08x)."}, |
38 |
|
|
{STR_NO_NET_ADDON_WARN, "The SheepShaver net server add-on cannot be found. Ethernet will not be available."}, |
39 |
|
|
{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)?."}, |
40 |
|
|
{STR_NET_ADDON_INIT_FAILED, "SheepShaver net server add-on found\nbut there seems to be no network hardware.\nPlease check your network preferences."}, |
41 |
|
|
{STR_NET_ADDON_CLONE_FAILED, "Cloning of the network transfer area failed."}, |
42 |
|
|
|
43 |
|
|
{-1, NULL} // End marker |
44 |
|
|
}; |
45 |
|
|
|
46 |
|
|
|
47 |
|
|
/* |
48 |
|
|
* Fetch pointer to string, given the string number |
49 |
|
|
*/ |
50 |
|
|
|
51 |
|
|
const char *GetString(int num) |
52 |
|
|
{ |
53 |
|
|
// First search for platform-specific string |
54 |
|
|
int i = 0; |
55 |
|
|
while (platform_strings[i].num >= 0) { |
56 |
|
|
if (platform_strings[i].num == num) |
57 |
|
|
return platform_strings[i].str; |
58 |
|
|
i++; |
59 |
|
|
} |
60 |
|
|
|
61 |
|
|
// Not found, search for common string |
62 |
|
|
i = 0; |
63 |
|
|
while (common_strings[i].num >= 0) { |
64 |
|
|
if (common_strings[i].num == num) |
65 |
|
|
return common_strings[i].str; |
66 |
|
|
i++; |
67 |
|
|
} |
68 |
|
|
return NULL; |
69 |
|
|
} |