changeweb / Unifiedtransform

A school management Software
https://changeweb.github.io/Unifiedtransform/
GNU General Public License v3.0
2.78k stars 1.22k forks source link

How to translate Brazilian Portuguese #388

Open Ijevan opened 11 months ago

Ijevan commented 11 months ago

Congratulations Unifiedtransform 2.0 very good. How do I add... or download... a resource/lang for the Portuguese language?

emerson-pj commented 11 months ago

I am also interested. (@Ijevan Eu também tenho interesse. @luciano-jr ) I can help too. We just need to know how to help?

@changeweb Some evolution after 2019 (Add translation support) #133

@Ijevan You can get more information here: Localization Translate Basically in the folder resources/lang resources/lang

Ijevan commented 11 months ago

Hi @emerson-pj follow steps #133(Instalei usando Docker). Unfortunately unable to translate. I'm waiting for help. TKS

emerson-pj commented 11 months ago

Have you (@Ijevan ) changed the locale in the config/app.php file? There are 3 locale.

In addition to the above step, for testing purposes, try to manually put your locale in resources/views/layouts/app.blade.php and also in resources/views/welcome.blade.php. In line {{ str_replace('_', '-', app()->getLocale()) }} removes this function and puts its locale directly.

Another detail: the translation in resourcesz\lang is by the 'Short Keys'. Then you can replace it with 'Strings As Keys'.

This is what I can contribute. Let's wait for more help.

changeweb commented 11 months ago

@Ijevan Follow Defining Translation Strings Laravel Version 8.X.