Ignore <option> tags in generatepot

After https://review.openstack.org/#/c/144685 merges,
the automatically generated configuration reference
tables will be marked up as
<option>option_name</option> = <replaceable>default_value</replaceable>

As none of this should be translated (option_name is the same
regardless of language), this patch updates generatepot to ignore
option_name s tagged with <option> for translation.

This should significantly reduce the number of strings required for
translation from the common directory in particular, where
many of the 8000-odd strings do not actually need translation.

Change-Id: I093056c182bf0bb3ca79892b66f1e9239a323da1
This commit is contained in:
Tom Fifield 2015-01-01 20:30:00 +08:00
parent 74280bf0d8
commit adc764dd81

View File

@ -11,7 +11,8 @@ class myDocbookXmlMode(docbookXmlMode):
'segmentedlist', 'simplelist', 'calloutlist', 'varlistentry', 'userinput',
'computeroutput','prompt','command','screen']
self.objects = [ 'figure', 'textobject', 'imageobject', 'mediaobject',
'screenshot','literallayout', 'programlisting' ]
'screenshot','literallayout', 'programlisting',
'option']
default_mode = 'docbook'
operation = 'pot'