github_plugin.cpp: in error message relative to"cannot get zip archive...", line 496, make the sentence relative to http GET command not translatable

inside the full translated message.
This commit is contained in:
jean-pierre charras 2014-01-27 09:48:17 +01:00
parent 9afc4a0db6
commit e07b4cbe86
2 changed files with 4 additions and 2 deletions

View File

@ -493,9 +493,11 @@ void GITHUB_PLUGIN::remote_get_zip( const wxString& aRepoURL ) throw( IO_ERROR )
catch( boost::system::system_error& e ) catch( boost::system::system_error& e )
{ {
// https "GET" has faild, report this to API caller. // https "GET" has faild, report this to API caller.
wxString fmt( _( "Cannot get/download Zip archive: '%s'\nfor library path: '%s'.\nReason: '%s'" ) ); wxString errorcmd( wxT("https GET command failed") ); // Do not translate this message
wxString fmt( _( "%s\nCannot get/download Zip archive: '%s'\nfor library path: '%s'.\nReason: '%s'" ) );
string msg = StrPrintf( TO_UTF8( fmt ), string msg = StrPrintf( TO_UTF8( fmt ),
TO_UTF8( errorcmd ),
zip_url.c_str(), zip_url.c_str(),
TO_UTF8( aRepoURL ), TO_UTF8( aRepoURL ),
e.what() ); e.what() );

View File

@ -328,7 +328,7 @@ void PCB_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition )
if( IsLayerInList( EDGE_LAYER, getActiveLayer() ) ) if( IsLayerInList( EDGE_LAYER, getActiveLayer() ) )
{ {
DisplayError( this, DisplayError( this,
_( "Texts not allowed on Edge Cut layers" ) ); _( "Texts not allowed on Edge Cut layer" ) );
break; break;
} }