From: Rainer M. <rai...@we...> - 2007-01-18 20:48:12
|
>On the version number, I wonder if we can't better leave that >hardcoded. >The number is used to find the right jar file to retrieve XML files >and tile pictures. So it should not be tampered with. > >I have seen versions numbers automatically generated in some >development environments. In such cases, the generator changes >the source code to insert the version number in some predefined >place. We do this at Work, using a project-spezific-property-file, witch is packed in the project.jar the default user.properties are not in the jar, only in the packed-distribution-file. >In our case, it is included in LocalText (which is probably not >the right place, I would prefer to move it to Game). Before we use a property-file for the system-spezific-constants, we use the Main-Class, having an Interface, so non-project-spezifik classes can use this information If Games is such a Main class for non-ui-stuff, this would be a good place for it But as I read my digits father, you have allready done it - great. >I have been thinking on how we can best manage our resource bundles >(i.e. versions of LocalisedText_aa_BB.properties). >The contents may still be a bit fluid, although it will >settle down somewhat now all messages (should) have been included. > >I'm in favour of removing all comments and just leaving the >properties, sorted alphabetically. The sorting makes a comparison of >different versions very easy in a side-by-side scroller like >WinMerge. >This means that we have to drop all pretension of having the >bundle internally organised in some way, but that would be >hard to do and maintain anyhow. > >In the past I have used this alphabetic sort in a commercial >application with texts in 6 languages, and this way it was very >easy to spot differences (missing or redundant entries). > >What do you think? Some Comments are not up to date - right? I would prefer a mix - main groups and alphabetic order insite a group. So a User has not to translate the hole file, if he just need the normal ui-element to play with a friend, who can not read english. But as I read my digits, you have allready done it. Regards Rainer |