Apache OpenOffice (AOO) Bugzilla – Issue 70702
Help online : Fields conditions "vrai" and not "true"
Last modified: 2019-10-13 11:50:07 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.
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.
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.
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
MRU->ES: relats to French help of field commands, please have a look.
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.
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.
This issue is still in 2.3.0 release.
@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)
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.
It seems that this bug is back. My desc7 is still valid in 3.0.1.
This issue is still present in 3.1 release.
Reset assigne to the default "issues@openoffice.apache.org".
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