Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Localization] Andromeda #655

Merged
merged 18 commits into from
Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions include/vcpkg/base/messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -725,10 +725,7 @@ namespace vcpkg
"{command_line}\n"
"failed with the following results:");
DECLARE_MESSAGE(CompressFolderFailed, (msg::path), "", "Failed to compress folder \"{path}\":");
DECLARE_MESSAGE(ConflictingValuesForOption,
(msg::value),
"'{value}' is a command option.",
"conflicting values specified for '--{value}'.");
DECLARE_MESSAGE(ConflictingValuesForOption, (msg::option), "", "conflicting values specified for '--{option}'.");
DECLARE_MESSAGE(ConstraintViolation, (), "", "Found a constraint violation:");
DECLARE_MESSAGE(ControlAndManifestFilesPresent,
(msg::path),
Expand All @@ -752,6 +749,7 @@ namespace vcpkg
"=== curl output ===\n"
"{actual}\n"
"=== end curl output ===");
DECLARE_MESSAGE(DateTableHeader, (), "", "Date");
DECLARE_MESSAGE(DefaultBrowserLaunched, (msg::url), "", "Default browser launched to {url}.");
DECLARE_MESSAGE(DefaultFlag, (msg::option), "", "Defaulting to --{option} being on.");
DECLARE_MESSAGE(DefaultPathToBinaries,
Expand Down Expand Up @@ -864,10 +862,7 @@ namespace vcpkg
DECLARE_MESSAGE(ExpectedFailOrSkip, (), "", "expected 'fail', 'skip', or 'pass' here");
DECLARE_MESSAGE(ExpectedPortName, (), "", "expected a port name here");
DECLARE_MESSAGE(ExpectedTripletName, (), "", "expected a triplet name here");
DECLARE_MESSAGE(ExpectedValueForOption,
(msg::value),
"'{value}' is a command option.",
"expected value after '{value}'.");
DECLARE_MESSAGE(ExpectedValueForOption, (msg::option), "", "expected value after --{option}.");
DECLARE_MESSAGE(ExportingPackage, (msg::package_name), "", "Exporting {package_name}...");
DECLARE_MESSAGE(ExtendedDocumentationAtUrl, (msg::url), "", "Extended documentation available at '{url}'.");
DECLARE_MESSAGE(FailedToExtract, (msg::path), "", "Failed to extract \"{path}\":");
Expand All @@ -876,7 +871,11 @@ namespace vcpkg
"",
"No files to format.\nPlease pass either --all, or the explicit files to format or convert.");
DECLARE_MESSAGE(FailedToObtainLocalPortGitSha, (), "", "Failed to obtain git SHAs for local ports.");
DECLARE_MESSAGE(FailedToParseBinParagraph,
DECLARE_MESSAGE(FailedToParseCMakeConsoleOut,
(),
"",
"Failed to parse CMake console output to locate block start/end markers.");
DECLARE_MESSAGE(FailedToParseSerializedBinParagraph,
(msg::error_msg),
"'{error_msg}' is the error message for failing to parse the Binary Paragraph.",
"[sanity check] Failed to parse a serialized binary paragraph.\nPlease open an issue at "
Expand All @@ -891,10 +890,6 @@ namespace vcpkg
"remove {spec} and re-attempt.");
DECLARE_MESSAGE(FailedToObtainDependencyVersion, (), "", "Cannot find desired dependency version.");
DECLARE_MESSAGE(FailedToObtainPackageVersion, (), "", "Cannot find desired package version.");
DECLARE_MESSAGE(FailedToParseCMakeConsoleOut,
(),
"",
"Failed to parse CMake console output to locate block start/end markers.");
DECLARE_MESSAGE(FailedToParseControl, (msg::path), "", "Failed to parse control file: {path}");
DECLARE_MESSAGE(FailedToParseJson, (msg::path), "", "Failed to parse JSON file: {path}");
DECLARE_MESSAGE(FailedToParseManifest, (msg::path), "", "Failed to parse manifest file: {path}");
Expand Down Expand Up @@ -1089,6 +1084,7 @@ namespace vcpkg
(),
"",
"Value of --sort must be one of 'lexicographical', 'topological', 'reverse'.");
DECLARE_MESSAGE(InvalidCommitId, (msg::value), "'{value}' is a commit id.", "Invalid commit id {value}");
DECLARE_MESSAGE(InvalidFilename,
(msg::value, msg::path),
"'{value}' is a list of invalid characters. I.e. \\/:*?<>|",
Expand Down Expand Up @@ -1205,11 +1201,6 @@ namespace vcpkg
"The message named {value} ends with a newline which should be added by formatting "
"rather than by localization.");
DECLARE_MESSAGE(ManifestFormatCompleted, (), "", "Succeeded in formatting the manifest files.");
DECLARE_MESSAGE(MismatchedBinaryParagraphs,
(msg::url),
"A comparison of the original binary paragraph and serialized binary paragraph is expected.",
"[sanity check] The serialized binary paragraph was different from the original binary "
"paragraph.\nPlease open an issue at {url}, with the following output:");
DECLARE_MESSAGE(Missing7zHeader, (), "", "Unable to find 7z header.");
DECLARE_MESSAGE(MissingArgFormatManifest,
(),
Expand Down Expand Up @@ -1268,6 +1259,7 @@ namespace vcpkg
"NuGet package creation succeeded, but no .nupkg was produced. Expected: \"{path}\"");
DECLARE_MESSAGE(OptionMustBeInteger, (msg::option), "", "Value of --{option} must be an integer.");
DECLARE_MESSAGE(OptionRequired, (msg::option), "", "--{option} option is required.");
DECLARE_MESSAGE(OptionRequiresJsonSwitch, (msg::option), "", "Option --{option} requires --x-json switch.");
DECLARE_MESSAGE(OriginalBinParagraphHeader, (), "", "\nOriginal Binary Paragraph");
DECLARE_MESSAGE(PackageFailedtWhileExtracting,
(msg::value, msg::path),
Expand Down Expand Up @@ -1308,6 +1300,10 @@ namespace vcpkg
(msg::package_name),
"",
"the baseline does not contain an entry for port {package_name}");
DECLARE_MESSAGE(PortsAdded, (msg::count), "", "The following {count} ports were added:");
DECLARE_MESSAGE(PortsNoDiff, (), "", "There were no changes in the ports between the two commits.");
DECLARE_MESSAGE(PortsRemoved, (msg::count), "", "The following {count} ports were removed:");
DECLARE_MESSAGE(PortsUpdated, (msg::count), "", "\nThe following {count} ports were updated:");
DECLARE_MESSAGE(PortSupportsField, (msg::supports_expression), "", "(supports: \"{supports_expression}\")");
DECLARE_MESSAGE(PortTypeConflict,
(msg::spec),
Expand Down Expand Up @@ -1400,6 +1396,7 @@ namespace vcpkg
"calling {system_api} failed with {exit_code} ({error_msg})");
DECLARE_MESSAGE(ToolFetchFailed, (msg::tool_name), "", "Could not fetch {tool_name}.");
DECLARE_MESSAGE(ToolInWin10, (), "", "This utility is bundled with Windows 10 or later.");
DECLARE_MESSAGE(TotalTime, (msg::count), "", " Total elapsed time: {count}.");
DECLARE_MESSAGE(TwoFeatureFlagsSpecified,
(msg::value),
"'{value}' is a feature flag.",
Expand Down Expand Up @@ -1533,6 +1530,7 @@ namespace vcpkg
(),
"",
"vcpkg-ce ('configure environment') is experimental and may change at any time.");
DECLARE_MESSAGE(VcpkgCommitTableHeader, (), "", "VCPKG Commit");
DECLARE_MESSAGE(
VcpkgCompletion,
(msg::value, msg::path),
Expand Down Expand Up @@ -1580,6 +1578,7 @@ namespace vcpkg
"",
"Failed to load port because versions are inconsistent. The file \"{path}\" contains the version "
"{actual_version}, but the version database indicates that it should be {expected_version}.");
DECLARE_MESSAGE(VersionTableHeader, (), "", "Version");
DECLARE_MESSAGE(VSExaminedInstances, (), "", "The following Visual Studio instances were considered:");
DECLARE_MESSAGE(VSExaminedPaths, (), "", "The following paths were examined for Visual Studio instances:");
DECLARE_MESSAGE(VSNoInstances, (), "", "Could not locate a complete Visual Studio instance");
Expand All @@ -1592,4 +1591,5 @@ namespace vcpkg
"WarningMessage in code instead.");
DECLARE_MESSAGE(WarningsTreatedAsErrors, (), "", "previous warnings being interpreted as errors");
DECLARE_MESSAGE(WhileLookingForSpec, (msg::spec), "", "while looking for {spec}:");
}
DECLARE_MESSAGE(WroteNuGetPkgConfInfo, (msg::path), "", "Wrote NuGet package config information to {path}.");
}
20 changes: 15 additions & 5 deletions locales/messages.en.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,15 @@
"CmakeTargetsExcluded": "note: {count} additional targets are not displayed.",
"CommandFailed": "command:\n{command_line}\nfailed with the following results:",
"CompressFolderFailed": "Failed to compress folder \"{path}\":",
"ConflictingValuesForOption": "conflicting values specified for '--{value}'.",
"ConflictingValuesForOption": "conflicting values specified for '--{option}'.",
"ConstraintViolation": "Found a constraint violation:",
"ControlAndManifestFilesPresent": "Both a manifest file and a CONTROL file exist in port directory: {path}",
"CopyrightIsDir": "`{path}` being a directory is deprecated.",
"CorruptedDatabase": "Database corrupted.",
"CouldNotDeduceNugetIdAndVersion": "Could not deduce nuget id and version from filename: {path}",
"CreatedNuGetPackage": "Created nupkg: \"{path}\"",
"CurlReportedUnexpectedResults": "curl has reported unexpected results to vcpkg and vcpkg cannot continue.\nPlease review the following text for sensitive information and open an issue on the Microsoft/vcpkg GitHub to help fix this problem!\ncmd: {command_line}\n=== curl output ===\n{actual}\n=== end curl output ===",
"DateTableHeader": "Date",
"DefaultBrowserLaunched": "Default browser launched to {url}.",
"DefaultFlag": "Defaulting to --{option} being on.",
"DefaultPathToBinaries": "Based on your system settings, the default path to store binaries is \"{path}\". This consults %LOCALAPPDATA%/%APPDATA% on Windows and $XDG_CACHE_HOME or $HOME on other platforms.",
Expand Down Expand Up @@ -135,7 +136,7 @@
"ExpectedFailOrSkip": "expected 'fail', 'skip', or 'pass' here",
"ExpectedPortName": "expected a port name here",
"ExpectedTripletName": "expected a triplet name here",
"ExpectedValueForOption": "expected value after '{value}'.",
"ExpectedValueForOption": "expected value after --{option}.",
"ExportingPackage": "Exporting {package_name}...",
"ExtendedDocumentationAtUrl": "Extended documentation available at '{url}'.",
"FailedToExtract": "Failed to extract \"{path}\":",
Expand All @@ -146,11 +147,11 @@
"FailedToObtainDependencyVersion": "Cannot find desired dependency version.",
"FailedToObtainLocalPortGitSha": "Failed to obtain git SHAs for local ports.",
"FailedToObtainPackageVersion": "Cannot find desired package version.",
"FailedToParseBinParagraph": "[sanity check] Failed to parse a serialized binary paragraph.\nPlease open an issue at https://github.com/microsoft/vcpkg, with the following output:\n{error_msg}\nSerialized Binary Paragraph:",
"FailedToParseCMakeConsoleOut": "Failed to parse CMake console output to locate block start/end markers.",
"FailedToParseControl": "Failed to parse control file: {path}",
"FailedToParseJson": "Failed to parse JSON file: {path}",
"FailedToParseManifest": "Failed to parse manifest file: {path}",
"FailedToParseSerializedBinParagraph": "[sanity check] Failed to parse a serialized binary paragraph.\nPlease open an issue at https://github.com/microsoft/vcpkg, with the following output:\n{error_msg}\nSerialized Binary Paragraph:",
"FailedToProvisionCe": "Failed to provision vcpkg-ce.",
"FailedToRead": "Failed to read {path}: {error_msg}",
"FailedToReadParagraph": "Failed to read paragraphs from {path}",
Expand Down Expand Up @@ -231,6 +232,7 @@
"InvalidArgumentRequiresValidToken": "invalid argument: binary config '{binary_source}' requires a SAS token without a preceeding '?' as the second argument",
"InvalidBuildInfo": "Invalid BUILD_INFO file for package: {error_msg}",
"InvalidCommandArgSort": "Value of --sort must be one of 'lexicographical', 'topological', 'reverse'.",
"InvalidCommitId": "Invalid commit id {value}",
"InvalidFilename": "Filename cannot contain invalid chars {value}, but was {path}",
"InvalidFormatString": "invalid format string: {actual}",
"InvalidLinkage": "Invalid {system_name} linkage type: [{value}]",
Expand Down Expand Up @@ -261,7 +263,6 @@
"LocalizedMessageMustNotContainIndents": "The message named {value} contains what appears to be indenting which must be changed to use LocalizedString::append_indent instead.",
"LocalizedMessageMustNotEndWithNewline": "The message named {value} ends with a newline which should be added by formatting rather than by localization.",
"ManifestFormatCompleted": "Succeeded in formatting the manifest files.",
"MismatchedBinaryParagraphs": "[sanity check] The serialized binary paragraph was different from the original binary paragraph.\nPlease open an issue at {url}, with the following output:",
"Missing7zHeader": "Unable to find 7z header.",
"MissingArgFormatManifest": "format-manifest was passed --convert-control without '--all'.\nThis doesn't do anything: control files passed explicitly are converted automatically.",
"MissingDependency": "Package {spec} is installed, but dependency {package_name} is not.",
Expand All @@ -286,6 +287,7 @@
"NugetPackageFileSucceededButCreationFailed": "NuGet package creation succeeded, but no .nupkg was produced. Expected: \"{path}\"",
"OptionMustBeInteger": "Value of --{option} must be an integer.",
"OptionRequired": "--{option} option is required.",
"OptionRequiresJsonSwitch": "Option --{option} requires --x-json switch.",
"OriginalBinParagraphHeader": "\nOriginal Binary Paragraph",
"PackageFailedtWhileExtracting": "'{value}' failed while extracting {path}.",
"PackageRootDir": "(Experimental) Specify the packages root directory.",
Expand All @@ -305,6 +307,10 @@
"PortNotInBaseline": "the baseline does not contain an entry for port {package_name}",
"PortSupportsField": "(supports: \"{supports_expression}\")",
"PortTypeConflict": "The port type of {spec} differs between the installed and available portfile.\nPlease manually remove {spec} and re-run this command.",
"PortsAdded": "The following {count} ports were added:",
"PortsNoDiff": "There were no changes in the ports between the two commits.",
"PortsRemoved": "The following {count} ports were removed:",
"PortsUpdated": "\nThe following {count} ports were updated:",
"PreviousIntegrationFileRemains": "Previous integration file was not removed.",
"ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.",
"ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.",
Expand Down Expand Up @@ -334,6 +340,7 @@
"SystemApiErrorMessage": "calling {system_api} failed with {exit_code} ({error_msg})",
"ToolFetchFailed": "Could not fetch {tool_name}.",
"ToolInWin10": "This utility is bundled with Windows 10 or later.",
"TotalTime": " Total elapsed time: {count}.",
"TwoFeatureFlagsSpecified": "Both '{value}' and -'{value}' were specified as feature flags.",
"UndeterminedToolChainForTriplet": "Unable to determine toolchain use for {triplet} with with CMAKE_SYSTEM_NAME {system_name}. Did you mean to use VCPKG_CHAINLOAD_TOOLCHAIN_FILE?",
"UnexpectedErrorDuringBulkDownload": "an unexpected error occurred during bulk download.",
Expand Down Expand Up @@ -376,6 +383,7 @@
"VSExaminedPaths": "The following paths were examined for Visual Studio instances:",
"VSNoInstances": "Could not locate a complete Visual Studio instance",
"VcpkgCeIsExperimental": "vcpkg-ce ('configure environment') is experimental and may change at any time.",
"VcpkgCommitTableHeader": "VCPKG Commit",
"VcpkgCompletion": "vcpkg {value} completion is already imported to your \"{path}\" file.\nThe following entries were found:",
"VcpkgDisallowedClassicMode": "Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.",
"VcpkgHasCrashed": "vcpkg has crashed. Please create an issue at https://github.com/microsoft/vcpkg containing a brief summary of what you were trying to do and the following information.",
Expand All @@ -388,10 +396,12 @@
"VersionInvalidRelaxed": "`{version}` is not a valid relaxed version (semver with arbitrary numeric element count).",
"VersionInvalidSemver": "`{version}` is not a valid semantic version, consult <https://semver.org>.",
"VersionSpecMismatch": "Failed to load port because versions are inconsistent. The file \"{path}\" contains the version {actual_version}, but the version database indicates that it should be {expected_version}.",
"VersionTableHeader": "Version",
"WaitingForChildrenToExit": "Waiting for child processes to exit...",
"WaitingToTakeFilesystemLock": "waiting to take filesystem lock on {path}...",
"WarningMessage": "warning: ",
"WarningMessageMustUsePrintWarning": "The message named {value} starts with warning:, it must be changed to prepend WarningMessage in code instead.",
"WarningsTreatedAsErrors": "previous warnings being interpreted as errors",
"WhileLookingForSpec": "while looking for {spec}:"
"WhileLookingForSpec": "while looking for {spec}:",
"WroteNuGetPkgConfInfo": "Wrote NuGet package config information to {path}."
}
Loading