[ASTPPCOM-858] .po and .mo files translations Created: 28/Dec/21  Updated: 17/Jun/22  Resolved: 03/Feb/22

Status: Closed
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: Danilo Borges Assignee: Ashish Gohil
Resolution: Done Votes: 1
Labels: bug_confirmed
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: JPEG File astpp1.jpg     JPEG File astpp2.jpg     JPEG File astpp3.jpg     PNG File astpp.png    
Reproducibility: always
Category: UI
Edition: Community

 Description   

After a lot of work I discovered the error in ASTPP, when we change the translation and click Update Languages it only changes the file /opt/ASTPP/web_interface/astpp/language/pt_BR/LC_MESSAGES/messages.po but the translation will only work if the file with the extension .mo is also generated (messages.mo) it is generated from messages.po , and I don’t know why astpp only changes the messages.po file



 Comments   
Comment by Neetu Nogia [ 30/Dec/21 ]

Hello Danilo Borges

Goodday,

Which language are you translating, Can you please let us know.

Thank You

Comment by Ashish Gohil [ 30/Dec/21 ]

Hello Danilo Borges,

in which language you got error and what kind of translation is not done in your portal? and please let us know for whole portal you didn't get translation of language or for any specific words.

and please let us know the ASTPP version you are using.

Thanks

Ashish Gohil

Comment by Danilo Borges [ 30/Dec/21 ]

Hi, the language is Portuguese, but the error happens in any language. ASTPP version 5.
For the translation to work, the astpp/language/pt_BR/LC_MESSAGES/messages.mo file must also be modified! If I use Poedit the translation is perfect, but it has to be done externally.
thanks

Comment by Ashish Gohil [ 31/Dec/21 ]

Hello Danilo Borges,

i didn't get you perfectly,

can you please share any screenshot or details about it?

or is there any issue in translation for specific words or whole portal is not translating?

Thanks and regards

Ashish Gohil

Comment by Danilo Borges [ 31/Dec/21 ]

Any changes I make to Configurations>>>Languages>>>Translations in any language are not reflected on the site!
But I found that when I access Configurations>>>Languages>>>Languages and click Update Languages only the file /web_interface/astpp/language/pt_BR/LC_MESSAGES/messages.PO is modified, and for the translation to take effect the messages file. MO also has to be modified. The proof is that if I manually change the messages.PO file by the poedit application and send it to astpp all the translations work perfectly. See the image below for the modification dates when I click on Update Languages, only the file with the extension PO is modified.

Thanks and regards

Comment by Ashish Gohil [ 03/Jan/22 ]

Hello Danilo Borges,

we are provide on .mo file only words which we have already created for translation.

and from your end if you are adding new words form configuration->language->translations, that words only add in to .po file, so only .po file will updated after adding words form translations.

if anything else please let us know.

Thanks and regards

Ashish Gohil

Comment by Danilo Borges [ 03/Jan/22 ]

Hello Ashish Gohil,
I'm not adding new words, I'm changing several wrong words in the translation, and none of them after the change takes effect neither in the client area nor in the administrative area!

Thanks and regards

Comment by Ashish Gohil [ 03/Jan/22 ]

Hello Danilo Borges,

as you change or add both thing not added into .mo file, because that file is fix with our created words, if you modified anything or add anything then it will take as a new word for that and update only in .po file.

Thanks and regards

Ashish Gohil

Comment by Danilo Borges [ 03/Jan/22 ]

So please let me know how to carry out the translation fixes in the client and administrative area, as I've already tested both on Centos and Debian, and it doesn't work!

Comment by Ashish Gohil [ 04/Jan/22 ]

Hello Danilo Borges,

Can i have the words which not translated on your server or can you please share screenshots for the same on which words not translated so i can check for it accordingly to your issue.

Thanks and Regards

Ashish Gohil

 

Comment by Danilo Borges [ 04/Jan/22 ]

Hello Ashish Gohil,

The words are already translated, but the words are translated into Portuguese from Portugal, and the right thing would be Portuguese Brazil!
See the example below:

The correct one would be below:

This would be just 1 example, there are more than 50 word changes to be made, most in the client area.
I still don't understand why there is this option to change the translation if the function simply doesn't work, the correct thing would be to change the word and the change already reflects!

 

See another error I found in the Portuguese language in the administrative area: when I'm going to add credit for the client, I enter the amount and it simply stays stopped at the confirmation screen and the credit is not added!

 

Thanks and Regards

Comment by Ashish Gohil [ 05/Jan/22 ]

Hello Danilo Borges,

You can change words translation from your end, as we are using google translated words and as per google translated words we put that words on translation, so if you find any mismatch words then you can change that accordingly and you can send PR for that as well.

and for recharge on Portuguese language error, we will work for it and resolve it soon and update you.

Thanks and regards

Ashish Gohil

Comment by Ashish Gohil [ 05/Jan/22 ]

Hello Danilo Borges,

as i was checked on our server ASTPP v5, recharge can done on Portuguese language, can you please pull the source and check again.

Thanks and regards

Ashish Gohil

Comment by Neetu Nogia [ 17/Jun/22 ]

Hello

We are closing this ticket as haven't got a response back on this ticket for a few days.

Kindly re-open it if you will have any queries in the future by relying on it.

Regards,

Generated at Sat Feb 10 07:20:53 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.