Skip to content

Commit b706b72

Browse files
authored
Using localized strings for 'Process priority' setting
1 parent 3ee2ef8 commit b706b72

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Client/core/CSettings.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,16 +1013,16 @@ void CSettings::CreateGUI ( void )
10131013
vecTemp.fY += fLineHeight;
10141014

10151015
// Process priority
1016-
m_pPriorityLabel = reinterpret_cast < CGUILabel* > ( pManager->CreateLabel ( pTabAdvanced, "Process priority:" ) );
1016+
m_pPriorityLabel = reinterpret_cast < CGUILabel* > ( pManager->CreateLabel ( pTabAdvanced, _("Process priority:") ) );
10171017
m_pPriorityLabel->SetPosition ( CVector2D ( vecTemp.fX, vecTemp.fY ) );
10181018
m_pPriorityLabel->AutoSize ( );
10191019

10201020
m_pPriorityCombo = reinterpret_cast < CGUIComboBox* > ( pManager->CreateComboBox ( pTabAdvanced, "" ) );
10211021
m_pPriorityCombo->SetPosition ( CVector2D ( vecTemp.fX + fIndentX, vecTemp.fY - 1.0f ) );
10221022
m_pPriorityCombo->SetSize ( CVector2D ( fComboWidth, 95.0f ) );
1023-
m_pPriorityCombo->AddItem ( "Normal" )->SetData ( (void*)0 );
1024-
m_pPriorityCombo->AddItem ( "Above normal" )->SetData ( (void*)1 );
1025-
m_pPriorityCombo->AddItem ( "High" )->SetData ( (void*)2 );
1023+
m_pPriorityCombo->AddItem ( _("Normal") )->SetData ( (void*)0 );
1024+
m_pPriorityCombo->AddItem ( _("Above normal") )->SetData ( (void*)1 );
1025+
m_pPriorityCombo->AddItem ( _("High") )->SetData ( (void*)2 );
10261026
m_pPriorityCombo->SetReadOnly ( true );
10271027
vecTemp.fY += 29;
10281028

@@ -2940,9 +2940,9 @@ void CSettings::LoadData ( void )
29402940
// Process priority
29412941
int iVar;
29422942
CVARS_GET ( "process_priority", iVar );
2943-
if ( iVar == 0 ) m_pPriorityCombo->SetText ( "Normal" );
2944-
else if ( iVar == 1 ) m_pPriorityCombo->SetText ( "Above normal" );
2945-
else if ( iVar == 2 ) m_pPriorityCombo->SetText ( "High" );
2943+
if ( iVar == 0 ) m_pPriorityCombo->SetText ( _("Normal") );
2944+
else if ( iVar == 1 ) m_pPriorityCombo->SetText ( _("Above normal") );
2945+
else if ( iVar == 2 ) m_pPriorityCombo->SetText ( _("High") );
29462946
int PriorityClassList[] = { NORMAL_PRIORITY_CLASS, ABOVE_NORMAL_PRIORITY_CLASS, HIGH_PRIORITY_CLASS };
29472947
SetPriorityClass( GetCurrentProcess(), PriorityClassList[ CVARS_GET_VALUE < int > ( "process_priority" ) % 3 ] );
29482948

0 commit comments

Comments
 (0)