![]() |
localizing "There are no items to show" |
Post Reply ![]() |
Author | |
shares ![]() Groupie ![]() Joined: 14 March 2008 Location: United States Status: Offline Points: 13 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
ijwelch ![]() Senior Member ![]() Joined: 20 June 2006 Status: Offline Points: 262 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
jshan ![]() Groupie ![]() ![]() Joined: 07 December 2007 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
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."); |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |