14 Commits

Author SHA1 Message Date
1c3257e391 tdf#155193 Fill indexer= when omitted in Help files
Change-Id: I10f3c9e1e698619dcace7c4314f2bd37adf698de
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/155363
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-08-05 11:42:52 +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
bba53dc2eb Silence strings for l10n in sbasic/shared (Part 1)
These strings are appearing for translation in Weblate
but they're pure Basic code/syntax that does not need translation.

Change-Id: I8a3f16fcb23f18a2b2b46eb7eaf8bbf74023dd84
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/126606
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-12-11 01:57:15 +01:00
65d0ce6b57 Fixups of things missed in review
Change-Id: I6190d21bef297077e6a7685b59b58804cce60bca
2021-03-16 01:55:37 -06:00
1f290dca1d Another random typo grab bag
Change-Id: Ib548ab7e25600fc693d7a9d6319104f431eb8e8e
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/111167
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-02-18 23:50:23 +01:00
d5eb6397f3 sf_session new help page
- extra bookmark & link in sf_array
 - typo in py2bas
 - typo in sf-string

Change-Id: I508722de9b4cb1e55e203ba97b470b28f1ba03ae
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/110678
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2021-02-12 18:42:16 +01:00
7c39ebe635 Typo in Basic script
Change-Id: I73108c42e82a1e11606e373f1fce0f6a94198f7e
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/96094
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-06-11 13:58:55 +02:00
1fa3873428 fix name of APSO extension
Change-Id: I17a1b9f0a6b67c05a77b328a06b9e4091e7c0c26
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/88263
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2020-02-08 20:59:29 +01:00
aa272bf2b9 Fix links for basic_2_python page
Change-Id: I7ffd91ea10b22a5215a77be9639dd8d9c27c9ed0
Reviewed-on: https://gerrit.libreoffice.org/81509
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-10-25 18:03:40 +02:00
32ed2dcd31 Documenting how to call Python routines from Basic macros
Change-Id: I904cafe91ad7c5e72d09209c68db401003dda556
Reviewed-on: https://gerrit.libreoffice.org/81412
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-10-24 17:23:33 +02:00
7d89551e91 The exact context where Basic IDE is absent needs to be clarified
Change-Id: I722b5d37dcb6b6ea772ab6c8b6022484346ab29d
Reviewed-on: https://gerrit.libreoffice.org/78117
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-08-26 17:10:44 +02:00
b21bc34d74 Don't translate example code snippets
Also avoid errors at 'make translations' such as:

Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp
No string specified!
GroupID: N0344
Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp
No string specified!
GroupID: N0382
Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp
No string specified!
GroupID: N0387
Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp
No string specified!
GroupID: N0393
Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp
No string specified!
GroupID: N0395
Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp
No string specified!
GroupID: N0400
Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp
No string specified!
GroupID: N0405
Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp
No string specified!
GroupID: N0417

Change-Id: I0715209dd8cf7b044a2914cfbcd3cfabdeab66ed
Reviewed-on: https://gerrit.libreoffice.org/77073
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-08-07 11:47:11 +02:00
deb9f4e0f5 Typo
Change-Id: I854c7a4112eda552122fa37f15bcf9752ad302ae
Reviewed-on: https://gerrit.libreoffice.org/75627
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-07-16 00:31:16 +02:00
3d1c811073 Python to Basic Help page
- Python x Basic inter-language calls
- Dialog handlers with Basic or Python

Amend 1
- place page at right path
- inter-page link calls
- entry in Contents
- Some changes in passive voice, articles in text

Change-Id: I5bb54150f534486c092036a8ed4fa7cc38cc9ef0
Reviewed-on: https://gerrit.libreoffice.org/75057
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-07-15 02:23:47 +02:00