mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 03:20:11 +01:00
cli: fix error message localization
Valid values must not be translated in error messages generated in
nmc_string_to_bool() and nmc_string_to_tristate().
(cherry picked from commit bd4e1f37f8)
This commit is contained in:
parent
975afac6a4
commit
83aba66a85
1 changed files with 8 additions and 2 deletions
|
|
@ -407,7 +407,10 @@ nmc_string_to_bool (const char *str, gboolean *val_bool, GError **error)
|
|||
|
||||
if (g_strcmp0 (str, "o") == 0) {
|
||||
g_set_error (error, 1, 0,
|
||||
_("'%s' is ambiguous (on x off)"), str);
|
||||
/* Translators: the first %s is the partial value entered by
|
||||
* the user, the second %s a list of compatible values.
|
||||
*/
|
||||
_("'%s' is ambiguous (%s)"), str, "on x off");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
@ -435,7 +438,10 @@ nmc_string_to_tristate (const char *str, NMCTriStateValue *val, GError **error)
|
|||
|
||||
if (g_strcmp0 (str, "o") == 0) {
|
||||
g_set_error (error, 1, 0,
|
||||
_("'%s' is ambiguous (on x off)"), str);
|
||||
/* Translators: the first %s is the partial value entered by
|
||||
* the user, the second %s a list of compatible values.
|
||||
*/
|
||||
_("'%s' is ambiguous (%s)"), str, "on x off");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue