Commit 7aab314c authored by Thomas Haller's avatar Thomas Haller

cli: fix marking settings docs for translation

Text for translation cannot contain defines (or variables). We must
generate the description docs with plain N_() values.
parent b20092b5
......@@ -4938,7 +4938,7 @@ static const NMMetaPropertyType _pt_gobject_devices = {
.meta_type = &nm_meta_type_property_info, \
.setting_info = &nm_meta_setting_infos_editor[_CURRENT_NM_META_SETTING_TYPE], \
.property_name = N_(name), \
.describe_doc = N_(doc), \
.describe_doc = doc, \
__VA_ARGS__ \
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -28,7 +28,7 @@
<xsl:call-template name="escape_quotes">
<xsl:with-param name="string" select="@description"/>
</xsl:call-template>
</xsl:variable>#define DESCRIBE_DOC_NM_SETTING_<xsl:value-of select="$setting_name_upper"/>_<xsl:value-of select="@name_upper"/> "<xsl:value-of select="$docs"/>"
</xsl:variable>#define DESCRIBE_DOC_NM_SETTING_<xsl:value-of select="$setting_name_upper"/>_<xsl:value-of select="@name_upper"/> N_("<xsl:value-of select="$docs"/>")
</xsl:template>
<xsl:template match="setting" mode="settings">
......
......@@ -16,6 +16,7 @@ clients/common/nm-meta-setting-desc.c
clients/common/nm-polkit-listener.c
clients/common/nm-secret-agent-simple.c
clients/common/nm-vpn-helpers.c
clients/common/settings-docs.c.in
clients/nm-online.c
clients/tui/newt/nmt-newt-utils.c
clients/tui/nm-editor-utils.c
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment