uvdesk / core-framework

UVDesk Community Helpdesk Core Framework Bundle providing the core essential functionalities and integration tools to easily integrate any other community helpdesk packages.
https://www.uvdesk.com
MIT License
60 stars 55 forks source link

Role is not translated in the Agents listing screen #375

Closed akhileshkcoder closed 3 years ago

akhileshkcoder commented 3 years ago

I have customized UVdesk and have changed the name of 'Agent' to 'Customer Support'. I have done the changes in the language file inside the translations folder. The name is successfully changed everywhere except for the role name in the agents' listing screen. I have found in the code that the translator is not used for the role. How can I use the translator in the code?

image

The agents are listed from the function 'getAllAgents()' in the file uvdesk-community\vendor\uvdesk\core-framework\Repository\UserRepository.php I want to use the translator in that file. I am not familiar with Symfony. Please help.

image

papnoisanjeev commented 3 years ago

@akhileshkcoder

You can change these entry directly from database table uv_support_role for your desired language.

https://tinyurl.com/yzma3jrp

akhileshkcoder commented 3 years ago

@papnoisanjeev Thank you. But in that case, in the future, if I want multiple language support it will be a problem.

papnoisanjeev commented 3 years ago

@akhileshkcoder

Basically translation is done for static data only not for the data which is coming from database. As we can add or update that data as per our language.

Still as role have table have fixed data so will try to translate it using code.

Sanjaybhattwebkul commented 3 years ago

@akhileshkcoder We have fix this issue in master

Please check

akhileshkcoder commented 3 years ago

okay. Thank you