"Fossies" - the Fresh Open Source Software Archive

Member "motion-Release-4.3.0/src/translate.h" (14 Jan 2020, 607 Bytes) of package /linux/misc/motion-Release-4.3.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "translate.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  *      translate.h
    3  *
    4  *      Include file for translate.c
    5  *
    6  *      This software is distributed under the GNU Public License Version 2
    7  *      See also the file 'COPYING'.
    8  *
    9  */
   10 #ifndef _INCLUDE_TRANSLATE_H_
   11 #define _INCLUDE_TRANSLATE_H_
   12 
   13 int nls_enabled;
   14 
   15 #ifdef HAVE_GETTEXT
   16 #   include <libintl.h>
   17     extern int  _nl_msg_cat_cntr;    /* Required for changing the locale dynamically */
   18 #endif
   19 
   20 #define _(STRING) translate_text(STRING)
   21 
   22     char* translate_text(const char *msgid);
   23     void translate_init(void);
   24     void translate_locale_chg(const char *langcd);
   25 
   26 #endif // _INCLUDE_TRANSLATE_H_