-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(i18n) Provide translation strings for Registry
- Loading branch information
1 parent
47f2245
commit a86dea4
Showing
8 changed files
with
198 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
_version: 2 | ||
cli: | ||
about: | ||
en: Manage state of Windows registry | ||
# config command help | ||
config: | ||
about: | ||
en: Manage registry configuration. | ||
args: | ||
input: | ||
help: | ||
en: The registry JSON input. | ||
what_if: | ||
help: | ||
en: Run as a what-if operation instead of applying the registry configuration. | ||
get: | ||
about: | ||
en: Retrieve registry configuration. | ||
set: | ||
about: | ||
en: Apply registry configuration. | ||
delete: | ||
about: | ||
en: Delete registry configuration. | ||
# query command help | ||
query: | ||
about: | ||
en: Query a registry key or value. | ||
args: | ||
key_path: | ||
help: | ||
en: The registry key path to query. | ||
value_name: | ||
help: | ||
en: The name of the value to query. | ||
recurse: | ||
help: | ||
en: Recursively query subkeys. | ||
# set command help | ||
set: | ||
about: | ||
en: Set a registry key or value. | ||
args: | ||
key_path: | ||
help: | ||
en: The registry key path to set. | ||
value: | ||
help: | ||
en: The value to set. | ||
# remove command help | ||
remove: | ||
about: | ||
en: Remove a registry key or value. | ||
args: | ||
key_path: | ||
help: | ||
en: The registry key path to remove. | ||
value_name: | ||
help: | ||
en: The name of the value to remove. | ||
recurse: | ||
help: | ||
en: Recursively remove subkeys. | ||
# find command help | ||
find: | ||
about: | ||
en: Find a registry key or value. | ||
args: | ||
key_path: | ||
help: | ||
en: The registry key path to start find. | ||
find: | ||
help: | ||
en: The string to find. | ||
recurse: | ||
help: | ||
en: Recursively find. | ||
keys_only: | ||
help: | ||
en: Only find keys. | ||
values_only: | ||
help: | ||
en: Only find values. | ||
# schema command help | ||
schema: | ||
about: | ||
en: Retrieve JSON schema. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
_version: 2 | ||
errors: | ||
InvalidHive: | ||
en: Invalid hive | ||
Json: | ||
en: JSON | ||
Registry: | ||
en: Registry | ||
RegistryKey: | ||
en: Registry key | ||
RegistryKeyNotFound: | ||
en: Registry key not found | ||
RegistryValue: | ||
en: Registry value | ||
Utf16Conversion: | ||
en: UTF-16 conversion failed due to interior NULL values for | ||
UnsupportedValueDataType: | ||
en: Unsupported registry value data type | ||
# internal, not an enum | ||
eprint: | ||
tracing_init: | ||
en: Unable to set global default tracing subscriber. Tracing is diabled. | ||
debug: | ||
attach: | ||
en: attach debugger to pid %{pid} and press any key to continue | ||
event: | ||
read: | ||
en: "Error: Failed to read event: %{err}" | ||
unexpexted: | ||
en: "Unexpected event: %{e:?}" | ||
remove: | ||
key_not_exist: | ||
en: Key already does not exist | ||
deleting_subkey: | ||
en: Deleting subkey '%{name}' using %{parent} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
_version: 2 | ||
resource: | ||
what_if: | ||
create_key: | ||
en: "key: %{subkey} not found, would create it" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
use rust_i18n::t; | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug)] | ||
#[allow(clippy::module_name_repetitions)] | ||
pub enum RegistryError { | ||
#[error("Invalid hive: {0}.")] | ||
#[error("{t}: {0}", t = t!("errors.InvalidHive"))] | ||
InvalidHive(String), | ||
|
||
#[error("JSON: {0}")] | ||
#[error("{t}: {0}", t = t!("errors.Json"))] | ||
Json(#[from] serde_json::Error), | ||
|
||
#[error("Registry: {0}")] | ||
#[error("{t}: {0}", t = t!("errors.Registry"))] | ||
Registry(#[from] registry::Error), | ||
|
||
#[error("Registry key: {0}")] | ||
#[error("{t}: {0}", t = t!("errors.RegistryKey"))] | ||
RegistryKey(#[from] registry::key::Error), | ||
|
||
#[error("Registry key not found: {0}")] | ||
#[error("{t}: {0}", t = t!("errors.RegistryKeyNotFound"))] | ||
RegistryKeyNotFound(String), | ||
|
||
#[error("Registry value: {0}")] | ||
#[error("{t}: {0}", t = t!("errors.RegistryValue"))] | ||
RegistryValue(#[from] registry::value::Error), | ||
|
||
#[error("UTF-16 conversion of {0} failed due to interior NULL values")] | ||
#[error("{t}: {0}", t = t!("errors.Utf16Conversion"))] | ||
Utf16Conversion(String), | ||
|
||
#[error("Unsupported registry value data type")] | ||
#[error("{t}", t = t!("errors.UnsupportedValueDataType"))] | ||
UnsupportedValueDataType, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters