Brazilian Portuguese x Portugal Portuguse

Started by luca, September 11, 2024, 04:00:26 PM

Previous topic - Next topic

luca

Friends,

Congrats on the great project!

I noticed the panel has what seems to be Brazilian Portuguese, however, the flag shown is that of Portugal.

Can you change it to the Brazilian flag?

Thanks!
Flávio

cyberspace

#1
Hi,

For the admin interface the flags are located in the folder:
/usr/local/cwpsrv/htdocs/admin/design/img/lang
Just replace the appropriate image file with your own PNG file:
PNG 32x32 32x32+0+0 8-bit sRGB

If you want to change the flag for the user level panel, then you need do it in the folder:
/usr/local/cwpsrv/var/services/users/cwp_theme/original/img

overseer

After uploading your custom flag image, be sure to set it as immutable:
chattr +i /path/to/file
Otherwise a future CWP update may blow it away.

cyberspace

I don't think make files immutable is good solution because it could cause problem during updates too. As a soultion it is better to duplicate the necessary language and update the image file in the duplicate language pack.

Here is another thread about localizations:
https://forum.centos-webpanel.com/addons/language-edit/msg16725/
Hope it will help to perform the necessary task.

luca

Thanks, guys. Can the language maitaners do this?

Pls confirm what I said, but it seems Portuguese in the panel is Brazilian one, not Portugal one.


luca

Friend,

Thanks. I registered, but somehow, it probably showed on screen, I dont know my username.

Pls help?

EMail I registered = painel at lucanet.com.br

Tks!