If this is for resource bundles then don't you already have the correct files?

In other words for _en and _ja locales the corresponding property files will be found and then for any other locale the default file will be used, ie ApplicationResources.properties.

org.apache/.../ApplicationResources.properties
org.apache/.../ApplicationResources_ja.properties
org.apache/.../ApplicationResources_en.properties

Not sure what name you want for the fourth file.

In fact if the default is english then you could even remove the _en.properties file.

- AW

On 19 Nov 2005, at 17:02, Wendy Smoak wrote:

On 11/19/05, Arik Kfir <[EMAIL PROTECTED]> wrote:
I don't think there's a way to do this with maven alone (maven team,
correct me?).

However, you can create a small plugin that binds to the
'generate-sources' phase and generates the properties you need.

Time to learn how to write plugins, then. :) I figured this was coming...

OTH - this looks like a resource bundle - and if I'm not mistaken, the
resource bundle is supposed to look for "parent" bundles if it can't
find a bundle in your locale. So, if your locale is 'en', and it can't
find 'xxx_en.properties', it should look for 'xxx.properties' - see
the JDK java.util.ResourceBundle for details (and if this is not for
Resourcebundle - ignore  this :))

It is... but the comment in the Ant build file says "Copy the default
message bundle to avoid problems if the server locale is not English."
 And I don't know enough about it to argue the point.

Thanks!
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to