This is a tool to help translate an NetBeans platform application in run time.
To use this tool you have to use a modified version of NbBundle in your Maven project then it will be possible to change bundle values live and see the changed result directly in the application.
A user or translator is one that runs the application based on the NetBeans platform. This is the expected work flow for this group:
A developer of a NetBeans platform application is expected to use NetBeans IDE as it's developer environment the Nb Translator contains one plugin this environment. This is the expected work flow from the developers perspective:
When a Nb Translator project file is opened all bundle resource requests will be tunneled thru the changes made in the project file, when the file is closed thinks will be back as usual. When the file is open a shortcut (shift+ctrl+alt+m) will be added to the global application.
When shortcut is pressed red square will mark components under the mouse pointer select a text by clicking on it then the editor will appear.
In the editor you can:
From the search you can search among all text from the source projects.
The plugin can interact with OmegaT by export bundles to OmegaT and handle import of translated files. Changes can be viewed in the application direct after import.
The IDE plugin will extract a selection of bundles based on the source project. It will after translation import changes to the correct bundle files
Under the tools menu you can find a submenu Nb Translator with selections to create or import a Nb Translator project file.
The org.opeide.util.NbBundle has to be replaced by org.openide.util.editable.NbBundle both in *.java and *.form files in the source projects. The added feature is that editable.NbBundle can be plugged with a different is implementation of the static methods in the original NbBundle, default implementation is uses the old util.NbBundle methods.
The create wizard contains too selections one is what source projects to include the other what languages to include.
By default all open project will be included it its not correct remove them and add the correct ones.
The wizard will find all available bundle languages from the source projects. The selected languages will be searchable from the platform plugin and it can later be the source language in OmegaT project export.
First select the Nb Translator project file to import
The language selection will display all languages that has changes to be imported you can then select what languages you are interested in importing to your source projects.
In the last step all changes will be listed if some thing will affect the real import it will be displayed and it will require a manual selection if the change will be imported or ignored. After the import has been done a log file will be opend.
From here its up to you to commit the changed or revert then in the version control system to include it in the next product release.
Hopefully this project will get a lot of contributors and users to make it a perfect and useful plugin for all that uses netbeans platform.
At the moment its a proof of concept project only tested at maven projects.