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:
parent
0848e201cc
commit
79065aad30
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user