[jsword-devel] I18N

Joe Walker jsword-devel@crosswire.org
Tue, 30 Dec 2003 09:57:46 +0000


Aleksander Rozman - Andy wrote:
>> So JSword code looks like this:
>>
>>   throw new BlahException(Msg.WRITE_FAIL);
> 
> Every thing can thrtow exception. If we read from resource file we get 
> null value then we can also throw Exception

But anywhere in JSword where we use a user visible string, we use a Msg 
in place of String.

So

   throw new BookException("No i18n here");

Will not compile.

Clearly swing uses string and not Msg, so there are places where we need 
to convert a Msg to a string but that is as easy as toString().

Joe.