From: lhauch Date: Wed, 23 Aug 2006 17:40:50 +0000 (+0000) Subject: Fixed grammar in messages. X-Git-Tag: edk2-stable201903~24505 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=623db5caebe9ecf6ef8f78a46a0495761fe1912b;hp=2aee15b8a1d2dde87336da5ffc0da6c5497527f0 Fixed grammar in messages. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1368 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/MsaHeader.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/MsaHeader.java index 07081bcaee..faa8b9988e 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/MsaHeader.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/MsaHeader.java @@ -373,7 +373,7 @@ public class MsaHeader extends IInternalFrame { jTextAreaDescription = new JTextArea(); jTextAreaDescription.setLineWrap(true); jTextAreaDescription.addFocusListener(this); - jTextAreaDescription.setToolTipText("A verbose description of the module"); + jTextAreaDescription.setToolTipText("A verbose description of the module."); jTextAreaDescription.setWrapStyleWord(true); jTextAreaDescription.setSelectionStart(0); jTextAreaDescription.setSelectionEnd(0); @@ -485,7 +485,7 @@ public class MsaHeader extends IInternalFrame { jTextFieldAbstract.setLocation(new java.awt.Point(160, 110)); jTextFieldAbstract.setSize(new java.awt.Dimension(320, 20)); jTextFieldAbstract.addFocusListener(this); - jTextFieldAbstract.setToolTipText("A one sentence description of this module"); + jTextFieldAbstract.setToolTipText("A one sentence description of this module."); } return jTextFieldAbstract; } @@ -519,7 +519,7 @@ public class MsaHeader extends IInternalFrame { jTextFieldURL.setLocation(new java.awt.Point(160, 430)); jTextFieldURL.setSize(new java.awt.Dimension(320, 20)); jTextFieldURL.addFocusListener(this); - jTextFieldURL.setToolTipText("A URL for the latest version of the license"); + jTextFieldURL.setToolTipText("A URL for the latest version of the license."); } return jTextFieldURL; } @@ -570,7 +570,7 @@ public class MsaHeader extends IInternalFrame { jTextAreaCopyright.setSelectionStart(0); jTextAreaCopyright.setSelectionEnd(0); jTextAreaCopyright.setBounds(new java.awt.Rectangle(0, 0, 320, 40)); - jTextAreaCopyright.setToolTipText("One or more copyright lines"); + jTextAreaCopyright.setToolTipText("One or more copyright lines."); } return jTextAreaCopyright; } @@ -592,7 +592,7 @@ public class MsaHeader extends IInternalFrame { + "A module cannot contain both.
" + "The GUID numbers should be identical
" + "for a binary and source MSA,
" - + "but the BINARY MSA should have
" + + "however the BINARY MSA should have
" + "a higher version number."); } return jComboBoxBinaryModule; @@ -609,7 +609,7 @@ public class MsaHeader extends IInternalFrame { jTextFieldOutputFileBasename.setBounds(new java.awt.Rectangle(160, 455, 320, 20)); jTextFieldOutputFileBasename.setPreferredSize(new java.awt.Dimension(320, 20)); jTextFieldOutputFileBasename.addFocusListener(this); - jTextFieldOutputFileBasename.setToolTipText("Enter a single word for generated output file names"); + jTextFieldOutputFileBasename.setToolTipText("Enter a single word for generated output file names."); } return jTextFieldOutputFileBasename; } @@ -939,12 +939,12 @@ public class MsaHeader extends IInternalFrame { // Check Base Name // if (isEmpty(this.jTextFieldBaseName.getText())) { - Log.wrn("Update Msa Header", "Base Name couldn't be empty"); + Log.wrn("Update Msa Header", "Name must be entered!"); //this.jTextFieldBaseName.requestFocus(); return false; } if (!DataValidation.isBaseName(this.jTextFieldBaseName.getText())) { - Log.wrn("Update Msa Header", "Incorrect data type for Base Name"); + Log.wrn("Update Msa Header", "Incorrect data type for Name, it must start with an alpha character!"); //this.jTextFieldBaseName.requestFocus(); return false; } @@ -953,12 +953,12 @@ public class MsaHeader extends IInternalFrame { // Check Guid // if (isEmpty(this.jTextFieldGuid.getText())) { - Log.wrn("Update Msa Header", "Guid Value couldn't be empty"); + Log.wrn("Update Msa Header", "The Guid Value must be entered!"); //this.jTextFieldGuid.requestFocus(); return false; } if (!DataValidation.isGuid((this.jTextFieldGuid).getText())) { - Log.wrn("Update Msa Header", "Incorrect data type for Guid"); + Log.wrn("Update Msa Header", "Incorrect data type for Guid, it must be registry format, 8-4-4-4-12"); //this.jTextFieldGuid.requestFocus(); return false; } @@ -967,12 +967,12 @@ public class MsaHeader extends IInternalFrame { // Check Version // if (isEmpty(this.jTextFieldVersion.getText())) { - Log.wrn("Update Msa Header", "Version couldn't be empty"); + Log.wrn("Update Msa Header", "Version must be entered!"); //this.jTextFieldVersion.requestFocus(); return false; } if (!DataValidation.isVersion(this.jTextFieldVersion.getText())) { - Log.wrn("Update Msa Header", "Incorrect data type for Version"); + Log.wrn("Update Msa Header", "Incorrect data type for Version, it must start with a digit."); //this.jTextFieldVersion.requestFocus(); return false; } @@ -981,12 +981,12 @@ public class MsaHeader extends IInternalFrame { // Check Abstact // if (isEmpty(this.jTextFieldAbstract.getText())) { - Log.wrn("Update Msa Header", "Abstract couldn't be empty"); + Log.wrn("Update Msa Header", "Abstract must be entered!"); //this.jTextFieldAbstract.requestFocus(); return false; } if (!DataValidation.isAbstract(this.jTextFieldAbstract.getText())) { - Log.wrn("Update Msa Header", "Incorrect data type for Abstract"); + Log.wrn("Update Msa Header", "Incorrect data type for Abstract, is should be a sentence describing the module."); //this.jTextFieldAbstract.requestFocus(); return false; } @@ -995,7 +995,7 @@ public class MsaHeader extends IInternalFrame { // Check Description // if (isEmpty(this.jTextAreaDescription.getText())) { - Log.wrn("Update Msa Header", "Description couldn't be empty"); + Log.wrn("Update Msa Header", "Description must be entered!"); //this.jTextAreaDescription.requestFocus(); return false; } @@ -1004,7 +1004,7 @@ public class MsaHeader extends IInternalFrame { // Check Copyright // if (isEmpty(this.jTextAreaCopyright.getText())) { - Log.wrn("Update Msa Header", "Copyright couldn't be empty"); + Log.wrn("Update Msa Header", "Copyright must be entered!"); //this.jTextFieldCopyright.requestFocus(); return false; } @@ -1013,7 +1013,7 @@ public class MsaHeader extends IInternalFrame { // Check License // if (isEmpty(this.jTextAreaLicense.getText())) { - Log.wrn("Update Msa Header", "License couldn't be empty"); + Log.wrn("Update Msa Header", "License must be entered!"); //this.jTextAreaLicense.requestFocus(); return false; } @@ -1022,7 +1022,7 @@ public class MsaHeader extends IInternalFrame { // Check Specification // if (isEmpty(this.jTextFieldSpecification.getText())) { - Log.wrn("Update Msa Header", "Specification couldn't be empty"); + Log.wrn("Update Msa Header", "Specification must exist."); //this.jTextFieldSpecification.requestFocus(); return false; } @@ -1120,12 +1120,12 @@ public class MsaHeader extends IInternalFrame { // if (arg0.getSource() == this.jTextFieldBaseName) { if (isEmpty(this.jTextFieldBaseName.getText())) { - Log.wrn("Update Msa Header", "Base Name couldn't be empty"); + Log.wrn("Update Msa Header", "The Name must be entered!"); //this.jTextFieldBaseName.requestFocus(); return; } if (!DataValidation.isBaseName(this.jTextFieldBaseName.getText())) { - Log.wrn("Update Msa Header", "Incorrect data type for Base Name"); + Log.wrn("Update Msa Header", "Incorrect data type for Name, it must begin with an alpha character."); //this.jTextFieldBaseName.requestFocus(); return; } @@ -1152,12 +1152,12 @@ public class MsaHeader extends IInternalFrame { // if (arg0.getSource() == this.jTextFieldGuid) { if (isEmpty(this.jTextFieldGuid.getText())) { - Log.wrn("Update Msa Header", "Guid Value couldn't be empty"); + Log.wrn("Update Msa Header", "Guid must be entered!"); //this.jTextFieldGuid.requestFocus(); return; } if (!DataValidation.isGuid((this.jTextFieldGuid).getText())) { - Log.wrn("Update Msa Header", "Incorrect data type for Guid"); + Log.wrn("Update Msa Header", "Incorrect data type for Guid, it must be registry format. (8-4-4-4-12)"); //this.jTextFieldGuid.requestFocus(); return; } @@ -1173,12 +1173,12 @@ public class MsaHeader extends IInternalFrame { // if (arg0.getSource() == this.jTextFieldVersion) { if (isEmpty(this.jTextFieldVersion.getText())) { - Log.wrn("Update Msa Header", "Version couldn't be empty"); + Log.wrn("Update Msa Header", "Version must be entered!"); //this.jTextFieldVersion.requestFocus(); return; } if (!DataValidation.isVersion(this.jTextFieldVersion.getText())) { - Log.wrn("Update Msa Header", "Incorrect data type for Version"); + Log.wrn("Update Msa Header", "Incorrect data type for Version, it must start with a digit."); //this.jTextFieldVersion.requestFocus(); return; } @@ -1194,12 +1194,12 @@ public class MsaHeader extends IInternalFrame { // if (arg0.getSource() == this.jTextFieldAbstract) { if (isEmpty(this.jTextFieldAbstract.getText())) { - Log.wrn("Update Msa Header", "Abstract couldn't be empty"); + Log.wrn("Update Msa Header", "Abstract must be entered!"); //this.jTextFieldAbstract.requestFocus(); return; } if (!DataValidation.isAbstract(this.jTextFieldAbstract.getText())) { - Log.wrn("Update Msa Header", "Incorrect data type for Abstract"); + Log.wrn("Update Msa Header", "Incorrect data type for Abstract, it must be sentence."); //this.jTextFieldAbstract.requestFocus(); return; } @@ -1215,7 +1215,7 @@ public class MsaHeader extends IInternalFrame { // if (arg0.getSource() == this.jTextAreaDescription) { if (isEmpty(this.jTextAreaDescription.getText())) { - Log.wrn("Update Msa Header", "Description couldn't be empty"); + Log.wrn("Update Msa Header", "Description must be entered!"); //this.jTextAreaDescription.requestFocus(); return; } @@ -1231,7 +1231,7 @@ public class MsaHeader extends IInternalFrame { // if (arg0.getSource() == this.jTextAreaCopyright) { if (isEmpty(this.jTextAreaCopyright.getText())) { - Log.wrn("Update Msa Header", "Copyright couldn't be empty"); + Log.wrn("Update Msa Header", "Copyright must be entered!"); //this.jTextFieldCopyright.requestFocus(); return; } @@ -1247,7 +1247,7 @@ public class MsaHeader extends IInternalFrame { // if (arg0.getSource() == this.jTextAreaLicense) { if (isEmpty(this.jTextAreaLicense.getText())) { - Log.wrn("Update Msa Header", "License couldn't be empty"); + Log.wrn("Update Msa Header", "License must be entered!"); //this.jTextAreaLicense.requestFocus(); return; } @@ -1288,7 +1288,7 @@ public class MsaHeader extends IInternalFrame { // if (arg0.getSource() == this.jTextFieldOutputFileBasename) { if (isEmpty(this.jTextFieldOutputFileBasename.getText())) { - Log.wrn("Update Msa Header", "Output File Basename couldn't be empty"); + Log.wrn("Update Msa Header", "Output File Basename must be entered!"); // jTextFieldOutputFileBasename.removeFocusListener(this); // jTextFieldOutputFileBasename.requestFocus(); // jTextFieldOutputFileBasename.addFocusListener(this); diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/DataHubsDlg.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/DataHubsDlg.java index c28c266197..87c6728765 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/DataHubsDlg.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/DataHubsDlg.java @@ -397,7 +397,7 @@ public class DataHubsDlg extends IDialog { // Check DataHubRecord // if (isEmpty(this.jTextFieldDataHubRecord.getText())) { - Log.wrn("Update Hubs", "Data Hub Record must not be empty"); + Log.wrn("Update Hubs", "Data Hub Record must be entered!"); return false; } diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/HiiPackagesDlg.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/HiiPackagesDlg.java index 9c310ad589..6f0c0248ad 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/HiiPackagesDlg.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/HiiPackagesDlg.java @@ -406,7 +406,7 @@ public class HiiPackagesDlg extends IDialog { // Check Hii Package Name // if (isEmpty(this.jTextFieldName.getText())) { - Log.wrn("Update Hii Packages", "Hii Package Name Record must not be empty"); + Log.wrn("Update Hii Packages", "Hii Package Name Record must be entered!"); return false; } diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/HobsDlg.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/HobsDlg.java index 24b5e2dce5..3448cb3d89 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/HobsDlg.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/HobsDlg.java @@ -440,7 +440,7 @@ public class HobsDlg extends IDialog { // Check Name // if (isEmpty(this.jComboBoxGuidC_Name.getSelectedItem().toString())) { - Log.wrn("Update Hobs", "Hob Guid C Name must not be empty"); + Log.wrn("Update Hobs", "Hob Guid C Name must be entered!"); return false; } diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/PCDsDlg.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/PCDsDlg.java index 032c9e5d1f..81a4dfe3da 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/PCDsDlg.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/PCDsDlg.java @@ -499,7 +499,7 @@ public class PCDsDlg extends IDialog implements ItemListener { if (!isEmpty(this.jTextFieldTokenSpaceGuid.getText())) { if (!DataValidation.isC_NameType(this.jTextFieldTokenSpaceGuid.getText())) { Log.wrn("Update PcdCoded", - "Incorrect data type for the selected pcd entry, please check in in spd file"); + "Incorrect data type for the selected pcd entry, please check the datatype specified in the spd file"); return false; } } @@ -577,7 +577,7 @@ public class PCDsDlg extends IDialog implements ItemListener { || pcd.getPcd(index).getType() == null || pcd.getPcd(index).getHelp() == null || isEmpty(pcd.getPcd(index).getHelp())) { Log.wrn("select pcd entry when editing msa", - "The selected is defined incorrectly.\r\nPlease check it in spd file"); + "The selected value is defined incorrectly.\r\nPlease check it in the spd file"); } else { this.jTextFieldTokenSpaceGuid.setText(pcd.getPcd(index).getGuidCName()); Tools.generateComboBoxByVector(this.jComboBoxItemType, pcd.getPcd(index).getType()); diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/PackageDepDlg.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/PackageDepDlg.java index 2c781dd928..4af5b4f7d3 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/PackageDepDlg.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/PackageDepDlg.java @@ -101,7 +101,7 @@ public class PackageDepDlg extends IDialog implements ItemListener { jComboBoxPackageName = new JComboBox(); jComboBoxPackageName.setBounds(new java.awt.Rectangle(168, 12, 320, 20)); jComboBoxPackageName.setPreferredSize(new java.awt.Dimension(320, 20)); - jComboBoxPackageName.setToolTipText("If your Module requires a package list that here."); + jComboBoxPackageName.setToolTipText("If your Module requires a package, list that here."); jComboBoxPackageName.addItemListener(this); } return jComboBoxPackageName; diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/SourceFilesDlg.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/SourceFilesDlg.java index 7497d3fc4f..e90991ba24 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/SourceFilesDlg.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/SourceFilesDlg.java @@ -454,7 +454,7 @@ public class SourceFilesDlg extends IDialog { // Check Filename // if (isEmpty(this.jTextFieldFileName.getText())) { - Log.wrn("Update Source Files", "File Name couldn't be empty"); + Log.wrn("Update Source Files", "File Name must be entered!"); return false; } if (!DataValidation.isFilename(this.jTextFieldFileName.getText())) { diff --git a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/VariablesDlg.java b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/VariablesDlg.java index 70b6f08513..d13e6ccc07 100644 --- a/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/VariablesDlg.java +++ b/Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/ui/dialog/VariablesDlg.java @@ -428,7 +428,7 @@ public class VariablesDlg extends IDialog { // Check VariableName // if (isEmpty(this.jTextFieldVariableName.getText())) { - Log.wrn("Update Variables", "Variable Name must not be empty"); + Log.wrn("Update Variables", "Variable Name must be entered!"); return false; }