
I agree. If there is IDE plugins, I'll fulfill my requirement by it. But I don't want to develop IDE plugins, because IDE plugin's maintenance is trouble-filled. If it must need IDE's plugins, I want to make it come true, IMO. Why don't we develop simple pattern of enum + annotation as message definition? for instance, public enum Colors{ @Value("green") GREEN, @Value("red") RED, @Value("blue") BLUE } This syntax is simple. @Value annotation is used as default message when there is no property file. We can't define localized message by it. On 2009/08/29, at 0:05, Ceki Gulcu wrote:
Takeshi Kondo wrote:
Hello Ceki I don't like to write property file(because I must execute native2ascii to property file in Japanese) , but main point is IDE support.
Because Enum and Annotation is in Java syntax, IDE inform quickly error to me in saving code. Verification approach can't check consistency on no execution. It don't utilize typed language advantage. IMO, the advantage of typed language like as Java and C# than dynamic language like as Ruby and Python is to inform error in compiling time. Japanese famous engineer Yasuo Higa have been creating excellent features from this concept. (see Tyep safe query: http://sites.google.com/site/slim3appengine/Home ). I like this concept. What do you think about IDE support?
I agree. IDE support is an important aspect of the problem.
However, I don't think developers/translators would have much patience for a verbose format. Currently, CAI18N strikes a nice balance between complexity and usability, in accordance with the Pareto principle that Yasuo Higa refers to.
IDE support would probably gel CAI18N as the i18n API of choice. I am pretty confident that one could enhance CAI18N for IDE support even if resource files are used. After all, a resource file is written in a very simple key=value "language". If an IDE plugin can support type checking for Java classes it can easily support checks for resource bundles. (If you can run, then you can surely walk.) More concretely, it all depends on the properties editor of the IDE and the extensions/hooks it supports.
Adding IDE support for CAI18N would be a very nice sub-project. I have some experience developing Eclipse plugins. Do you have IDE development experience?
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ cai18n-dev mailing list cai18n-dev@qos.ch http://qos.ch/mailman/listinfo/cai18n-dev