- // if still no luck, ask the user - unless disabled
- if ( (encoding == wxFONTENCODING_SYSTEM) && interactive )
- {
- // prepare the dialog data
-
- // the dialog title
- wxString title(m_titleDialog);
- if ( !title )
- title << wxTheApp->GetAppName() << _(": unknown charset");
-
- // the message
- wxString msg;
- msg.Printf(_("The charset '%s' is unknown. You may select another "
- "charset to replace it with or choose [Cancel] if it "
- "cannot be replaced"), charset.c_str());
-
- // the list of choices
- static wxFontEncoding encodings[] =
- {
- wxFONTENCODING_ISO8859_1,
- wxFONTENCODING_ISO8859_2,
- wxFONTENCODING_ISO8859_3,
- wxFONTENCODING_ISO8859_4,
- wxFONTENCODING_ISO8859_5,
- wxFONTENCODING_ISO8859_6,
- wxFONTENCODING_ISO8859_7,
- wxFONTENCODING_ISO8859_8,
- wxFONTENCODING_ISO8859_9,
- wxFONTENCODING_ISO8859_10,
- wxFONTENCODING_ISO8859_11,
- wxFONTENCODING_ISO8859_12,
- wxFONTENCODING_ISO8859_13,
- wxFONTENCODING_ISO8859_14,
- wxFONTENCODING_ISO8859_15,
- wxFONTENCODING_KOI8,
- wxFONTENCODING_CP1250,
- wxFONTENCODING_CP1251,
- wxFONTENCODING_CP1252,
- wxFONTENCODING_CP1253,
- wxFONTENCODING_CP1254,
- wxFONTENCODING_CP1255,
- wxFONTENCODING_CP1256,
- wxFONTENCODING_CP1257,
- };
-
- static const wxChar* encodingNames[] =
- {
- "West European (ISO-8859-1/Latin 1)",
- "Central European (ISO-8859-2/Latin 2)",
- "Esperanto (ISO-8859-3)",
- "Baltic (ISO-8859-4)",
- "Cyrillic (Latin 5)",
- "Arabic (ISO-8859-6)"
- "Greek (ISO-8859-7)",
- "Hebrew (ISO-8859-8)",
- "Turkish (ISO-8859-9)",
- "Baltic II (ISO-8859-10)",
- "Thai (ISO-8859-11)",
- "ISO-8859-12",
- "ISO-8859-13",
- "ISO-8859-14",
- "West European new (ISO-8859-15/Latin 0)",
- "KOI8-R",
- "Windows Latin 2 (CP 1250)",
- "Windows Cyrillic (CP 1251)",
- "Windows Latin 1 (CP 1252)",
- "Windows Greek (CP 1253)",
- "Windows Turkish (CP 1254)",
- "Windows Hebrew (CP 1255)",
- "Windows Arabic (CP 1256)",
- "Windows Baltic (CP 1257)",
- };
-
- size_t count = WXSIZEOF(encodingNames);
-
- wxASSERT_MSG( count == WXSIZEOF(encodings),
- _T("inconsitency detected - forgot to update one of "
- "the arrays?") );