Ignore <option> tags in generatepot

With https://review.openstack.org/#/c/144685 merged,
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: I7b46f4dd10c0855f86cea35417dcfde93cc113a3
This commit is contained in:
Tom Fifield 2015-01-01 19:18:58 +08:00 committed by Andreas Jaeger
parent 886a689c25
commit 0dab651084
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,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'