Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
I18N.hpp File Reference
#include <wx/intl.h>
#include <wx/version.h>
+ Include dependency graph for I18N.hpp:

Go to the source code of this file.

Namespaces

namespace  Slic3r
 
namespace  Slic3r::GUI
 
namespace  Slic3r::GUI::I18N
 

Macros

#define _(s)   Slic3r::GUI::I18N::translate((s))
 
#define _L(s)   Slic3r::GUI::I18N::translate((s))
 
#define _u8L(s)   Slic3r::GUI::I18N::translate_utf8((s))
 
#define _CTX(s, ctx)   Slic3r::GUI::I18N::translate((s), (ctx))
 
#define _CTX_utf8(s, ctx)   Slic3r::GUI::I18N::translate_utf8((s), (ctx))
 
#define L(s)   s
 
#define L_CONTEXT(s, context)   s
 
#define _CHB(s)   wxGetTranslation(wxString(s, wxConvUTF8)).utf8_str()
 macro used to localization, return wxScopedCharBuffer With wxConvUTF8 explicitly specify that the source string is already in UTF-8 encoding
 
#define _wxGetTranslation_ctx(S, CTX)   ((void)(CTX), wxGetTranslation((S)))
 
#define _L_PLURAL(s, plural, n)   Slic3r::GUI::I18N::translate(s, plural, n)
 

Functions

wxString Slic3r::GUI::I18N::translate (const char *s)
 
wxString Slic3r::GUI::I18N::translate (const wchar_t *s)
 
wxString Slic3r::GUI::I18N::translate (const std::string &s)
 
wxString Slic3r::GUI::I18N::translate (const std::wstring &s)
 
wxString Slic3r::GUI::I18N::translate (const wxString &s)
 
wxString Slic3r::GUI::I18N::translate (const char *s, const char *plural, unsigned int n)
 
wxString Slic3r::GUI::I18N::translate (const wchar_t *s, const wchar_t *plural, unsigned int n)
 
wxString Slic3r::GUI::I18N::translate (const std::string &s, const std::string &plural, unsigned int n)
 
wxString Slic3r::GUI::I18N::translate (const std::wstring &s, const std::wstring &plural, unsigned int n)
 
wxString Slic3r::GUI::I18N::translate (const wxString &s, const wxString &plural, unsigned int n)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const char *s)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const wchar_t *s)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const std::string &s)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const std::wstring &s)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const wxString &s)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const char *s, const char *plural, unsigned int n)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const wchar_t *s, const wchar_t *plural, unsigned int n)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const std::string &s, const std::string &plural, unsigned int n)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const std::wstring &s, const std::wstring &plural, unsigned int n)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const wxString &s, const wxString &plural, unsigned int n)
 
wxString Slic3r::GUI::I18N::translate (const char *s, const char *ctx)
 
wxString Slic3r::GUI::I18N::translate (const wchar_t *s, const char *ctx)
 
wxString Slic3r::GUI::I18N::translate (const std::string &s, const char *ctx)
 
wxString Slic3r::GUI::I18N::translate (const std::wstring &s, const char *ctx)
 
wxString Slic3r::GUI::I18N::translate (const wxString &s, const char *ctx)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const char *s, const char *ctx)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const wchar_t *s, const char *ctx)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const std::string &s, const char *ctx)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const std::wstring &s, const char *ctx)
 
std::string Slic3r::GUI::I18N::translate_utf8 (const wxString &s, const char *ctx)
 
wxString Slic3r::GUI::L_str (const std::string &str)
 

Macro Definition Documentation

◆ _

#define _ (   s)    Slic3r::GUI::I18N::translate((s))

◆ _CHB

#define _CHB (   s)    wxGetTranslation(wxString(s, wxConvUTF8)).utf8_str()

macro used to localization, return wxScopedCharBuffer With wxConvUTF8 explicitly specify that the source string is already in UTF-8 encoding

◆ _CTX

#define _CTX (   s,
  ctx 
)    Slic3r::GUI::I18N::translate((s), (ctx))

◆ _CTX_utf8

#define _CTX_utf8 (   s,
  ctx 
)    Slic3r::GUI::I18N::translate_utf8((s), (ctx))

◆ _L

#define _L (   s)    Slic3r::GUI::I18N::translate((s))

◆ _L_PLURAL

#define _L_PLURAL (   s,
  plural,
 
)    Slic3r::GUI::I18N::translate(s, plural, n)

◆ _u8L

#define _u8L (   s)    Slic3r::GUI::I18N::translate_utf8((s))

◆ _wxGetTranslation_ctx

#define _wxGetTranslation_ctx (   S,
  CTX 
)    ((void)(CTX), wxGetTranslation((S)))

◆ L

#define L (   s)    s

◆ L_CONTEXT

#define L_CONTEXT (   s,
  context 
)    s