git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51263
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
class wxMsgCatalog
{
public:
class wxMsgCatalog
{
public:
wxMsgCatalog() { m_conv = NULL; }
~wxMsgCatalog();
wxMsgCatalog() { m_conv = NULL; }
~wxMsgCatalog();
// load the catalog from disk (szDirPrefix corresponds to language)
bool Load(const wxString& dirPrefix, const wxString& name,
// load the catalog from disk (szDirPrefix corresponds to language)
bool Load(const wxString& dirPrefix, const wxString& name,
wxMessagesHash m_messages; // all messages in the catalog
wxString m_name; // name of the domain
wxMessagesHash m_messages; // all messages in the catalog
wxString m_name; // name of the domain
// the conversion corresponding to this catalog charset if we installed it
// as the global one
wxCSConv *m_conv;
// the conversion corresponding to this catalog charset if we installed it
// as the global one
wxCSConv *m_conv;
wxPluralFormsCalculatorPtr m_pluralFormsCalculator;
};
wxPluralFormsCalculatorPtr m_pluralFormsCalculator;
};
// wxMsgCatalog class
// ----------------------------------------------------------------------------
// wxMsgCatalog class
// ----------------------------------------------------------------------------
wxMsgCatalog::~wxMsgCatalog()
{
if ( m_conv )
wxMsgCatalog::~wxMsgCatalog()
{
if ( m_conv )
+#endif // !wxUSE_UNICODE
bool wxMsgCatalog::Load(const wxString& dirPrefix, const wxString& name,
const wxString& msgIdCharset, bool bConvertEncoding)
bool wxMsgCatalog::Load(const wxString& dirPrefix, const wxString& name,
const wxString& msgIdCharset, bool bConvertEncoding)
file.FillHash(m_messages, msgIdCharset, bConvertEncoding);
file.FillHash(m_messages, msgIdCharset, bConvertEncoding);
// we should use a conversion compatible with the message catalog encoding
// in the GUI if we don't convert the strings to the current conversion but
// as the encoding is global, only change it once, otherwise we could get
// we should use a conversion compatible with the message catalog encoding
// in the GUI if we don't convert the strings to the current conversion but
// as the encoding is global, only change it once, otherwise we could get
wxConvUI =
m_conv = new wxCSConv(file.GetCharset());
}
wxConvUI =
m_conv = new wxCSConv(file.GetCharset());
}
+#endif // !wxUSE_UNICODE