mirror of
https://github.com/Motion-Project/motion.git
synced 2026-02-04 20:11:58 -05:00
* Revise MOTION_LOG macro * Add native_language option * Additional languages * Add log messages to po files
27 lines
604 B
C
27 lines
604 B
C
/*
|
|
* translate.h
|
|
*
|
|
* Include file for translate.c
|
|
*
|
|
* This software is distributed under the GNU Public License Version 2
|
|
* See also the file 'COPYING'.
|
|
*
|
|
*/
|
|
#ifndef _INCLUDE_TRANSLATE_H_
|
|
#define _INCLUDE_TRANSLATE_H_
|
|
|
|
int nls_enabled;
|
|
|
|
#ifdef HAVE_INTL
|
|
# include <libintl.h>
|
|
extern int _nl_msg_cat_cntr; /* Required for changing the locale dynamically */
|
|
#endif
|
|
|
|
#define _(STRING) translate_text(STRING)
|
|
|
|
char* translate_text(const char *msgid);
|
|
void translate_init(void);
|
|
void translate_locale_chg(const char *langcd);
|
|
|
|
#endif // _INCLUDE_TRANSLATE_H_
|