mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 23:20:15 +01:00
cli: don't use #define for translation texts
Text for translation cannot contain defines (or variables).
This commit is contained in:
parent
8abefbe86b
commit
9fcbe4ff71
2 changed files with 9 additions and 9 deletions
|
|
@ -4963,12 +4963,12 @@ static const NMMetaPropertyType _pt_gobject_devices = {
|
|||
((guint32 (*) (NMSetting *)) ((sizeof (func == ((guint32 (*) (type *)) func))) ? func : func) )
|
||||
|
||||
#define TEAM_DESCRIBE_MESSAGE \
|
||||
"nmcli can accepts both direct JSON configuration data and a file name containing " \
|
||||
"the configuration. In the latter case the file is read and the contents is put " \
|
||||
"into this property.\n\n" \
|
||||
"Examples: set team.config " \
|
||||
"{ \"device\": \"team0\", \"runner\": {\"name\": \"roundrobin\"}, \"ports\": {\"eth1\": {}, \"eth2\": {}} }\n" \
|
||||
" set team.config /etc/my-team.conf\n"
|
||||
N_("nmcli can accepts both direct JSON configuration data and a file name containing " \
|
||||
"the configuration. In the latter case the file is read and the contents is put " \
|
||||
"into this property.\n\n" \
|
||||
"Examples: set team.config " \
|
||||
"{ \"device\": \"team0\", \"runner\": {\"name\": \"roundrobin\"}, \"ports\": {\"eth1\": {}, \"eth2\": {}} }\n" \
|
||||
" set team.config /etc/my-team.conf\n")
|
||||
|
||||
#define _CURRENT_NM_META_SETTING_TYPE NM_META_SETTING_TYPE_802_1X
|
||||
static const NMMetaPropertyInfo *const property_infos_802_1X[] = {
|
||||
|
|
@ -6379,7 +6379,7 @@ static const NMMetaPropertyInfo *const property_infos_TEAM[] = {
|
|||
.is_cli_option = TRUE,
|
||||
.property_alias = "config",
|
||||
.prompt = N_("Team JSON configuration [none]"),
|
||||
.describe_message = N_(TEAM_DESCRIBE_MESSAGE),
|
||||
.describe_message = TEAM_DESCRIBE_MESSAGE,
|
||||
.property_type = DEFINE_PROPERTY_TYPE (
|
||||
.get_fcn = _get_fcn_gobject,
|
||||
.set_fcn = _set_fcn_team_config,
|
||||
|
|
@ -6395,7 +6395,7 @@ static const NMMetaPropertyInfo *const property_infos_TEAM_PORT[] = {
|
|||
.is_cli_option = TRUE,
|
||||
.property_alias = "config",
|
||||
.prompt = N_("Team JSON configuration [none]"),
|
||||
.describe_message = N_(TEAM_DESCRIBE_MESSAGE),
|
||||
.describe_message = TEAM_DESCRIBE_MESSAGE,
|
||||
.property_type = DEFINE_PROPERTY_TYPE (
|
||||
.get_fcn = _get_fcn_gobject,
|
||||
.set_fcn = _set_fcn_team_config,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
struct _NMDevice;
|
||||
|
||||
#define NM_META_TEXT_HIDDEN "<hidden>"
|
||||
#define NM_META_TEXT_HIDDEN N_("<hidden>")
|
||||
|
||||
#define NM_META_TEXT_PROMPT_ADSL_PROTO N_("Protocol")
|
||||
#define NM_META_TEXT_PROMPT_ADSL_PROTO_CHOICES "(" NM_SETTING_ADSL_PROTOCOL_PPPOA "/" NM_SETTING_ADSL_PROTOCOL_PPPOE "/" NM_SETTING_ADSL_PROTOCOL_IPOATM ")"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue