You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2019-01-18 09:47:11

Daviid
Member
Registered: 2018-12-20
Posts: 12

Ticket Template Boolean [CLOSED]

If I set on a ticket template to
##lang.followup.isprivate## : ##followup.isprivate##

I get (In Catalan):
"Privat : Sí"
and
"Privat : No"

Shouldn't that be True?
Or maybe have ##IFfollowup.isprivate## work without having to write:
##IFfollowup.isprivate=(Yes|Si|Sí|Oui|Ja|diakh|Weewawo|Hai|...)## (I'm just assuming here, since there's Sí (Catalan), Si (Spanish) and Yes (English))

It seems kind of a pain to have to translate boolean values when writing templates for each language you use on your tickets.

Last edited by Daviid (2019-01-24 12:39:18)

Offline

#2 2019-01-21 17:07:57

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Ticket Template Boolean [CLOSED]

You don't have to translate boolean value, GLPI give the translation of the recipient language.

If you want to check a value, use the boolean
##IFfollowup.isprivate=0## => for public followup


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#3 2019-01-22 09:25:29

Daviid
Member
Registered: 2018-12-20
Posts: 12

Re: Ticket Template Boolean [CLOSED]

yllen wrote:

You don't have to translate boolean value, GLPI give the translation of the recipient language.

If you want to check a value, use the boolean
##IFfollowup.isprivate=0## => for public followup

Of course -_-, thanks you.

Offline

Board footer

Powered by FluxBB