summaryrefslogtreecommitdiffstats
path: root/helpers
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2019-04-12 11:58:30 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2019-05-02 22:12:35 +0200
commit6b3fde1a622298ca05027892d395b3c1f5acdcb9 (patch)
treec178f881db1de7b579f9f053b6c36d0de6e58b88 /helpers
parenttdf#102265 Decouple some Impress/Draw Slide/Page material (diff)
downloadhelp-6b3fde1a622298ca05027892d395b3c1f5acdcb9.tar.gz
help-6b3fde1a622298ca05027892d395b3c1f5acdcb9.zip
Mute unnecessary translations in fiter names
Changed to allow translation of filter names and media types Removed randomness for paragraph ids to spare retranslation Change-Id: If73d4799537b2d91ec9fe58584033b46eeeb9e04 Reviewed-on: https://gerrit.libreoffice.org/70671 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'helpers')
-rw-r--r--helpers/convertfilters.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/helpers/convertfilters.py b/helpers/convertfilters.py
index 85b8df7344..209a78c1dc 100644
--- a/helpers/convertfilters.py
+++ b/helpers/convertfilters.py
@@ -69,34 +69,37 @@ for module in modules:
output += f' <table id="{rdm("tbl")}">\n'
output += ' <tablerow>\n'
output += ' <tablecell>\n'
- output += f' <paragraph role="tablehead" id="hd_111{module[:-4]}"><embedvar href="text/shared/guide/convertfilters.xhp#filtername" markup="ignore"/>'
+ output += f' <paragraph role="tablehead" localize="false" id="hd_111{module[:-4]}"><embedvar href="text/shared/guide/convertfilters.xhp#filtername" markup="ignore"/>'
output += '</paragraph>\n'
output += ' </tablecell>\n'
output += ' <tablecell>\n'
- output += f' <paragraph role="tablehead" id="hd_222{module[:-4]}"><embedvar href="text/shared/guide/convertfilters.xhp#mediatype" markup="ignore"/>'
+ output += f' <paragraph role="tablehead" localize="false" id="hd_222{module[:-4]}"><embedvar href="text/shared/guide/convertfilters.xhp#mediatype" markup="ignore"/>'
output += '</paragraph>\n'
output += ' </tablecell>\n'
output += ' <tablecell>\n'
- output += f' <paragraph role="tablehead" id="hd_333{module[:-4]}"><embedvar href="text/shared/guide/convertfilters.xhp#fileextensions" markup="ignore"/>'
+ output += f' <paragraph role="tablehead" localize="false" id="hd_333{module[:-4]}"><embedvar href="text/shared/guide/convertfilters.xhp#fileextensions" markup="ignore"/>'
output += '</paragraph>\n'
output += ' </tablecell>\n'
output += ' </tablerow>\n'
-
+ count = 0
for item in st:
output += ' <tablerow>\n'
output += ' <tablecell>\n'
- output += f' <paragraph role="paragraph" id="{rdm("par")}" localize="false">'
+ output += f' <paragraph role="paragraph" id="{"par_" + module[:-4] + str(count)}">'
output += f'{item[0]}'
+ count +=1
output += '</paragraph>\n'
output += ' </tablecell>\n'
output += ' <tablecell>\n'
- output += f' <paragraph role="paragraph" id="{rdm("par")}" localize="false">'
+ output += f' <paragraph role="paragraph" id="{"par_" + module[:-4] + str(count)}">'
output += f'{item[1]}'
+ count +=1
output += '</paragraph>\n'
output += ' </tablecell>\n'
output += ' <tablecell>\n'
- output += f' <paragraph role="paragraph" id="{rdm("par")}" localize="false">'
+ output += f' <paragraph role="paragraph" id="{"par_" + module[:-4] + str(count)}" localize="false">'
output += f'{item[2]}'
+ count +=1
output += '</paragraph>\n'
output += ' </tablecell>\n'
output += ' </tablerow>\n'