Issue 70702 - Help online : Fields conditions "vrai" and not "true"
Summary: Help online : Fields conditions "vrai" and not "true"
Status: RESOLVED FIXED
Alias: None
Product: Writer
Classification: Application
Component: formatting (show other issues)
Version: OOo 2.0
Hardware: All All
: P3 Trivial (vote)
Target Milestone: 4.2.0
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-22 15:03 UTC by rpnpif
Modified: 2019-10-13 11:50 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: 4.1.7
Developer Difficulty: Easy


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description rpnpif 2006-10-22 15:03:11 UTC
Hi,

In the online help [F1] of 2.04 OOo, on the page : "Conditions;Champs et
sections" from the index, "the title Définition de conditions".

On the place of :
"La méthode la plus simple pour définir une condition consiste à saisir
l'expression logique directement dans une zone Condition à l'aide des valeurs
suivantes :
VRAI
La condition est toujours remplie. Il est également possible d'entrer une valeur
quelconque différente de zéro comme texte conditionnel.
FAUX
La condition n'est pas remplie. À la place, vous pouvez aussi spécifier la
valeur 0." (in the table)

it should be :
"La méthode la plus simple pour définir une condition consiste à saisir
l'expression logique directement dans une zone Condition à l'aide des valeurs
suivantes :
TRUE
La condition est toujours remplie. Il est également possible d'entrer une valeur
quelconque différente de zéro comme texte conditionnel.
FALSE
La condition n'est pas remplie. À la place, vous pouvez aussi spécifier la
valeur 0."

This is because the VRAI value for a field condition (champ conditionnel mis
dans un document writer) is interpreted as 0 (FALSE), rather than 1 or other
than 0 (TRUE).

Perhaps, this is a defect for writer also, because calc knows VRAI() as TRUE.

Should I create a calc issue also ?

Regards.
Comment 1 michel_w 2006-10-22 19:53:03 UTC
This seems to be a misunderstanding. If you set the document locale to French, 
then "VRAI" is interpreted as "TRUE".
You seem to be working with an english locale. In this case, the French online 
help does indeed not match the behaviour of OOo. Nevertheless, this issue 
should probably be closed.
Comment 2 rpnpif 2006-10-22 22:39:54 UTC
My locales are really in french.

But you are partially in truth.

Try this with a french release of OOo :
1. create an user field variable, for example, var1.
2. assign the "TRUE" value.
3. insert in the document : 1 is displayed so true.
4. replace the "TRUE" value by "VRAI". Now, 0 is displayed. So VRAI is not equal
to TRUE.
5. insert some lines in the document.
6. create a new user field variable., for example, var2.
7. assign the "VRAI" value.
8. insert in the document : 1 is displayed so true.
9. replace "VRAI" with "TRUE". 1 is again displayed so true.
10. replace again TRUE with VRAI. Now 0 is displayed ! VRAI has changed of sense !

Conclusion : The TRUE value as first value do that this variable will be
understand in english. The VRAI value as first value do that this variable will
be in understand in french, but a replacement with TRUE will cancel definitively
the french locale understanding for this variable. The reciprocal is false. So I
insist that the help file or the field variable manager has bug.
Comment 3 sgautier.ooo 2007-01-06 17:13:45 UTC
This is not a FR site related issue, and I don't think this is an l10n issue
too. More related to writer fields that are not consistent with lolization. I
reassign it to writer component, please correct me if I'm wrong :-)
Kind regards - Sophie
Comment 4 michael.ruess 2007-01-08 08:53:37 UTC
MRU->ES: relats to French help of field commands, please have a look.
Comment 5 eric.savary 2007-03-28 14:06:57 UTC
Please detail:
1) *where* you change the value from VRAI <-> TRUE: in the Insert field dialog
or after a double click on a field, in the Edit - Field dialog?
2) Which format is selected while inserting/editing a value (Ex: General,
Standard, Text...)
3) Please test this again in a current version. OOo 2.0 is too old.
Comment 6 rpnpif 2007-03-28 17:18:53 UTC
In OOo 2.1, VRAI gives 1 and FAUX gives 0 so the bug seems partially fixed.

Insert var1=VRAI displays 1 (standard format) and var1=FAUX displays 0, so the
logic values are correct.
But in text format, it is confused. VRAI is displayed VRAI if this is a new
insertion and TRUE if is an old insertion.

1. Open the Field insert dialogue.
2. Create a var1 variable with the value TRUE in standard mode. Insert.
Display : 1
3. If I double-click on text format,
Display : TRUETRUE
4. Again double-click on standard format,
Display : 111
5. On text format :
TRUETRUETRUETRUE
6. Clear
7. If I change the value to VRAI, double-click on standard format :
Display : 1
8. If I double-click on text format,
Display : 1VRAI
9. Again double-click on standard format,
Display : 1VRAI1
10. On text format :
1VRAI1VRAI

So in text mode TRUE keeps its boolean value, but VRAI loses its boolean value
and becomes a text only. So VRAI is not always equal to TRUE.
Comment 7 rpnpif 2007-10-16 16:43:56 UTC
This issue is still in 2.3.0 release.
Comment 8 eric.savary 2008-09-12 21:16:06 UTC
@OS: please check if the boolean TRUE/FALSE statements in fields are reserved
words and as is should not be localized AND then documented in English in the
help (forward the issue to UFI/RB) or if we should localize them (just like the
Calc function, unlike Basic language)
Comment 9 rpnpif 2008-09-13 05:48:38 UTC
I have checked today : this bug is no more present in my french 2.4.1 release.
So this issue is fixed for me. Sorry for the time to check it.

So I think that TRUE/FALSE must be localized and documented as now to VRAI/FAUX
because now they are equivalent. Perhaps some words in the help could say that.

Thank you.
Comment 10 rpnpif 2009-01-31 11:08:21 UTC
It seems that this bug is back. My desc7 is still valid in 3.0.1.
Comment 11 rpnpif 2009-10-09 09:44:08 UTC
This issue is still present in 3.1 release.
Comment 12 Marcus 2017-05-20 11:20:09 UTC
Reset assigne to the default "issues@openoffice.apache.org".
Comment 13 oooforum (fr) 2019-10-13 11:50:07 UTC
Set in Pootle, replacement for strings in french localization:
- TRUE instead of VRAI: 04090200.xhp#par_id3153677.19.help.text
- FALSE instead of FAUX: 04090200.xhp#par_id3155900.21.help.text