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 2018-04-11 13:41:35

rosa
Member
Registered: 2018-04-08
Posts: 5

Translation not working properly in a plugin

I have translated the .pot file from a plugin I have made but when I install that plugin in the GLPI platform it doesn't work properly, which I mean is that the GLPI platform doesn't translate what I have translated in the .po file with its appropiate .mo file. Any help please?

Offline

#2 2018-05-03 23:13:33

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

Re: Translation not working properly in a plugin

1# File rights of your new file is wrong
2# Apache stop / start  - (cache problem)
3# wrong file wink


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 2018-05-17 09:47:44

rosa
Member
Registered: 2018-04-08
Posts: 5

Re: Translation not working properly in a plugin

Thanks it was just I haven't referenced the name of the plugin in the words I wanted to translate! Silly me! xD

Gretings

Offline

#4 2018-05-22 04:06:00

jayeshroshan
Member
Registered: 2018-05-22
Posts: 4

Re: Translation not working properly in a plugin

hello,
Make sure your language file name is psts-hu_HU.mo and you should store it in the plugin directory here pro-sites-files/languages/

Also mention the translation language in your wp-config.php file as described on the following page.

I have a same problem with the wp-smush-pro
I copy the translated wp-smush-hu_HU file to the languge folder but translation not wokring.

Please try naming language file as wp_smush-hu_HU.mo and storing it in the plugin directory /wp-smush-pro/languages

Best Regards,
jayesh
9Apps AndroidTutuapp AndroidAptoide Android

Last edited by jayeshroshan (2018-05-23 12:22:17)

Offline

#5 2018-10-08 10:46:21

minimilitiamodsz
Member
Registered: 2018-10-08
Posts: 1

Re: Translation not working properly in a plugin

Follow this steps and you done with it.

1: File rights of your new file is wrong
2: Apache stop / start  - (cache problem)
3: wrong file wink

Offline

#6 2021-01-05 17:28:47

antoine0394
Member
Registered: 2020-11-24
Posts: 29

Re: Translation not working properly in a plugin

I have the same problem, I followed all steps in the manual :

1. Generate pot file with script
2. Open this file with POEditor and add translations fr_FR
3. Compile it to mo file. So I have 3 files in the folder locales of my plugin.
4. Reboot apache server

But I still can't have my translated key into french, I just see English translations. All other native translations are working fine but not one of my plugins. I check the file rights which are OK.

Do you have an idea?

Offline

Board footer

Powered by FluxBB