You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /* Internationalization support dummies routines header.
  2. Copyright by Salvador E. Tropea (SET) (2003)
  3. Covered by the GPL license. */
  4. /* Included from intl.h never directly */
  5. #ifdef __cplusplus
  6. struct stTVIntl
  7. {
  8. char *translation;
  9. int cp;
  10. };
  11. extern char *newStr( const char * );
  12. class TVIntl
  13. {
  14. public:
  15. TVIntl() {};
  16. static const char *textDomain(const char *) { return NULL; };
  17. static const char *bindTextDomain(const char *, const char *) { return NULL; };
  18. static int autoInit(const char *package, const char *localeDir=NULL) { return 1; };
  19. static const char *getText(const char *msgid) { return msgid; };
  20. static void setCatalogEncoding(int ) { };
  21. static void enableTranslations() { };
  22. static void disableTranslations() { };
  23. static char *getTextNew(const char *msgid, Boolean onlyIntl=False)
  24. { return onlyIntl ? NULL : newStr(msgid); };
  25. static const char *getText(const char *msgid, stTVIntl *&)
  26. { return msgid; };
  27. static void freeSt(stTVIntl *&) { };
  28. static stTVIntl *emptySt() { return NULL; };
  29. static stTVIntl *dontTranslateSt() { return NULL; };
  30. static int snprintf(char *dest, size_t sz, const char *fmt, ...);
  31. #ifdef Uses_intl_fprintf
  32. static int fprintf(FILE *f, const char *fmt, ...);
  33. #endif
  34. };
  35. #endif /* __cplusplus */
  36. #ifndef _
  37. #define _(msg) (msg)
  38. #endif
  39. #ifndef __
  40. #define __(msg) (msg)
  41. #endif
  42. #ifndef BINDTEXTDOMAIN
  43. #define BINDTEXTDOMAIN(a,b)
  44. #endif
  45. #ifndef TEXTDOMAIN
  46. #define TEXTDOMAIN(a)
  47. #endif