Make names of properties used in wxPropertyGrid translatable.

Use _() around these user-visible strings, not wxT().

Closes #16266.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-05-17 12:29:31 +00:00
parent d94e807cfc
commit 401957aba6

View File

@@ -841,31 +841,31 @@ void wxFontProperty::OnCustomPaint(wxDC& dc,
//#define wx_cp_es_syscolours_len 25 //#define wx_cp_es_syscolours_len 25
static const wxChar* const gs_cp_es_syscolour_labels[] = { static const wxChar* const gs_cp_es_syscolour_labels[] = {
wxT("AppWorkspace"), _("AppWorkspace"),
wxT("ActiveBorder"), _("ActiveBorder"),
wxT("ActiveCaption"), _("ActiveCaption"),
wxT("ButtonFace"), _("ButtonFace"),
wxT("ButtonHighlight"), _("ButtonHighlight"),
wxT("ButtonShadow"), _("ButtonShadow"),
wxT("ButtonText"), _("ButtonText"),
wxT("CaptionText"), _("CaptionText"),
wxT("ControlDark"), _("ControlDark"),
wxT("ControlLight"), _("ControlLight"),
wxT("Desktop"), _("Desktop"),
wxT("GrayText"), _("GrayText"),
wxT("Highlight"), _("Highlight"),
wxT("HighlightText"), _("HighlightText"),
wxT("InactiveBorder"), _("InactiveBorder"),
wxT("InactiveCaption"), _("InactiveCaption"),
wxT("InactiveCaptionText"), _("InactiveCaptionText"),
wxT("Menu"), _("Menu"),
wxT("Scrollbar"), _("Scrollbar"),
wxT("Tooltip"), _("Tooltip"),
wxT("TooltipText"), _("TooltipText"),
wxT("Window"), _("Window"),
wxT("WindowFrame"), _("WindowFrame"),
wxT("WindowText"), _("WindowText"),
wxT("Custom"), _("Custom"),
(const wxChar*) NULL (const wxChar*) NULL
}; };
@@ -1503,7 +1503,7 @@ bool wxSystemColourProperty::DoSetAttribute( const wxString& name, wxVariant& va
if ( ival && (m_flags & wxPG_PROP_HIDE_CUSTOM_COLOUR) ) if ( ival && (m_flags & wxPG_PROP_HIDE_CUSTOM_COLOUR) )
{ {
// Show custom choice // Show custom choice
m_choices.Insert(wxT("Custom"), GetCustomColourIndex(), wxPG_COLOUR_CUSTOM); m_choices.Insert(_("Custom"), GetCustomColourIndex(), wxPG_COLOUR_CUSTOM);
m_flags &= ~(wxPG_PROP_HIDE_CUSTOM_COLOUR); m_flags &= ~(wxPG_PROP_HIDE_CUSTOM_COLOUR);
} }
else if ( !ival && !(m_flags & wxPG_PROP_HIDE_CUSTOM_COLOUR) ) else if ( !ival && !(m_flags & wxPG_PROP_HIDE_CUSTOM_COLOUR) )
@@ -1523,16 +1523,16 @@ bool wxSystemColourProperty::DoSetAttribute( const wxString& name, wxVariant& va
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
static const wxChar* const gs_cp_es_normcolour_labels[] = { static const wxChar* const gs_cp_es_normcolour_labels[] = {
wxT("Black"), _("Black"),
wxT("Red"), _("Red"),
wxT("Green"), _("Green"),
wxT("Blue"), _("Blue"),
wxT("Cyan"), _("Cyan"),
wxT("Magenta"), _("Magenta"),
wxT("Yellow"), _("Yellow"),
wxT("White"), _("White"),
wxT("Grey"), _("Grey"),
wxT("Custom"), _("Custom"),
(const wxChar*) NULL (const wxChar*) NULL
}; };
@@ -1619,34 +1619,34 @@ wxVariant wxColourProperty::DoTranslateVal( wxColourPropertyValue& v ) const
//#define wx_cp_es_syscursors_len 28 //#define wx_cp_es_syscursors_len 28
static const wxChar* const gs_cp_es_syscursors_labels[NUM_CURSORS+1] = { static const wxChar* const gs_cp_es_syscursors_labels[NUM_CURSORS+1] = {
wxT("Default"), _("Default"),
wxT("Arrow"), _("Arrow"),
wxT("Right Arrow"), _("Right Arrow"),
wxT("Blank"), _("Blank"),
wxT("Bullseye"), _("Bullseye"),
wxT("Character"), _("Character"),
wxT("Cross"), _("Cross"),
wxT("Hand"), _("Hand"),
wxT("I-Beam"), _("I-Beam"),
wxT("Left Button"), _("Left Button"),
wxT("Magnifier"), _("Magnifier"),
wxT("Middle Button"), _("Middle Button"),
wxT("No Entry"), _("No Entry"),
wxT("Paint Brush"), _("Paint Brush"),
wxT("Pencil"), _("Pencil"),
wxT("Point Left"), _("Point Left"),
wxT("Point Right"), _("Point Right"),
wxT("Question Arrow"), _("Question Arrow"),
wxT("Right Button"), _("Right Button"),
wxT("Sizing NE-SW"), _("Sizing NE-SW"),
wxT("Sizing N-S"), _("Sizing N-S"),
wxT("Sizing NW-SE"), _("Sizing NW-SE"),
wxT("Sizing W-E"), _("Sizing W-E"),
wxT("Sizing"), _("Sizing"),
wxT("Spraycan"), _("Spraycan"),
wxT("Wait"), _("Wait"),
wxT("Watch"), _("Watch"),
wxT("Wait Arrow"), _("Wait Arrow"),
(const wxChar*) NULL (const wxChar*) NULL
}; };