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: I27a71fd00759c883833a7061186c93f11efac68a
This commit is contained in:
parent
796c237dd4
commit
b35ef35c1c
@ -31,7 +31,8 @@ class myDocbookXmlMode(docbookXmlMode):
|
||||
'varlistentry', 'userinput', 'computeroutput',
|
||||
'prompt', 'command', 'screen']
|
||||
self.objects = ['figure', 'textobject', 'imageobject', 'mediaobject',
|
||||
'screenshot', 'literallayout', 'programlisting']
|
||||
'screenshot', 'literallayout', 'programlisting',
|
||||
'option']
|
||||
|
||||
default_mode = 'docbook'
|
||||
operation = 'merge'
|
||||
|
Loading…
x
Reference in New Issue
Block a user