Cross-Platform build scripts for audio plugins
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.

151 lines
3.7KB

  1. diff --git a/Makefile.in b/Makefile.in
  2. index 3402627..27210f1 100644
  3. --- a/Makefile.in
  4. +++ b/Makefile.in
  5. @@ -834,7 +834,7 @@ all_test_ltlibs = $(test_ltlibraries) $(uninstalled_test_ltlibraries) $(installe
  6. @ENABLE_INSTALLED_TESTS_TRUE@installed_test_meta_DATA = $(installed_testcases:=.test)
  7. ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
  8. -SUBDIRS = . m4macros glib gmodule gthread gobject gio po docs tests
  9. +SUBDIRS = . m4macros glib gmodule gthread gobject gio po
  10. DIST_SUBDIRS = $(SUBDIRS) build
  11. bin_SCRIPTS = glib-gettextize
  12. AM_CPPFLAGS = \
  13. diff --git a/configure.ac b/configure.ac
  14. index b9c3342..e421aa0 100644
  15. --- a/configure.ac
  16. +++ b/configure.ac
  17. @@ -465,13 +465,6 @@ ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
  18. AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
  19. GLIB_GNU_GETTEXT
  20. -if test "$gt_cv_have_gettext" != "yes" ; then
  21. - AC_MSG_ERROR([
  22. -*** You must have either have gettext support in your C library, or use the
  23. -*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
  24. -])
  25. -fi
  26. -
  27. LIBS="$INTLLIBS $LIBS"
  28. GETTEXT_PACKAGE=glib20
  29. diff --git a/glib/ggettext.c b/glib/ggettext.c
  30. index bf74ccb..b9e57ef 100644
  31. --- a/glib/ggettext.c
  32. +++ b/glib/ggettext.c
  33. @@ -40,7 +40,7 @@
  34. #include <string.h>
  35. #include <locale.h>
  36. -#include <libintl.h>
  37. +
  38. #ifdef G_OS_WIN32
  39. @@ -55,36 +55,7 @@
  40. gchar *
  41. _glib_get_locale_dir (void)
  42. {
  43. - gchar *install_dir = NULL, *locale_dir;
  44. - gchar *retval = NULL;
  45. -
  46. - if (glib_dll != NULL)
  47. - install_dir = g_win32_get_package_installation_directory_of_module (glib_dll);
  48. -
  49. - if (install_dir)
  50. - {
  51. - /*
  52. - * Append "/share/locale" or "/lib/locale" depending on whether
  53. - * autoconfigury detected GNU gettext or not.
  54. - */
  55. - const char *p = GLIB_LOCALE_DIR + strlen (GLIB_LOCALE_DIR);
  56. - while (*--p != '/')
  57. - ;
  58. - while (*--p != '/')
  59. - ;
  60. -
  61. - locale_dir = g_build_filename (install_dir, p, NULL);
  62. -
  63. - retval = g_win32_locale_filename_from_utf8 (locale_dir);
  64. -
  65. - g_free (install_dir);
  66. - g_free (locale_dir);
  67. - }
  68. -
  69. - if (retval)
  70. - return retval;
  71. - else
  72. - return g_strdup ("");
  73. + return g_strdup ("");
  74. }
  75. #undef GLIB_LOCALE_DIR
  76. @@ -92,27 +63,6 @@ _glib_get_locale_dir (void)
  77. #endif /* G_OS_WIN32 */
  78. -static void
  79. -ensure_gettext_initialized (void)
  80. -{
  81. - static gsize initialised;
  82. -
  83. - if (g_once_init_enter (&initialised))
  84. - {
  85. -#ifdef G_OS_WIN32
  86. - gchar *tmp = _glib_get_locale_dir ();
  87. - bindtextdomain (GETTEXT_PACKAGE, tmp);
  88. - g_free (tmp);
  89. -#else
  90. - bindtextdomain (GETTEXT_PACKAGE, GLIB_LOCALE_DIR);
  91. -#endif
  92. -# ifdef HAVE_BIND_TEXTDOMAIN_CODESET
  93. - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
  94. -# endif
  95. - g_once_init_leave (&initialised, TRUE);
  96. - }
  97. -}
  98. -
  99. /**
  100. * glib_gettext:
  101. * @str: The string to be translated
  102. @@ -126,8 +76,6 @@ ensure_gettext_initialized (void)
  103. const gchar *
  104. glib_gettext (const gchar *str)
  105. {
  106. - ensure_gettext_initialized ();
  107. -
  108. return g_dgettext (GETTEXT_PACKAGE, str);
  109. }
  110. @@ -150,8 +98,6 @@ const gchar *
  111. glib_pgettext (const gchar *msgctxtid,
  112. gsize msgidoffset)
  113. {
  114. - ensure_gettext_initialized ();
  115. -
  116. return g_dpgettext (GETTEXT_PACKAGE, msgctxtid, msgidoffset);
  117. }
  118. diff --git a/glib/gi18n.h b/glib/gi18n.h
  119. index f765c3d..a06507f 100644
  120. --- a/glib/gi18n.h
  121. +++ b/glib/gi18n.h
  122. @@ -20,13 +20,15 @@
  123. #include <glib.h>
  124. -#include <libintl.h>
  125. #include <string.h>
  126. -#define _(String) gettext (String)
  127. +#define _(String) (String)
  128. #define Q_(String) g_dpgettext (NULL, String, 0)
  129. #define N_(String) (String)
  130. #define C_(Context,String) g_dpgettext (NULL, Context "\004" String, strlen (Context) + 1)
  131. #define NC_(Context, String) (String)
  132. +#define textdomain(...)
  133. +#define bindtextdomain(...)
  134. +
  135. #endif /* __G_I18N_H__ */