From: Alexis O'C. <ale...@co...> - 2005-07-14 10:07:48
|
Alistair Young wrote: > Now that localsation is sorted, I propose we leave the res dir as is, > i.e. an exact mirroring of the template dir, with template names as > directories, containig strings_en.properties, strings_gd.properties etc. > > I can't see anyone having multiple strings_en.properties open in an > editor as they would be for different templates. If multiple templates > share localised content then that content should be in res.generic, not > res.templates > > Alistair > I realize I should have replied to this yesterday, but I think Colin's suggested mapping *is* better and it would be better to get it right now. We at Oxford *are* happy to do this (and, yes, I did consult Matthew & Colin!). So we will do all the ones that are currently in style_default/default too. Just to re-cap, this mapping is: * the resource folder mirrors the template one (e.g. templates rooted at tomcatadd/webapps/bodington/templates, resources rooted at res/templates. * the name of the resource file is the name of the template, with the suffix _[lanaguage code], where the suffix for english would be _en. As an example tomcatadd/webapps/bodington/templates/style_default/messagingroom/useroptions.html, would have mapped to res/templates/style_default/messagingroom/useroptions/strings_en.properties. It now maps to res/templates/style_default/messagingroom/useroptions_en.properties. This example I have in fact committed back to CVS. I will now proceed with style_default/default (just locally for starters!). If anyone really has strong objections to this mapping, speak now. Otherwise, I/we will proceed with this change. Alexis |