Recently to do a multi-lingual thing, probably contains medium, complex, Japanese, English, Korean several languages. In this way, you need to write multiple resource files, not only heavy workload, but also error-prone. Today introduced a very useful tool for everyone to--multiproperties.
Multiproperties Editor is an Eclipse plugin for editing properties or Resoucebundle resource files that supports simultaneous editing in multiple languages. Its principle flowchart is as follows:
The Multiproperties file is actually an encapsulation format for XML, which can be converted into a Java properties file and other formats.
Here's how to use multiproperties to develop multiple resource files, first create a new Multiproperties file:
Enter information such as file name:
In the Columns tab, add the language you want:
Then switch to the Table tab to add the appropriate key-value pairs, right-click in the Blanks, and select "Add Property Record ...":
Then press the check box and click OK:
Fill in the corresponding key and corresponding language values:
After filling out the effect such as:
Toggle the Overview tab and select Java Properties Handler:
Switch to columns and configure a file name for each language:
Example: Language_en_us.properties
Finally, press "Ctrl+s" to save, will automatically generate the corresponding properties file, the effect is as follows:
OK, the whole process of using the above steps multiproperties is complete. multiproperties can greatly simplify our repetitive work and is an essential tool in the development of multi-lingual projects. I hope that the content we share today will bring a little help to our work.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Beginner's tool use (19)--International resource file Development weapon Multiproperties