DP:
1. _() calls added where needed. 2. const added in params in postscrp.[h,cpp] in order to compile with _(). 3. Some .cvsignore added. (I did not found any .cvsignore in repository, it is rather hard to compile something without them...) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "wx/dc.h"
|
||||
#include "wx/app.h"
|
||||
#include "wx/msgdlg.h"
|
||||
#include <wx/intl.h>
|
||||
#endif
|
||||
|
||||
#include "wx/generic/printps.h"
|
||||
@@ -155,7 +156,7 @@ bool wxPostScriptPrinter::Print(wxWindow *parent, wxPrintout *printout, bool pro
|
||||
if (!printout->OnBeginDocument(printData.GetFromPage(), printData.GetToPage()))
|
||||
{
|
||||
wxEndBusyCursor();
|
||||
wxMessageBox("Could not start printing.", "Print Error", wxOK, parent);
|
||||
wxMessageBox(_("Could not start printing."), _("Print Error"), wxOK, parent);
|
||||
break;
|
||||
}
|
||||
if (abortIt)
|
||||
@@ -229,11 +230,11 @@ void wxPostScriptPrintPreview::DetermineScaling(void)
|
||||
{
|
||||
const char *paperType = wxThePrintSetupData->GetPaperName();
|
||||
if (!paperType)
|
||||
paperType = "A4 210 x 297 mm";
|
||||
paperType = _("A4 210 x 297 mm");
|
||||
|
||||
wxPrintPaperType *paper = wxThePrintPaperDatabase->FindPaperType(paperType);
|
||||
if (!paper)
|
||||
paper = wxThePrintPaperDatabase->FindPaperType("A4 210 x 297 mm");
|
||||
paper = wxThePrintPaperDatabase->FindPaperType(_("A4 210 x 297 mm"));
|
||||
if (paper)
|
||||
{
|
||||
previewPrintout->SetPPIScreen(100, 100);
|
||||
|
Reference in New Issue
Block a user