2 # This file is used to define strings used in the UPT tool
4 # Copyright (c) 2011 - 2013, Intel Corporation. All rights reserved.<BR>
6 # This program and the accompanying materials are licensed and made available
7 # under the terms and conditions of the BSD License which accompanies this
8 # distribution. The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 This file contains user visible strings in a format that can be used for
22 # string table starts here...
25 ## strings are classified as following types
26 # MSG_...: it is a message string
27 # ERR_...: it is a error string
28 # WRN_...: it is a warning string
29 # HLP_...: it is a help string
34 MSG_USAGE_STRING
= _("\n"
35 "Intel(r) UEFI Packaging Tool (Intel(r) UEFIPT)\n"
40 # Version and Copyright
42 MSG_VERSION_NUMBER
= _("1.0")
43 MSG_VERSION
= _("Intel(r) UEFI Packaging Tool (Intel(r) UEFIPT) - Revision " + \
45 MSG_COPYRIGHT
= _("Copyright (c) 2011 - 2013 Intel Corporation All Rights Reserved.")
46 MSG_VERSION_COPYRIGHT
= _("\n %s\n %s" % (MSG_VERSION
, MSG_COPYRIGHT
))
47 MSG_USAGE
= _("%s [options]\n%s" % ("upt.exe", MSG_VERSION_COPYRIGHT
))
48 MSG_DESCRIPTION
= _("The Intel(r) UEFIUPT is used to create, " + \
49 "install or remove a UEFI Distribution Package.")
53 # INF Parser related strings.
55 ERR_INF_PARSER_HEADER_FILE
= _(
56 "The Header comment section should start with an @file at the top.")
57 ERR_INF_PARSER_HEADER_MISSGING
= _(
58 "The Header comment is missing. It must be corrected before continuing.")
59 ERR_INF_PARSER_UNKNOWN_SECTION
= _("An unknown section was found. "
60 "It must be corrected before continuing. ")
61 ERR_INF_PARSER_NO_SECTION_ERROR
= _("No section was found. "
62 "A section must be included before continuing.")
63 ERR_INF_PARSER_BUILD_OPTION_FORMAT_INVALID
= \
64 _("Build Option format incorrect.")
65 ERR_INF_PARSER_BINARY_ITEM_FORMAT_INVALID
= _(
66 "The format of binary %s item is incorrect. "
67 "It should contain at least 2 elements.")
68 ERR_INF_PARSER_BINARY_ITEM_FORMAT_INVALID_MAX
= _(
69 "The format of binary %s item is invalid, "
70 "it should contain not more than %d elements.")
71 ERR_INF_PARSER_BINARY_ITEM_INVALID_FILETYPE
= _(
72 "The Binary FileType is incorrect. It should in %s")
73 ERR_INF_PARSER_BINARY_ITEM_FILE_NOT_EXIST
= _(
74 "The Binary File: %s not exist.")
75 ERR_INF_PARSER_BINARY_VER_TYPE
= _(
76 "Only this type is allowed: \"%s\".")
77 ERR_INF_PARSER_MULTI_DEFINE_SECTION
= \
78 _("Multiple define sections found. "
79 "It must be corrected before continuing.")
80 ERR_INF_PARSER_DEFINE_ITEM_MORE_THAN_ONE_FOUND
= \
81 _("More then 1 %s is defined in DEFINES section. "
82 "It must be corrected before continuing.")
83 ERR_INF_PARSER_DEFINE_NAME_INVALID
= \
84 _("Incorrect name format for : %s")
85 ERR_INF_PARSER_DEFINE_GUID_INVALID
= \
86 _("The format of this GUID is incorrect: %s")
87 ERR_INF_PARSER_DEFINE_MODULETYPE_INVALID
= _("Incorrect MODULE_TYPE: %s")
88 ERR_INF_PARSER_DEFINE_FROMAT_INVALID
= _("Incorrect format: %s")
89 ERR_INF_PARSER_FILE_NOT_EXIST
= _("This file does not exist: %s")
90 ERR_INF_PARSER_FILE_NOT_EXIST_OR_NAME_INVALID
= \
91 _("The file does not exist or has an incorrect file name or not in "
92 "sub-directories of the directory containing the INF file: %s. "
93 "It must be corrected before continuing")
94 ERR_INF_PARSER_DEFINE_SHADOW_INVALID
= \
95 _("The SHADOW keyword is only valid for"
96 " SEC, PEI_CORE and PEIM module types.")
97 ERR_INF_PARSER_DEFINE_SECTION_HEADER_INVALID
= \
98 _("The format of the section header is incorrect")
99 ERR_INF_PARSER_DEPEX_SECTION_INVALID
= \
100 _("A module can't have a Depex section when its module type is %s")
101 ERR_INF_PARSER_DEPEX_SECTION_INVALID_FOR_LIBRARY_CLASS
= \
102 _("A library class can't have a Depex section when its supported module type list is not defined.")
103 ERR_INF_PARSER_DEPEX_SECTION_INVALID_FOR_DRIVER
= \
104 _("A driver can't have a Depex section when its module type is UEFI_DRIVER.")
105 ERR_INF_PARSER_DEPEX_SECTION_NOT_DETERMINED
= \
106 _("Cannot determine the module's Depex type. The Depex's module types are conflict")
107 ERR_INF_PARSER_DEFINE_SECTION_MUST_ITEM_NOT_EXIST
= _(
108 "No %s found in INF file, please check it.")
109 ERR_INF_PARSER_DEPEX_SECTION_MODULE_TYPE_ERROR
= \
110 _("The module type of [Depex] section is invalid, not support type of %s")
111 ERR_INF_PARSER_DEPEX_SECTION_CONTENT_MISSING
= \
112 _("Missing content in: %s")
113 ERR_INF_PARSER_DEPEX_SECTION_CONTENT_ERROR
= \
114 _("The [Depex] section contains invalid content: %s")
115 ERR_INF_PARSER_DEPEX_SECTION_SEC_TYPE_ERROR
= \
116 _("The format is incorrect. The section type keyword of the content in the"
117 " [Depex] section is only for 'PEI_DEPEX', 'DXE_DEPEX', 'SMM_DEPEX', "
118 "it does not support type: %s")
119 ERR_INF_PARSER_UE_SECTION_USER_ID_ERROR
= \
120 _("This format is incorrect. "
121 "The UserID: %s in [UserExtension] section is incorrect.")
122 ERR_INF_PARSER_UE_SECTION_ID_STRING_ERROR
= \
123 _("This format is incorrect. "
124 "IdString: %s in [UserExtension] section is incorrect.")
125 ERR_INF_PARSER_LIBRARY_SECTION_CONTENT_ERROR
= \
126 _("The format is incorrect. "
127 "You can only have a Library name and a Feature flag in one line.")
128 ERR_INF_PARSER_LIBRARY_SECTION_LIBNAME_MISSING
= \
129 _("Format invalid. Please specify a library name.")
130 ERR_INF_PARSER_SOURCES_SECTION_CONTENT_ERROR
= \
131 _("The format is incorrect. It should be formated as follows: "
132 "FileName, Family | TagName | ToolCode | FeatureFlagExpr.")
133 ERR_INF_PARSER_PCD_SECTION_TYPE_ERROR
= \
134 _("The PCD section type is incorrect. The value should be this list: %s")
135 ERR_INF_PARSER_PCD_SECTION_CONTENT_ERROR
= \
136 _("PcdName format invalid."
137 "Should like following: PcdName | Value | FeatureFlag.")
138 ERR_INF_PARSER_PCD_NAME_FORMAT_ERROR
= \
140 "Should like following: <TokenSpaceGuidCName>.<PcdCName> ")
141 ERR_INF_PARSER_GUID_PPI_PROTOCOL_SECTION_CONTENT_ERROR
= \
142 _("The format is incorrect. "
143 "It should be formated as follows: CName | FeatureFlag.")
144 ERR_INF_PARSER_PACKAGE_SECTION_CONTENT_ERROR
= \
145 _("The format is incorrect. "
146 "It should be formated as follows: <TokenSpaceGuidCName>.<PcdCName>")
147 ERR_INF_PARSER_PCD_TAIL_COMMENTS_INVALID
= \
148 _("The format is incorrect. "
149 "Multiple usage descriptions must be described on subsequent lines.")
150 ERR_INF_PARSER_MODULE_SECTION_TYPE_ERROR
= \
151 _("This section format is incorrect: %s.")
152 ERR_INF_PARSER_SECTION_NAME_DUPLICATE
= \
153 _("This section has multiple section names, "
154 "only one section name is permitted.")
155 ERR_INF_PARSER_SECTION_ARCH_CONFLICT
= \
156 _("The 'common' ARCH must not be used with the specified ARCHs.")
157 ERR_INF_PARSER_SOURCE_SECTION_TAGNAME_INVALID
= \
158 _("This TagName is incorrect: %s. "
159 "It must be corrected before continuing.")
160 ERR_INF_PARSER_TAGNAME_NOT_PERMITTED
= \
161 _("TagName is not permitted: %s. "
162 "It must be corrected before continuing.")
163 ERR_INF_PARSER_TOOLCODE_NOT_PERMITTED
= \
164 _("ToolCode is not permitted: %s. "
165 "It must be corrected before continuing.")
166 ERR_INF_PARSER_SOURCE_SECTION_FAMILY_INVALID
= \
167 _("This family is incorrect: %s. "
168 "It must be corrected before continuing. ")
169 ERR_INF_PARSER_SOURCE_SECTION_SECTIONNAME_INVALID
= \
170 _("This SectionName is incorrect: %s. "
171 "It must be corrected before continuing.")
172 ERR_INF_PARSER_PCD_CVAR_GUID
= \
173 _("TokenSpaceGuidCName must be valid C variable format.")
174 ERR_INF_PARSER_PCD_CVAR_PCDCNAME
= \
175 _("PcdCName must be valid C variable format.")
176 ERR_INF_PARSER_PCD_VALUE_INVALID
= \
177 _("The PCD value is incorrect. It must be corrected before continuing.")
178 ERR_INF_PARSER_FEATURE_FLAG_EXP_SYNTAX_INVLID
= \
179 _("Incorrect feature flag expression: %s")
180 ERR_INF_PARSER_FEATURE_FLAG_EXP_MISSING
= \
181 _("The feature flag expression is missing. Please specify a feature flag.")
182 ERR_INF_PARSER_INVALID_CNAME
= \
183 _("Incorrect CName: %s. You must specify a valid C variable name.")
184 ERR_INF_PARSER_CNAME_MISSING
= \
185 _("Missing CName. Specify a valid C variable name.")
186 ERR_INF_PARSER_DEFINE_SECTION_KEYWORD_INVALID
= \
187 _("The Define section contains an invalid keyword: \"%s\"."
188 "It must be corrected before continuing.")
189 ERR_INF_PARSER_FILE_MISS_DEFINE
= \
190 _("The following file listed in the module "
191 "directory is not listed in the INF: %s")
192 ERR_INF_PARSER_VERSION_NUMBER_DEPRICATED
= \
193 _("VERSION_NUMBER depricated. "
194 "The INF file %s should be modified to use the VERSION_STRING instead.")
195 ERR_INF_PARSER_VER_EXIST_BOTH_NUM_STR
= \
196 _("The INF file %s defines both VERSION_NUMBER and VERSION_STRING, "
197 "using VERSION_STRING")
198 ERR_INF_PARSER_NOT_SUPPORT_EDKI_INF
= _("EDKI INF is not supported")
199 ERR_INF_PARSER_EDKI_COMMENT_IN_EDKII
= _("The EDKI style comment is not supported in EDKII modules")
201 ERR_INF_PARSER_FEATUREPCD_USAGE_INVALID
= _("The usage for FeaturePcd can only"
202 " be type of \"CONSUMES\".")
204 ERR_INF_PARSER_DEFINE_ITEM_NO_NAME
= _("No name specified")
205 ERR_INF_PARSER_DEFINE_ITEM_NO_VALUE
= _("No value specified")
207 ERR_INF_PARSER_MODULETYPE_INVALID
= _("Drivers and applications are not allowed to have a MODULE_TYPE of \"BASE\". "
208 "Only libraries are permitted to a have a MODULE_TYPE of \"BASE\".")
209 ERR_INF_GET_PKG_DEPENDENCY_FAIL
= _("Failed to get PackageDependencies information from file %s")
210 ERR_INF_NO_PKG_DEPENDENCY_INFO
= _("There are no packages defined that use the AsBuilt PCD information.")
215 ERR_INF_PARSER_ITEM_DUPLICATE
= _("%s define duplicated! "
216 "It must be corrected before continuing.")
217 ERR_INF_PARSER_ITEM_DUPLICATE_COMMON
= _("%s define duplicated! Item listed"
218 "in an architectural section must not be listed in the common architectural"
219 "section.It must be corrected before continuing.")
220 ERR_INF_PARSER_UE_SECTION_DUPLICATE_ERROR
= \
221 _("%s define duplicated! Each UserExtensions section header must have a "
222 "unique set of UserId, IdString and Arch values. "
223 "It must be corrected before continuing.")
225 ERR_INF_PARSER_DEFINE_LIB_NAME_INVALID
= \
226 _("The name 'NULL' for LibraryClass is a reserved word."
227 "Please don't use it.")
229 ERR_GLOBAL_MARCO_INVALID
= \
230 _("Using global MACRO in INF/DEC is not permitted: %s . "
231 "It must be corrected before continuing.")
233 ERR_MARCO_DEFINITION_MISS_ERROR
= \
234 _("MACRO expand incorrectly, can not find the MACRO definition. "
235 "It must be corrected before continuing.")
240 ERR_LIB_CONTATIN_ASBUILD_AND_COMMON
= _("A binary INF file should not contain both AsBuilt LIB_INSTANCES information "
241 "and a common library entry.")
242 ERR_LIB_INSTANCE_MISS_GUID
= _("Could not get FILE_GUID definition from instance INF file.")
244 ERR_BO_CONTATIN_ASBUILD_AND_COMMON
= _("A binary INF file should contain either AsBuilt information "
245 "or a common build option entry, not both.")
247 ERR_ASBUILD_PCD_SECTION_TYPE
= _("The AsBuilt INF file contains a PCD section type that is not permitted: %s.")
248 ERR_ASBUILD_PATCHPCD_FORMAT_INVALID
= _("The AsBuilt PatchPcd entry must contain 3 elements: PcdName|Value|Offset")
249 ERR_ASBUILD_PCDEX_FORMAT_INVALID
= _("The AsBuilt PcdEx entry must contain 2 elements: PcdName|Value")
250 ERR_ASBUILD_PCD_VALUE_INVALID
= \
251 _("The AsBuilt PCD value %s is incorrect or not align with it's datum type %s. "
252 "It must be corrected before continuing.")
253 ERR_ASBUILD_PCD_TOKENSPACE_GUID_VALUE_MISS
= _("Package file value could not be retrieved for %s.")
254 ERR_ASBUILD_PCD_DECLARITION_MISS
= _("PCD Declaration in DEC files could not be found for: %s.")
255 ERR_ASBUILD_PCD_OFFSET_FORMAT_INVALID
= _("PCD offset format invalid, number of (0-4294967295) or"
256 "Hex number of UINT32 allowed : %s.")
259 # XML parser related strings
261 ERR_XML_PARSER_REQUIRED_ITEM_MISSING
= \
262 _("The XML section/attribute '%s' is required under %s, it can't be missing or empty")
263 ERR_XML_INVALID_VARIABLENAME
= \
264 _("The VariableName of the GUID in the XML tree does not conform to the packaging specification. "
265 "Only a Hex Byte Array of UCS-2 format or L\"string\" is allowed): %s %s %s")
266 ERR_XML_INVALID_LIB_SUPMODLIST
= _("The LIBRARY_CLASS entry %s must have the list appended using the format as: \n"
267 "BASE SEC PEI_CORE PEIM DXE_CORE DXE_DRIVER SMM_CORE DXE_SMM_DRIVER DXE_RUNTIME_DRIVER "
268 "DXE_SAL_DRIVER UEFI_DRIVER UEFI_APPLICATION USER_DEFINED\n Current is %s.")
269 ERR_XML_INVALID_EXTERN_SUPARCHLIST
= \
270 _("There is a mismatch of SupArchList %s between the EntryPoint, UnloadImage, Constructor, "
271 "and Destructor elements in the ModuleSurfaceArea.ModuleProperties: SupArchList: %s. ")
272 ERR_XML_INVALID_EXTERN_SUPMODLIST
= _("The SupModList attribute of the CONSTRUCTOR or DESTRUCTOR element: %s does not "
273 "match the Supported Module Types listed after LIBRARY_CLASS = <Keyword> | %s")
274 ERR_XML_INVALID_EXTERN_SUPMODLIST_NOT_LIB
= _("The module is not a library module. "
275 "The MODULE_TYPE : %s listed in the ModuleSurfaceArea.Header "
276 "must match the SupModList attribute %s")
277 ERR_XML_INVALID_BINARY_FILE_TYPE
= _("Invalid binary file type %s.")
280 # Verbosity related strings.
282 MSG_DISTRIBUTION_PACKAGE_FILE_EXISTS
= _(
283 "The distribution package file %s already exists.\nPress Y to override it."
284 " To exit the application, press any other key.")
285 MSG_CHECK_MODULE_EXIST
= _(
286 "\nChecking to see if module exists in workspace started ...")
287 MSG_CHECK_MODULE_EXIST_FINISH
= \
288 _("Checking to see if module exists in workspace ... Done.")
289 MSG_CHECK_MODULE_DEPEX_START
= _(
290 "\nChecking to see if module depex met by workspace started ...")
291 MSG_CHECK_MODULE_DEPEX_FINISH
= _(
292 "Checking to see if module depex met by workspace ... Done.")
293 MSG_CHECK_PACKAGE_START
= _(
294 "\nChecking to see if package exists in workspace started ...")
295 MSG_CHECK_PACKAGE_FINISH
= _(
296 "Checking to see if package exists in workspace ... Done.")
297 MSG_CHECK_DP_START
= \
298 _("\nChecking to see if DP exists in workspace ... Done.")
299 MSG_CHECK_DP_FINISH
= _("Check DP exists in workspace ... Done.")
300 MSG_MODULE_DEPEND_ON
= _("Module %s depends on Package %s")
301 MSG_INIT_IPI_START
= _("\nInitialize IPI database started ...")
302 MSG_INIT_IPI_FINISH
= _("Initialize IPI database ... Done.")
303 MSG_GET_DP_INSTALL_LIST
= _(
304 "\nGetting list of DP install information started ...")
305 MSG_GET_DP_INSTALL_INFO_START
= _(
306 "\nGetting list of DP install information started ...")
307 MSG_GET_DP_INSTALL_INFO_FINISH
= _("Getting DP install information ... Done.")
308 MSG_UZIP_PARSE_XML
= _(
309 "Unzipping and parsing distribution package XML file ... ")
310 MSG_INSTALL_PACKAGE
= _("Installing package ... %s")
311 MSG_INSTALL_MODULE
= _("Installing module ... %s")
312 MSG_NEW_FILE_NAME_FOR_DIST
= _(
313 "Provide new filename for distribution file to be saved:\n")
314 MSG_UPDATE_PACKAGE_DATABASE
= _("Update Distribution Package Database ...")
315 MSG_PYTHON_ON
= _("(Python %s on %s) ")
316 MSG_SEARCH_FOR_HELP
= _(
317 "\n(Please send email to edk2-buildtools-devel@lists.sourceforge.net for\n"
318 " help, attach the following call stack trace.)\n")
319 MSG_REMOVE_TEMP_FILE_STARTED
= _("Removing temp files started ... ")
320 MSG_REMOVE_TEMP_FILE_DONE
= _("Removing temp files ... Done.")
321 MSG_FINISH
= _("Successfully Done.")
322 MSG_COMPRESS_DISTRIBUTION_PKG
= _("Compressing Distribution Package File ...")
323 MSG_CONFIRM_REMOVE
= _(
324 "Some packages or modules depend on this distribution package.\n"
325 "Do you really want to remove it?")
326 MSG_CONFIRM_REMOVE2
= _(
327 "This file has been modified: %s. Do you want to remove it?"
328 "Press Y to remove or other key to keep it")
329 MSG_CONFIRM_REMOVE3
= _(
330 "This is a newly created file: %s. Are you sure you want to remove it? "
331 "Press Y to remove or any other key to keep it")
332 MSG_USER_DELETE_OP
= _(
333 "Press Y to delete all files or press any other key to quit:")
334 MSG_REMOVE_FILE
= _("Removing file: %s ...")
336 MSG_INITIALIZE_ECC_STARTED
= _("\nInitialize ECC database started ...")
337 MSG_INITIALIZE_ECC_DONE
= _("Initialize ECC database ... Done.")
338 MSG_DEFINE_STATEMENT_FOUND
= _("DEFINE statement '%s' found in section %s")
339 MSG_PARSING
= _("Parsing %s ...")
341 MSG_REPKG_CONFLICT
= \
342 _("Repackaging is not allowed on this file: %s. "
343 "It was installed from distribution %s(Guid %s Version %s).")
345 MSG_INVALID_MODULE_INTRODUCED
= _("Some modules are not valid after removal.")
346 MSG_CHECK_LOG_FILE
= _("Please check log file %s for full list")
347 MSG_NEW_FILE_NAME
= _(
348 "Provide new filename:\n")
349 MSG_RELATIVE_PATH_ONLY
= _("Please specify a relative path, full path is not allowed: %s")
350 MSG_NEW_PKG_PATH
= _(
351 "Select package location. To quit with no input, press [Enter].")
354 # Error related strings.
357 ERR_DEPENDENCY_NOT_MATCH
= _(
358 "Module %s's dependency on package %s (GUID %s Version %s) "
359 "cannot be satisfied")
360 ERR_MODULE_NOT_INSTALLED
= _(
361 "This module is not installed in the workspace: %s\n")
362 ERR_DIR_ALREADY_EXIST
= _(
363 "This directory already exists: %s.\n"
364 "Select another location. Press [Enter] with no input to quit:")
365 ERR_USER_INTERRUPT
= _("The user has paused the application")
366 ERR_DIST_FILE_TOOMANY
= _(
367 "Only one .content and one .pkg file in ZIP file are allowed.")
368 ERR_DIST_FILE_TOOFEW
= _(
369 "Must have one .content and one .pkg file in the ZIP file.")
370 ERR_FILE_ALREADY_EXIST
= _(
371 "This file already exists: %s.\n"
372 "Select another path to continue. To quit with no input press [Enter]:")
373 ERR_SPECIFY_PACKAGE
= _(
374 "One distribution package must be specified")
376 "This file is invalid in the distribution package: %s")
377 ERR_PACKAGE_NOT_MATCH_DEPENDENCY
= _(
378 "This distribution package does not meet the dependency requirements")
379 ERR_UNKNOWN_FATAL_INSTALL_ERR
= \
380 _("Unknown unrecoverable error when installing: %s")
381 ERR_OPTION_NOT_FOUND
= _("Options not found")
382 ERR_INVALID_PACKAGE_NAME
= _("Incorrect package name: %s. ")
383 ERR_INVALID_PACKAGE_PATH
= \
384 _("Incorrect package path: %s. The path must be a relative path.")
385 ERR_NOT_FOUND
= _("This was not found: %s")
386 ERR_INVALID_MODULE_NAME
= _("This is not a valid module name: %s")
387 ERR_INVALID_METAFILE_PATH
= _('This file must be in sub-directory of WORKSPACE: %s.')
388 ERR_INVALID_MODULE_PATH
= \
389 _("Incorrect module path: %s. The path must be a relative path.")
390 ERR_UNKNOWN_FATAL_CREATING_ERR
= _("Unknown error when creating: %s")
391 ERR_PACKAGE_NOT_INSTALLED
= _(
392 "This distribution package not installed: %s")
393 ERR_DISTRIBUTION_NOT_INSTALLED
= _(
394 "The distribution package is not installed.")
395 ERR_UNKNOWN_FATAL_REMOVING_ERR
= _("Unknown error when removing package")
396 ERR_NOT_CONFIGURE_WORKSPACE_ENV
= _(
397 "The WORKSPACE environment variable must be configured.")
398 ERR_NO_TEMPLATE_FILE
= _("This package information data file is not found: %s")
400 "Not supported debug level. Use default level instead.")
401 ERR_REQUIRE_T_OPTION
= _(
402 "Option -t is required during distribution creation.")
403 ERR_REQUIRE_I_C_R_OPTION
= _(
404 "Options -i, -c and -r are mutually exclusive.")
405 ERR_I_C_EXCLUSIVE
= \
406 _("Option -c and -i are mutually exclusive.")
407 ERR_I_R_EXCLUSIVE
= \
408 _("Option -i and -r are mutually exclusive.")
409 ERR_C_R_EXCLUSIVE
= \
410 _("Option -c and -r are mutually exclusive.")
412 ERR_FAILED_LOAD
= _("Failed to load %s\n\t%s")
413 ERR_PLACEHOLDER_DIFFERENT_REPEAT
= _(
414 "${%s} has different repeat time from others.")
415 ERR_KEY_NOTALLOWED
= _("This keyword is not allowed: %s")
416 ERR_NOT_FOUND_ENVIRONMENT
= _("Environment variable not found")
417 ERR_WORKSPACE_NOTEXIST
= _("WORKSPACE doesn't exist")
418 ERR_SPACE_NOTALLOWED
= _(
419 "Whitespace characters are not allowed in the WORKSPACE path. ")
420 ERR_MACRONAME_NOGIVEN
= _("No MACRO name given")
421 ERR_MACROVALUE_NOGIVEN
= _("No MACRO value given")
422 ERR_MACRONAME_INVALID
= _("Incorrect MACRO name: %s")
423 ERR_MACROVALUE_INVALID
= _("Incorrect MACRO value: %s")
424 ERR_NAME_ONLY_DEFINE
= _(
425 "This variable can only be defined via environment variable: %s")
426 ERR_EDK_GLOBAL_SAMENAME
= _(
427 "EDK_GLOBAL defined a macro with the same name as one defined by 'DEFINE'")
428 ERR_SECTIONNAME_INVALID
= _(
429 "An incorrect section name was found: %s. 'The correct file is '%s' .")
430 ERR_CHECKFILE_NOTFOUND
= _(
431 "Can't find file '%s' defined in section '%s'")
432 ERR_INVALID_NOTFOUND
= _(
433 "Incorrect statement '%s' was found in section '%s'")
434 ERR_TEMPLATE_NOTFOUND
= _("This package information data file is not found: %s")
435 ERR_SECTION_NAME_INVALID
= _('Incorrect section name: %s')
436 ERR_SECTION_REDEFINE
= _(
437 "This section already defined: %s.")
438 ERR_SECTION_NAME_NONE
= \
439 _('The section needs to be specified first.')
440 ERR_KEYWORD_INVALID
= _('Invalid keyword: %s')
441 ERR_VALUE_INVALID
= _("Invalid \"%s\" value in section [%s].")
442 ERR_FILELIST_LOCATION
= _(
443 'The directory "%s" must contain this file: "%s".')
444 ERR_KEYWORD_REDEFINE
= _(
445 "Keyword in this section can only be used once: %s.")
446 ERR_FILELIST_EXIST
= _(
447 'This file does not exist: %s.')
448 ERR_COPYRIGHT_CONTENT
= _(
449 "The copyright content must contain the word \"Copyright\" (case insensitive).")
450 ERR_WRONG_FILELIST_FORMAT
= \
451 _('File list format is incorrect.'
452 'The correct format is: filename|key=value[|key=value]')
453 ERR_FILELIST_ATTR
= _(
454 "The value of attribute \"%s\" includes illegal character.")
455 ERR_UNKNOWN_FILELIST_ATTR
= _(
456 'Unknown attribute name: %s.')
457 ERR_EMPTY_VALUE
= _("Empty value is not allowed")
458 ERR_KEYWORD_MANDATORY
= _('This keyword is mandatory: %s')
459 ERR_BOOLEAN_VALUE
= _(
460 'Value of key [%s] must be true or false, current: [%s]')
462 'GUID must have the format of 8-4-4-4-12 with HEX value. '
463 'Current value: [%s]')
464 ERR_VERSION_VALUE
= _(
465 'The value of key [%s] must be a decimal number. Found: [%s]')
466 ERR_VERSION_XMLSPEC
= _(
467 'XmlSpecification value must be 1.1, current: %s.')
469 ERR_INVALID_GUID
= _("Incorrect GUID value string: %s")
471 ERR_FILE_NOT_FOUND
= \
472 _("File or directory not found in workspace")
473 ERR_FILE_OPEN_FAILURE
= _("Could not open file")
474 ERR_FILE_WRITE_FAILURE
= _("Could not write file.")
475 ERR_FILE_PARSE_FAILURE
= _("Could not parse file")
476 ERR_FILE_READ_FAILURE
= _("Could not read file")
477 ERR_FILE_CREATE_FAILURE
= _("Could not create file")
478 ERR_FILE_CHECKSUM_FAILURE
= _("Checksum of file is incorrect")
479 ERR_FILE_COMPRESS_FAILURE
= _("File compression did not correctly")
480 ERR_FILE_DECOMPRESS_FAILURE
= \
481 _("File decompression did not complete correctly")
482 ERR_FILE_MOVE_FAILURE
= _("Move file did not complete successfully")
483 ERR_FILE_DELETE_FAILURE
= _("File could not be deleted")
484 ERR_FILE_COPY_FAILURE
= _("File did not copy correctly")
485 ERR_FILE_POSITIONING_FAILURE
= _("Could not find file seek position")
486 ERR_FILE_TYPE_MISMATCH
= _("Incorrect file type")
487 ERR_FILE_CASE_MISMATCH
= _("File name case mismatch")
488 ERR_FILE_DUPLICATED
= _("Duplicate file found")
489 ERR_FILE_UNKNOWN_ERROR
= _("Unknown error encountered on file")
490 ERR_FILE_NAME_INVALIDE
= _("This file name is invalid, it must not be an absolute path or "
491 "contain a period \".\" or \"..\": %s.")
492 ERR_OPTION_UNKNOWN
= _("Unknown option")
493 ERR_OPTION_MISSING
= _("Missing option")
494 ERR_OPTION_CONFLICT
= _("Options conflict")
495 ERR_OPTION_VALUE_INVALID
= _("Invalid option value")
496 ERR_OPTION_DEPRECATED
= _("Deprecated option")
497 ERR_OPTION_NOT_SUPPORTED
= _("Unsupported option")
498 ERR_OPTION_UNKNOWN_ERROR
= _("Unknown error when processing options")
499 ERR_PARAMETER_INVALID
= _("Invalid parameter")
500 ERR_PARAMETER_MISSING
= _("Missing parameter")
501 ERR_PARAMETER_UNKNOWN_ERROR
= _("Unknown error in parameters")
502 ERR_FORMAT_INVALID
= _("Invalid syntax/format")
503 ERR_FORMAT_NOT_SUPPORTED
= _("Syntax/format not supported")
504 ERR_FORMAT_UNKNOWN
= _("Unknown format")
505 ERR_FORMAT_UNKNOWN_ERROR
= _("Unknown error in syntax/format ")
506 ERR_RESOURCE_NOT_AVAILABLE
= _("Not available")
507 ERR_RESOURCE_ALLOCATE_FAILURE
= _("A resource allocation has failed")
508 ERR_RESOURCE_FULL
= _("Full")
509 ERR_RESOURCE_OVERFLOW
= _("Overflow")
510 ERR_RESOURCE_UNDERRUN
= _("Underrun")
511 ERR_RESOURCE_UNKNOWN_ERROR
= _("Unknown error")
512 ERR_ATTRIBUTE_NOT_AVAILABLE
= _("Not available")
513 ERR_ATTRIBUTE_RETRIEVE_FAILURE
= _("Unable to retrieve")
514 ERR_ATTRIBUTE_SET_FAILURE
= _("Unable to set")
515 ERR_ATTRIBUTE_UPDATE_FAILURE
= _("Unable to update")
516 ERR_ATTRIBUTE_ACCESS_DENIED
= _("Access denied")
517 ERR_ATTRIBUTE_UNKNOWN_ERROR
= _("Unknown error when accessing")
518 ERR_COMMAND_FAILURE
= _("Unable to execute command")
519 ERR_IO_NOT_READY
= _("Not ready")
520 ERR_IO_BUSY
= _("Busy")
521 ERR_IO_TIMEOUT
= _("Timeout")
522 ERR_IO_UNKNOWN_ERROR
= _("Unknown error in IO operation")
523 ERR_UNKNOWN_ERROR
= _("Unknown error")
524 ERR_UPT_ALREADY_INSTALLED_ERROR
= _("Already installed")
525 ERR_UPT_ENVIRON_MISSING_ERROR
= _("Environ missing")
526 ERR_UPT_REPKG_ERROR
= _("File not allowed for RePackage")
527 ERR_UPT_DB_UPDATE_ERROR
= _("Update database did not complete successfully")
528 ERR_UPT_INI_PARSE_ERROR
= _("INI file parse error")
529 ERR_COPYRIGHT_MISSING
= \
530 _("Header comment section must have copyright information")
531 ERR_LICENSE_MISSING
= \
532 _("Header comment section must have license information")
533 ERR_INVALID_BINARYHEADER_FORMAT
= \
534 _("Binary Header comment section must have abstract,description,copyright,license information")
535 ERR_MULTIPLE_BINARYHEADER_EXIST
= \
536 _("the inf file at most support one BinaryHeader at the fileheader section.")
537 ERR_INVALID_COMMENT_FORMAT
= _("Comment must start with #")
538 ERR_USER_ABORT
= _("User has stopped the application")
539 ERR_DIST_EXT_ERROR
= \
540 _("Distribution file extension should be '.dist'. Current given: '%s'.")
541 ERR_DIST_FILENAME_ONLY_FOR_REMOVE
= \
542 _("Only distribution filename without path allowed during remove. Current given: '%s'.")
543 ERR_NOT_STANDALONE_MODULE_ERROR
= \
544 _("Module %s is not a standalone module (found in Package %s)")
545 ERR_UPT_ALREADY_RUNNING_ERROR
= \
546 _("UPT is already running, only one instance is allowed")
547 ERR_MUL_DEC_ERROR
= _("Multiple DEC files found within one package directory tree %s: %s, %s")
548 ERR_INSTALL_FILE_FROM_EMPTY_CONTENT
= _("Error file to be installed is not found in content file: %s")
549 ERR_INSTALL_FILE_DEC_FILE_ERROR
= _("Could not obtain the TokenSpaceGuidCName and the PcdCName from the DEC files "
550 "that the package depends on for this pcd entry: TokenValue: %s Token: %s")
551 ERR_NOT_SUPPORTED_SA_MODULE
= _("Stand-alone module distribution does not allow EDK 1 INF")
552 ERR_INSTALL_DIST_NOT_FOUND
= \
553 _("Distribution file to be installed is not found in current working directory or workspace: %s")
554 ERR_BINARY_HEADER_ORDER
= _("Binary header must follow the file header.")
555 ERR_NO_SOURCE_HEADER
= _("File header statement \"## @file\" must exist at the first place.")
558 # Expression error message
560 ERR_EXPR_RIGHT_PAREN
= \
561 _('Expected ")" in feature flag expression [%s]. Found: [%s].')
563 _('Expected HEX, integer, macro, quoted string or PcdName in '
564 'feature flag expression [%s]. Found: [%s].')
565 ERR_EXPR_STRING_ITEM
= \
566 _('Expected quoted string, macro name or PcdName in feature flag '
567 'expression [%s]. Found: [%s].')
568 ERR_EXPR_EQUALITY
= \
569 _('Expected ==, EQ, != or NE in feature flag expression [%s]. Found: [%s].')
571 _('The rest of string [%s] in feature flag '
572 'expression [%s] cannot be evaluated.')
573 ERR_EXPR_EMPTY
= _('Boolean value cannot be empty.')
575 _('The following cannot be evaluated as a logical expression: [%s].')
576 ERR_EXPR_OR
= _('The expression must be encapsulated in open "(" and close ")" '
577 'parenthesis when using | or ||.')
580 # DEC parser error message
582 ERR_DECPARSE_STATEMENT_EMPTY
= \
583 _('Must have at least one statement in section %s.')
584 ERR_DECPARSE_DEFINE_DEFINED
= \
585 _('%s already defined in define section.')
586 ERR_DECPARSE_DEFINE_SECNAME
= \
587 _('No arch and others can be followed for define section.')
588 ERR_DECPARSE_DEFINE_MULTISEC
= \
589 _('The DEC file does not allow multiple define sections.')
590 ERR_DECPARSE_DEFINE_REQUIRED
= \
591 _("Field [%s] is required in define section.")
592 ERR_DECPARSE_DEFINE_FORMAT
= \
593 _("Wrong define section format, must be KEY = Value.")
594 ERR_DECPARSE_DEFINE_UNKNOWKEY
= \
595 _("Unknown key [%s] in define section.")
596 ERR_DECPARSE_DEFINE_SPEC
= \
597 _("Specification value must be HEX numbers.")
598 ERR_DECPARSE_DEFINE_PKGNAME
= \
599 _("Package name must be AlphaNumeric characters.")
600 ERR_DECPARSE_DEFINE_PKGGUID
= \
601 _("GUID format error, must be HEX value with form 8-4-4-4-12.")
602 ERR_DECPARSE_DEFINE_PKGVERSION
= \
603 _("Version number must be decimal number.")
604 ERR_DECPARSE_DEFINE_PKGVUNI
= \
605 _("UNI file name format error or file does not exist.")
606 ERR_DECPARSE_INCLUDE
= \
607 _("Incorrect path: [%s].")
608 ERR_DECPARSE_LIBCLASS_SPLIT
= \
609 _("Library class format error, must be Libraryclass|Headerpath.")
610 ERR_DECPARSE_LIBCLASS_EMPTY
= \
611 _("Class name or file name must not be empty.")
612 ERR_DECPARSE_LIBCLASS_LIB
= \
613 _("Class name format error, must start with upper case letter followed with "
614 "zero or more alphanumeric characters.")
615 ERR_DECPARSE_LIBCLASS_PATH_EXT
= _("File name must be end with .h.")
616 ERR_DECPARSE_LIBCLASS_PATH_DOT
= _("Path must not include '..'.")
617 ERR_DECPARSE_LIBCLASS_PATH_EXIST
= _("File name [%s] does not exist.")
618 ERR_DECPARSE_PCD_CVAR_GUID
= \
619 _("TokenSpaceGuidCName must be valid C variable format.")
620 ERR_DECPARSE_PCD_SPLIT
= \
621 _("Incorrect PcdName. The format must be TokenSpaceGuidCName.PcdCName"
622 "|PcdData|PcdType|Token.")
623 ERR_DECPARSE_PCD_NAME
= \
624 _("Incorrect PCD name. The correct format must be "
625 "<TokenSpaceGuidCName>.<PcdCName>.")
626 ERR_DECPARSE_PCD_CVAR_PCDCNAME
= \
627 _("PcdCName must be valid C variable format.")
628 ERR_DECPARSE_PCD_TYPE
= \
629 _('Incorrect PCD data type. A PCD data type must be one of '
630 '"UINT8", "UINT16", "UINT32", "UINT64", "VOID*", "BOOLEAN".')
631 ERR_DECPARSE_PCD_VOID
= \
632 _("Incorrect value [%s] of type [%s]. Value must be printable and in the "
633 "form of{...} for array, or ""..."" for string, or L""..."""
634 "for unicode string
.")
635 ERR_DECPARSE_PCD_BOOL = \
636 _("Invalid value
[%s] of
type [%s]; must be expression
, TRUE
, FALSE
, 0 or 1.")
637 ERR_DECPARSE_PCD_INT = _("Incorrect value
[%s] of
type [%s]."\
638 " Value must be a hexadecimal
, decimal
or octal
in C language format
.")
639 ERR_DECPARSE_PCD_INT_NEGTIVE = _("Incorrect value
[%s] of
type [%s];"
640 " must
not be signed number
.")
641 ERR_DECPARSE_PCD_INT_EXCEED = _("Incorrect value
[%s] of
type [%s]; "
642 "the number
is too
long for this
type.")
643 ERR_DECPARSE_PCD_FEATUREFLAG = \
644 _("PcdFeatureFlag only allow BOOLEAN
type.")
645 ERR_DECPARSE_PCD_TOKEN = \
646 _("An incorrect PCD token found
: [%s]. "
647 "It must start with
0x followed by
1 - 8 hexadecimal
. ")
648 ERR_DECPARSE_PCD_TOKEN_INT = _("Incorrect token number
[%s]. "
649 "This token number exceeds the maximal value of unsigned
32.")
650 ERR_DECPARSE_PCD_TOKEN_UNIQUE = _("Token number must be unique to the token space
: %s.")
651 ERR_DECPARSE_CGUID = \
652 _("No GUID name
or value specified
, must be
<CName
> = <GuidValueInCFormat
>.")
653 ERR_DECPARSE_CGUID_NAME = \
654 _("No GUID name specified
, must be
<CName
> = <GuidValueInCFormat
>.")
655 ERR_DECPARSE_CGUID_GUID = \
656 _("No GUID value specified
, must be
<CName
> = <GuidValueInCFormat
>.")
657 ERR_DECPARSE_CGUID_GUIDFORMAT = \
658 _("Incorrect GUID value format
, must be
<GuidValueInCFormat
:"
659 "{8,4,4,{2,2,2,2,2,2,2,2}}>.")
660 ERR_DECPARSE_FILEOPEN = _("Unable to
open: [%s].")
661 ERR_DECPARSE_SECTION_EMPTY = _("Empty sections are
not allowed
.")
662 ERR_DECPARSE_SECTION_UE = _("Incorrect UserExtentions format
. "
663 "Must be UserExtenxions
.UserId
.IdString
[.Arch
]+.")
664 ERR_DECPARSE_SECTION_UE_USERID = _("Invalid UserId
, must be underscore
"
665 "or alphanumeric characters
.")
666 ERR_DECPARSE_SECTION_UE_IDSTRING = \
667 _("Incorrect IdString
, must be
\" ... \".")
668 ERR_DECPARSE_ARCH = \
669 _("Unknown arch
, must be
'common' or start with upper case letter followed by
"
670 " zero
or more upper case letters
and numbers
.")
671 ERR_DECPARSE_SECTION_COMMA = _("Section cannot end with comma
.")
672 ERR_DECPARSE_SECTION_COMMON = \
673 _("'COMMON' must
not be used with specific ARCHs
in the same section
.")
674 ERR_DECPARSE_SECTION_IDENTIFY = \
675 _("Section header must start with
and end with brackets
[].")
676 ERR_DECPARSE_SECTION_SUBEMPTY = \
677 _("Missing a sub
-section name
in section
: [%s]. "
678 "All sub
-sections need to have names
. ")
679 ERR_DECPARSE_SECTION_SUBTOOMANY = _("Too many DOT splits
in [%s].")
680 ERR_DECPARSE_SECTION_UNKNOW = _("Section name
[%s] unknown
.")
681 ERR_DECPARSE_SECTION_FEATUREFLAG = \
682 _("[%s] must
not be
in the same section
as other types of PCD
.")
683 ERR_DECPARSE_MACRO_PAIR = _("No macro name
/value given
.")
684 ERR_DECPARSE_MACRO_NAME = _("No macro name given
.")
685 ERR_DECPARSE_MACRO_NAME_UPPER = \
686 _("Macro name must start with upper case letter followed
"
687 "by zero
or more upper case letters
or numbers
. Current macro name
is: [%s].")
688 ERR_DECPARSE_SECTION_NAME = \
689 _('Cannot mix different section names %s.')
690 ERR_DECPARSE_BACKSLASH = \
691 _('Backslash must be the last character on a line and '
692 'preceded by a space character.')
693 ERR_DECPARSE_BACKSLASH_EMPTY = \
694 _('Empty line after previous line that has backslash is not allowed.')
695 ERR_DECPARSE_REDEFINE = _(
696 "\"%s\" already defined
in line
%d.")
697 ERR_DECPARSE_MACRO_RESOLVE = _("Macro
%s in %s cannot be resolved
.")
698 ERR_DECPARSE_UE_DUPLICATE = \
699 _("Duplicated UserExtensions header found
.")
702 # Used to print the current line content which cause error raise.
703 # Be attached to the end of every error message above.
705 ERR_DECPARSE_LINE = _(" Parsing line
: \"%s\".")
708 # Warning related strings.
710 WRN_PACKAGE_EXISTED = _(
711 "A package with this GUID
and Version already exists
: "
712 "GUID
%s, Version
%s.")
713 WRN_MODULE_EXISTED = _("This module already exists
: %s")
714 WRN_FILE_EXISTED = _("This
file already exists
: %s")
715 WRN_FILE_NOT_OVERWRITTEN = \
716 _("This
file already exist
and cannot be overwritten
: %s")
717 WRN_DIST_PKG_INSTALLED = _("This distribution package has been installed
")
718 WRN_DIST_NOT_FOUND = _(
719 "Distribution
is not found at location
%s")
720 WRN_MULTI_PCD_RANGES = _(
721 "A PCD can only have one each of
@ValidRange, @ValidList, "
722 "and @Expression comment
")
723 WRN_MISSING_USAGE = _("Missing usage
")
724 WRN_INVALID_GUID_TYPE = _("This
is and incorrect Guid
type: %s")
725 WRN_MISSING_GUID_TYPE = _("Missing Guid Type
")
726 WRN_INVALID_USAGE = _("This
is an incorrect Usage
: %s")
727 WRN_INF_PARSER_MODULE_INVALID_HOB_TYPE = \
728 _("This
is an incorrect HOB
type: %s")
729 WRN_INF_PARSER_MODULE_INVALID_EVENT_TYPE = \
730 _("This
is an incorrect EVENT
type: %s")
731 WRN_INF_PARSER_MODULE_INVALID_BOOTMODE_TYPE = \
732 _("This
is an incorrect BOOTMODE
type: %s")
733 WRN_INVALID_MODULE_TYPE = \
734 _("This
is an incorrect Module
type: %s")
735 WRN_MODULE_PARSE_FAILED = \
736 _("Parsing of this module did
not complete correctly
: %s.")
737 WRN_EDK1_INF_FOUND = \
738 _("EDK
1 module
file found
: %s")
739 WRN_INVALID_COPYRIGHT = \
740 _("Copyright information
is not right
")
741 WARN_SPECIAL_SECTION_LOCATION_WRONG = _("Warning. A special section should be
"
742 "at the end of a
file or at the end of a section
.")
743 WARN_INSTALLED_PACKAGE_NOT_FOUND = \
744 _("File
not found
. The DEC
file for a package cannot be found
in GUID
/Version
/Install path
: %s %s %s")
747 # Help related strings.
749 HLP_PRINT_DEBUG_INFO = _(
750 "Print DEBUG statements
, where DEBUG_LEVEL
is 0-9")
751 HLP_PRINT_INFORMATIONAL_STATEMENT = _("Print informational statements
")
752 HLP_RETURN_NO_DISPLAY = _(
753 "Returns only the exit code
, informational
and error messages are
"
755 HLP_RETURN_AND_DISPLAY = _(
756 "Returns the exit code
and displays error messages only
")
757 HLP_SPECIFY_PACKAGE_NAME_INSTALL = _(
758 "Specify the UEFI Distribution Package filename to install
")
759 HLP_SPECIFY_PACKAGE_NAME_CREATE = _(
760 "Specify the UEFI Distribution Package filename to create
")
761 HLP_SPECIFY_PACKAGE_NAME_REMOVE = _(
762 "Specify the UEFI Distribution Package filename to remove
")
763 HLP_SPECIFY_TEMPLATE_NAME_CREATE = _(
764 "Specify Package Information Data filename to create package
")
765 HLP_SPECIFY_DEC_NAME_CREATE = _(
766 "Specify dec
file names to create package
")
767 HLP_SPECIFY_INF_NAME_CREATE = _(
768 "Specify inf
file names to create package
")
769 HLP_NO_SUPPORT_GUI = _(
770 "Starting the tool
in graphical mode
is not supported
in this version
")
771 HLP_DISABLE_PROMPT = _(
772 "Disable all user prompts
")
773 HLP_CUSTOM_PATH_PROMPT = _(
774 "Enable user prompting
for alternate installation directories
")
775 HLP_SKIP_LOCK_CHECK = _(
776 "Skip the check
for multiple instances
")