Commit Graph

6 Commits

Author SHA1 Message Date
37c3a04916 tdf#156580: CreateUnoService is spelled differently in help
Change-Id: I98728e1215a716f9e35080e819956d0801922284
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/155234
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-08-02 17:22:53 +02:00
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
8b84a4ae1d CallByname basic example correction
Change-Id: Iccfbb52d678cae4c6ce100cfa41576f207120bb2
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/131204
Tested-by: Jenkins
Reviewed-by: Alain Romedenne
2022-03-14 11:04:55 +01:00
385b2a1c99 Basic help extra x-links
Change-Id: I875e5027de98d23e1644aaa5cfbce0a124f543b2
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/130677
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-03-02 14:17:44 +01:00
2d7503bd78 do not localize CallType values
Change-Id: Ie5d6b52da5b254945b48b7e126e56b86936456f4
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/130199
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-02-19 23:14:41 +01:00
401fb641af tdf#114263 tdf#141474 tdf#147262 CallByName() function new help page
Change-Id: I99ed22b86b04a3ae4338e0c2ab49dbd594032ac6
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/129607
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2022-02-18 01:16:57 +01:00