|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25: /*
26: * Copyright (c) 1993 NeXT Computer, Inc. All rights reserved.
27: *
28: * kmLocalized.m -- strings for localized graphics
29: */
30:
31: #import <driverkit/ppc/driverTypesPrivate.h>
32: #import <bsd/dev/kmreg_com.h>
33: #import <bsd/dev/ppc/km.h>
34:
35: const char *kmLocalizedStrings[][L_NUM_LANGUAGE] = {
36: {
37: "Restarting the computer...\n", // L_ENGLISH
38: "Redemarrage en cours...\n", // L_FRENCH
39: "Starte neu...\n", // L_GERMAN
40: "Reinicializando...\n", // L_SPANISH
41: "Riavvio...\n", // L_ITALIAN
42: "Startar om...\n", // L_SWEDISH
43: NULL, // L_JAPANESE
44: },
45:
46: {
47: "Please wait until it's safe\n" // L_ENGLISH
48: "to turn off the computer.\n",
49: "Veuillez patienter avant\n" // L_FRENCH
50: "d'eteindre votre ordinateur.\n",
51: "Bitte warten Sie, bis Sie Ihren Computer\n" // L_GERMAN
52: "sicher ausschalten koennen.\n",
53: "Espere hasta que sea seguro\n" // L_SPANISH
54: "apagar el ordenador.\n",
55: "Prima di spegnere il computer,\n" // L_ITALIAN
56: "attendi la conferma.\n",
57: "Vanta tills det ar sakert att stanga av datorn.\n", // L_SWEDISH
58: NULL, // L_JAPANESE
59: },
60:
61: {
62: "It's safe to turn off the computer.\n", // L_ENGLISH
63: "Vous pouvez maintenant eteindre\n"
64: "votre ordinateur en toute securite.\n", // L_FRENCH
65: "Jetzt koennen Sie Ihren Computer\n"
66: "sicher ausschalten.\n", // L_GERMAN
67: "Ahora es seguro apagar el ordenador.\n", // L_SPANISH
68: "Ora puoi spegnere il computer.\n", // L_ITALIAN
69: "Nu ar det sakert att stanga av datorn.\n", // L_SWEDISH
70: NULL, // L_JAPANESE
71: },
72:
73: {
74: "Please wait...", // L_ENGLISH
75: NULL, // L_FRENCH
76: NULL, // L_GERMAN
77: NULL, // L_SPANISH
78: NULL, // L_ITALIAN
79: NULL, // L_SWEDISH
80: NULL, // L_JAPANESE
81: },
82:
83: { NULL } // END
84:
85: };
86:
87: const char *
88: kmLocalizeString(
89: const char *str
90: )
91: {
92: int i, lang;
93: const char *newStr;
94:
95: lang = glLanguage;
96: if (lang < 0 || lang >= L_NUM_LANGUAGE)
97: lang = L_ENGLISH;
98:
99: for (i = 0; kmLocalizedStrings[i][0] != NULL; i++) {
100: if (strcmp(kmLocalizedStrings[i][0], str) == 0) {
101: if ((newStr = kmLocalizedStrings[i][lang]) != NULL)
102: return newStr;
103: break;
104: }
105: }
106: return str;
107: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.