geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan D. Cabrera" <>
Subject Re: using Resource Bundles for message strings
Date Tue, 04 Mar 2008 05:29:06 GMT

On Feb 26, 2008, at 7:30 AM, B.J. Reed wrote:

> I have written a patch to get Geronimo messages from a common set of  
> resource bundles.  Included in the patch is the  
>,, and the  
> start of the file.


> 2) Is there a numbering standard for the key?  The standard that I  
> have started for the message key is as follows:
> mmmmlxxxx
>   mmmm - 4 char module name abbreviation
>   l - one char level (E - error, W - warning, I - information
>   xxxx - 4 digit error number
> Since I haven't gotten very far...if there is a better suggestion,  
> then it will be easier to change this sooner rather than later.

I've had a fair bit of i18n experience.  Using codes for for i18n has  
never went well.  It obfuscates code.  I've never run into a situation  
where having a code made it easer than a terse phrase:

return getMessage ("COMMW0002", key);

instead of

return getMessage ("tooManySubstitutions", key);

> 5)  Is there a way to have the .properties file(s) outside of the  
> jar?  I'm sure there is, but I haven't stumbled across it yet.   
> That's actually where I've been banging my head the last few days.

OSGi fragments?  :D


View raw message