X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a05da1b6827f40c0beb97225e9861356343e196b..696e1ea0b7cee1394693a0e507bbf49c9863952b:/src/common/imagpcx.cpp diff --git a/src/common/imagpcx.cpp b/src/common/imagpcx.cpp index 4f5ecbb328..ee9c9a0c21 100644 --- a/src/common/imagpcx.cpp +++ b/src/common/imagpcx.cpp @@ -30,7 +30,7 @@ #include "wx/wfstream.h" #include "wx/module.h" #include "wx/log.h" - +#include "wx/intl.h" //----------------------------------------------------------------------------- // PCX decoding @@ -222,14 +222,14 @@ int ReadPCX(wxImage *image, wxInputStream& stream) IMPLEMENT_DYNAMIC_CLASS(wxPCXHandler,wxImageHandler) #endif -bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose ) +bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose, int WXUNUSED(index) ) { int error; if (!CanRead(stream)) { if (verbose) - wxLogError(wxT("wxPCXHandler: this is not a PCX file")); + wxLogError(_("PCX: this is not a PCX file.")); return FALSE; } @@ -242,10 +242,10 @@ bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose { switch (error) { - case E_FORMATO: wxLogError(wxT("wxPCXHandler: image format unsupported")); break; - case E_MEMORIA: wxLogError(wxT("wxPCXHandler: couldn't allocate memory")); break; - case E_VERSION: wxLogError(wxT("wxPCXHandler: version number too low")); break; - default: wxLogError(wxT("wxPCXHandler: unknown error !!!")); + case E_FORMATO: wxLogError(_("PCX: Image format unsupported.")); break; + case E_MEMORIA: wxLogError(_("PCX: Couldn't allocate memory.")); break; + case E_VERSION: wxLogError(_("PCX: Wrong version number.")); break; + default: wxLogError(_("PCX: Unknown error.")); } } image->Destroy(); @@ -257,8 +257,7 @@ bool wxPCXHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose bool wxPCXHandler::SaveFile( wxImage *WXUNUSED(image), wxOutputStream& WXUNUSED(stream), bool verbose ) { - if (verbose) - wxLogError(wxT("wxPCXHandler::SaveFile still not implemented")); + wxFAIL_MSG(wxT("wxPCXHandler::SaveFile still not implemented")); return FALSE; }