Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cTextLocMgr.h File Reference

Go to the source code of this file.

Classes

class  GrayLib::cTextLocEntry
 
class  GrayLib::cTextLocMgr
 

Namespaces

 GrayLib
 

Typedefs

typedef const GChar_t * GrayLib::TEXTLOC_t
 id for a string from resource or some other file. (might be a "string" or a MAKINTRESOURCE(RESOURCEID_t)) More...
 

Functions

 GrayLib::UNITTEST2_PREDEF (cTextLocMgr)
 

Variables

__DECL_IMPORT cTextLocMgr GrayLib::g_Text
 default application language. ENU. Not cSingleton More...
 

Detailed Description

Localizable text resources. Perhaps model this after http://www.gnu.org/software/gettext/gettext.html in the future ?

  1. GetString( "String" ) // used inline to create code
  2. Sweep code for all GetString() instances and place each in a file.
  3. Text file is 'optional code,"English %1%2","Other lang %2%1"' repeated
  4. translation file is read. each string is converted to a hash.
  5. All strings are in the FormatMessage( "test %1 more %2" )