Fix issues in strings that need to be translated (non ASCII7 strings, trailing spaces...)

This commit is contained in:
jean-pierre charras 2017-06-18 21:23:21 +02:00
parent 1466d0cee6
commit dfc49da29b
3 changed files with 8 additions and 8 deletions

View File

@ -55,9 +55,9 @@
void LIB_EDIT_FRAME::DisplayLibInfos()
{
PART_LIB* lib = GetCurLib();
wxString title = wxString::Format( L"Part Library Editor \u2014 %s%s",
wxString title = wxString::Format( _( "Part Library Editor -- %s %s" ),
lib ? lib->GetFullFileName() : _( "no library selected" ),
lib && lib->IsReadOnly() ? _( " [Read Only] ") : wxString( wxEmptyString ) );
lib && lib->IsReadOnly() ? _( "[Read Only]") : wxString( wxEmptyString ) );
SetTitle( title );
}

View File

@ -227,7 +227,7 @@ bool LIB_EDIT_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu )
if( not_edited )
{
msg = AddHotkeyName( _( "Delete Line " ), g_Libedit_Hokeys_Descr, HK_DELETE );
msg = AddHotkeyName( _( "Delete Line" ), g_Libedit_Hokeys_Descr, HK_DELETE );
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_DELETE_ITEM, msg,
KiBitmap( delete_segment_xpm ) );
}
@ -280,20 +280,20 @@ void AddMenusForPin( wxMenu* PopMenu, LIB_PIN* Pin, LIB_EDIT_FRAME* frame )
if( not_in_move )
{
msg = AddHotkeyName( _( "Move Pin " ), g_Libedit_Hokeys_Descr,
msg = AddHotkeyName( _( "Move Pin" ), g_Libedit_Hokeys_Descr,
HK_LIBEDIT_MOVE_GRAPHIC_ITEM );
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_MOVE_ITEM_REQUEST, msg, KiBitmap( move_xpm ) );
}
msg = AddHotkeyName( _( "Edit Pin " ), g_Libedit_Hokeys_Descr, HK_EDIT);
msg = AddHotkeyName( _( "Edit Pin" ), g_Libedit_Hokeys_Descr, HK_EDIT);
AddMenuItem( PopMenu, ID_LIBEDIT_EDIT_PIN, msg, KiBitmap( edit_xpm ) );
msg = AddHotkeyName( _( "Rotate Pin " ), g_Libedit_Hokeys_Descr, HK_ROTATE );
msg = AddHotkeyName( _( "Rotate Pin" ), g_Libedit_Hokeys_Descr, HK_ROTATE );
AddMenuItem( PopMenu, ID_LIBEDIT_ROTATE_ITEM, msg, KiBitmap( rotate_cw_xpm ) );
if( not_in_move )
{
msg = AddHotkeyName( _( "Delete Pin " ), g_Libedit_Hokeys_Descr, HK_DELETE );
msg = AddHotkeyName( _( "Delete Pin" ), g_Libedit_Hokeys_Descr, HK_DELETE );
AddMenuItem( PopMenu, ID_POPUP_LIBEDIT_DELETE_ITEM, msg, KiBitmap( delete_pin_xpm ) );
}

View File

@ -462,7 +462,7 @@ wxString SCH_LINE::GetSelectMenuText() const
switch( m_Layer )
{
case LAYER_NOTES:
txtfmt = _( "%s Graphic Line from (%s,%s) to (%s,%s) " );
txtfmt = _( "%s Graphic Line from (%s,%s) to (%s,%s)" );
break;
case LAYER_WIRE: