mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-03 13:40:39 +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().
This commit is contained in:
parent
7e5e624daf
commit
bd4e1f37f8
1 changed files with 8 additions and 2 deletions
|
|
@ -500,7 +500,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;
|
||||
}
|
||||
|
||||
|
|
@ -528,7 +531,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