You are not logged in.
Pages: 1
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
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
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
Hi.
What is your goal?
--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS
Offline
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
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
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
--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS
Offline
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
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
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
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
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
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
Pages: 1