I have an application that adheres to multiple specifications that are very similar but require different verbs for identical actions. For example, one spec says jump, while the other might say hop.
I’m looking for something like CultureInfo (or possibly even CultureInfo but I feel that would be bad practice) to define these verbs. It must be configurable at runtime (spec change shouldn’t require a re-compile).
You could use a xml file in order to store the verbs
or organized by specification
Or use a different file for every specification
File: spec1.xml
File: spec2.xml
Finally, in a separate configuration file, define which specification was selected. It could be a plain text file containing just the name of the specification or it could be another xml file containing different application settings.
Personally I find it handy to use an old style ini-file. It is easy to read and to change, even by no-programmers.