Does someone know where to find this words from the dashboard statistics to translate ?
Where can I find to translate this words?
If the language you're looking for isn't available as a language pack from osticket.com, you can update the translations at https://crowdin.com/project/osticket-official - note that while it is possible to manually import languages, I don't think it's very easy. I had a play around with the UK English files before the language pack was available, but in the long run it's easier to ensure your language is fully translated for the next batch of language pack builds ?
These words are translated in the language pack that I want to install but they are still on English in the dashboard.
This means that maybe these words are hardcoded somewhere but don't know where, any help
Thanks
Ah sorry, I misunderstood. I'm afraid I don't know the answer to this one then.
Found this but this is not a good way https://github.com/osTicket/osTicket/issues/4189
Found the script which gets the json but I don't know from where is comming that json
<script>
$.drawPlots({"times":[1549324800,1549411200,1550102400],"plots":{"created":[1,5,1],"closed":[0,0,2],"reopened":[0,0,1],"overdue":[0,0,6]},"events":["created","closed","reopened","overdue"]});
</script>
also played with this files (dashboard.inc.php, dashboard.inc.js) but still didn't get the result
You haven't told us the version of osTicket that you are using.
Sorry for the double post.
Any decent suggestion on how to fix this?
Some of the devs can lead me to solution?
I still do not touch it, I do not know if they are those, but in the .phar of the language you have an event.yaml file that has those titles.
Took me less than a minute to find this (and I’m on my phone):
https://github.com/osTicket/osTicket/blob/928cd76e2ac4f9d80b990f358c7a0f380812b977/include/class.report.php#L91-L100
Cheers.
KevinTheJedi you are my idol !!!!
KevinTheJedi I've changed the words directly in that file but the dashboard doesn't appear with all the statistics and the words aren't translated. This is SQL query witch take data directly from the database so I have to translate them in the database?
This question is asked many times and still not resolved in a proper way.
Cheers
pwned After investigating a bit they are in the database: ost_event
I know where they are but that's not a good thing changing directly in the database like in this post https://github.com/osTicket/osTicket/issues/4189
That's why I'm asking devs to propose some solution on how to fix this.
Cheers