Hello everybody, My last project using Struts was an English-French web application. I noticed the pain of keeping resource files synchronised and decided to write utility for doing that. Basically, it allows editing all resource files at the same time and does sorting and synchronising keys automatically.
Unfortunately, my current project is not using Struts and it is not even web project (oh, well, times have changed...) but I am ready to invest my time in extending the utility to full functionality. Try it and if you like it or not please let me know. You can send e-mail directly to my address without creating a big noise on the group. Igor Karmanov. [EMAIL PROTECTED] <<read_me.txt>> <<resource-edit-v1-0b4.jar>>
Resource Files Editor.
The purpose of the Editor is to help developers of Java/Web/Struts
applications in maintaining multi-lingual resource files.
The developer can search in a sorted list on properties and
edit the same property for different languages at the same time.
How to run the program:
- copy Jar file to any directory (for example, c:/edit)
- run: java -jar c:/edit/resource-edit-v1-0b4.jar
- select "File-Open" and pick multiple resource files (Cntr-Mouse or
Shift-Mouse Select)
What it can do:
- Simultaneously open multiple property files.
These files must have valid Java Properties class file format
i.e., each row of the file must have the "key=value" pair format
- Automatically synchronize keys in all property files during
open process
- Alphabetically sort properties by keys and save all property
files with the same sort order
- Look-up of properties by typing a key in the key search field
- Add/delete properties
- Synchronize property values.
The process prompts the user to select a "master" file and then
fills all empty property keys in all selected files with
corresponding values from the master file. It make
sense to do when you want to have one language messages in all
files as starting point.
What it can not do (planned for future releases):
- Open extra file(s) after opening main list
- Create new property file (This limitation can be easily
overcome by creating an empty text file for the new language
and opening it with the other files at the start of the program)
- Change font and encoding for every file separately
- Save the preferences on "project" level, so when user opens
the "project" editor opens all property files belonging
to the project with the right font and encoding
- Save process does not use standard Properties.store() function
for saving data due to 2 reasons:
(1) because Store() saves data in Hashtable orders
(alphabetical order will be lost) and
(2) because character-to-unicode string conversion is done by store()
to handle escape sequences due to which special
characters are inserted in the property files.
Both reasons make it hard for the user if the files are opened
in a standard text editor (which is something that a user may
choose to do, to edit the files outside the scope of the ResourceEditor).
The downside of the current solution of not performing character
optimization is that languages such as Chinese are not supported
(my apologies). In future release, if the user wants to only use
the ResourceEditor for file maintainence, an option will be added
to give user the choice of storing data with or without special
character optimization.
resource-edit-v1-0b4.jar
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

