Introducing The "Lucee Admin Language Editor"

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:

You just need CommandBox preinstalled.

To start just:

  1. Download the Zip-Folder from the “Code” button at GitHub - andreasRu/lucee-admin-language-editor: A simple editor that helps adding new languages and translations to Lucee Administrator Extension
  2. Unzip the downloaded zip folder
  3. Open a terminal session (e.g. cmd) and change into its “webroot” directory
  4. Type: “box server start”

This is still in development, so in case you find some issue, I’d love to hear about it.

8 Likes

Sounds awesome - unfortunately, I only speak one language :frowning:

1 Like

Hi Andreas,

It’s a very good idea ! I participate willingly

I duplicated the project and tested. The editor is simple and easy.

I am starting to translate from French, how can I integrate the language? If I add the fr.xml file in the folder

xxxx-webroot\lucee-5.3.10.97\WEB-INF\lucee-web\context\admin\resources\language

and restart commandBox, I can’t see the result in administration?

It’s a sample googletranslate for this time :wink:

fr.xml (151.7 KB)

BR
Christophe

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.

1 Like

I already like the rendering of the printscreen!

Test in private browsing too.

Yes I clicked on the button here, but no translation yet:

So I upgraded from version 5.3.10.97 to snapshot version 5.4.0.30-SNAPSHOT

I now have this:

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.

Thanks for showing and sharing all this.

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.

@INDCSarl Just to let you know: I did several fixes and various enhancements to the editor. These errors shouldn’t throw anymore.