mirror of https://github.com/PCSX2/pcsx2.git
i18n: simplified some message allocations for the new presets system.
DevNote: pxE's are meant for long/multiline messages only, not individual words. :) git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4233 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
2930472b23
commit
bbf417b0d7
|
@ -738,19 +738,19 @@ int AppConfig::GeMaxPresetIndex()
|
||||||
|
|
||||||
bool AppConfig::isOkGetPresetTextAndColor( int n, wxString& label, wxColor& c )
|
bool AppConfig::isOkGetPresetTextAndColor( int n, wxString& label, wxColor& c )
|
||||||
{
|
{
|
||||||
static const wxString presetNamesAndColors[][2] =
|
const wxString presetNamesAndColors[][2] =
|
||||||
{
|
{
|
||||||
{ pxE("!Panel:Presets:Name:1", L"Safest"), L"Forest GREEN" },
|
{ _t("Safest"), L"Forest GREEN" },
|
||||||
{ pxE("!Panel:Presets:Name:2", L"Safe (faster)"), L"Dark Green" },
|
{ _t("Safe (faster)"), L"Dark Green" },
|
||||||
{ pxE("!Panel:Presets:Name:3", L"Balanced"), L"Blue" },
|
{ _t("Balanced"), L"Blue" },
|
||||||
{ pxE("!Panel:Presets:Name:4", L"Aggressive"), L"Purple" },
|
{ _t("Aggressive"), L"Purple" },
|
||||||
{ pxE("!Panel:Presets:Name:5", L"Aggressive plus"), L"Orange"},
|
{ _t("Aggressive plus"), L"Orange"},
|
||||||
{ pxE("!Panel:Presets:Name:6", L"Mostly Harmful"), L"Red" }
|
{ _t("Mostly Harmful"), L"Red" }
|
||||||
};
|
};
|
||||||
if( n<0 || n>GeMaxPresetIndex() )
|
if( n<0 || n>GeMaxPresetIndex() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
label = wxString::Format(L"%d - ", n+1) + presetNamesAndColors[n][0];
|
label = wxsFormat(L"%d - ", n+1) + presetNamesAndColors[n][0];
|
||||||
c = wxColor(presetNamesAndColors[n][1]);
|
c = wxColor(presetNamesAndColors[n][1]);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -152,10 +152,10 @@ void Dialogs::SysConfigDialog::AddPresetsControl()
|
||||||
|
|
||||||
|
|
||||||
*m_extraButtonSizer += 20;
|
*m_extraButtonSizer += 20;
|
||||||
*m_extraButtonSizer += *m_check_presets | pxMiddle;
|
*m_extraButtonSizer += m_check_presets | pxMiddle;
|
||||||
*m_extraButtonSizer += *m_slider_presets | pxMiddle;
|
*m_extraButtonSizer += m_slider_presets | pxMiddle;
|
||||||
*m_extraButtonSizer += 5;
|
*m_extraButtonSizer += 5;
|
||||||
*m_extraButtonSizer += *m_msg_preset | pxMiddle;
|
*m_extraButtonSizer += m_msg_preset | pxMiddle;
|
||||||
|
|
||||||
Connect( m_slider_presets->GetId(), wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( Dialogs::SysConfigDialog::Preset_Scroll ) );
|
Connect( m_slider_presets->GetId(), wxEVT_SCROLL_THUMBTRACK, wxScrollEventHandler( Dialogs::SysConfigDialog::Preset_Scroll ) );
|
||||||
Connect( m_slider_presets->GetId(), wxEVT_SCROLL_CHANGED, wxScrollEventHandler( Dialogs::SysConfigDialog::Preset_Scroll ) );
|
Connect( m_slider_presets->GetId(), wxEVT_SCROLL_CHANGED, wxScrollEventHandler( Dialogs::SysConfigDialog::Preset_Scroll ) );
|
||||||
|
|
Loading…
Reference in New Issue