Commit Graph

5 Commits

Author SHA1 Message Date
7e42394ecb 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>
2022-12-07 17:39:02 +00:00
e5ac483bab tdf#141474 tdf#124066 Basic keyword arguments explanations
Change-Id: I9f05990a9c3513d171b7ae94e8d60e5d0d1ced2f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/116468
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2021-06-10 15:08:15 +02:00
1476465fc3 tdf#136213 Basic string functions update
Change-Id: I86ce4fe20c1947bc1742c9ed6c9726d73b8cbbf8
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/101984
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-09-03 01:41:54 +02:00
45bb570b11 tdf#132390 Correction for replace() Basic function
Change-Id: I7f7f0c45ad91a5614fda38b01d3d90968b835a9d
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/92885
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-04-29 14:58:47 +02:00
e6dfe7b36e tdf#124066, tdf#114263 BASIC Replace function Help
with kind help of  Gerhard Weydt (tdf#124066)

Change-Id: I856c8ff600774bec82daafdef63ea8cca15b5097
Reviewed-on: https://gerrit.libreoffice.org/69255
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-03-14 15:57:16 +01:00