2017-03-14 16:13 GMT+01:00 Greg Huber <[email protected]>: > I replace: > > // search up class hierarchy > String msg = findMessage(aClass, aTextName, indexedTextName, > locale, args, null, valueStack); > > with: > > GetDefaultMessageReturnArg result = null; > if (indexedTextName == null) { > // Use a null for the defaultMessage to ensure > // package check is done if not found. Will get dev messages if > // not found in default packages. > result = getDefaultMessage(aTextName, locale, valueStack, args, > null); > } > String msg = null; > if (result == null) { > // search up class hierarchy > msg = findMessage(aClass, aTextName, indexedTextName, locale, > args, > null, valueStack); > } else { > msg = result.message; > } > > Guess I will have to continue this mod unless there is some way to override > the default search package nifty thing.
Hm... I think defining struts.custom.i18n.resources should resolve your problem struts.custom.i18n.resources=ApplicationResources Or you can implement your own LocalizedTextProvider and used instead the one provided by the framework (when my gets merged :) Anyway I think this is good to merge, we can think about improving it with another PR. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
