Bug 156580 - CreateUnoService is spelled differently in help
Summary: CreateUnoService is spelled differently in help
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Julien Nabet
URL:
Whiteboard: target:24.2.0
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-02 10:48 UTC by Mike Kaganski
Modified: 2023-08-02 15:58 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2023-08-02 10:48:57 UTC
There are several different user-visible spelling of CreateUnoService Basic function in the help. See e.g. https://git.libreoffice.org/help/+/master/source/text/sbasic/shared/calc_functions.xhp: *four* uses and different spellings of the string, that are visible to user (in different form), and *not a single proper spelling*!

line 24: "createUNOservice" in a bookmark (visible in search results);
line 31: "CreateUNOService" in the text;
line 37: "createUnoService" in the code;
line 79: "createUNOService" in the code.

In the "CreateUnoService Function" help page ( https://git.libreoffice.org/help/+/master/source/text/sbasic/shared/03131600.xhp ), most of the uses are correct (CamelCase, with three initials in uppercase), but line 66 shows "createUnoService" in the code...

Indeed, Basic is case-insensitive. But inconsistency is bad.
The canonical spelling is in the code that maps the names to their implementation - namely, https://opengrok.libreoffice.org/xref/core/basic/source/runtime/stdobj.cxx?r=1f5797e0#239
Comment 1 Julien Nabet 2023-08-02 12:04:01 UTC
I can take a look.
Comment 2 Julien Nabet 2023-08-02 13:02:58 UTC
Patch on review here:
https://gerrit.libreoffice.org/c/help/+/155234
Comment 3 Commit Notification 2023-08-02 15:23:23 UTC
Julien Nabet committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/37c3a04916cc6d3e605e33de0733d58e6ba37f1f

tdf#156580: CreateUnoService is spelled differently in help
Comment 4 Commit Notification 2023-08-02 15:58:34 UTC
Julien Nabet committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/1c1992ef335ba67137134fe99672db631a7782c7

Related tdf#156580: CreateUnoServiceWithArguments is spelled differently in help