Language of PrintPreview Toolbar
tiger@flynet.de
Sunday, March 09, 1997
Environment: VC++ 4.2b, Win 95
Hi there,
I've created a MDI Application with printing support, implementing MFC as a shared library
with german language support (using AppWiz). All the menus and buttons are shown properly in german,
except the Print-Preview-Toolbar (still in english). Is there something wrong with my Build-Settings,
or must I create my own Toolbar and override CView::OnFilePrintPreview()
and call DoPrintPreview(IDD_MYPREVIEW_TOOLBAR, ...) ? If so, why are
all other resources in german but not the PrintPreview ? If not, what's wrong ?
Thanks !
///////////////////////////////////////
// //
// Frank Leuenberger //
// tiger@flynet.de //
// //
///////////////////////////////////////
Kristoffer -- gjevre@filenet.com
Monday, March 10, 1997
[Mini-digest: 6 responses]
Some localization prototyping I did showed this exact thing. The
explanation and solution is as follows (This information comes from
Technical Note TN057: Localization of MFC Components):
Any MFC application that you build re-uses two things from MFC: code and
resources. That is, MFC has various error messages, built-in dialogs, and
other resources that are used by the MFC classes. In order to completely
localize your application, you need to localize not only your application's
resources, but also the resources which come directly from MFC.
The German files are in MFC\INCLUDE\L.DEU, for example. In order to cause
your application to use these RC files instead of the files located in
MFC\INCLUDE, simply add a /IC:\MSDEV\MFC\INCLUDE\L.DEU to your RC command
line (this is just an example - you would need to substitute your locale of
choice as well as the directory into which you installed Visual C++).
I hope this helps,
Kristoffer Gjevre
----------
From: tiger@flynet.de[SMTP:tiger@flynet.de]
Sent: Sunday, March 09, 1997 03:08
To: mfc-l@netcom.com
Subject: Language of PrintPreview Toolbar
Environment: VC++ 4.2b, Win 95
Hi there,
I've created a MDI Application with printing support, implementing MFC as a
shared library
with german language support (using AppWiz). All the menus and buttons are
shown properly in german,
except the Print-Preview-Toolbar (still in english). Is there something
wrong with my Build-Settings,
or must I create my own Toolbar and override CView::OnFilePrintPreview()
and call DoPrintPreview(IDD_MYPREVIEW_TOOLBAR, ...) ? If so, why are
all other resources in german but not the PrintPreview ? If not, what's
wrong ?
Thanks !
///////////////////////////////////////
// //
// Frank Leuenberger //
// tiger@flynet.de //
// //
///////////////////////////////////////
-----From: "=?ISO-8859-1?Q?Ignacio_Nicol=E1s_Rodr=EDguez?="
You should copy "MFC40DEU.DLL" with the name "MFC40LOC.DLL" to the system
directory.
Ignacio Nicolбs Rodrнguez - MCSD, Visual C++
Ignacio@Multimake.com.ar
IRodriguez@Envirolink.org
Nothing more powerfull, nothing easier than OLE/COM.
Nothing but OLE/COM.
----------
> Is there something wrong with my Build-Settings?
-----From: "=?ISO-8859-1?Q?Mats_M=E5nhav?="
Frank,
Have you used the resources that comes in the directory
mfc\include\l.deu.
There is an technical article on how to localize the MFC stuff. You
probably should read that carefully.
If that won't work there is always this way:
What I have done is to just supply a co=E5y of the resource used for
the Print Preview Buttons and translate that into the correct
language. MFC will use the first one it finds, starting looking in the
resources of the exefile.
> From: tiger@flynet.de
> To: mfc-l@netcom.com
> Date: Sun, 9 Mar 1997 11:07:58 +0000
> Subject: Language of PrintPreview Toolbar
> Priority: normal
> Reply-to: mfc-l@netcom.com
> Environment: VC++ 4.2b, Win 95
>
> Hi there,
>
> I've created a MDI Application with printing support, implementing MFC a=
s a shared library
> with german language support (using AppWiz). All the menus and buttons a=
re shown properly in german,
> except the Print-Preview-Toolbar (still in english). Is there something =
wrong with my Build-Settings,
> or must I create my own Toolbar and override CView::OnFilePrintPreview()=
> and call DoPrintPreview(IDD_MYPREVIEW_TOOLBAR, ...) ? If so, why are
> all other resources in german but not the PrintPreview ? If not, what's =
wrong ?
>
> Thanks !
> ///////////////////////////////////////
> // //
> // Frank Leuenberger //
> // tiger@flynet.de //
> // //
> ///////////////////////////////////////
>
>
-----From: Ben Burnett
Look through the MFC source ( *.rc ) files and just copy the print
preview ctrlbar into your project, change the text on the buttons into
German....should work, I think.
-----From: Brijesh Kumar Mishra
Hi Frank,
Just tell me which win95 you are working on. Is it a German or an English
one. Also Check whether the standard file open/save etc dialog boxes from
your application are shown properly.
- brijesh
----------
From: tiger@flynet.de[SMTP:tiger@flynet.de]
Sent: Sunday, March 09, 1997 4:37 PM
To: mfc-l@netcom.com
Subject: Language of PrintPreview Toolbar
Environment: VC++ 4.2b, Win 95
Hi there,
I've created a MDI Application with printing support, implementing MFC as a
shared library
with german language support (using AppWiz). All the menus and buttons are
shown properly in german,
except the Print-Preview-Toolbar (still in english). Is there something
wrong with my Build-Settings,
or must I create my own Toolbar and override CView::OnFilePrintPreview()
and call DoPrintPreview(IDD_MYPREVIEW_TOOLBAR, ...) ? If so, why are
all other resources in german but not the PrintPreview ? If not, what's
wrong ?
Thanks !
///////////////////////////////////////
// //
// Frank Leuenberger //
// tiger@flynet.de //
// //
///////////////////////////////////////
-----From: Qing Zhao
You need translate afxprint.rc file.
>----------
>From: tiger@flynet.de[SMTP:tiger@flynet.de]
>Sent: Sunday, March 09, 1997 06:07 AM
>To: mfc-l@netcom.com
>Subject: Language of PrintPreview Toolbar
>
>Environment: VC++ 4.2b, Win 95
>
>Hi there,
>
>I've created a MDI Application with printing support, implementing MFC as a
>shared library
>with german language support (using AppWiz). All the menus and buttons are
>shown properly in german,
>except the Print-Preview-Toolbar (still in english). Is there something wrong
>with my Build-Settings,
>or must I create my own Toolbar and override CView::OnFilePrintPreview()
>and call DoPrintPreview(IDD_MYPREVIEW_TOOLBAR, ...) ? If so, why are
>all other resources in german but not the PrintPreview ? If not, what's wrong
>?
>
>Thanks !
>///////////////////////////////////////
>// //
>// Frank Leuenberger //
>// tiger@flynet.de //
>// //
>///////////////////////////////////////
>
Become an MFC-L member
| Вернуться в корень Архива
|