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. |