Hello, I've been looking into the source code (of both 1.2.4 and 1.2.6, not cvs), and I have a question about the way a message bundle is looked up based on its name.
I understand from the code that the resource bundle is search: - in the page context - if not found, in the request context - if not found, in the application context This process make perfectly sense for me but I'm surprised how the search in the application context is done. From the code, we can see that the bundle is first searched by its name + the module prefix, then by its raw name. I would have done it the other way around, for two reasons: - If I specify in the code the correct bundle name with the module prefix appended, there is an extra search done (the one for "name + module prefix + module prefix") - If I have two resources bundles, one in the default module, one in a module "foo", with the same name in the config file, let's say for pictures (so it would be called "ImagesResources"). If I am in the module foo, I can't get access to the bundle "ImageResources" of the default module because it will always find the bundle "ImagesResources/foo" first. Before proposing reporting anything in bugzilla, I would like to know the opinion of the community on this issue (assuming that I managed to make it clear): should the lookup in application context be done first by raw name or by "name + module prefix"? Seb'