## @file\r
# This file is used to define strings used in the UPT tool\r
#\r
-# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials are licensed and made available \r
# under the terms and conditions of the BSD License which accompanies this \r
MSG_VERSION_NUMBER)\r
MSG_COPYRIGHT = _("Copyright (c) 2011 Intel Corporation All Rights Reserved.")\r
MSG_VERSION_COPYRIGHT = _("\n %s\n %s" % (MSG_VERSION, MSG_COPYRIGHT))\r
-MSG_USAGE = _("%s [options]\n%s" % ("upt.exe", MSG_VERSION_COPYRIGHT))\r
+MSG_USAGE = _("%s [options]\n%s" % ("UPT", MSG_VERSION_COPYRIGHT))\r
MSG_DESCRIPTION = _("The Intel(r) UEFIUPT is used to create, " + \\r
"install or remove a UEFI Distribution Package.")\r
\r
_("Build Option format incorrect.")\r
ERR_INF_PARSER_BINARY_ITEM_FORMAT_INVALID = _(\r
"The format of binary %s item is incorrect. "\r
- "It should contain at least 2 elements.")\r
+ "It should contain at least %d elements.")\r
ERR_INF_PARSER_BINARY_ITEM_FORMAT_INVALID_MAX = _(\r
"The format of binary %s item is invalid, "\r
- "it should contain not more than %d elements.") \r
+ "it should contain not more than %d elements.")\r
ERR_INF_PARSER_BINARY_ITEM_INVALID_FILETYPE = _(\r
"The Binary FileType is incorrect. It should in %s")\r
ERR_INF_PARSER_BINARY_ITEM_FILE_NOT_EXIST = _(\r
"The Binary File: %s not exist.")\r
+ERR_INF_PARSER_BINARY_ITEM_FILENAME_NOT_EXIST = _(\r
+ "The Binary File Name item not exist")\r
ERR_INF_PARSER_BINARY_VER_TYPE = _(\r
"Only this type is allowed: \"%s\".")\r
ERR_INF_PARSER_MULTI_DEFINE_SECTION = \\r
_("Multiple define sections found. "\r
"It must be corrected before continuing.")\r
ERR_INF_PARSER_DEFINE_ITEM_MORE_THAN_ONE_FOUND = \\r
- _("More then 1 %s is defined in DEFINES section. "\r
+ _("More than 1 %s is defined in DEFINES section. "\r
"It must be corrected before continuing.")\r
ERR_INF_PARSER_DEFINE_NAME_INVALID = \\r
_("Incorrect name format for : %s")\r
ERR_INF_PARSER_DEFINE_FROMAT_INVALID = _("Incorrect format: %s")\r
ERR_INF_PARSER_FILE_NOT_EXIST = _("This file does not exist: %s")\r
ERR_INF_PARSER_FILE_NOT_EXIST_OR_NAME_INVALID = \\r
- _("The file does not exist or has an incorrect file name or not in "\r
- "sub-directories of the directory containing the INF file: %s. "\r
+ _("The file does not exist or not in sub-directories "\r
+ "or has an incorrect file name of the directory containing the INF or DEC file: %s. "\r
"It must be corrected before continuing")\r
ERR_INF_PARSER_DEFINE_SHADOW_INVALID = \\r
_("The SHADOW keyword is only valid for"\r
_("The format of the section header is incorrect")\r
ERR_INF_PARSER_DEPEX_SECTION_INVALID = \\r
_("A module can't have a Depex section when its module type is %s")\r
+ERR_INF_PARSER_DEPEX_SECTION_INVALID_FOR_BASE_LIBRARY_CLASS = \\r
+ _("A base type library class can't have a Depex section with module type not defined.")\r
ERR_INF_PARSER_DEPEX_SECTION_INVALID_FOR_LIBRARY_CLASS = \\r
_("A library class can't have a Depex section when its supported module type list is not defined.")\r
ERR_INF_PARSER_DEPEX_SECTION_INVALID_FOR_DRIVER = \\r
#\r
# Item duplicate\r
#\r
+ERR_INF_PARSER_ITEM_DUPLICATE_IN_DEC = \\r
+_('"%s" is redefined in its dependent DEC files')\r
ERR_INF_PARSER_ITEM_DUPLICATE = _("%s define duplicated! " \r
"It must be corrected before continuing.")\r
ERR_INF_PARSER_ITEM_DUPLICATE_COMMON = _("%s define duplicated! Item listed" \r
\r
ERR_ASBUILD_PCD_SECTION_TYPE = _("The AsBuilt INF file contains a PCD section type that is not permitted: %s.")\r
ERR_ASBUILD_PATCHPCD_FORMAT_INVALID = _("The AsBuilt PatchPcd entry must contain 3 elements: PcdName|Value|Offset")\r
-ERR_ASBUILD_PCDEX_FORMAT_INVALID = _("The AsBuilt PcdEx entry must contain 2 elements: PcdName|Value")\r
+ERR_ASBUILD_PCDEX_FORMAT_INVALID = _("The AsBuilt PcdEx entry must contain one element: PcdName")\r
ERR_ASBUILD_PCD_VALUE_INVALID = \\r
_("The AsBuilt PCD value %s is incorrect or not align with it's datum type %s. "\r
"It must be corrected before continuing.")\r
MSG_UPDATE_PACKAGE_DATABASE = _("Update Distribution Package Database ...")\r
MSG_PYTHON_ON = _("(Python %s on %s) ")\r
MSG_SEARCH_FOR_HELP = _(\r
- "\n(Please send email to edk2-buildtools-devel@lists.sourceforge.net for\n"\r
+ "\n(Please send email to edk2-devel@lists.sourceforge.net for\n"\r
" help, attach the following call stack trace.)\n")\r
MSG_REMOVE_TEMP_FILE_STARTED = _("Removing temp files started ... ")\r
MSG_REMOVE_TEMP_FILE_DONE = _("Removing temp files ... Done.")\r
MSG_RELATIVE_PATH_ONLY = _("Please specify a relative path, full path is not allowed: %s")\r
MSG_NEW_PKG_PATH = _(\r
"Select package location. To quit with no input, press [Enter].")\r
-\r
+MSG_CHECK_DP_FOR_REPLACE = _("Verifying the dependency rule for replacement of distributions:\n %s replaces %s")\r
+MSG_CHECK_DP_FOR_INSTALL = _("Verifying the dependency rule for installation of distribution:\n %s")\r
+MSG_REPLACE_ALREADY_INSTALLED_DP = _("Distribution with the same GUID/Version is already installed, "\r
+ "replace would result in two instances, which is not allowed")\r
+MSG_RECOVER_START = _('An error was detected, recovery started ...')\r
+MSG_RECOVER_DONE = _('Recovery completed.')\r
+MSG_RECOVER_FAIL = _('Recovery failed.')\r
#\r
# Error related strings.\r
#\r
"This distribution package does not meet the dependency requirements")\r
ERR_UNKNOWN_FATAL_INSTALL_ERR = \\r
_("Unknown unrecoverable error when installing: %s")\r
+ERR_UNKNOWN_FATAL_REPLACE_ERR = \\r
+_("Unknown unrecoverable error during replacement of distributions: %s replaces %s")\r
ERR_OPTION_NOT_FOUND = _("Options not found")\r
ERR_INVALID_PACKAGE_NAME = _("Incorrect package name: %s. ")\r
ERR_INVALID_PACKAGE_PATH = \\r
ERR_DISTRIBUTION_NOT_INSTALLED = _(\r
"The distribution package is not installed.")\r
ERR_UNKNOWN_FATAL_REMOVING_ERR = _("Unknown error when removing package")\r
+ERR_UNKNOWN_FATAL_INVENTORYWS_ERR = _("Unknown error when inventorying WORKSPACE")\r
ERR_NOT_CONFIGURE_WORKSPACE_ENV = _(\r
"The WORKSPACE environment variable must be configured.")\r
ERR_NO_TEMPLATE_FILE = _("This package information data file is not found: %s")\r
"Not supported debug level. Use default level instead.")\r
ERR_REQUIRE_T_OPTION = _(\r
"Option -t is required during distribution creation.")\r
+ERR_REQUIRE_O_OPTION = _(\r
+ "Option -o is required during distribution replacement.")\r
+ERR_REQUIRE_U_OPTION = _(\r
+ "Option -u is required during distribution replacement.")\r
ERR_REQUIRE_I_C_R_OPTION = _(\r
"Options -i, -c and -r are mutually exclusive.")\r
ERR_I_C_EXCLUSIVE = \\r
_("Option -i and -r are mutually exclusive.")\r
ERR_C_R_EXCLUSIVE = \\r
_("Option -c and -r are mutually exclusive.")\r
+ERR_U_ICR_EXCLUSIVE = \\r
+_("Option -u and -c/-i/-r are mutually exclusive.")\r
+\r
+ERR_L_OA_EXCLUSIVE = \\r
+_("Option -l and -c/-i/-r/-u are mutually exclusive.")\r
\r
ERR_FAILED_LOAD = _("Failed to load %s\n\t%s")\r
ERR_PLACEHOLDER_DIFFERENT_REPEAT = _(\r
_("Header comment section must have copyright information")\r
ERR_LICENSE_MISSING = \\r
_("Header comment section must have license information")\r
+ERR_INVALID_BINARYHEADER_FORMAT = \\r
+_("Binary Header comment section must have abstract,description,copyright,license information")\r
+ERR_MULTIPLE_BINARYHEADER_EXIST = \\r
+_("the inf file at most support one BinaryHeader at the fileheader section.")\r
ERR_INVALID_COMMENT_FORMAT = _("Comment must start with #")\r
ERR_USER_ABORT = _("User has stopped the application")\r
ERR_DIST_EXT_ERROR = \\r
ERR_NOT_SUPPORTED_SA_MODULE = _("Stand-alone module distribution does not allow EDK 1 INF")\r
ERR_INSTALL_DIST_NOT_FOUND = \\r
_("Distribution file to be installed is not found in current working directory or workspace: %s")\r
+ERR_REPLACE_DIST_NOT_FOUND = \\r
+_("Distribution file for replace function was not found in the current working directory or workspace: %s")\r
+ERR_DIST_FILENAME_ONLY_FOR_REPLACE_ORIG = \\r
+_("Only a distribution file name without a path is allowed for "\r
+ "the distribution to be replaced during replace. Current given: '%s'.")\r
+ERR_UNIPARSE_DBLQUOTE_UNMATCHED = \\r
+_("Only Language entry can contain a couple of matched quote in one line")\r
+ERR_UNIPARSE_NO_SECTION_EXIST = _("No PakcageDef or ModuleDef section exists in the UNI file.")\r
+ERR_UNIPARSE_STRNAME_FORMAT_ERROR = _("The String Token Name %s must start with \"STR_\"")\r
+ERR_UNIPARSE_SEP_LANGENTRY_LINE = _("Each <LangEntry> should be in a separate line :%s.")\r
+ERR_UNIPARSE_MULTI_ENTRY_EXIST = \\r
+_("There are same entries : %s in the UNI file, every kind of entry should be only one.")\r
+ERR_UNIPARSE_ENTRY_ORDER_WRONG = \\r
+_("The string entry order in UNI file should be <AbstractStrings>, <DescriptionStrings>, \\r
+<BinaryAbstractStrings>, <BinaryDescriptionStrings>.")\r
+ERR_UNIPARSE_STRTOKEN_FORMAT_ERROR = _("The String Token Type %s must be one of the '_PROMPT', '_HELP' and '_ERR_'.") \r
+ERR_UNIPARSE_LINEFEED_UNDER_EXIST = _("Line feed should not exist under this line: %s.")\r
+ERR_UNIPARSE_LINEFEED_UP_EXIST = _("Line feed should not exist up this line: %s.")\r
+ERR_UNI_MISS_LANGENTRY = _("Language entry missed in this Entry, %s.")\r
+ERR_BINARY_HEADER_ORDER = _("Binary header must follow the file header.")\r
+ERR_NO_SOURCE_HEADER = _("File header statement \"## @file\" must exist at the first place.")\r
+ERR_UNI_FILE_SUFFIX_WRONG = _("The UNI file must have an extension of '.uni', '.UNI' or '.Uni'")\r
+ERR_UNI_FILE_NAME_INVALID = _("The use of '..', '../' and './' in the UNI file is prohibited.")\r
+ERR_UNI_SUBGUID_VALUE_DEFINE_DEC_NOT_FOUND = _("There are no DEC file to define the GUID value for \\r
+this GUID CName: '%s'.")\r
\r
#\r
# Expression error message\r
#\r
ERR_EXPR_RIGHT_PAREN = \\r
-_('Expected ")" in feature flag expression [%s]. Found: [%s].')\r
+_('Missing ")" in expression "%s".')\r
ERR_EXPR_FACTOR = \\r
-_('Expected HEX, integer, macro, quoted string or PcdName in '\r
- 'feature flag expression [%s]. Found: [%s].')\r
+_('"%s" is expected to be HEX, integer, macro, quoted string or PcdName in '\r
+ 'expression "%s".')\r
ERR_EXPR_STRING_ITEM = \\r
-_('Expected quoted string, macro name or PcdName in feature flag '\r
- 'expression [%s]. Found: [%s].')\r
+_('"%s" is expected to be HEX, integer, macro, quoted string or PcdName in '\r
+ 'expression [%s].')\r
ERR_EXPR_EQUALITY = \\r
-_('Expected ==, EQ, != or NE in feature flag expression [%s]. Found: [%s].')\r
+_('"%s" is expected to be ==, EQ, != or NE in expression "%s".')\r
ERR_EXPR_BOOLEAN = \\r
-_('The rest of string [%s] in feature flag ' \r
- 'expression [%s] cannot be evaluated.')\r
+_('The string "%s" in expression "%s" can not be recognized as a part of the logical expression.')\r
ERR_EXPR_EMPTY = _('Boolean value cannot be empty.')\r
+ERR_EXPRESS_EMPTY = _('Expression can not be empty.')\r
ERR_EXPR_LOGICAL = \\r
-_('The following cannot be evaluated as a logical expression: [%s].')\r
-ERR_EXPR_OR = _('The expression must be encapsulated in open "(" and close ")" '\r
+_('The following is not a valid logical expression: "%s".')\r
+ERR_EXPR_OR = _('The expression: "%s" must be encapsulated in open "(" and close ")" '\r
'parenthesis when using | or ||.')\r
+ERR_EXPR_RANGE = \\r
+_('The following is not a valid range expression: "%s".')\r
+ERR_EXPR_RANGE_FACTOR = \\r
+_('"%s" is expected to be HEX, integer in valid range expression "%s".')\r
+ERR_EXPR_RANGE_DOUBLE_PAREN_NESTED = \\r
+_('Double parentheses nested is not allowed in valid range expression: "%s".')\r
+ERR_EXPR_RANGE_EMPTY = _('Valid range can not be empty.')\r
+ERR_EXPR_LIST_EMPTY = _('Valid list can not be empty.')\r
+ERR_PAREN_NOT_USED = _('Parenthesis must be used on both sides of "OR", "AND" in valid range : %s.')\r
+ERR_EXPR_LIST = \\r
+_('The following is not a valid list expression: "%s".')\r
+\r
\r
-#\r
# DEC parser error message\r
#\r
ERR_DECPARSE_STATEMENT_EMPTY = \\r
_("Incorrect value [%s] of type [%s]. Value must be printable and in the "\r
"form of{...} for array, or ""..."" for string, or L""..."""\r
"for unicode string.")\r
+ERR_DECPARSE_PCD_VALUE_EMPTY = \\r
+_("Pcd value can not be empty.") \r
ERR_DECPARSE_PCD_BOOL = \\r
_("Invalid value [%s] of type [%s]; must be expression, TRUE, FALSE, 0 or 1.")\r
ERR_DECPARSE_PCD_INT = _("Incorrect value [%s] of type [%s]."\\r
ERR_DECPARSE_CGUID_GUIDFORMAT = \\r
_("Incorrect GUID value format, must be <GuidValueInCFormat:" \r
"{8,4,4,{2,2,2,2,2,2,2,2}}>.")\r
+ERR_DECPARSE_CGUID_NOT_FOUND = _("Unable to find the GUID value of this GUID CName : '%s'.")\r
ERR_DECPARSE_FILEOPEN = _("Unable to open: [%s].")\r
ERR_DECPARSE_SECTION_EMPTY = _("Empty sections are not allowed.")\r
ERR_DECPARSE_SECTION_UE = _("Incorrect UserExtentions format. "\r
ERR_DECPARSE_MACRO_RESOLVE = _("Macro %s in %s cannot be resolved.")\r
ERR_DECPARSE_UE_DUPLICATE = \\r
_("Duplicated UserExtensions header found.")\r
-\r
+ERR_DECPARSE_PCDERRORMSG_MISS_VALUE_SPLIT = \\r
+ _("Missing '|' between Pcd's error code and Pcd's error message.")\r
+ERR_DECPARSE_PCD_MISS_ERRORMSG = \\r
+ _("Missing Pcd's error message.")\r
+ERR_DECPARSE_PCD_UNMATCHED_ERRORCODE = \\r
+ _("There is no error message matched with this Pcd error code : %s in both DEC and UNI file.")\r
+ERR_DECPARSE_PCD_NODEFINED = _("The PCD : %s used in the Expression is undefined.")\r
#\r
# Used to print the current line content which cause error raise.\r
# Be attached to the end of every error message above.\r
WRN_DIST_NOT_FOUND = _(\r
"Distribution is not found at location %s")\r
WRN_MULTI_PCD_RANGES = _(\r
- "A PCD can only have one each of @ValidRange, @ValidList, "\r
- "and @Expression comment")\r
+ "A PCD can only have one type of @ValidRange, @ValidList, and @Expression comment")\r
+WRN_MULTI_PCD_VALIDVALUE = _(\r
+ "A PCD can only have one of @ValidList comment")\r
+WRN_MULTI_PCD_PROMPT = _(\r
+ "A PCD can only have one of @Prompt comment")\r
WRN_MISSING_USAGE = _("Missing usage")\r
WRN_INVALID_GUID_TYPE = _("This is and incorrect Guid type: %s")\r
WRN_MISSING_GUID_TYPE = _("Missing Guid Type")\r
"at the end of a file or at the end of a section.")\r
WARN_INSTALLED_PACKAGE_NOT_FOUND = \\r
_("File not found. The DEC file for a package cannot be found in GUID/Version/Install path: %s %s %s")\r
+WARN_CUSTOMPATH_OVERRIDE_USEGUIDEDPATH = \\r
+ _("option selection of --custom-path will override the option --use-guided-paths")\r
\r
#\r
# Help related strings.\r
"Specify dec file names to create package")\r
HLP_SPECIFY_INF_NAME_CREATE = _(\r
"Specify inf file names to create package")\r
+HLP_LIST_DIST_INSTALLED = _(\r
+ "List the UEFI Distribution Packages that have been installed")\r
HLP_NO_SUPPORT_GUI = _(\r
"Starting the tool in graphical mode is not supported in this version")\r
HLP_DISABLE_PROMPT = _(\r
- "Disable all user prompts")\r
+ "Disable user prompts for removing modified files. Valid only when -r is present")\r
HLP_CUSTOM_PATH_PROMPT = _(\r
"Enable user prompting for alternate installation directories")\r
HLP_SKIP_LOCK_CHECK = _(\r
"Skip the check for multiple instances")\r
+HLP_SPECIFY_PACKAGE_NAME_REPLACE = _(\r
+ "Specify the UEFI Distribution Package file name to replace the existing file name")\r
+HLP_SPECIFY_PACKAGE_NAME_TO_BE_REPLACED = _(\r
+ "Specify the UEFI Distribution Package file name to be replaced")\r
+HLP_USE_GUIDED_PATHS = _(\r
+ "Install packages to the following directory path by default: <PackageName>_<PACKAGE_GUID>_<PACKAGE_VERSION>")\r