Browse Source

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>
Olivier Hallot 7 months ago
parent
commit
6b3fde1a62
2 changed files with 650 additions and 647 deletions
  1. 10 7
      helpers/convertfilters.py
  2. 640 640
      source/text/shared/guide/convertfilters.xhp

+ 10 - 7
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'

File diff suppressed because it is too large
+ 640 - 640
source/text/shared/guide/convertfilters.xhp