You are not logged in.
Hello experts,
I do not know how to create multi-language condition in notification template.
##IFtask.isprivate=Yes##
condition works well for English. What to do if GLPI system is in several languages. I use GLPI 0.78.1 in en, cs, nl and maybe other languages.
What if in menu Setup\General\Default values the Default language is set to English and users's language in menu Setting\Main\Select language is set to different language than English. Which language is then used in notification template condition?
Another question: As the condition is case sensitive (it means yes<>Yes), is there a way to use some constant for "yes" or "true" for example?
Thank for your help. Kind regards
Offline
##IFtask.isprivate## should be enough.
+
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
This condition
##IFtask.isprivate##
is applied always, no matter task.isprivate=Yes or task.isprivate=No.
I need condition that in case of private task writes text "sorry, private task" and using ELSE expression writes complete description of public tasks.
Offline
##IFtask.isprivate## means "if task.isprivate=yes"
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
I test it in 0.78.1 version and the condition ##IFtask.isprivate## seems to mean "if task.isprivate<>null". I tested it once more for task.isprivate and followup.isprivate too.
If it runs for you, which version do you use?
Offline