adding all encodings on mac

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2009-04-14 17:44:51 +00:00
parent 29d61827e1
commit ba9e5c4d90

View File

@ -100,6 +100,47 @@ static wxFontEncoding gs_encodings[] =
wxFONTENCODING_SHIFT_JIS,
wxFONTENCODING_GB2312,
wxFONTENCODING_ISO2022_JP,
wxFONTENCODING_MACROMAN,
wxFONTENCODING_MACJAPANESE,
wxFONTENCODING_MACCHINESETRAD,
wxFONTENCODING_MACKOREAN,
wxFONTENCODING_MACARABIC,
wxFONTENCODING_MACHEBREW,
wxFONTENCODING_MACGREEK,
wxFONTENCODING_MACCYRILLIC,
wxFONTENCODING_MACDEVANAGARI,
wxFONTENCODING_MACGURMUKHI,
wxFONTENCODING_MACGUJARATI,
wxFONTENCODING_MACORIYA,
wxFONTENCODING_MACBENGALI,
wxFONTENCODING_MACTAMIL,
wxFONTENCODING_MACTELUGU,
wxFONTENCODING_MACKANNADA,
wxFONTENCODING_MACMALAJALAM,
wxFONTENCODING_MACSINHALESE,
wxFONTENCODING_MACBURMESE,
wxFONTENCODING_MACKHMER,
wxFONTENCODING_MACTHAI,
wxFONTENCODING_MACLAOTIAN,
wxFONTENCODING_MACGEORGIAN,
wxFONTENCODING_MACARMENIAN,
wxFONTENCODING_MACCHINESESIMP,
wxFONTENCODING_MACTIBETAN,
wxFONTENCODING_MACMONGOLIAN,
wxFONTENCODING_MACETHIOPIC,
wxFONTENCODING_MACCENTRALEUR,
wxFONTENCODING_MACVIATNAMESE,
wxFONTENCODING_MACARABICEXT,
wxFONTENCODING_MACSYMBOL,
wxFONTENCODING_MACDINGBATS,
wxFONTENCODING_MACTURKISH,
wxFONTENCODING_MACCROATIAN,
wxFONTENCODING_MACICELANDIC,
wxFONTENCODING_MACROMANIAN,
wxFONTENCODING_MACCELTIC,
wxFONTENCODING_MACGAELIC,
wxFONTENCODING_MACKEYBOARD
};
// the descriptions for them
@ -155,6 +196,47 @@ static const char* gs_encodingDescs[] =
wxTRANSLATE( "SHIFT-JIS" ),
wxTRANSLATE( "GB-2312" ),
wxTRANSLATE( "ISO-2022-JP" ),
wxTRANSLATE( "MacRoman" ),
wxTRANSLATE( "MacJapanese" ),
wxTRANSLATE( "MacChineseTrad" ),
wxTRANSLATE( "MacKorean" ),
wxTRANSLATE( "MacArabic" ),
wxTRANSLATE( "MacHebrew" ),
wxTRANSLATE( "MacGreek" ),
wxTRANSLATE( "MacCyrillic" ),
wxTRANSLATE( "MacDevanagari" ),
wxTRANSLATE( "MacGurmukhi" ),
wxTRANSLATE( "MacGujarati" ),
wxTRANSLATE( "MacOriya" ),
wxTRANSLATE( "MacBengali" ),
wxTRANSLATE( "MacTamil" ),
wxTRANSLATE( "MacTelugu" ),
wxTRANSLATE( "MacKannada" ),
wxTRANSLATE( "MacMalayalam" ),
wxTRANSLATE( "MacSinhalese" ),
wxTRANSLATE( "MacBurmese" ),
wxTRANSLATE( "MacKhmer" ),
wxTRANSLATE( "MacThai" ),
wxTRANSLATE( "MacLaotian" ),
wxTRANSLATE( "MacGeorgian" ),
wxTRANSLATE( "MacArmenian" ),
wxTRANSLATE( "MacChineseSimp" ),
wxTRANSLATE( "MacTibetan" ),
wxTRANSLATE( "MacMongolian" ),
wxTRANSLATE( "MacEthiopic" ),
wxTRANSLATE( "MacCentralEurRoman" ),
wxTRANSLATE( "MacVietnamese" ),
wxTRANSLATE( "MacExtArabic" ),
wxTRANSLATE( "MacSymbol" ),
wxTRANSLATE( "MacDingbats" ),
wxTRANSLATE( "MacTurkish" ),
wxTRANSLATE( "MacCroatian" ),
wxTRANSLATE( "MacIcelandic" ),
wxTRANSLATE( "MacRomanian" ),
wxTRANSLATE( "MacCeltic" ),
wxTRANSLATE( "MacGaelic" ),
wxTRANSLATE( "MacKeyboardGlyphs" )
};
// and the internal names (these are not translated on purpose!)
@ -223,6 +305,48 @@ static const wxChar* gs_encodingNames[WXSIZEOF(gs_encodingDescs)][9] =
{ wxT( "SJIS" ), wxT( "SHIFT-JIS" ), wxT( "SHIFT_JIS" ), NULL },
{ wxT( "GB2312" ), NULL },
{ wxT( "ISO-2022-JP" ), NULL },
{ wxT( "MacRoman" ), NULL },
{ wxT( "MacJapanese" ), NULL },
{ wxT( "MacChineseTrad" ), NULL },
{ wxT( "MacKorean" ), NULL },
{ wxT( "MacArabic" ), NULL },
{ wxT( "MacHebrew" ), NULL },
{ wxT( "MacGreek" ), NULL },
{ wxT( "MacCyrillic" ), NULL },
{ wxT( "MacDevanagari" ), NULL },
{ wxT( "MacGurmukhi" ), NULL },
{ wxT( "MacGujarati" ), NULL },
{ wxT( "MacOriya" ), NULL },
{ wxT( "MacBengali" ), NULL },
{ wxT( "MacTamil" ), NULL },
{ wxT( "MacTelugu" ), NULL },
{ wxT( "MacKannada" ), NULL },
{ wxT( "MacMalayalam" ), NULL },
{ wxT( "MacSinhalese" ), NULL },
{ wxT( "MacBurmese" ), NULL },
{ wxT( "MacKhmer" ), NULL },
{ wxT( "MacThai" ), NULL },
{ wxT( "MacLaotian" ), NULL },
{ wxT( "MacGeorgian" ), NULL },
{ wxT( "MacArmenian" ), NULL },
{ wxT( "MacChineseSimp" ), NULL },
{ wxT( "MacTibetan" ), NULL },
{ wxT( "MacMongolian" ), NULL },
{ wxT( "MacEthiopic" ), NULL },
{ wxT( "MacCentralEurRoman" ), NULL },
{ wxT( "MacVietnamese" ), NULL },
{ wxT( "MacExtArabic" ), NULL },
{ wxT( "MacSymbol" ), NULL },
{ wxT( "MacDingbats" ), NULL },
{ wxT( "MacTurkish" ), NULL },
{ wxT( "MacCroatian" ), NULL },
{ wxT( "MacIcelandic" ), NULL },
{ wxT( "MacRomanian" ), NULL },
{ wxT( "MacCeltic" ), NULL },
{ wxT( "MacGaelic" ), NULL },
{ wxT( "MacKeyboardGlyphs" ), NULL }
};
wxCOMPILE_TIME_ASSERT( WXSIZEOF(gs_encodingDescs) == WXSIZEOF(gs_encodings), EncodingsArraysNotInSync );