ebmDevMag.com home
ebm Developer's Magazine
links

developer's mag
main page

article
part 1
part 2
part 3
part 4
part 5
part 6
part 7


6 - How to Adapt?

Obviously, the ebm will not remain at five languages forever. Your program should be as adaptable as possible - so what to do? If you anticipate future needs, you can use packages to make your program easily adaptable to new markets, or to distribute a product, and then upgrade easily. If compiling and distributing a new program isn't a problem, then embedded strings can be a simple solution; otherwise packages may be more convenient. In any case, what should your program do until you make the changes? In the previous string array solution, the program fails gracefully by pointing to the first language entry (English), but other options are straightforward to program. Likewise, the same can be done with packages. The key is to always offer a default, since something still needs to be displayed even if your code doesn't support (or recognize) the local OS language.

Previous Section
Next Section

Copyright © 2001-2006 ebmDevMag.com - Legal Notice