ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/AmigaOS/user_strings_amiga.cpp
Revision: 1.10
Committed: 2001-10-14T18:00:44Z (22 years, 8 months ago) by jlachmann
Branch: MAIN
Changes since 1.9: +1 -0 lines
Log Message:
AmigaOS: added Video depth/resolution switching

File Contents

# User Rev Content
1 cebix 1.1 /*
2     * user_strings_amiga.cpp - AmigaOS-specific localizable strings
3     *
4 cebix 1.8 * Basilisk II (C) 1997-2001 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 AmigaOS. Basilisk II will try to unmount it."},
29 cebix 1.2 {STR_EXTFS_CTRL, "Amiga Root"},
30     {STR_EXTFS_NAME, "Amiga Directory Tree"},
31     {STR_EXTFS_VOLUME_NAME, "Amiga"},
32 cebix 1.1
33     // Purely platform-specific strings
34     {STR_NO_PREPARE_EMUL_ERR, "PrepareEmul is not installed. Run PrepareEmul and then try again to start Basilisk II."},
35     {STR_NO_GADTOOLS_LIB_ERR, "Cannot open gadtools.library V39."},
36 cebix 1.3 {STR_NO_IFFPARSE_LIB_ERR, "Cannot open iffparse.library V39."},
37 cebix 1.1 {STR_NO_ASL_LIB_ERR, "Cannot open asl.library V36."},
38     {STR_NO_TIMER_DEV_ERR, "Cannot open timer.device."},
39 cebix 1.6 {STR_NO_P96_MODE_ERR, "The selected screen mode is not a Picasso96 or CyberGraphX mode."},
40 jlachmann 1.10 {STR_NO_VIDEO_MODE_ERR, "Cannot obtain selected video mode."},
41 cebix 1.1 {STR_WRONG_SCREEN_DEPTH_ERR, "Basilisk II only supports 8, 16 or 24 bit screens."},
42     {STR_WRONG_SCREEN_FORMAT_ERR, "Basilisk II only supports big-endian chunky ARGB screen modes."},
43     {STR_NOT_ETHERNET_WARN, "The selected network device is not an Ethernet device. Networking will be disabled."},
44     {STR_NO_MULTICAST_WARN, "Your Ethernet card does not support multicast and is not usable with AppleTalk. Please report this to the manufacturer of the card."},
45     {STR_NO_GTLAYOUT_LIB_WARN, "Cannot open gtlayout.library V39. The preferences editor GUI will not be available."},
46     {STR_NO_AHI_WARN, "Cannot open ahi.device V2. Audio output will be disabled."},
47     {STR_NO_AHI_CTRL_WARN, "Cannot open AHI control structure. Audio output will be disabled."},
48 cebix 1.9 {STR_NOT_ENOUGH_MEM_WARN, "Could not get %lu MBytes of memory.\nShould I use the largest Block (%lu MBytes) instead ?"},
49    
50 cebix 1.4 {STR_AHI_MODE_CTRL, "AHI Mode"},
51 cebix 1.9 {STR_SCSI_MEMTYPE_CTRL, "Buffer Memory Type"},
52     {STR_MEMTYPE_CHIP_LAB, "Chip"},
53     {STR_MEMTYPE_24BITDMA_LAB, "24-Bit DMA"},
54     {STR_MEMTYPE_ANY_LAB, "Any"},
55     {STR_SCSI_DEVICES_CTRL, "Virtual SCSI Devices"},
56 jlachmann 1.7
57 cebix 1.1 {-1, NULL} // End marker
58     };
59    
60    
61     /*
62     * Fetch pointer to string, given the string number
63     */
64    
65     const char *GetString(int num)
66     {
67     // First search for platform-specific string
68     int i = 0;
69     while (platform_strings[i].num >= 0) {
70     if (platform_strings[i].num == num)
71     return platform_strings[i].str;
72     i++;
73     }
74    
75     // Not found, search for common string
76     i = 0;
77     while (common_strings[i].num >= 0) {
78     if (common_strings[i].num == num)
79     return common_strings[i].str;
80     i++;
81     }
82     return NULL;
83     }