]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/UPT/Logger/StringTable.py
BaseTools: Clean up source files
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Logger / StringTable.py
index 5b6973c9446007f373dbc488d1b4b1ae9c83ead5..c1c7732b40ce4747d2aa41d936be844db2b98ca1 100644 (file)
@@ -1,11 +1,11 @@
 ## @file\r
 # This file is used to define strings used in the UPT tool\r
 #\r
-# Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2011 - 2018, 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
-# distribution. The full text of the license may be found at \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
+# distribution. The full text of the license may be found at\r
 # http://opensource.org/licenses/bsd-license.php\r
 #\r
 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
@@ -32,22 +32,25 @@ import gettext
 _ = gettext.gettext\r
 \r
 MSG_USAGE_STRING = _("\n"\r
-    "Intel(r) UEFI Packaging Tool (Intel(r) UEFIPT)\n"\r
+    "UEFI Packaging Tool (UEFIPT)\n"\r
     "%prog [options]"\r
     )\r
 \r
 ##\r
 # Version and Copyright\r
 #\r
-MSG_VERSION_NUMBER = _("1.0")\r
-MSG_VERSION = _("Intel(r) UEFI Packaging Tool (Intel(r) UEFIPT) - Revision " + \\r
+MSG_VERSION_NUMBER = _("1.1")\r
+MSG_VERSION = _("UEFI Packaging Tool (UEFIPT) - Revision " + \\r
                 MSG_VERSION_NUMBER)\r
-MSG_COPYRIGHT = _("Copyright (c) 2011 Intel Corporation All Rights Reserved.")\r
+MSG_COPYRIGHT = _("Copyright (c) 2011 - 2016 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", MSG_VERSION_COPYRIGHT))\r
-MSG_DESCRIPTION = _("The Intel(r) UEFIUPT is used to create, " + \\r
-                    "install or remove a UEFI Distribution Package.")\r
-\r
+MSG_DESCRIPTION = _("The UEFIPT is used to create, " + \\r
+                    "install or remove a UEFI Distribution Package. " + \\r
+                    "If WORKSPACE environment variable is present, " + \\r
+                    "then UPT will install packages to the location specified by WORKSPACE, " + \\r
+                    "otherwise UPT will install packages to the current directory. " + \\r
+                    "Option -n will override this default installation location")\r
 \r
 #\r
 # INF Parser related strings.\r
@@ -115,7 +118,7 @@ ERR_INF_PARSER_DEPEX_SECTION_MODULE_TYPE_ERROR = \
 ERR_INF_PARSER_DEPEX_SECTION_CONTENT_MISSING = \\r
     _("Missing content in: %s")\r
 ERR_INF_PARSER_DEPEX_SECTION_CONTENT_ERROR  = \\r
