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-02-26 15:27:23

daniele.phobos
Member
Registered: 2019-02-26
Posts: 7

Modified language files, compiled with poeditor, are not taked in glpi

Hello everybody,

i'm trying do change some naming in the menu items, the "ticket" label to "request" ..due to company policies and the "device" label to "furniture" to keep desks ecc..


i've modified en_GB language files with poeeditor changing the name and re-compiling again, but GLPI in fact did not "see" any modification and show the same text,
there are not access issues of files, or others.
simply glpi ignore modification,

i've, as test, removed the whole files in /glpi/locales, deleted memcache, firefox cache.... but with my surprise text is always the same

which is the secret? big_smile somebody can help me?
Version is 0.922

----------------------------------------------------------------------------------------------------------------------------------------------------------
Operating system: Linux SERVICE 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3+deb9u1 (2017-12-23) x86_64
PHP 5.6.35-1+0~20180405085504.12+stretch~1.gbpaa4624 fpm-fcgi (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apc,
    apcu, calendar, cgi-fcgi, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, json, ldap,
    libxml, mbstring, mhash, mysql, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, readline, session, shmop, soap, sockets,
    standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="30" memory_limit="2048M" post_max_size="1000M" safe_mode="" session.save_handler="files"
    upload_max_filesize="1200M"
Software: Apache/2.4.25 (Debian) (Apache/2.4.25 (Debian) Server at ictmgmt.ce.lan Port 80)
    Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0
Server Software: Debian 9.1
    Server Version: 10.1.26-MariaDB-0+deb9u1
    Server SQL Mode:
    Parameters: ictmgmt@localhost/ictmgmt
    Host info: Localhost via UNIX socket
   
mysqli extension is installed
ctype extension is installed
fileinfo extension is installed
json extension is installed
mbstring extension is installed
zlib extension is installed
curl extension is installed
gd extension is installed
simplexml extension is installed
xml extension is installed
ldap extension is installed
imap extension is installed
Zend OPcache extension is installed
APCu extension is installed
xmlrpc extension is installed
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/config : OK
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/files : OK
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/files/_dumps : OK
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/files/_sessions : OK
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/files/_cron : OK
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/files/_graphs : OK
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/files/_lock : OK
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/files/_plugins : OK
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/files/_tmp : OK
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/files/_cache : OK
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/files/_rss : OK
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/files/_uploads : OK
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/files/_pictures : OK
OK/mnt/archivio/SITI_WEB/ictmgmt.ce.lan/files/_log : OK
Web access to files directory is protectedWeb access to files directory is protected : OK

----------------------------------------------------------------------------------------------------------

Thanks!

Last edited by daniele.phobos (2019-02-26 15:28:26)

Offline

#2 2019-02-27 23:25:44

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: Modified language files, compiled with poeditor, are not taked in glpi

1. there are mo and po file i believe you have to change both
2. (correkt file rights)
3. restart apache
4. (clean browser cache)


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3

Offline

#3 2019-02-28 10:51:22

daniele.phobos
Member
Registered: 2019-02-26
Posts: 7

Re: Modified language files, compiled with poeditor, are not taked in glpi

Hello dear,

i've done all

1) both mo and po modified with poeditor
2) file owner is the same than run apache, and permission still on 777 for the moment
3) restarted apache
4) cleared cache..and tried same on: firefox, chrome, opera, ie ..same behaviour
5) i've cleared the pagespeed cache too
6) i've cleared all files in /files/_session folder


if i watch inside the mo and po files i see modified text as should be

as soon as logon a files is created in /file/_session, if i watch that file, i find the original words, not modified one.

it's somekind of mystery: i've modified both text files, so where glpi take the old text that put in the /session files?

i think this is the real issue

Offline

#4 2019-03-03 12:25:24

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: Modified language files, compiled with poeditor, are not taked in glpi

Download and change de_DE.po (you language wink) from folder locales
convert with http://po2mo.net/?r=files_removed
upload the new mo file to your locales folder
(check the rights)
(of course you have to change the "dowload file name"

this works for me since years and also with 9.3.3


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3

Offline

#5 2019-03-07 17:58:30

daniele.phobos
Member
Registered: 2019-02-26
Posts: 7

Re: Modified language files, compiled with poeditor, are not taked in glpi

Hello,
i've tried all,

no luck

i installed a fresh copy of 9.4, migrated db to the new istances.

no luck, glpi did not take in consideration even the english file if i change it, still the same.

i've to edit the php files directly?

Offline

#6 2023-01-11 17:23:18

Odisefs
Member
Registered: 2022-10-18
Posts: 7

Re: Modified language files, compiled with poeditor, are not taked in glpi

Had the same problem  with some Greek translations .
In the end the procedure was the following :

  • Downloaded the .po & .mo file (en-el.po)

  • used the poedit application to change the relevant strings and compile the po file to mo format

  • Uploaded the files to the  \locales\ directory

  • Cleared the \files\_session\ directory

  • Cleared the glpi:cache via the php \bin\console glpi:cache:clean in command line 

  • Logged in the site  and changed the language to Greek in order to check the strings

  • Sipped coffee in satisfaction ..... big_smile

Offline

Board footer

Powered by FluxBB