It has been a long time since I wanted to create a little “Language Editor” to add new languages/translations to/for the Lucee Administrator. At the moment there is German and English available. There is also a Dutch-resource-file nl.xml and a swiss dialect ch-be.xml available in the Lucee source, but these still seem to be unfinished.
Lot’s of us would just love and need to have the Administrator in their own native language: With the “Lucee Admin Language Editor” it should be much easier to create new languages to later PR it to the Lucee Administrator Source at Lucees repository. If anyone wants to try out the Editor and start adding languages, here is the repo:
Thank you so much for the feedback!!! Great you like it.
I have integrated a button yesterday that should inject the language into the admin automatically by saving it and afterwards clicking the “view in server admin” button in the language header. Did you try that? Was that button already available in your version?
It works on my windows machine, but I’m not sure it will work on other OS. I had some problems injecting the code, but then I managed it to make it work. Could you confirm that. If you get some errors, you might need to remove the language cookies.
Otherwise we still need to find out the best way. I had difficulties first trying to load it, but I managed to fix it on my machine.
I’ve loaded your translation… that is how it’s looking:
However, I’ve seen that a value was traduced: locale and the result was an error in the admin, because it will try to call a cfml locale function in the action=server.regional section (see the code here). Because the translation is a non-existing locale in Java, it throws an error.
The translations I made them with a small piece of CFML code with the Google translate API. This allows you to “quickly” give a first rendering. But yes I have to go through the texts, it can be a literal translation.
I will continue to search, but there I have no more time today… I will come back later.
Can you try deleting th Lucee_Admin_Lang Cookies in your chrome dev and try again? I’ll look how to get this working later. But deleting the cookie from your browser should resolve this.
I’ve just added a Lucee Admin Plugin as an Extension with Spanish for testing before PR’ing the es.xml file to the Lucee Core Repository. If anybody wants to take a look it here it is: (Please test it on a clean instance and NOT in production, cause I’m a noob in Lucee Plugin Development ):