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
Guest
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
Guest
From: Germany
Registered: 2010-03-05
Posts: 844

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.2.3 /Ubuntu 16.04.4 LTS
Apache/2.4.18 (Ubuntu) - PHP 7.0.30-0ubuntu0.16.04.1 - MySQL 5.7.22-0ubuntu0.16.04.1

Offline

#3 2018-05-17 09:47:44

rosa
Guest
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
Guest
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

Board footer

Powered by FluxBB