1 |
cebix |
1.1 |
/* |
2 |
|
|
* user_strings_unix.cpp - Unix-specific localizable strings |
3 |
|
|
* |
4 |
gbeauche |
1.20 |
* Basilisk II (C) 1997-2005 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 Unix. Basilisk II will try to unmount it."}, |
29 |
cebix |
1.2 |
{STR_EXTFS_CTRL, "Unix Root"}, |
30 |
|
|
{STR_EXTFS_NAME, "Unix Directory Tree"}, |
31 |
|
|
{STR_EXTFS_VOLUME_NAME, "Unix"}, |
32 |
cebix |
1.1 |
|
33 |
|
|
// Purely platform-specific strings |
34 |
|
|
{STR_NO_XSERVER_ERR, "Cannot connect to X server '%s'."}, |
35 |
|
|
{STR_NO_XVISUAL_ERR, "Cannot obtain appropriate X visual."}, |
36 |
|
|
{STR_UNSUPP_DEPTH_ERR, "Unsupported color depth of screen."}, |
37 |
cebix |
1.3 |
{STR_NO_FBDEVICE_FILE_ERR, "Cannot open frame buffer device specification file %s (%s)."}, |
38 |
|
|
{STR_FBDEV_NAME_ERR, "The %s frame buffer is not supported in %d bit mode."}, |
39 |
|
|
{STR_FBDEV_MMAP_ERR, "Cannot mmap() the frame buffer memory (%s)."}, |
40 |
cebix |
1.11 |
{STR_VOSF_INIT_ERR, "Cannot initialize Video on SEGV signals."}, |
41 |
cebix |
1.8 |
{STR_NO_DEV_ZERO_ERR, "Cannot open /dev/zero (%s)."}, |
42 |
|
|
{STR_LOW_MEM_MMAP_ERR, "Cannot map Low Memory Globals (%s)."}, |
43 |
|
|
{STR_SIGALTSTACK_ERR, "Cannot install alternate signal stack (%s)."}, |
44 |
|
|
{STR_SIG_INSTALL_ERR, "Cannot install %s handler (%s)."}, |
45 |
|
|
{STR_TIMER_CREATE_ERR, "Cannot create timer (%s)."}, |
46 |
|
|
{STR_TIMER_SETTIME_ERR, "Cannot start timer (%s)."}, |
47 |
|
|
{STR_TICK_THREAD_ERR, "Cannot create 60Hz thread (%s)."}, |
48 |
cebix |
1.4 |
|
49 |
cebix |
1.1 |
{STR_NO_SHEEP_NET_DRIVER_WARN, "Cannot open %s (%s). Ethernet will not be available."}, |
50 |
|
|
{STR_SHEEP_NET_ATTACH_WARN, "Cannot attach to Ethernet card (%s). Ethernet will not be available."}, |
51 |
gbeauche |
1.19 |
{STR_TUN_TAP_CONFIG_WARN, "Cannot configure TUN/TAP device (%s). Ethernet will not be available."}, |
52 |
gbeauche |
1.21 |
{STR_SLIRP_NO_DNS_FOUND_WARN, "Cannot get DNS address. Ethernet will not be available."}, |
53 |
cebix |
1.1 |
{STR_SCSI_DEVICE_OPEN_WARN, "Cannot open %s (%s). SCSI Manager access to this device will be disabled."}, |
54 |
|
|
{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."}, |
55 |
|
|
{STR_NO_AUDIO_DEV_WARN, "Cannot open %s (%s). Audio output will be disabled."}, |
56 |
cebix |
1.13 |
{STR_NO_AUDIO_WARN, "No audio device found, audio output will be disabled."}, |
57 |
|
|
{STR_AUDIO_FORMAT_WARN, "Audio hardware doesn't seem to support necessary format. Audio output will be disabled."}, |
58 |
cebix |
1.1 |
{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.4 |
|
61 |
cebix |
1.1 |
{STR_PREFS_MENU_FILE_GTK, "/_File"}, |
62 |
|
|
{STR_PREFS_ITEM_START_GTK, "/File/_Start Basilisk II"}, |
63 |
|
|
{STR_PREFS_ITEM_ZAP_PRAM_GTK, "/File/_Zap PRAM File"}, |
64 |
|
|
{STR_PREFS_ITEM_SEPL_GTK, "/File/sepl"}, |
65 |
|
|
{STR_PREFS_ITEM_QUIT_GTK, "/File/_Quit Basilisk II"}, |
66 |
|
|
{STR_HELP_MENU_GTK, "/_Help"}, |
67 |
|
|
{STR_HELP_ITEM_ABOUT_GTK, "/Help/_About Basilisk II"}, |
68 |
cebix |
1.4 |
|
69 |
cebix |
1.9 |
{STR_FBDEV_NAME_CTRL, "Frame Buffer Name"}, |
70 |
|
|
{STR_FBDEVICE_FILE_CTRL, "Frame Buffer Spec File"}, |
71 |
cebix |
1.17 |
{STR_DSPDEVICE_FILE_CTRL, "Audio Output Device"}, |
72 |
|
|
{STR_MIXERDEVICE_FILE_CTRL, "Audio Mixer Device"}, |
73 |
cebix |
1.9 |
|
74 |
cebix |
1.14 |
{STR_INPUT_PANE_TITLE, "Mouse/Keyboard"}, |
75 |
cebix |
1.6 |
{STR_KEYCODES_CTRL, "Use Raw Keycodes"}, |
76 |
|
|
{STR_KEYCODE_FILE_CTRL, "Keycode Translation File"}, |
77 |
cebix |
1.14 |
{STR_MOUSEWHEELMODE_CTRL, "Mouse Wheel Function"}, |
78 |
cebix |
1.9 |
{STR_MOUSEWHEELMODE_PAGE_LAB, "Page Up/Down"}, |
79 |
|
|
{STR_MOUSEWHEELMODE_CURSOR_LAB, "Cursor Up/Down"}, |
80 |
|
|
{STR_MOUSEWHEELLINES_CTRL, "Lines To Scroll"}, |
81 |
cebix |
1.1 |
|
82 |
gbeauche |
1.16 |
{STR_IGNORESEGV_CTRL, "Ignore Illegal Memory Accesses"}, |
83 |
|
|
|
84 |
cebix |
1.12 |
{STR_WINDOW_TITLE_GRABBED, "Basilisk II (mouse grabbed, press Ctrl-F5 to release)"}, |
85 |
|
|
|
86 |
cebix |
1.1 |
{-1, NULL} // End marker |
87 |
|
|
}; |
88 |
|
|
|
89 |
|
|
|
90 |
|
|
/* |
91 |
|
|
* Fetch pointer to string, given the string number |
92 |
|
|
*/ |
93 |
|
|
|
94 |
|
|
const char *GetString(int num) |
95 |
|
|
{ |
96 |
|
|
// First search for platform-specific string |
97 |
|
|
int i = 0; |
98 |
|
|
while (platform_strings[i].num >= 0) { |
99 |
|
|
if (platform_strings[i].num == num) |
100 |
|
|
return platform_strings[i].str; |
101 |
|
|
i++; |
102 |
|
|
} |
103 |
|
|
|
104 |
|
|
// Not found, search for common string |
105 |
|
|
i = 0; |
106 |
|
|
while (common_strings[i].num >= 0) { |
107 |
|
|
if (common_strings[i].num == num) |
108 |
|
|
return common_strings[i].str; |
109 |
|
|
i++; |
110 |
|
|
} |
111 |
|
|
return NULL; |
112 |
|
|
} |