MeshLib C++ Docs
Loading...
Searching...
No Matches
MRI18n.h File Reference
#include "config.h"
#include "exports.h"
#include <MRMesh/MRMeshFwd.h>
#include <string>

Go to the source code of this file.

Namespaces

namespace  MR
 only for bindings generation
namespace  MR::Locale

Macros

#define _tr(...)
#define f_tr(...)

Functions

std::string MR::Locale::translate (const char *msg, int domainId=0)
 Translates a message using the active locale.
std::string MR::Locale::translate (const char *context, const char *msg, int domainId=0)
 Translates a message in context using the active locale.
std::string MR::Locale::translate (const char *single, const char *plural, Int64 n, int domainId=0)
 Translates a plural message form using the active locale.
std::string MR::Locale::translate (const char *context, const char *single, const char *plural, Int64 n, int domainId=0)
 Translates a plural message form in context using the active locale.

Macro Definition Documentation

◆ _tr

#define _tr ( ...)
Value:
MR::Locale::translate( __VA_ARGS__ ).c_str()
std::string translate(const char *msg, int domainId=0)
Translates a message using the active locale.

◆ f_tr

#define f_tr ( ...)
Value:
fmt::runtime( MR::Locale::translate( __VA_ARGS__ ) )