Fix some (minor) issues related to string translation
- Avoid not printable chars in strings to translate - remove a trailing space. - disambiguate to short strings.
This commit is contained in:
@@ -1284,14 +1284,14 @@ TOOL_ACTION EE_ACTIONS::repairSchematic( TOOL_ACTION_ARGS()
|
||||
TOOL_ACTION EE_ACTIONS::previousUnit( TOOL_ACTION_ARGS()
|
||||
.Name( "eeschema.EditorControl.previousUnit" )
|
||||
.Scope( AS_GLOBAL )
|
||||
.FriendlyName( _( "Previous Unit" ) )
|
||||
.FriendlyName( _( "Previous Symbol Unit" ) )
|
||||
.Tooltip( _( "Open the previous unit of the symbol" ) )
|
||||
.Parameter<int>( -1 ) );
|
||||
|
||||
TOOL_ACTION EE_ACTIONS::nextUnit( TOOL_ACTION_ARGS()
|
||||
.Name( "eeschema.EditorControl.nextUnit" )
|
||||
.Scope( AS_GLOBAL )
|
||||
.FriendlyName( _( "Next Unit" ) )
|
||||
.FriendlyName( _( "Next Symbol Unit" ) )
|
||||
.Tooltip( _( "Open the next unit of the symbol" ) )
|
||||
.Parameter<int>( 1 ) );
|
||||
|
||||
|
||||
@@ -122,15 +122,17 @@ bool JOBS_RUNNER::RunJobsForOutput( JOBSET_OUTPUT* aOutput, bool aBail )
|
||||
|
||||
if( m_reporter )
|
||||
{
|
||||
wxString msg_fmt = wxT( "\033[32;1m%s\033[0m\n" );
|
||||
|
||||
if( result == 0 )
|
||||
{
|
||||
msg = _( "\033[32;1mJob successful\033[0m\n" );
|
||||
msg = wxString::Format( msg_fmt, _( "Job successful" ) );
|
||||
|
||||
successCount++;
|
||||
}
|
||||
else
|
||||
{
|
||||
msg = _( "\033[31;1mJob failed\033[0m\n" );
|
||||
msg = wxString::Format( msg_fmt, _( "Job failed" ) );
|
||||
|
||||
failCount++;
|
||||
}
|
||||
@@ -159,8 +161,11 @@ bool JOBS_RUNNER::RunJobsForOutput( JOBSET_OUTPUT* aOutput, bool aBail )
|
||||
|
||||
if( m_reporter )
|
||||
{
|
||||
msg = wxString::Format( _( "\n\n\033[33;1m%d jobs succeeded, %d job failed\033[0m\n" ),
|
||||
successCount, failCount );
|
||||
msg = wxString::Format( wxT( "\n\n\033[33;1m%d %s, %d %s\033[0m\n" ),
|
||||
successCount,
|
||||
wxT( "jobs succeeded" ),
|
||||
failCount,
|
||||
wxT( "job failed" ) );
|
||||
|
||||
m_reporter->Report( msg, RPT_SEVERITY_INFO );
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ DIALOG_TEXT_PROPERTIES_BASE::DIALOG_TEXT_PROPERTIES_BASE( wxWindow* parent, wxWi
|
||||
wxBoxSizer* bSizerBottom;
|
||||
bSizerBottom = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
m_buttonUpdateTh = new wxButton( this, wxID_ANY, _("Update thickness according to text size "), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_buttonUpdateTh = new wxButton( this, wxID_ANY, _("Update thickness according to text size"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_buttonUpdateTh->SetToolTip( _("Set the best text thickness from the text width and height\nNormal text: thickness is size/8\nBold text: thickness is size/5") );
|
||||
|
||||
bSizerBottom->Add( m_buttonUpdateTh, 0, wxALL, 5 );
|
||||
|
||||
@@ -3082,7 +3082,7 @@
|
||||
<property name="gripper">0</property>
|
||||
<property name="hidden">0</property>
|
||||
<property name="id">wxID_ANY</property>
|
||||
<property name="label">Update thickness according to text size </property>
|
||||
<property name="label">Update thickness according to text size</property>
|
||||
<property name="margins"></property>
|
||||
<property name="markup">0</property>
|
||||
<property name="max_size"></property>
|
||||
|
||||
Reference in New Issue
Block a user