diff --git a/LocProject.json b/LocProject.json index 7b11a0475..8e7bb81db 100644 --- a/LocProject.json +++ b/LocProject.json @@ -6,7 +6,7 @@ { "SourceFile": "locales/messages.json", "CopyOption": "LangIDOnName", - "LclFile": "src/localization-team/{Lang}/messages.json.lcl", + "LclFile": "src/localization/{Lang}/messages.json.lcl", "OutputPath": "locales" } ] diff --git a/azure-pipelines/Format-LocalizationFiles.ps1 b/azure-pipelines/Format-LocalizationFiles.ps1 new file mode 100644 index 000000000..04d098d39 --- /dev/null +++ b/azure-pipelines/Format-LocalizationFiles.ps1 @@ -0,0 +1,20 @@ +#! /usr/bin/env pwsh + +[CmdletBinding()] +$Root = Resolve-Path -LiteralPath "$PSScriptRoot/.." + +Get-ChildItem "$Root/locales/messages.*.json" | ? { + (Split-Path -Leaf $_) -ne 'messages.en.json' +} | % { + $fileName = $_ + Write-Host "Formatting $fileName" + $fileContents = Get-Content $fileName + $fileContents = $fileContents -join "`n" # use LF, not CRLF + if (-not $fileContents.EndsWith("`n")) + { + $fileContents += "`n" # add a trailing newline + } + # this (convert to UTF-8 followed by WriteAllBytes) avoids adding a BOM in Windows PowerShell + $fileContents = [System.Text.Encoding]::UTF8.GetBytes($fileContents) + [io.file]::WriteAllBytes($fileName, $fileContents) +} diff --git a/azure-pipelines/localization.yml b/azure-pipelines/localization.yml new file mode 100644 index 000000000..44a5118f5 --- /dev/null +++ b/azure-pipelines/localization.yml @@ -0,0 +1,56 @@ +trigger: +- main +pr: none + +variables: +# this is silly, but we need the argument to patVariable to be exactly +# "$(PackageSourcePat)" +# however, if we actually put that there after PackageSourcePat is defined, +# it replaces $(PackageSourcePat) with the value of PackageSourcePat +- name: PackageSourcePatIndirect + value: '$(PackageSourcePat)' +- group: vcpkg-localization +- name: PackageSourcePat + value: "$(vcpkg-ceapx-package-source-pat)" +- name: GitEmbeddedBotArgs + value: '-C $(Build.SourcesDirectory) -c user.email=embeddedbot@microsoft.com -c user.name="Embedded Bot"' + +pool: + name: 'VSEngSS-MicroBuild2022-1ES' + +steps: +- task: OneLocBuild@2 + inputs: + locProj: 'LocProject.json' + outDir: '$(Build.ArtifactStagingDirectory)' + isUseLfLineEndingsSelected: true + packageSourceAuth: patAuth + patVariable: '$(PackageSourcePatIndirect)' +- task: Powershell@2 + displayName: Format messages.*.json files + continueOnError: true + inputs: + pwsh: true + filePath: azure-pipelines/Format-LocalizationFiles.ps1 +- script: | + git $(GitEmbeddedBotArgs) add locales + git $(GitEmbeddedBotArgs) commit -m "[localization][automated][ci skip] update locale files" + displayName: Commit Changed Files + continueOnError: true +- task: DownloadSecureFile@1 + displayName: Download Deploy Key + name: githubDeployKey + inputs: + secureFile: id_vcpkg_tool + # GitHub has a large, regularly changing set of IP address, so ignore the + # hostname and allow anything with the right key. + # https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/about-githubs-ip-addresses + # This public key should have the well-known fingerprint documented below. + # SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8 + # https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints +- script: mkdir %USERPROFILE%\.ssh && echo * ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==>>%USERPROFILE%\.ssh\known_hosts + displayName: Store GitHub Public Key +- script: git $(GitEmbeddedBotArgs) push git@github.com:microsoft/vcpkg-tool HEAD:$(Build.SourceBranch) + env: + GIT_SSH_COMMAND: ssh -i "$(githubDeployKey.secureFilePath)" + displayName: Push Localization Files diff --git a/azure-pipelines/pipelines.yml b/azure-pipelines/pipelines.yml index d1609f75d..4f78542de 100644 --- a/azure-pipelines/pipelines.yml +++ b/azure-pipelines/pipelines.yml @@ -126,6 +126,7 @@ jobs: inputs: script: | build.x86.debug\vcpkg.exe x-generate-default-message-map --no-allow-incorrect-comments locales/messages.json + build.x86.debug\vcpkg.exe x-generate-default-message-map --no-output-comments locales/messages.en.json - task: Powershell@2 displayName: 'Create Diff' inputs: diff --git a/locales/messages.cs.json b/locales/messages.cs.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.cs.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/locales/messages.de.json b/locales/messages.de.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.de.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/locales/messages.en.json b/locales/messages.en.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.en.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/locales/messages.es.json b/locales/messages.es.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.es.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/locales/messages.fr.json b/locales/messages.fr.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.fr.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/locales/messages.it.json b/locales/messages.it.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.it.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/locales/messages.ja.json b/locales/messages.ja.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.ja.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/locales/messages.ko.json b/locales/messages.ko.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.ko.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/locales/messages.pl.json b/locales/messages.pl.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.pl.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/locales/messages.pt-BR.json b/locales/messages.pt-BR.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.pt-BR.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/locales/messages.ru.json b/locales/messages.ru.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.ru.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/locales/messages.tr.json b/locales/messages.tr.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.tr.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/locales/messages.zh-Hans.json b/locales/messages.zh-Hans.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.zh-Hans.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/locales/messages.zh-Hant.json b/locales/messages.zh-Hant.json new file mode 100644 index 000000000..858558f50 --- /dev/null +++ b/locales/messages.zh-Hant.json @@ -0,0 +1,72 @@ +{ + "AddPortSucceded": "Succeeded in adding ports to vcpkg.json file.", + "AddTripletExpressionNotAllowed": "Error: triplet expressions are not allowed here. You may want to change `{package_name}:{triplet}` to `{package_name}` instead.", + "AllFormatArgsRawArgument": "format string \"{value}\" contains a raw format argument", + "AllFormatArgsUnbalancedBraces": "unbalanced brace in format string \"{value}\"", + "AwsAttemptingToFetchPackages": "Attempting to fetch {count} packages from AWS", + "AwsFailedToDownload": "aws failed to download with exit code: {exit_code}", + "AwsRestoredPackages": "Restored {count} packages from AWS servers in {elapsed}", + "AwsUploadedPackages": "Uploaded binaries to {count} AWS servers", + "BothYesAndNoOptionSpecifiedError": "error: cannot specify both --no-{option} and --{option}.", + "EmptyLicenseExpression": "SPDX license expression was empty.", + "ErrorIndividualPackagesUnsupported": "Error: In manifest mode, `vcpkg install` does not support individual package arguments.\nTo install additional packages, edit vcpkg.json and then run `vcpkg install` without any package arguments.", + "ErrorInvalidClassicModeOption": "Error: The option --{option} is not supported in classic mode and no manifest was found.", + "ErrorInvalidManifestModeOption": "Error: The option --{option} is not supported in manifest mode.", + "ErrorMessage": "error: ", + "ErrorMissingVcpkgRoot": "Error: Could not detect vcpkg-root. If you are trying to use a copy of vcpkg that you've built, you must define the VCPKG_ROOT environment variable to point to a cloned copy of {url}.", + "ErrorNoVSInstance": "Error: in triplet {triplet}: Unable to find a valid Visual Studio instance", + "ErrorNoVSInstanceAt": " at \"{path}\"", + "ErrorNoVSInstanceFullVersion": " with toolset version prefix {version}", + "ErrorNoVSInstanceVersion": " with toolset version {version}", + "ErrorRequireBaseline": "Error: this vcpkg instance requires a manifest with a specified baseline in order to interact with ports. Please add 'builtin-baseline' to the manifest or add a 'vcpkg-configuration.json' that redefines the default registry.\n", + "ErrorRequirePackagesList": "Error: `vcpkg install` requires a list of packages to install in classic mode.", + "ErrorRequirePackagesToInstall": "Error: No packages were listed for installation and no manifest was found.", + "ErrorVcvarsUnsupported": "Error: in triplet {triplet}: Use of Visual Studio's Developer Prompt is unsupported on non-Windows hosts.\nDefine 'VCPKG_CMAKE_SYSTEM_NAME' or 'VCPKG_CHAINLOAD_TOOLCHAIN_FILE' in the triplet file.", + "ForceSystemBinariesOnWeirdPlatforms": "Environment variable VCPKG_FORCE_SYSTEM_BINARIES must be set on arm, s390x, and ppc64le platforms.", + "FormattedParseMessageExpression": " on expression: {value}", + "FormattedParseMessageLocation": "{path}:{row}:{column}: ", + "GenerateMsgErrorParsingFormatArgs": "error: parsing format string for {value}:", + "GenerateMsgIncorrectComment": "message {value} has an incorrect comment:", + "GenerateMsgNoArgumentValue": " {{{value}}} was specified in a comment, but was not used in the message.", + "GenerateMsgNoCommentValue": " {{{value}}} was used in the message, but not commented.", + "GraphCycleDetected": "Cycle detected within graph at {package_name}:", + "GraphCycleDetectedElement": " {package_name}", + "IllegalFeatures": "error: List of features is not allowed in this contect", + "IllegalPlatformSpec": "error: Platform qualifier is not allowed in this context", + "LicenseExpressionContainsExtraPlus": "SPDX license expression contains an extra '+'. These are only allowed directly after a license identifier.", + "LicenseExpressionContainsInvalidCharacter": "SPDX license expression contains an invalid character (0x{value:02X} '{value}').", + "LicenseExpressionContainsUnicode": "SPDX license expression contains a unicode character (U+{value:04X} '{pretty_value}'), but these expressions are ASCII-only.", + "LicenseExpressionDocumentRefUnsupported": "The current implementation does not support DocumentRef- SPDX references.", + "LicenseExpressionExpectCompoundFoundParen": "Expected a compound or the end of the string, found a parenthesis.", + "LicenseExpressionExpectCompoundFoundWith": "Expected either AND or OR, found WITH (WITH is only allowed after license names, not parenthesized expressions).", + "LicenseExpressionExpectCompoundFoundWord": "Expected either AND or OR, found a license or exception name: '{value}'.", + "LicenseExpressionExpectCompoundOrWithFoundWord": "Expected either AND, OR, or WITH, found a license or exception name: '{value}'.", + "LicenseExpressionExpectExceptionFoundCompound": "Expected an exception name, found the compound {value}.", + "LicenseExpressionExpectExceptionFoundEof": "Expected an exception name, found the end of the string.", + "LicenseExpressionExpectExceptionFoundParen": "Expected an exception name, found a parenthesis.", + "LicenseExpressionExpectLicenseFoundCompound": "Expected a license name, found the compound {value}.", + "LicenseExpressionExpectLicenseFoundEof": "Expected a license name, found the end of the string.", + "LicenseExpressionExpectLicenseFoundParen": "Expected a license name, found a parenthesis.", + "LicenseExpressionImbalancedParens": "There was a close parenthesis without an opening parenthesis.", + "LicenseExpressionUnknownException": "Unknown license exception identifier '{value}'. Known values are listed at https://spdx.org/licenses/exceptions-index.html", + "LicenseExpressionUnknownLicense": "Unknown license identifier '{value}'. Known values are listed at https://spdx.org/licenses/", + "NoLocalizationForMessages": "No localization for the following messages:", + "ProcessorArchitectureMalformed": "Failed to parse %PROCESSOR_ARCHITECTURE% ({arch}) as a valid CPU architecture.", + "ProcessorArchitectureMissing": "The required environment variable %PROCESSOR_ARCHITECTURE% is missing.", + "ProcessorArchitectureW6432Malformed": "Failed to parse %PROCESSOR_ARCHITEW6432% ({arch}) as a valid CPU architecture. Falling back to %PROCESSOR_ARCHITECTURE%.", + "SeeURL": "See {url} for more information.", + "UnsupportedSystemName": "Error: Could not map VCPKG_CMAKE_SYSTEM_NAME '{system_name}' to a vcvarsall platform. Supported system names are '', 'Windows' and 'WindowsStore'.", + "UnsupportedToolchain": "Error: in triplet {triplet}: Unable to find a valid toolchain combination.\n The requested target architecture was {arch}\n The selected Visual Studio instance is at {path}\n The available toolchain combinations are {list}\n", + "UsingManifestAt": "Using manifest file at {path}.", + "VSExaminedInstances": "The following Visual Studio instances were considered:", + "VSExaminedPaths": "The following paths were examined for Visual Studio instances:", + "VSNoInstances": "Could not locate a complete Visual Studio instance", + "VcpkgDisallowedClassicMode": "Error: Could not locate a manifest (vcpkg.json) above the current working directory.\nThis vcpkg distribution does not have a classic mode instance.", + "VcpkgHasCrashed": "vcpkg.exe has crashed.\nPlease send an email to:\n {email}\ncontaining a brief summary of what you were trying to do and the following data blob:", + "VcpkgHasCrashedArgument": "{value}|", + "VcpkgHasCrashedDataBlob": "\nVersion={version}\nEXCEPTION='{error}'\nCMD=", + "VcpkgInvalidCommand": "invalid command: {command_name}", + "VcpkgSendMetricsButDisabled": "Warning: passed --sendmetrics, but metrics are disabled.", + "VersionSpecMismatch": "error: Failed to load port because version specs did not match\n Path: {path}\n Expected: {expected_version}\n Actual: {actual_version}", + "WarningMessage": "warning: " +} diff --git a/src/vcpkg/base/files.cpp b/src/vcpkg/base/files.cpp index 3b5cca842..c5a35e07b 100644 --- a/src/vcpkg/base/files.cpp +++ b/src/vcpkg/base/files.cpp @@ -1893,6 +1893,12 @@ namespace vcpkg } } while (!file.eof()); + if (Strings::starts_with(output, "\xEF\xBB\xBF")) + { + // remove byte-order mark from the beginning of the string + output.erase(output.begin(), output.begin() + 3); + } + return output; } virtual std::vector read_lines(const Path& file_path, std::error_code& ec) const override @@ -1921,7 +1927,13 @@ namespace vcpkg } } while (!file.eof()); - return output.extract(); + auto res = output.extract(); + if (res.size() > 0 && Strings::starts_with(res[0], "\xEF\xBB\xBF")) + { + // remove byte-order mark from the beginning of the string + } + + return res; } virtual Path find_file_recursively_up(const Path& starting_dir, diff --git a/src/vcpkg/base/messages.cpp b/src/vcpkg/base/messages.cpp index 6f046a78c..b5e011c69 100644 --- a/src/vcpkg/base/messages.cpp +++ b/src/vcpkg/base/messages.cpp @@ -228,7 +228,7 @@ namespace vcpkg::msg static std::string locale_file_name(StringView language) { - std::string filename = "messages"; + std::string filename = "messages."; filename.append(language.begin(), language.end()).append(".json"); return filename; } diff --git a/src/vcpkg/commands.generate-message-map.cpp b/src/vcpkg/commands.generate-message-map.cpp index 425677f59..602ae2a1a 100644 --- a/src/vcpkg/commands.generate-message-map.cpp +++ b/src/vcpkg/commands.generate-message-map.cpp @@ -39,13 +39,18 @@ namespace vcpkg::Commands { static constexpr StringLiteral OPTION_ALLOW_BAD_COMMENTS = "allow-incorrect-comments"; static constexpr StringLiteral OPTION_NO_ALLOW_BAD_COMMENTS = "no-allow-incorrect-comments"; + static constexpr StringLiteral OPTION_OUTPUT_COMMENTS = "output-comments"; + static constexpr StringLiteral OPTION_NO_OUTPUT_COMMENTS = "no-output-comments"; static constexpr CommandSwitch GENERATE_MESSAGE_MAP_SWITCHES[]{ {OPTION_ALLOW_BAD_COMMENTS, "Do not require message comments be correct (the default)."}, {OPTION_NO_ALLOW_BAD_COMMENTS, "Require message comments to be correct; error if they are not."}, + {OPTION_OUTPUT_COMMENTS, "When generating the message map, include comments (the default)"}, + {OPTION_NO_OUTPUT_COMMENTS, + "When generating the message map, exclude comments (useful for generating the english localization file)"}, }; - const static CommandStructure COMMAND_STRUCTURE = { + const CommandStructure COMMAND_STRUCTURE = { create_example_string(R"###(x-generate-default-message-map locales/messages.json)###"), 1, 1, @@ -185,6 +190,14 @@ namespace vcpkg::Commands comments_msg_color = Color::error; } + const bool output_comments = !Util::Sets::contains(parsed_args.switches, OPTION_NO_OUTPUT_COMMENTS); + + if (!output_comments && Util::Sets::contains(parsed_args.switches, OPTION_OUTPUT_COMMENTS)) + { + Checks::exit_with_message( + VCPKG_LINE_INFO, msg::msgBothYesAndNoOptionSpecifiedError, msg::option = OPTION_OUTPUT_COMMENTS); + } + // in order to implement sorting, we create a vector of messages before converting into a JSON object struct Message { @@ -237,7 +250,7 @@ namespace vcpkg::Commands } obj.insert(msg.name, Json::Value::string(std::move(msg.value))); - if (!msg.comment.empty()) + if (output_comments && !msg.comment.empty()) { obj.insert(fmt::format("_{}.comment", msg.name), Json::Value::string(std::move(msg.comment))); }