ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/user_strings_unix.cpp
Revision: 1.1
Committed: 1999-10-12T20:05:18Z (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_unix.cpp - Unix-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 Unix. Basilisk II will try to unmount it."},
29    
30     // Purely platform-specific strings
31     {STR_NO_XSERVER_ERR, "Cannot connect to X server '%s'."},
32     {STR_NO_XVISUAL_ERR, "Cannot obtain appropriate X visual."},
33     {STR_UNSUPP_DEPTH_ERR, "Unsupported color depth of screen."},
34     {STR_NO_SHEEP_NET_DRIVER_WARN, "Cannot open %s (%s). Ethernet will not be available."},
35     {STR_SHEEP_NET_ATTACH_WARN, "Cannot attach to Ethernet card (%s). Ethernet will not be available."},
36     {STR_SCSI_DEVICE_OPEN_WARN, "Cannot open %s (%s). SCSI Manager access to this device will be disabled."},
37     {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."},
38     {STR_NO_AUDIO_DEV_WARN, "Cannot open %s (%s). Audio output will be disabled."},
39     {STR_AUDIO_FORMAT_WARN, "Audio hardware doesn't support signed 16 bit format. Audio output will be disabled."},
40     {STR_KEYCODE_FILE_WARN, "Cannot open keycode translation file %s (%s)."},
41     {STR_KEYCODE_VENDOR_WARN, "Cannot find vendor '%s' in keycode translation file %s."},
42     {STR_PREFS_MENU_FILE_GTK, "/_File"},
43     {STR_PREFS_ITEM_START_GTK, "/File/_Start Basilisk II"},
44     {STR_PREFS_ITEM_ZAP_PRAM_GTK, "/File/_Zap PRAM File"},
45     {STR_PREFS_ITEM_SEPL_GTK, "/File/sepl"},
46     {STR_PREFS_ITEM_QUIT_GTK, "/File/_Quit Basilisk II"},
47     {STR_HELP_MENU_GTK, "/_Help"},
48     {STR_HELP_ITEM_ABOUT_GTK, "/Help/_About Basilisk II"},
49    
50     {-1, NULL} // End marker
51     };
52    
53    
54     /*
55     * Fetch pointer to string, given the string number
56     */
57    
58     const char *GetString(int num)
59     {
60     // First search for platform-specific string
61     int i = 0;
62     while (platform_strings[i].num >= 0) {
63     if (platform_strings[i].num == num)
64     return platform_strings[i].str;
65     i++;
66     }
67    
68     // Not found, search for common string
69     i = 0;
70     while (common_strings[i].num >= 0) {
71     if (common_strings[i].num == num)
72     return common_strings[i].str;
73     i++;
74     }
75     return NULL;
76     }