-    _("The [Depex] section contains invalid content: %s")                    \r
+    _("The [Depex] section contains invalid content: %s")\r
 ERR_INF_PARSER_DEPEX_SECTION_SEC_TYPE_ERROR = \\r
     _("The format is incorrect. The section type keyword of the content in the"\r
       " [Depex] section is only for 'PEI_DEPEX', 'DXE_DEPEX', 'SMM_DEPEX', "\r
@@ -137,11 +140,11 @@ ERR_INF_PARSER_SOURCES_SECTION_CONTENT_ERROR = \
 ERR_INF_PARSER_PCD_SECTION_TYPE_ERROR = \\r
     _("The PCD section type is incorrect. The value should be this list: %s")\r
 ERR_INF_PARSER_PCD_SECTION_CONTENT_ERROR = \\r
-    _("PcdName format invalid." \r
+    _("PcdName format invalid."\r
       "Should like following: PcdName | Value | FeatureFlag.")\r
 ERR_INF_PARSER_PCD_NAME_FORMAT_ERROR = \\r
-    _("Format invalid." \r
-      "Should like following: <TokenSpaceGuidCName>.<PcdCName> ")   \r
+    _("Format invalid."\r
+      "Should like following: <TokenSpaceGuidCName>.<PcdCName> ")\r
 ERR_INF_PARSER_GUID_PPI_PROTOCOL_SECTION_CONTENT_ERROR = \\r
     _("The format is incorrect. "\r
       "It should be formated as follows: CName | FeatureFlag.")\r
@@ -178,7 +181,7 @@ ERR_INF_PARSER_PCD_CVAR_GUID = \
 ERR_INF_PARSER_PCD_CVAR_PCDCNAME = \\r
     _("PcdCName must be valid C variable format.")\r
 ERR_INF_PARSER_PCD_VALUE_INVALID = \\r
-    _("The PCD value is incorrect. It must be corrected before continuing.")    \r
+    _("The PCD value is incorrect. It must be corrected before continuing.")\r
 ERR_INF_PARSER_FEATURE_FLAG_EXP_SYNTAX_INVLID = \\r
     _("Incorrect feature flag expression: %s")\r
 ERR_INF_PARSER_FEATURE_FLAG_EXP_MISSING = \\r
@@ -188,7 +191,7 @@ ERR_INF_PARSER_INVALID_CNAME = \
 ERR_INF_PARSER_CNAME_MISSING = \\r
     _("Missing CName. Specify a valid C variable name.")\r
 ERR_INF_PARSER_DEFINE_SECTION_KEYWORD_INVALID = \\r
-    _("The Define section contains an invalid keyword:  \"%s\"."  \r
+    _("The Define section contains an invalid keyword:  \"%s\"."\r
     "It must be corrected before continuing.")\r
 ERR_INF_PARSER_FILE_MISS_DEFINE = \\r
     _("The following file listed in the module "\r
@@ -203,7 +206,7 @@ ERR_INF_PARSER_NOT_SUPPORT_EDKI_INF = _("EDKI INF is not supported")
 ERR_INF_PARSER_EDKI_COMMENT_IN_EDKII = _("The EDKI style comment is not supported in EDKII modules")\r
 \r
 ERR_INF_PARSER_FEATUREPCD_USAGE_INVALID = _("The usage for FeaturePcd can only"\r
-    " be type of \"CONSUMES\".") \r
+    " be type of \"CONSUMES\".")\r
 \r
 ERR_INF_PARSER_DEFINE_ITEM_NO_NAME = _("No name specified")\r
 ERR_INF_PARSER_DEFINE_ITEM_NO_VALUE = _("No value specified")\r
@@ -218,9 +221,9 @@ ERR_INF_NO_PKG_DEPENDENCY_INFO = _("There are no packages defined that use the A
 #\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
+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
+ERR_INF_PARSER_ITEM_DUPLICATE_COMMON = _("%s define duplicated! Item listed"\r
 "in an architectural section must not be listed in the common architectural"\r
 "section.It must be corrected before continuing.")\r
 ERR_INF_PARSER_UE_SECTION_DUPLICATE_ERROR = \\r
@@ -234,11 +237,11 @@ _("The name 'NULL' for LibraryClass is a reserved word."
 \r
 ERR_GLOBAL_MARCO_INVALID = \\r
 _("Using global MACRO in INF/DEC is not permitted: %s . "\r
-"It must be corrected before continuing.")                                          \r
+"It must be corrected before continuing.")\r
 \r
 ERR_MARCO_DEFINITION_MISS_ERROR = \\r
 _("MACRO expand incorrectly, can not find the MACRO definition. "\r
-"It must be corrected before continuing.") \r
+"It must be corrected before continuing.")\r
 \r
 #\r
 # AsBuilt related\r
@@ -320,7 +323,7 @@ MSG_NEW_FILE_NAME_FOR_DIST      = _(
 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.01.org 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
@@ -367,7 +370,7 @@ MSG_RECOVER_FAIL = _('Recovery failed.')
 #\r
 \r
 ERR_DEPENDENCY_NOT_MATCH         = _(\r
-    "Module %s's dependency on package %s (GUID %s Version %s) " \r
+    "Module %s's dependency on package %s (GUID %s Version %s) "\r
     "cannot be satisfied")\r
 ERR_MODULE_NOT_INSTALLED         = _(\r
     "This module is not installed in the workspace: %s\n")\r
@@ -472,7 +475,7 @@ ERR_FILELIST_EXIST               = _(
 ERR_COPYRIGHT_CONTENT            = _(\r
     "The copyright content must contain the word \"Copyright\" (case insensitive).")\r
 ERR_WRONG_FILELIST_FORMAT        = \\r
-_('File list format is incorrect.' \r
+_('File list format is incorrect.'\r
   'The correct format is: filename|key=value[|key=value]')\r
 ERR_FILELIST_ATTR                = _(\r
     "The value of attribute \"%s\" includes illegal character.")\r
@@ -590,9 +593,10 @@ _("There are same entries : %s in the UNI file, every kind of entry should be on
 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_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_STRING_ENTRY = _("String entry missed in this Entry, %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
@@ -652,7 +656,7 @@ _("Wrong define section format, must be KEY = Value.")
 ERR_DECPARSE_DEFINE_UNKNOWKEY       = \\r
 _("Unknown key [%s] in define section.")\r
 ERR_DECPARSE_DEFINE_SPEC            = \\r
-_("Specification value must be HEX numbers.")\r
+_("Specification value must be HEX numbers or decimal numbers.")\r
 ERR_DECPARSE_DEFINE_PKGNAME         = \\r
 _("Package name must be AlphaNumeric characters.")\r
 ERR_DECPARSE_DEFINE_PKGGUID         = \\r
@@ -668,7 +672,7 @@ _("Library class format error, must be Libraryclass|Headerpath.")
 ERR_DECPARSE_LIBCLASS_EMPTY         = \\r
 _("Class name or file name must not be empty.")\r
 ERR_DECPARSE_LIBCLASS_LIB           = \\r
-_("Class name format error, must start with upper case letter followed with " \r
+_("Class name format error, must start with upper case letter followed with "\r
   "zero or more alphanumeric characters.")\r
 ERR_DECPARSE_LIBCLASS_PATH_EXT      = _("File name must be end with .h.")\r
 ERR_DECPARSE_LIBCLASS_PATH_DOT      = _("Path must not include '..'.")\r
@@ -691,7 +695,7 @@ _("Incorrect  value [%s] of type [%s].  Value  must be printable and in the "
   "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
+_("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
@@ -715,14 +719,14 @@ _("No GUID name specified, must be <CName> = <GuidValueInCFormat>.")
 ERR_DECPARSE_CGUID_GUID             = \\r
 _("No GUID value specified, must be <CName> = <GuidValueInCFormat>.")\r
 ERR_DECPARSE_CGUID_GUIDFORMAT       = \\r
-_("Incorrect GUID value format, must be <GuidValueInCFormat:" \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
                             "Must be UserExtenxions.UserId.IdString[.Arch]+.")\r
-ERR_DECPARSE_SECTION_UE_USERID      = _("Invalid UserId, must be underscore" \r
+ERR_DECPARSE_SECTION_UE_USERID      = _("Invalid UserId, must be underscore"\r
                                         "or alphanumeric characters.")\r
 ERR_DECPARSE_SECTION_UE_IDSTRING    = \\r
     _("Incorrect IdString, must be \" ... \".")\r
@@ -781,7 +785,7 @@ WRN_MODULE_EXISTED        = _("This module already exists: %s")
 WRN_FILE_EXISTED          = _("This file already exists: %s")\r
 WRN_FILE_NOT_OVERWRITTEN  = \\r
 _("This file already exist and cannot be overwritten: %s")\r
-WRN_DIST_PKG_INSTALLED    = _("This distribution package has been installed")\r
+WRN_DIST_PKG_INSTALLED = _("This distribution package %s has previously been installed.")\r
 WRN_DIST_NOT_FOUND         = _(\r
     "Distribution is not found at location %s")\r
 WRN_MULTI_PCD_RANGES      = _(\r
@@ -801,7 +805,7 @@ WRN_INF_PARSER_MODULE_INVALID_EVENT_TYPE = \
 WRN_INF_PARSER_MODULE_INVALID_BOOTMODE_TYPE = \\r
     _("This is an incorrect BOOTMODE type: %s")\r
 WRN_INVALID_MODULE_TYPE = \\r
-    _("This is an incorrect Module type: %s")  \r
+    _("This is an incorrect Module type: %s")\r
 WRN_MODULE_PARSE_FAILED = \\r
     _("Parsing of this module did not complete correctly: %s.")\r
 WRN_EDK1_INF_FOUND = \\r
@@ -822,7 +826,7 @@ HLP_PRINT_DEBUG_INFO             = _(
     "Print DEBUG statements, where DEBUG_LEVEL is 0-9")\r
 HLP_PRINT_INFORMATIONAL_STATEMENT = _("Print informational statements")\r
 HLP_RETURN_NO_DISPLAY            = _(\r
-    "Returns only the exit code, informational and error messages are" \r
+    "Returns only the exit code, informational and error messages are"\r
     " not displayed")\r
 HLP_RETURN_AND_DISPLAY           = _(\r
     "Returns the exit code and displays  error messages only")\r
@@ -854,3 +858,8 @@ HLP_SPECIFY_PACKAGE_NAME_TO_BE_REPLACED = _(
     "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
+HLP_TEST_INSTALL = _(\r
+    "Specify the UEFI Distribution Package filenames to install")\r
+\r
+MSG_TEST_INSTALL_PASS = _("All distribution package file are satisfied for dependence check.")\r
+MSG_TEST_INSTALL_FAIL = _("NOT all distribution package file are satisfied for dependence check.")\r