Localization
(1)
Console
(1)
Application
(1)
Develop
(1)
Class
(1)
Library
(1)
Functionality
(1)
Error
(1)

localization with console application?

Asked By Ian
27-Oct-06 06:16 PM
I want to develop a class library in C++ that provides non-GUI
functionality.  Error detection is implemented using exceptions and I would
like the error messages to be supported in multiple languages.   VS2005
easily supports localization if window forms are used.   However, I would
like to develop and test the class library using a series of console
applications.  My question is, can a console application support
localization?  If so, how are the fallback resources defined because, by
default, a console application does not include, for example, a 'resx' file?

Thanks

Ian

VS2005 supports satellite assemblies which are language-specific versions of

Asked By Bryan Phillips
28-Oct-06 05:03 PM
VS2005 supports satellite assemblies which are language-specific
versions of your localized resources.  The localization provided by the
WinForms designer is not specific for WinForms.  I wrote a multi-lingual
app last year that was translated into 3 versions of Chinese, Russian,
French, and Spanish.

Look at the ResourceManager class in MSDN help for more information.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com

Hi Ian,Non-GUI is good, people waste a lot of time on GUI apps instead of

Asked By Gerry Hickman
28-Oct-06 06:50 PM
Hi Ian,


Non-GUI is good, people waste a lot of time on GUI apps instead of
separating the cross-platform standards-compliant back-end engine from
the UI it will eventually be displayed in, preferably a W3C compliant
web rendering surface that's runs on multiple platforms.


There are a lot of options from Microsoft depending on the libraries you
use with the app such as STL/MFC/ATL. I just had a look in the MSDN docs
and if you search for either "internationalization" or "localization"
you can get a lot of information (but most of it is for GUI apps). It's
hard to comment further because there were so many options. One thing I
have found works well with console apps is to stick to UNICODE, there
are then functions that can adapt themselves (without recoding) to
either UNICODE or ANSI just by changing a few #define's, you can use
*.RC files for resources...

--
Gerry Hickman (London UK)

localization with console application?

Asked By Ian
29-Oct-06 11:08 AM
Hello Bryan,

This is very helpful information knowing that I will not be going off on a
wild goose chase.


Ian
Post Question To EggHeadCafe