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: Ib859cc9a77dc05aad1317a67962aae516f6a4f0b
This commit is contained in:
Tom Fifield 2015-01-01 20:39:17 +08:00
parent 0848e201cc
commit 79065aad30
1 changed files with 2 additions and 1 deletions

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'