libfilezilla
lib
libfilezilla
translate.hpp
Go to the documentation of this file.
1
#ifndef LIBFILEZILLA_TRANSLATE_HEADER
2
#define LIBFILEZILLA_TRANSLATE_HEADER
3
4
#include "
libfilezilla.hpp
"
5
6
#include <string>
7
11
namespace
fz
{
12
17
void
FZ_PUBLIC_SYMBOL
set_translators
(
18
std::wstring(*s) (
char
const
*
const
t),
19
std::wstring(*pf)(
char
const
*
const
singular,
char
const
*
const
plural, int64_t n)
20
);
21
26
std::wstring FZ_PUBLIC_SYMBOL
translate
(
char
const
*
const
source);
27
std::wstring FZ_PUBLIC_SYMBOL
translate
(
char
const
*
const
singular,
char
const
*
const
plural, int64_t n);
28
}
29
30
// Sadly xgettext cannot be used with namespaces
31
#define fztranslate fz::translate
32
#define fztranslate fz::translate
33
#define fztranslate_mark
34
35
#endif
fz::translate
std::wstring translate(char const *const source)
Translates the input string with the configured translator.
libfilezilla.hpp
Sets some global macros and further includes string.hpp.
fz::set_translators
void set_translators(std::wstring(*s)(char const *const t), std::wstring(*pf)(char const *const singular, char const *const plural, int64_t n))
Sets translators for strings.
fz
The namespace used by libfilezilla.
Definition:
apply.hpp:17
Generated by
1.8.17