summaryrefslogtreecommitdiff
path: root/source/text/shared/01/04180100.xhp
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2022-12-06 14:05:20 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2022-12-07 17:39:02 +0000
commit7e42394ecbf921ee53160b495aa12c1cba158604 (patch)
tree9f0b4dcbbf31112c0260a6a6831cbddf86d82c6d /source/text/shared/01/04180100.xhp
parent490d42493e8dbec31ad58978df5084b080a36fcb (diff)
tdf#152323 drop name attribute from <link> elements
Replacement done with find . -name \*.xhp -print0 |xargs -0 -P 0 perl -CS -pi -e \ 's#(<link[^>]*?) +name *="[^"]*" *( [^>]+|) *>#$1$2>#g' (note some inconsistencies with space between name and = and also having empty value, and some more complicated expression to also clear up double space before/after the attribute) translation files will be prepped with: find */helpcontent2 -name \*.po -print0 |xargs -0 -P 0 perl -CS -pi -e \ $'s#(<link[^>]*?) +name=(?:\\\\"[^"]*\\\\"|\'[^\']*\') *( [^>]+|) *(/?>)#$1$2$3#g unless /^#/' (note that not all languages use the " as quote character for the attributes, but that also single quotes appera in the po file. Hence the use of the shell $'string' syntax to be able to quote ' as \' It also requires to quote the backslash, so that it needs to be escaped once for the shell, then another time for perl. Also don't work on obsolete strings (those are prefixed with #~ in the po files) Also note that <link..></link> gets turned into <link ../> during translation extraction (along with removal of the space between the attribute name and the value), so the pattern needs to be slightly different here) Change-Id: I95e53a08e6b0095cd894109ea0de154cc4859d8f Reviewed-on: https://gerrit.libreoffice.org/c/help/+/143713 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'source/text/shared/01/04180100.xhp')
-rw-r--r--source/text/shared/01/04180100.xhp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/text/shared/01/04180100.xhp b/source/text/shared/01/04180100.xhp
index 60f92c07bf..fca64d9906 100644
--- a/source/text/shared/01/04180100.xhp
+++ b/source/text/shared/01/04180100.xhp
@@ -32,7 +32,7 @@
<bookmark xml-lang="en-US" branch="hid/.uno:DataImport" id="bm_id8802771" localize="false"/>
<bookmark xml-lang="en-US" branch="hid/.uno:ViewDataSourceBrowser" id="bm_id750714" localize="false"/>
-<paragraph id="hd_id3156053" role="heading" level="1" xml-lang="en-US"><link href="text/shared/01/04180100.xhp" name="Data Sources">Data Sources</link></paragraph>
+<paragraph id="hd_id3156053" role="heading" level="1" xml-lang="en-US"><link href="text/shared/01/04180100.xhp">Data Sources</link></paragraph>
<paragraph id="par_id3149495" role="paragraph" xml-lang="en-US"><ahelp hid=".">Lists the databases that are registered in <item type="productname">%PRODUCTNAME</item> and lets you manage the contents of the databases.</ahelp></paragraph>
</section>
@@ -44,9 +44,9 @@
<paragraph id="par_id3154823" role="paragraph" xml-lang="en-US">You can insert fields from a database into your file or you can create forms to access the database.</paragraph>
<section id="relatedtopics">
-<paragraph id="par_id3156427" role="paragraph" xml-lang="en-US"><link href="text/shared/main0212.xhp" name="Table Data bar">Table Data bar</link></paragraph>
+<paragraph id="par_id3156427" role="paragraph" xml-lang="en-US"><link href="text/shared/main0212.xhp">Table Data bar</link></paragraph>
<embed href="text/shared/guide/dragdrop_beamer.xhp#dragdrop_beamer"/>
-<paragraph id="par_id3153311" role="paragraph" xml-lang="en-US"><link href="text/shared/02/01170000.xhp" name="Forms">Forms</link></paragraph>
+<paragraph id="par_id3153311" role="paragraph" xml-lang="en-US"><link href="text/shared/02/01170000.xhp">Forms</link></paragraph>
</section>
</body>