nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
translations.h File Reference
#include <array>
#include <cstdint>
#include <functional>
#include <map>
#include <string>
#include <string_view>
#include <vector>
#include "absl/status/status.h"
#include "absl/status/statusor.h"

Go to the source code of this file.

Classes

class  nanommo::PluralRule
class  nanommo::Catalog
struct  nanommo::Language

Namespaces

namespace  nanommo

Functions

std::string nanommo::Pseudo (std::string_view english)
 The English made over for the pseudo-language: "[Șéțțîñgș ~~~]".
std::string nanommo::LanguageFolder ()
 Where the PO files are, next to the client.
absl::Status nanommo::UseLanguage (std::string_view code, const std::string &folder)
const char * nanommo::Tr (const char *text)
const char * nanommo::Tr (std::string_view context, const char *text)
const char * nanommo::TrN (const char *one, const char *many, uint64_t n)
 The form for the count: in English, one for 1 and many for the rest.
const char * nanommo::TrN (std::string_view context, const char *one, const char *many, uint64_t n)
const char * nanommo::TrLabel (const char *label)
constexpr const char * nanommo::N_ (const char *text)
constexpr const char * nanommo::N_ (const char *, const char *text)

Variables

constexpr std::string_view nanommo::kPseudo = "pseudo"
 The pseudo-language's code: it's made from the template, nanommo.pot.
constexpr std::array< Language, 3 > nanommo::kLanguages