Cross-Platform GUI Programming with wxWidgets
|
You can also load other data such as images and sounds depending on the locale. You can use the same mechanism as for text, for example: wxBitmap bitmap(_("flag.png")); This code will cause flag.png to appear on your list of strings to translate, so you just translate the string flag.png into the appropriate file name for your platform, for example de/flag.png. Make sure that the translated versions are also available as true files in your application, or you can load them from a compressed archive (refer to Chapter 14, "Files and Streams"). |
|