tags:

views:

124

answers:

1

I don’t want to have my messages to the user stored in the application, or in a resource file.

By message I mean, those difficult strings that we have to write to tell the user what is going on or wrong in the application at the precise time.

Is there a simple message generator?

Simple stuff, but as to handle singular/plural and feminine/masculine.

+1  A: 

There's never an easy solution for this.

Sometimes people use database stored messages, or in some configuration file, that depends on the application.

Paulo Santos
That is why I want to generate the messages, and not store them anywhere. I have been working in a simple solution. It generates the messages based on simple input, application location, section, etc. My problem now is the masculine/feminine and singular/plural. May native and output language is Portuguese, but I think it applies to any language. I know the rules to form this are very different from language to language. So far it works. Reduced my code complexity and clarified it a lot. Also the EXE size reduced dramatically.
Jlouro