1 |
cebix |
1.1 |
/* |
2 |
|
|
* user_strings_unix.cpp - Localizable strings, Unix 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 Linux. Basilisk II will try to unmount it."}, |
29 |
|
|
{STR_EXTFS_CTRL, "Linux Root"}, |
30 |
|
|
{STR_EXTFS_NAME, "Linux Directory Tree"}, |
31 |
|
|
{STR_EXTFS_VOLUME_NAME, "Linux"}, |
32 |
|
|
|
33 |
|
|
// Purely platform-specific strings |
34 |
|
|
{STR_NO_DEV_ZERO_ERR, "Cannot open /dev/zero: %s."}, |
35 |
|
|
{STR_LOW_MEM_MMAP_ERR, "Cannot map Low Memory Globals: %s."}, |
36 |
|
|
{STR_KD_SHMGET_ERR, "Cannot create SHM segment for Kernel Data: %s."}, |
37 |
|
|
{STR_KD_SHMAT_ERR, "Cannot map first Kernel Data area: %s."}, |
38 |
|
|
{STR_KD2_SHMAT_ERR, "Cannot map second Kernel Data area: %s."}, |
39 |
|
|
{STR_ROM_MMAP_ERR, "Cannot map ROM: %s."}, |
40 |
|
|
{STR_RAM_MMAP_ERR, "Cannot map RAM: %s."}, |
41 |
gbeauche |
1.3 |
{STR_SHEEP_MEM_MMAP_ERR, "Cannot map SheepShaver Data area: %s."}, |
42 |
cebix |
1.1 |
{STR_SIGALTSTACK_ERR, "Cannot install alternate signal stack (%s). It seems that you need a newer kernel."}, |
43 |
|
|
{STR_SIGSEGV_INSTALL_ERR, "Cannot install SIGSEGV handler: %s."}, |
44 |
|
|
{STR_SIGILL_INSTALL_ERR, "Cannot install SIGILL handler: %s."}, |
45 |
|
|
{STR_SIGUSR2_INSTALL_ERR, "Cannot install SIGUSR2 handler (%s). It seems that you need a newer libc."}, |
46 |
|
|
{STR_NO_XSERVER_ERR, "Cannot connect to X server %s."}, |
47 |
|
|
{STR_NO_XVISUAL_ERR, "Cannot obtain appropriate X visual."}, |
48 |
|
|
{STR_UNSUPP_DEPTH_ERR, "Unsupported color depth of screen."}, |
49 |
|
|
{STR_PROC_CPUINFO_WARN, "Cannot open /proc/cpuinfo (%s). Assuming 100MHz PowerPC 604."}, |
50 |
|
|
{STR_NO_SHEEP_NET_DRIVER_WARN, "Cannot open %s (%s). Ethernet will not be available."}, |
51 |
|
|
{STR_SHEEP_NET_ATTACH_WARN, "Cannot attach to Ethernet card (%s). Ethernet will not be available."}, |
52 |
|
|
{STR_NO_AUDIO_DEV_WARN, "Cannot open %s (%s). Audio output will be disabled."}, |
53 |
|
|
{STR_NO_AUDIO_WARN, "No audio device found, audio output will be disabled."}, |
54 |
|
|
{STR_NO_ESD_WARN, "Cannot open ESD connection. Audio output will be disabled."}, |
55 |
|
|
{STR_AUDIO_FORMAT_WARN, "/dev/dsp doesn't support signed 16 bit format. Audio output will be disabled."}, |
56 |
|
|
{STR_SCSI_DEVICE_OPEN_WARN, "Cannot open %s (%s). SCSI Manager access to this device will be disabled."}, |
57 |
|
|
{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."}, |
58 |
gbeauche |
1.4 |
{STR_KEYCODE_FILE_WARN, "Cannot open keycode translation file %s (%s)."}, |
59 |
|
|
{STR_KEYCODE_VENDOR_WARN, "Cannot find vendor '%s' in keycode translation file %s."}, |
60 |
cebix |
1.1 |
{STR_PREFS_MENU_FILE_GTK, "/_File"}, |
61 |
|
|
{STR_PREFS_ITEM_START_GTK, "/File/_Start SheepShaver"}, |
62 |
|
|
{STR_PREFS_ITEM_ZAP_PRAM_GTK, "/File/_Zap PRAM File"}, |
63 |
|
|
{STR_PREFS_ITEM_SEPL_GTK, "/File/sepl"}, |
64 |
|
|
{STR_PREFS_ITEM_QUIT_GTK, "/File/_Quit SheepShaver"}, |
65 |
|
|
{STR_HELP_MENU_GTK, "/_Help"}, |
66 |
|
|
{STR_HELP_ITEM_ABOUT_GTK, "/Help/_About SheepShaver"}, |
67 |
gbeauche |
1.4 |
{STR_INPUT_PANE_TITLE, "Keyboard"}, |
68 |
|
|
{STR_KEYCODES_CTRL, "Use Raw Keycodes"}, |
69 |
|
|
{STR_KEYCODE_FILE_CTRL, "Keycode Translation File"}, |
70 |
cebix |
1.1 |
{STR_SUSPEND_WINDOW_TITLE, "SheepShaver suspended. Press Space to reactivate."}, |
71 |
gbeauche |
1.2 |
{STR_VOSF_INIT_ERR, "Cannot initialize Video on SEGV signals."}, |
72 |
cebix |
1.1 |
|
73 |
|
|
{-1, NULL} // End marker |
74 |
|
|
}; |
75 |
|
|
|
76 |
|
|
|
77 |
|
|
/* |
78 |
|
|
* Fetch pointer to string, given the string number |
79 |
|
|
*/ |
80 |
|
|
|
81 |
|
|
const char *GetString(int num) |
82 |
|
|
{ |
83 |
|
|
// First search for platform-specific string |
84 |
|
|
int i = 0; |
85 |
|
|
while (platform_strings[i].num >= 0) { |
86 |
|
|
if (platform_strings[i].num == num) |
87 |
|
|
return platform_strings[i].str; |
88 |
|
|
i++; |
89 |
|
|
} |
90 |
|
|
|
91 |
|
|
// Not found, search for common string |
92 |
|
|
i = 0; |
93 |
|
|
while (common_strings[i].num >= 0) { |
94 |
|
|
if (common_strings[i].num == num) |
95 |
|
|
return common_strings[i].str; |
96 |
|
|
i++; |
97 |
|
|
} |
98 |
|
|
return NULL; |
99 |
|
|
} |