grub2: bring back build of aros-side grub2 tools
[AROS.git] / tools / flexcat / src / locale.c
blobc640d7cd99b550a7d8d833136e0d4aeed77240ce
2 /****************************************************************
4 This file was created automatically by `FlexCat 2.15'
5 from "locale/FlexCat.pot".
7 Do NOT edit by hand!
9 ****************************************************************/
11 /* Include files */
12 #include <libraries/gadtools.h>
13 #include <proto/locale.h>
14 #include <string.h>
16 #include "FlexCat_cat.h"
18 /* Variables */
19 struct FC_String FlexCat_Strings[] =
21 { "Usage:", 0 },
22 { " CDFILE Catalog description file to scan\n CTFILE Catalog translation file to scan\n POFILE Catalog translation in PO-style format\n CATALOG Catalog file to create\n NEWCTFILE Catalog translation file to create\n SOURCES Sources to create; must be something like SFILE=SDFILE,\n where SFILE is a source file and SDFILE is a source\n description file\n WARNCTGAPS Warn about identifiers missing in translation\n NOOPTIM Do not skip unchanged strings in translation/description\n FILL Fill missing identifiers with original text\n FLUSH Flush memory after the catalog is created\n NOBEEP No DisplayBeep() on errors and warnings\n QUIET No warnings\n NOLANGTOLOWER Prevent #language name from being lowercased\n NOBUFFEREDIO Disable I/O buffers\n MODIFIED Create catalog only if description/translation have changed\n COPYMSGNEW Copy ***NEW*** markers over from old translation\n OLDMSGNEW Custom marker in old translation\n CODESET Codeset to force in output file (e.g. 'UTF-8')\n NOAUTODATE no operation - kept for compatibility\n NOSPACES no operation - kept for compatibility", 1 },
23 { "File '%s' is up to date", 2 },
24 { "%s, line %d - warning:", 100 },
25 { "%s, line %d - ERROR:", 101 },
26 { "expected hex character (one of [0-9a-fA-F])", 102 },
27 { "expected octal character (one of [0-7])", 103 },
28 { "lengthbytes cannot be larger than %d (sizeof long)", 104 },
29 { "unknown catalog description command", 105 },
30 { "unexpected blanks", 106 },
31 { "missing identifier", 107 },
32 { "unexpected end of file (missing catalog strings)", 115 },
33 { "unknown command in translation", 118 },
34 { "'%s' missing in catalog description", 119 },
35 { "unknown string type", 120 },
36 { "unexpected end of line (missing ')')", 121 },
37 { "binary characters in string type None", 122 },
38 { "'%s' missing in catalog translation", 123 },
39 { "catalog language declared twice", 124 },
40 { "catalog version declared twice", 125 },
41 { "incorrect RCS Id", 126 },
42 { "out of memory!", 127 },
43 { "cannot open catalog description '%s'", 128 },
44 { "cannot open catalog translation '%s'", 129 },
45 { "missing catalog translation version\nUse either '## version' or '## rcsid' and '## name'", 130 },
46 { "cannot open catalog file '%s'", 131 },
47 { "cannot create catalog translation '%s'", 132 },
48 { "missing catalog translation language", 133 },
49 { "cannot open source file '%s'", 134 },
50 { "cannot open source description file '%s'", 135 },
51 { "creating a catalog requires a translation file", 136 },
52 { "cannot get datestamp of '%s'", 137 },
53 { "Catalog translation file name not specified at command line or as basename in description", 140 },
54 { "catalog file name not specified at command line or as basename in description", 141 },
55 { "error processing 'FlexCat.prefs' variable, falling back to defaults\nTemplate:", 142 },
56 { "invalid language in catalog translation file\nLanguage MUST be a string with alphabetical characters and no inlined or trailing spaces", 144 },
57 { "catalog codeset declared twice", 146 },
58 { "invalid codeset in catalog translation file\nCodeset MUST be a decimal number without any trailing spaces", 147 },
59 { "missing catalog translation codeset", 148 },
60 { "%s - ERROR:", 149 },
61 { "invalid version string in catalog translation file\nVersion should be something like\n## version $VER: name version.revision (date)\nwithout any spaces in the name", 150 },
62 { "%s - Warning:", 154 },
63 { "missing translation for identifier '%s'", 155 },
64 { "empty translation for identifier '%s'", 156 },
65 { "mismatching trailing control characters", 157 },
66 { "identifier '%s' declared twice", 159 },
67 { "string too short for identifier '%s'", 160 },
68 { "string too long for identifier '%s'", 161 },
69 { "original string has a trailing ellipsis ('...') for identifier '%s'", 162 },
70 { "original string doesn't have a trailing ellipsis ('...') for identifier '%s'", 163 },
71 { "original string has trailing blanks for identifier '%s'", 164 },
72 { "original string doesn't have trailing blanks for identifier '%s'", 165 },
73 { "mismatching placeholders for identifier '%s'", 166 },
74 { "missing placeholders for identifier '%s'", 167 },
75 { "excessive placeholders for identifier '%s'", 168 },
76 { "missing '(' for identifier '%s'", 169 },
77 { "missing ')' for identifier '%s'", 170 },
78 { "ID number used twice for identifier '%s'", 171 },
79 { "expected MinLen (character '/') for identifier '%s'", 172 },
80 { "expected MaxLen (character '/') for identifier '%s'", 173 },
81 { "extra characters at the end of the line", 174 },
82 { "extra characters at the end of the line for identifier '%s'", 175 },
83 { "non-ASCII character 0x%02x found in original string for identifier '%s'", 176 },
84 { "no catalog revision information found, using revision 0", 177 },
85 { NULL, 0 }
88 static struct Catalog *FlexCatCatalog;
90 void OpenFlexCatCatalog()
92 if(LocaleBase != NULL)
94 if ((FlexCatCatalog = OpenCatalog(NULL, (STRPTR)"FlexCat.catalog",
95 OC_BuiltInLanguage, (STRPTR)"english",
96 OC_Version, 3,
97 TAG_DONE)) != NULL)
99 struct FC_String *fc;
101 for(fc = FlexCat_Strings; fc->Str; fc++)
103 fc->Str = (const char *)GetCatalogStr(FlexCatCatalog, fc->Id, (STRPTR)fc->Str);
109 void CloseFlexCatCatalog()
111 if(FlexCatCatalog != NULL)
113 CloseCatalog(FlexCatCatalog);
114 FlexCatCatalog = NULL;
118 void LocalizeStringArray(STRPTR *Array)
120 STRPTR *x;
122 for(x = Array; *x != NULL; x++)
124 *x = strdup(FlexCat_Strings[(IPTR)*x].Str);