libacfutils
A general purpose library of utility functions designed to make it easier to develop addons for the X-Plane flight simulator.
Loading...
Searching...
No Matches
intl.h
Go to the documentation of this file.
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license in the file COPYING
10 * or http://www.opensource.org/licenses/CDDL-1.0.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file COPYING.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
23 * Copyright 2023 Saso Kiselkov. All rights reserved.
24 */
39#ifndef _ACF_UTILS_INTL_H_
40#define _ACF_UTILS_INTL_H_
41
42#include <stdint.h>
43
44#include "types.h"
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
61#define _(str) acfutils_xlate(str)
62
63API_EXPORT bool_t acfutils_xlate_init(const char *po_file);
64API_EXPORT void acfutils_xlate_fini(void);
65API_EXPORT const char *acfutils_xlate(const char *msgid);
66
67API_EXPORT const char *acfutils_xplang2code(int lang);
68
69#ifdef __cplusplus
70}
71#endif
72
73#endif /* _ACF_UTILS_INTL_H_ */
void acfutils_xlate_fini(void)
Definition intl.c:213
const char * acfutils_xlate(const char *msgid)
Definition intl.c:249
const char * acfutils_xplang2code(int lang)
Definition intl.c:271
bool_t acfutils_xlate_init(const char *po_file)
Definition intl.c:79