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 2023-06-05 12:04:19

GabCreat
Member
Registered: 2022-10-26
Posts: 7

How to change ticket type names

Hi,

I would like to change the name of the "type" when creating a ticket.

my version of glpi is 10.0.3 and i don't find where i change that, can i directly make that on the configuration panel in glpi or this be done in the .php files on the server?

Thank in advance.

Offline

#2 2023-06-05 12:53:50

ihkrt
Member
Registered: 2023-05-23
Posts: 20

Re: How to change ticket type names

Hi,

as far as I know you can't change that because it's an ITIL standard


Server: GLPI 10.0.15 FreeBSD 13 NGINX
Plugins: Additional fields 1.21.8, News 1.12.2, Data injection 2.13.5, Form Creator 2.13.9, Glpisaml 1.1.6

Offline

#3 2023-06-05 14:14:00

GabCreat
Member
Registered: 2022-10-26
Posts: 7

Re: How to change ticket type names

I just want to change the names of the "type" in the interface when a user create a ticket, even that we can't do ?

Offline

#4 2023-06-05 15:16:44

WebGreg
Member
Registered: 2020-02-27
Posts: 739

Re: How to change ticket type names

Hi.
What is your goal?


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#5 2023-06-05 15:41:19

mps
Member
Registered: 2022-10-04
Posts: 32

Re: How to change ticket type names

Hi!

I wouldn't change the sources directly as this makes updating difficult and it isn't that easy to get all side effects.

What's the goal you want to achieve?

If you have a "standard" subscription, then you have access to the "Rename GLPI strings" plugin. Using that plugin you can change the name of the ticket types.

Offline

#6 2023-06-05 16:38:37

GabCreat
Member
Registered: 2022-10-26
Posts: 7

Re: How to change ticket type names

I would like to change the name of type "demand" by "build" to be able to sort the tickets in the right way.

And I don't have the standard or even basic version but the open-source

Offline

#7 2023-06-06 08:03:52

WebGreg
Member
Registered: 2020-02-27
Posts: 739

Re: How to change ticket type names

Sorry - I'd like to help, but I still don't understand. I thought you meant "incident" and "request" type.

If you just want to change e.g. the incident name, you can try modifying the file /var/www/html/glpi/locales/file.po  But like mps wrote - this makes updating difficult (You must remember to fix it after updating).

However, I do not know where to look for the type of "demand" you are writing about sad


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#8 2023-06-06 11:09:43

GabCreat
Member
Registered: 2022-10-26
Posts: 7

Re: How to change ticket type names

Sorry i juste made a mistake, i'm french so in my language the type is "incident" and "demande" but i mean "incident" and "request".

It's just that i want to change "incident" by "build" and "request" by "run" so i changed in the fr_FR.po and restart the server but nothing change, i also want to change the .mo but it's not comprehensible in this file.

Do you know if i do the right thing ? when you mean "modifying the file /var/www/html/glpi/locales/file.po" you speak about fr_FR.po ? because that the file i use for translation in my glpi. Perhaps the restart don't enough ?

Offline

#9 2023-06-06 12:19:17

WebGreg
Member
Registered: 2020-02-27
Posts: 739

Re: How to change ticket type names

No problem - I use a translator too. It's amazing that we can get along regardless of the language - the magic of the 21st century :-D


You only change *.po file and then:

sudo php /var/www/html/glpi/bin/console locales:compile
sudo php /var/www/html/glpi/bin/console glpi:cache:clear

Last edited by WebGreg (2023-06-06 12:25:28)


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#10 2023-06-06 14:56:49

GabCreat
Member
Registered: 2022-10-26
Posts: 7

Re: How to change ticket type names

It's beautiful technology, no more language barrier and distance now ^^

In any case, thanks that works now !
Be well and good luck with your works man.

Offline

#11 2024-09-04 17:40:22

grzesag
Member
Registered: 2024-09-04
Posts: 1

Re: How to change ticket type names

Hi

On the GLPI documentation there is page explaining how to override GLPI locales with custom files not changing the core Langauge po file like en_GB.po file

There is a GLPI documentation page called "Override GLPI locals" (I cannot post URL in the post I am afraid) this is under GLPI documentation Advanced Configuration section.

Unfortunately steps in the documentation does not work for me and changes for strings are not applied. If I change en_GB.po and recompile like explained above it works

On the Setup -> General -> System I can see that compiled custom file is listed under "Locales overrides" section

I would prefer to use custom override file instead of changing the core language en_GB files

I am using 10.0.16 GLPI version

any suggestion why documentatoin steps are not working for me?

Thank you for help

Offline

#12 2024-09-05 11:58:38

rcgjoxph
Member
Registered: 2024-07-19
Posts: 7

Re: How to change ticket type names

Hello. The doc

    doc / source / advanced / override-locales.rst

says filename.po but not what "filename" should be. It seems to need to be the locale you're using, e.g. en_US, so en_US.po and en_US.mo

I also added

define('GLPI_LOCAL_I18N_DIR', GLPI_VAR_DIR . '/_locales');

to config/local_define.php

Last edited by rcgjoxph (2024-09-05 11:59:28)

Offline

#13 2024-09-05 15:15:45

rcgjoxph
Member
Registered: 2024-07-19
Posts: 7

Re: How to change ticket type names

OK, so some messages get translated, but not others. The page /front/helpdesk.faq.php uses the message when logged in, but not when logged out.

It took a while to find, but function __() is made available in web/src/Application/View/Extension/I18nExtension.php but comes from inc/autoload.function.php

__ uses the global $TRANSLATE, which gets set in src/Session.php (with a fallback of __ being defined as a passthrough function in inc/autoload.function.php when $TRANSLATE is unset) and accessed in front/locale.php

I guess the fallback is happening when not logged in as there's no session. I will do some debugging.

Update: I think this was to do with the language my browser was requesting, though it may be the locale setting on the server (I'm running GLPI on containers with no locale info).

Last edited by rcgjoxph (2024-09-05 16:42:37)

Offline

Board footer

Powered by FluxBB