diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-04-12 11:58:30 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-05-02 22:12:35 +0200 |
commit | 6b3fde1a622298ca05027892d395b3c1f5acdcb9 (patch) | |
tree | c178f881db1de7b579f9f053b6c36d0de6e58b88 /helpers | |
parent | 0c1a7eba29b4819f15482fa694ed70ab398de74b (diff) |
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.py | 17 |
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' |