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>
This patch updates the syntax and arguments in all methods according to the new notation used in other SF services. It also introduces the ImportFromCSVFile method to Python scripts.
This patch also updates a few examples in Basic.
Change-Id: Ib565f31ad13f5455ff1df260ec60cae5d8848cd9
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/119437
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
SF_Array:
- Adds a <variable> tag
SF_Document:
- Fixes localization issues pointed out by translators on WebLate
00000003.xhp:
- Fixes the message explaining how to load libraries
Change-Id: I9361f86e7907b95e0546197203e2d23c6211fd4d
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/110366
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Some code blocks with comments need translation and therefore need to have the localize="false" removed.
Also, other parts of the text shouldn't be localized, so localize="false" was added.
Change-Id: Id072eb88f95ee8759f86d2ca3736698855b50b4b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/109801
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Within ScriptForge services,
import/export methods between arrays and Calc sheets
are in the SF_Calc module and, hence, in the sf_calc.xhp help
Change-Id: I95386bfa83a8c15e84b9f097ce9cd5401f5abf45
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/108993
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>