Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - localizing "There are no items to show"
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

localizing "There are no items to show"

 Post Reply Post Reply
Author
Message
shares View Drop Down
Groupie
Groupie


Joined: 14 March 2008
Location: United States
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote shares Quote  Post ReplyReply Direct Link To This Post Topic: localizing "There are no items to show"
    Posted: 02 June 2008 at 8:16pm
Hi, what do I need to do to localize the empty report message "There are no items to show". I need to support French and German.

Thanks
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post Posted: 02 June 2008 at 8:39pm
Hi,

I use COM version and this is handled by setting the ReportControl.PaintManager.NoItemsText property.

I don't know how this translates to MFC but maybe now you can find it.
Back to Top
jshan View Drop Down
Groupie
Groupie
Avatar

Joined: 07 December 2007
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote jshan Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2008 at 12:16am
You have two options.
 
one is to edit the report resource file for a specfigic language which not translated yet.
 
another is to edit the strings dynamically like follows.
 
GetPaintManager()->m_strNoGroupBy = _T("Drag a column header here to group by that column.");
    GetPaintManager()->m_strNoItems = _T("There are no items to show.");
 
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1201
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2008 at 1:34am
Hi;
As far as I know, these strings are allready translated into the required languages. All you have to do is switching the whole toolkit library to the desired language (see samples).
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.