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 |
From: Rainer M. <rai...@we...> - 2007-01-18 20:59:05
|
>> I propose that we agree beforehand upon the person who does it, and >> the time that it will be done, so that anyone else can stay away for a >> while. >> >> I would be prepard to do it next Sunday, >> probably in the (European) afternoon. >> > >I'm not sure if I'll have time before then. > I haved reserved the Saturday for rails, doing RailsMain and swing.* or layout moving. Whatever you want. Please think about the general project layout before breaking the CVS-History. Regards Rainer |
From: Erik V. <eri...@hc...> - 2007-01-18 22:20:03
|
> >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. Game is kind of a main class for the game engine itself, so this looked a logical place to me. > >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. ... yes, I had some spare time. Simple things can go fast with me... I had not thought of your proposal which looks reasonable to me. And indeed, TextPad (which I used for the sort) can sort selections as well. The old file was badly organised, mostly because I was too lazy to think about how to organise it, and even to stick to Brett's initial setup. But if you know how to structure a resource bundle, feel free.... Erik. |