Print Page | Close Window

localizing "There are no items to show"

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=10876
Printed Date: 23 November 2024 at 2:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: localizing "There are no items to show"
Posted By: shares
Subject: localizing "There are no items to show"
Date 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



Replies:
Posted By: ijwelch
Date 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.


Posted By: jshan
Date 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.");
 


Posted By: mgampi
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net