[Libreoffice-bugs] [Bug 103419] Description of SWITCH function is missing info, has confusing wording

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Nov 9 22:18:18 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=103419

sdc.blanco at youmail.dk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|libreoffice-bugs at lists.free |sdc.blanco at youmail.dk
                   |desktop.org                 |

--- Comment #6 from sdc.blanco at youmail.dk ---
(In reply to Mihkel Tõnnov from comment #5)
> Very good that at least the Help now documents this.
To be sure:  No additional changes are needed in the online Help page for
Switch?

Thanks for response.  I think we can find some good solutions. As a translator,
you know that we have to get it right the first time. (-: So I will make some
proposals, based on yours, and let's see if we can find some good formulations.

> - "Checks 1 or more values and returns a result corresponding to the first
> value equal to the given expression."
> + "Tests an expression against a list of values and returns the result
> corresponding to the first value that matches the expression. Optionally, a
> default result may be given instead of the final value-result pair, to be
> returned if none of the values match the expression."
NB. This should look all right in Function Wizard, it will make a LONG tooltip
for =SWITCH.  But we can try.

I tried to imagine how it would appear as tooltip. (as you know, in Function
Wizard, the syntax is also present, which makes the text easier to interpret.)

     Compares expression against list of value/result pairs, and returns
     result for first value that equals the expression.  If expression does
     not equal any value, a default result is returned, if it placed as final
     item in parameter list without a value.

> 1) The description of Result2...Result127 (NB: only starting from 2nd - not
> sure how easily this can be done):
> - "Value to return when corresponding value argument matches expression."
> + "Value to return when corresponding value argument matches expression, or
> alternatively a default value to return."
-Not so easy to do, but also maybe not necessary.
-The new "SWITCH" tip introduces the idea of "default", and my proposal
explains how to do it.
-"default" is always (implicitly) a "Value to return" as it currently says.
-would make another long tooltip 

> 2) The description of Expression:
> - "Value that will be compared against value1-valueN."
> + "Value that will be compared against value1...value127."

My proposal:   "Value to be compared against value1…valueN (N ≤ 127)."

Should be able to make the patch right away, once we decide on the texts. 
Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201109/3e4dc444/attachment.htm>


More information about the Libreoffice-bugs mailing list