From: Matthew B. <mat...@co...> - 2005-05-25 10:12:37
|
Alistair Young wrote: > I've updated it all to use ResourceBundle: > > http://www.weblogs.uhi.ac.uk/sm00ay/?p=86 > > Before you can use the new system, you'll have to delete your > useroptions.html compiled class - that's the only one that's localised at > the moment. > > I've created a new "res" dir in the root of the tree: > res/templates > res/facility - e.g. for holding class strings > > I haven't modified the build file to copy the res dir to WEB-INF/classes > yet. Will do that tomorrow. > > The file paths dependencies are all gone now so it should work on windows. Cool. > One consequence of the resources as ResourceBundles in the classpath is, > if you change one, it does funny things to bod, like logs you out! They > are classes after all. So, if you change a string, you have to reload the > webapp. The context should only reload if it is set to it is set to automatically. I'd agree that this isn't the best situation. > The nice thing is they now use Locale, which is derived from > User.getLanguage(). The templates now only have to specify what the class [..snipped..] All sounding very nice. -- +--Matthew Buckett-----------------------------------------+ | VLE Developer, Learning Technologies Group | | Tel: +44 (0) 1865 283660 http://www.oucs.ox.ac.uk/ | +------------Computing Services, University of Oxford------+ |