wxWidgets: wxMsgCatalog Class Reference

| Version: 3.1.5

Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
wxMsgCatalog Class Reference

`#include </cygdrive/c/Users/Hamis/Cygwin-packaging/wxWidgets3.1/wxWidgets3.1-3.1.5-4.x86_64/src/wxWidgets-3.1.5/interface/wx/translation.h>`

## Detailed Description

Represents a loaded translations message catalog.

This class should only be used directly by wxTranslationsLoader implementations.

Since
  2.9.1

## Static Public Member Functions
static wxMsgCatalog * | CreateFromFile (const wxString &filename, const wxString &domain)
| Creates catalog loaded from a MO file.
static wxMsgCatalog * | CreateFromData (const wxScopedCharBuffer &data, const wxString &domain)
| Creates catalog from MO file data in memory buffer.

## Member Function Documentation

## ◆ CreateFromData()

wxMsgCatalog * wxMsgCatalog::CreateFromData | ( | const wxScopedCharBuffer & | data,
|  | const wxString & | domain )
| static

Creates catalog from MO file data in memory buffer.

Parameters

  data | Data in MO file format.
  domain | Catalog's domain. This typically matches the filename.

Returns
  Successfully loaded catalog or NULL on failure.

## ◆ CreateFromFile()

wxMsgCatalog * wxMsgCatalog::CreateFromFile | ( | const wxString & | filename,
|  | const wxString & | domain )
| static

Creates catalog loaded from a MO file.

Parameters

  filename | Path to the MO file to load.
  domain | Catalog's domain. This typically matches the filename.

Returns
  Successfully loaded catalog or NULL on failure.