Create a ticket about this. With a patch will be even better! On Wed, Mar 21, 2012 at 12:55 AM, infiniter <infini...@gmail.com> wrote: > I can't use that TextTemplateResourceReference 'cause the style and locale > are set to null by default in the constructors and the filename passed to > PackagedTextTemplate is exactly the one passed in the constructor. > See: > public TextTemplateResourceReference(final Class<?> scope, final String > fileName, > final String contentType, final String encoding, IModel<Map<String, > Object>> variablesModel) { > super(scope, fileName); //STYLE AND LOCALE ARE NULL > > textTemplate = new PackagedTextTemplate(scope, fileName, contentType, > encoding); > this.variablesModel = variablesModel; > } > > i guess I'll have to implement that filename-solving part "manually" by > creating my own PackagedTextTemplate and changing the constructor where that > logic happens. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/support-for-L10N-in-templates-tp4479741p4490640.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org >
-- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org