Re: [classlib]strings externalization

2006-08-31 Thread Jimmy, Jing Lv
into the [classlib]strings externalization thread [1] for details. Main points briefly: 1. Using Eclipse externalization tool you can extract all strings from the sources. When you process certain source file strings that used for messages should be externalized, others should be ignored (as a result, Eclipse mark

Re: [classlib]strings externalization

2006-08-30 Thread Ilya Okomin
Hi, Jimmy! It's great that you are interested in it! Unfortunately there is no automatic externalization generation tool that fits our needs. However, you can combine Eclipse externalization tool with some manual work to get what is need. You can take a look into the [classlib]strings

Re: [classlib]strings externalization

2006-08-29 Thread Jimmy, Jing Lv
Ilya Okomin wrote: Tim, great news for me. Everything looks fine with the patch you've applied, now it's time for the main part of the task. I've created HARMONY-1308 issue with task description. This issue is devided into a set of sub-issues for each module. I'm going to process them one by

Re: [classlib]strings externalization

2006-08-28 Thread Tim Ellison
Thanks for waiting Ilya, I've applied the final patch on HARMONY-1201 (I'll check-in the tool when I get back from vacation). So now we can get to work on breaking out the messages into each component's message file. Regards, Tim Ilya Okomin wrote: On 8/11/06, Tim Ellison [EMAIL PROTECTED]

Re: [classlib]strings externalization

2006-08-15 Thread Ilya Okomin
On 8/11/06, Tim Ellison [EMAIL PROTECTED] wrote: I took a look at the HARMONY-1041 tool. It is fine, I have only minor comments: - do you think we need to separate the Message and MsgUtil types? Given that they are generated from a template I'd be inclined to combine them into a single type

Re: [classlib]strings externalization

2006-08-11 Thread Tim Ellison
I took a look at the HARMONY-1041 tool. It is fine, I have only minor comments: - do you think we need to separate the Message and MsgUtil types? Given that they are generated from a template I'd be inclined to combine them into a single type now. We have no need to look in that file in

Re: [classlib]strings externalization

2006-08-10 Thread Ilya Okomin
On 8/10/06, Tim Ellison [EMAIL PROTECTED] wrote: Ilya Okomin wrote: Hi to all! Today I've started the next step of internationalization - to externalize messages using Eclipse externalization tool. Right away I was confronted with some questions to discuss: First of all, what should we

Re: [classlib]strings externalization

2006-08-03 Thread Ilya Okomin
Hi to all! Today I've started the next step of internationalization - to externalize messages using Eclipse externalization tool. Right away I was confronted with some questions to discuss: First of all, what should we do with strings that are not supposed to be internationalized (constants,

Re: [classlib]strings externalization

2006-08-02 Thread Ilya Okomin
On 7/27/06, Tim Ellison [EMAIL PROTECTED] wrote: Ilya Okomin wrote: I share your point of view about Exceptions without description, it isn't user friendly. But I think it will be another sort of 'manual' scan :) There is a need to waste time to analyze surrounding code to provide

Re: [classlib]strings externalization

2006-08-02 Thread Alexei Zakharov
Hi Ilya, I'd like to notice that all template files are stored in the msgstool.jarfile that is the result of ant build. For this reason this tool will work only if msgstool.jar file is in the user dir. I have to extract resources from the jar file (open jar file) and don't know how to do this

Re: [classlib]strings externalization

2006-08-02 Thread Ilya Okomin
On 8/2/06, Alexei Zakharov [EMAIL PROTECTED] wrote: Hi Ilya, I'd like to notice that all template files are stored in the msgstool.jarfile that is the result of ant build. For this reason this tool will work only if msgstool.jar file is in the user dir. I have to extract resources from

Re: [classlib]strings externalization

2006-07-31 Thread Alexei Zakharov
Hi Ilya, I was trying to implement generation with using ant tasks(it seemed to me more elegant solution, than to work with file streams in Java code) and found that ant can't work with cycles. I can run replace task for certain file name and can't do this with parametrized file names for a set

Re: [classlib]strings externalization

2006-07-31 Thread Ilya Okomin
On 7/31/06, Alexei Zakharov [EMAIL PROTECTED] wrote: Hi Ilya, I was trying to implement generation with using ant tasks(it seemed to me more elegant solution, than to work with file streams in Java code) and found that ant can't work with cycles. I can run replace task for certain file

Re: [classlib]strings externalization

2006-07-28 Thread Richard Liang
Andrew Zhang wrote: On 7/27/06, Tim Ellison [EMAIL PROTECTED] wrote: Ilya Okomin wrote: On 7/27/06, Tim Ellison [EMAIL PROTECTED] wrote: The other reason we will need some manual intervention is that there is plenty of code that throws exceptions without any message describing the

Re: [classlib]strings externalization

2006-07-28 Thread Ilya Okomin
On 7/27/06, Tim Ellison [EMAIL PROTECTED] wrote: Ilya Okomin wrote: I share your point of view about Exceptions without description, it isn't user friendly. But I think it will be another sort of 'manual' scan :) There is a need to waste time to analyze surrounding code to provide

Re: [classlib]strings externalization

2006-07-27 Thread Tim Ellison
Ilya Okomin wrote: Hi falks! I would like to open discussion about the way to extract messages for internationalization from the source files (as the continuation of the [classlib]internationalization thread [1]). The task is to scan modules source files, find exception messages, extract

Re: [classlib]strings externalization

2006-07-27 Thread Ilya Okomin
On 7/27/06, Tim Ellison [EMAIL PROTECTED] wrote: Ilya Okomin wrote: Hi falks! I would like to open discussion about the way to extract messages for internationalization from the source files (as the continuation of the [classlib]internationalization thread [1]). The task is to scan

Re: [classlib]strings externalization

2006-07-27 Thread Tim Ellison
Ilya Okomin wrote: On 7/27/06, Tim Ellison [EMAIL PROTECTED] wrote: The other reason we will need some manual intervention is that there is plenty of code that throws exceptions without any message describing the problem, and of course the tooling won't help there. Tim, do you mean, that

Re: [classlib]strings externalization

2006-07-27 Thread Tim Ellison
Ilya Okomin wrote: I share your point of view about Exceptions without description, it isn't user friendly. But I think it will be another sort of 'manual' scan :) There is a need to waste time to analyze surrounding code to provide appropriate message, a bit another sort of work, isn't it? I

Re: [classlib]strings externalization

2006-07-27 Thread Andrew Zhang
On 7/27/06, Tim Ellison [EMAIL PROTECTED] wrote: Ilya Okomin wrote: On 7/27/06, Tim Ellison [EMAIL PROTECTED] wrote: The other reason we will need some manual intervention is that there is plenty of code that throws exceptions without any message describing the problem, and of course the

Re: [classlib]strings externalization

2006-07-27 Thread Jimmy, Jing Lv
Andrew Zhang wrote: On 7/27/06, Tim Ellison [EMAIL PROTECTED] wrote: Ilya Okomin wrote: On 7/27/06, Tim Ellison [EMAIL PROTECTED] wrote: The other reason we will need some manual intervention is that there is plenty of code that throws exceptions without any message describing the