diff --git a/BasiliskII/src/AmigaOS/user_strings_amiga.cpp b/BasiliskII/src/AmigaOS/user_strings_amiga.cpp new file mode 100644 index 00000000..acf968a1 --- /dev/null +++ b/BasiliskII/src/AmigaOS/user_strings_amiga.cpp @@ -0,0 +1,70 @@ +/* + * user_strings_amiga.cpp - AmigaOS-specific localizable strings + * + * Basilisk II (C) 1997-1999 Christian Bauer + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "sysdeps.h" +#include "user_strings.h" + + +// Platform-specific string definitions +user_string_def platform_strings[] = { + // Common strings that have a platform-specific variant + {STR_VOLUME_IS_MOUNTED_WARN, "The volume '%s' is mounted under AmigaOS. Basilisk II will try to unmount it."}, + + // Purely platform-specific strings + {STR_NO_PREPARE_EMUL_ERR, "PrepareEmul is not installed. Run PrepareEmul and then try again to start Basilisk II."}, + {STR_NO_GADTOOLS_LIB_ERR, "Cannot open gadtools.library V39."}, + {STR_NO_ASL_LIB_ERR, "Cannot open asl.library V36."}, + {STR_NO_TIMER_DEV_ERR, "Cannot open timer.device."}, + {STR_NO_P96_MODE_ERR, "The selected screen mode is not a Picasso96 mode."}, + {STR_WRONG_SCREEN_DEPTH_ERR, "Basilisk II only supports 8, 16 or 24 bit screens."}, + {STR_WRONG_SCREEN_FORMAT_ERR, "Basilisk II only supports big-endian chunky ARGB screen modes."}, + {STR_NOT_ETHERNET_WARN, "The selected network device is not an Ethernet device. Networking will be disabled."}, + {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."}, + {STR_NO_GTLAYOUT_LIB_WARN, "Cannot open gtlayout.library V39. The preferences editor GUI will not be available."}, + {STR_NO_AHI_WARN, "Cannot open ahi.device V2. Audio output will be disabled."}, + {STR_NO_AHI_CTRL_WARN, "Cannot open AHI control structure. Audio output will be disabled."}, + + {-1, NULL} // End marker +}; + + +/* + * Fetch pointer to string, given the string number + */ + +const char *GetString(int num) +{ + // First search for platform-specific string + int i = 0; + while (platform_strings[i].num >= 0) { + if (platform_strings[i].num == num) + return platform_strings[i].str; + i++; + } + + // Not found, search for common string + i = 0; + while (common_strings[i].num >= 0) { + if (common_strings[i].num == num) + return common_strings[i].str; + i++; + } + return NULL; +} diff --git a/BasiliskII/src/AmigaOS/user_strings_amiga.h b/BasiliskII/src/AmigaOS/user_strings_amiga.h new file mode 100644 index 00000000..c104ee25 --- /dev/null +++ b/BasiliskII/src/AmigaOS/user_strings_amiga.h @@ -0,0 +1,39 @@ +/* + * user_strings_amiga.h - AmigaOS-specific localizable strings + * + * Basilisk II (C) 1997-1999 Christian Bauer + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef USER_STRINGS_AMIGA_H +#define USER_STRINGS_AMIGA_H + +enum { + STR_NO_PREPARE_EMUL_ERR = 10000, + STR_NO_GADTOOLS_LIB_ERR, + STR_NO_ASL_LIB_ERR, + STR_NO_TIMER_DEV_ERR, + STR_NO_P96_MODE_ERR, + STR_WRONG_SCREEN_DEPTH_ERR, + STR_WRONG_SCREEN_FORMAT_ERR, + STR_NOT_ETHERNET_WARN, + STR_NO_MULTICAST_WARN, + STR_NO_GTLAYOUT_LIB_WARN, + STR_NO_AHI_WARN, + STR_NO_AHI_CTRL_WARN +}; + +#endif diff --git a/BasiliskII/src/BeOS/user_strings_beos.cpp b/BasiliskII/src/BeOS/user_strings_beos.cpp new file mode 100644 index 00000000..3c858fe3 --- /dev/null +++ b/BasiliskII/src/BeOS/user_strings_beos.cpp @@ -0,0 +1,65 @@ +/* + * user_strings_beos.cpp - BeOS-specific localizable strings + * + * Basilisk II (C) 1997-1999 Christian Bauer + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "sysdeps.h" +#include "user_strings.h" + + +// Platform-specific string definitions +user_string_def platform_strings[] = { + // Common strings that have a platform-specific variant + {STR_VOLUME_IS_MOUNTED_WARN, "The volume '%s' is mounted under BeOS. Basilisk II will try to unmount it."}, + + // Purely platform-specific strings + {STR_NO_SHEEP_DRIVER_ERR, "Cannot open /dev/sheep: %s (%08x). Basilisk II is not properly installed."}, + {STR_SHEEP_UP_ERR, "Cannot allocate Low Memory Globals: %s (%08x)."}, + {STR_NO_KERNEL_DATA_ERR, "Cannot create Kernel Data area: %s (%08x)."}, + {STR_NO_NET_ADDON_WARN, "The SheepShaver net server add-on cannot be found. Ethernet will not be available."}, + {STR_NET_CONFIG_MODIFY_WARN, "To enable Ethernet networking for Basilisk II, 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 Basilisk II)?."}, + {STR_NET_ADDON_INIT_FAILED, "SheepShaver net server add-on found\nbut there seems to be no network hardware.\nPlease check your network preferences."}, + {STR_NET_ADDON_CLONE_FAILED, "Cloning of the network transfer area failed."}, + + {-1, NULL} // End marker +}; + + +/* + * Fetch pointer to string, given the string number + */ + +const char *GetString(int num) +{ + // First search for platform-specific string + int i = 0; + while (platform_strings[i].num >= 0) { + if (platform_strings[i].num == num) + return platform_strings[i].str; + i++; + } + + // Not found, search for common string + i = 0; + while (common_strings[i].num >= 0) { + if (common_strings[i].num == num) + return common_strings[i].str; + i++; + } + return NULL; +} diff --git a/BasiliskII/src/BeOS/user_strings_beos.h b/BasiliskII/src/BeOS/user_strings_beos.h new file mode 100644 index 00000000..964447ef --- /dev/null +++ b/BasiliskII/src/BeOS/user_strings_beos.h @@ -0,0 +1,34 @@ +/* + * user_strings_beos.h - BeOS-specific localizable strings + * + * Basilisk II (C) 1997-1999 Christian Bauer + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef USER_STRINGS_BEOS_H +#define USER_STRINGS_BEOS_H + +enum { + STR_NO_SHEEP_DRIVER_ERR = 10000, + STR_SHEEP_UP_ERR, + STR_NO_KERNEL_DATA_ERR, + STR_NO_NET_ADDON_WARN, + STR_NET_CONFIG_MODIFY_WARN, + STR_NET_ADDON_INIT_FAILED, + STR_NET_ADDON_CLONE_FAILED +}; + +#endif diff --git a/BasiliskII/src/Unix/user_strings_unix.cpp b/BasiliskII/src/Unix/user_strings_unix.cpp new file mode 100644 index 00000000..49e6f011 --- /dev/null +++ b/BasiliskII/src/Unix/user_strings_unix.cpp @@ -0,0 +1,76 @@ +/* + * user_strings_unix.cpp - Unix-specific localizable strings + * + * Basilisk II (C) 1997-1999 Christian Bauer + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "sysdeps.h" +#include "user_strings.h" + + +// Platform-specific string definitions +user_string_def platform_strings[] = { + // Common strings that have a platform-specific variant + {STR_VOLUME_IS_MOUNTED_WARN, "The volume '%s' is mounted under Unix. Basilisk II will try to unmount it."}, + + // Purely platform-specific strings + {STR_NO_XSERVER_ERR, "Cannot connect to X server '%s'."}, + {STR_NO_XVISUAL_ERR, "Cannot obtain appropriate X visual."}, + {STR_UNSUPP_DEPTH_ERR, "Unsupported color depth of screen."}, + {STR_NO_SHEEP_NET_DRIVER_WARN, "Cannot open %s (%s). Ethernet will not be available."}, + {STR_SHEEP_NET_ATTACH_WARN, "Cannot attach to Ethernet card (%s). Ethernet will not be available."}, + {STR_SCSI_DEVICE_OPEN_WARN, "Cannot open %s (%s). SCSI Manager access to this device will be disabled."}, + {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."}, + {STR_NO_AUDIO_DEV_WARN, "Cannot open %s (%s). Audio output will be disabled."}, + {STR_AUDIO_FORMAT_WARN, "Audio hardware doesn't support signed 16 bit format. Audio output will be disabled."}, + {STR_KEYCODE_FILE_WARN, "Cannot open keycode translation file %s (%s)."}, + {STR_KEYCODE_VENDOR_WARN, "Cannot find vendor '%s' in keycode translation file %s."}, + {STR_PREFS_MENU_FILE_GTK, "/_File"}, + {STR_PREFS_ITEM_START_GTK, "/File/_Start Basilisk II"}, + {STR_PREFS_ITEM_ZAP_PRAM_GTK, "/File/_Zap PRAM File"}, + {STR_PREFS_ITEM_SEPL_GTK, "/File/sepl"}, + {STR_PREFS_ITEM_QUIT_GTK, "/File/_Quit Basilisk II"}, + {STR_HELP_MENU_GTK, "/_Help"}, + {STR_HELP_ITEM_ABOUT_GTK, "/Help/_About Basilisk II"}, + + {-1, NULL} // End marker +}; + + +/* + * Fetch pointer to string, given the string number + */ + +const char *GetString(int num) +{ + // First search for platform-specific string + int i = 0; + while (platform_strings[i].num >= 0) { + if (platform_strings[i].num == num) + return platform_strings[i].str; + i++; + } + + // Not found, search for common string + i = 0; + while (common_strings[i].num >= 0) { + if (common_strings[i].num == num) + return common_strings[i].str; + i++; + } + return NULL; +} diff --git a/BasiliskII/src/Unix/user_strings_unix.h b/BasiliskII/src/Unix/user_strings_unix.h new file mode 100644 index 00000000..6231fab5 --- /dev/null +++ b/BasiliskII/src/Unix/user_strings_unix.h @@ -0,0 +1,47 @@ +/* + * user_strings_unix.h - Unix-specific localizable strings + * + * Basilisk II (C) 1997-1999 Christian Bauer + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef USER_STRINGS_UNIX_H +#define USER_STRINGS_UNIX_H + +enum { + STR_NO_XSERVER_ERR = 10000, + STR_NO_XVISUAL_ERR, + STR_UNSUPP_DEPTH_ERR, + + STR_NO_SHEEP_NET_DRIVER_WARN, + STR_SHEEP_NET_ATTACH_WARN, + STR_SCSI_DEVICE_OPEN_WARN, + STR_SCSI_DEVICE_NOT_SCSI_WARN, + STR_NO_AUDIO_DEV_WARN, + STR_AUDIO_FORMAT_WARN, + STR_KEYCODE_FILE_WARN, + STR_KEYCODE_VENDOR_WARN, + + STR_PREFS_MENU_FILE_GTK, + STR_PREFS_ITEM_START_GTK, + STR_PREFS_ITEM_ZAP_PRAM_GTK, + STR_PREFS_ITEM_SEPL_GTK, + STR_PREFS_ITEM_QUIT_GTK, + STR_HELP_MENU_GTK, + STR_HELP_ITEM_ABOUT_GTK +}; + +#endif diff --git a/BasiliskII/src/dummy/user_strings_dummy.cpp b/BasiliskII/src/dummy/user_strings_dummy.cpp new file mode 100644 index 00000000..02b63f55 --- /dev/null +++ b/BasiliskII/src/dummy/user_strings_dummy.cpp @@ -0,0 +1,53 @@ +/* + * user_strings_dummy.cpp - Localizable strings, dummy implementation + * + * Basilisk II (C) 1997-1999 Christian Bauer + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#include "sysdeps.h" +#include "user_strings.h" + + +// Platform-specific string definitions +const user_string_def platform_strings[] = { + {-1, NULL} // End marker +}; + + +/* + * Fetch pointer to string, given the string number + */ + +char *GetString(int num) +{ + // First search for platform-specific string + int i = 0; + while (platform_strings[i].num >= 0) { + if (platform_strings[i].num == num) + return platform_strings[i].str; + i++; + } + + // Not found, search for common string + i = 0; + while (common_strings[i].num >= 0) { + if (common_strings[i].num == num) + return common_strings[i].str; + i++; + } + return NULL; +}