Enable NLS under Windows

Original commit message from CVS:
Enable NLS under Windows
This commit is contained in:
Steve Lhomme 2004-06-12 10:45:54 +00:00
parent 1083813715
commit 6029771ed5
5 changed files with 23 additions and 14 deletions

View file

@ -6,6 +6,7 @@
2004-06-12 Steve Lhomme <steve.lhomme@free.fr> 2004-06-12 Steve Lhomme <steve.lhomme@free.fr>
* win32/config.h: * win32/config.h:
* gst/gst-i18n-app.h:
enable NLS under Windows enable NLS under Windows
2004-06-12 Jan Schmidt <thaytan@mad.scientist.com> 2004-06-12 Jan Schmidt <thaytan@mad.scientist.com>

View file

@ -23,6 +23,7 @@
#ifndef __GST_I18N_APP_H__ #ifndef __GST_I18N_APP_H__
#define __GST_I18N_APP_H__ #define __GST_I18N_APP_H__
#ifdef ENABLE_NLS
#include "gettext.h" /* included with gettext distribution and copied */ #include "gettext.h" /* included with gettext distribution and copied */
/* we want to use shorthand _() for translating and N_() for marking */ /* we want to use shorthand _() for translating and N_() for marking */
@ -30,4 +31,11 @@
#define N_(String) gettext_noop (String) #define N_(String) gettext_noop (String)
/* FIXME: if we need it, we can add Q_ as well, like in glib */ /* FIXME: if we need it, we can add Q_ as well, like in glib */
#else
#define _(String) String
#define N_(String) String
#endif
#endif /* __GST_I18N_APP_H__ */ #endif /* __GST_I18N_APP_H__ */

View file

@ -14,19 +14,19 @@ The GStreamer project depends on other libraries, namely :
- GLib - GLib
- libpopt - libpopt
- libxml - libxml
- libintl - gettext
- libiconv - libiconv
The sources should be organised in folders as follow : The sources should be organised in folders as follow :
$(PROJECT_DIR)\glib $(PROJECT_DIR)\glib
$(PROJECT_DIR)\gstreamer (this package) $(PROJECT_DIR)\gstreamer (this package)
$(PROJECT_DIR)\libiconv $(PROJECT_DIR)\libiconv
$(PROJECT_DIR)\libintl $(PROJECT_DIR)\gettext
$(PROJECT_DIR)\libxml2 $(PROJECT_DIR)\libxml2
$(PROJECT_DIR)\popt $(PROJECT_DIR)\popt
NOTE : you can find Win32 versions of these libraries on http://gnuwin32.sourceforge.net/ NOTE : you can find Win32 versions of these libraries on http://gettext.sourceforge.net/ and
You will need the Binaries and Developer files for each package. http://gnuwin32.sourceforge.net/ (you will need the Binaries and Developer files for each package.)
NOTE : GLib can be found on ftp://ftp.gtk.org/pub/gtk/v2.4/ and should be compiled from the NOTE : GLib can be found on ftp://ftp.gtk.org/pub/gtk/v2.4/ and should be compiled from the
sources sources

View file

@ -1,10 +1,10 @@
/* config.h.in. Generated from configure.ac by autoheader. */ /* config.h.in. Generated from configure.ac by autoheader. */
/* always defined to indicate that i18n is enabled */ /* always defined to indicate that i18n is enabled */
#undef ENABLE_NLS #define ENABLE_NLS 1
/* gettext package name */ /* gettext package name */
#undef GETTEXT_PACKAGE #define GETTEXT_PACKAGE "gstreamer-0.8"
/* Location of registry */ /* Location of registry */
#define GST_CACHE_DIR "" #define GST_CACHE_DIR ""
@ -19,7 +19,7 @@
#define GST_LICENSE "LGPL" #define GST_LICENSE "LGPL"
/* Define the location where the catalogs will be installed */ /* Define the location where the catalogs will be installed */
#undef GST_LOCALEDIR #define LOCALEDIR ".\locale"
/* package origin */ /* package origin */
#define GST_ORIGIN "http://gstreamer.net" #define GST_ORIGIN "http://gstreamer.net"
@ -28,7 +28,7 @@
#define GST_PACKAGE "GStreamer" #define GST_PACKAGE "GStreamer"
/* Define the version */ /* Define the version */
#define GST_VERSION "0.8.1" #define GST_VERSION "0.8.3"
/* Define the release version */ /* Define the release version */
#define GST_VERSION_RELEASE "20040129_103536" #define GST_VERSION_RELEASE "20040129_103536"
@ -189,11 +189,11 @@
#undef USE_POISONING #undef USE_POISONING
/* Version number of package */ /* Version number of package */
#define VERSION "0.8.1.0" #define VERSION "0.8.3.0"
/* Define to 1 if your processor stores words with the most significant byte /* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */ first (like Motorola and SPARC, unlike Intel and VAX). */
#define WORDS_BIGENDIAN 0 #define WORDS_BIGENDIAN 0
#define GST_MAJORMINOR "GST_VERSION_MAJOR.GST_VERSION_MINOR" #define GST_MAJORMINOR "0.8"

View file

@ -14,19 +14,19 @@ The GStreamer project depends on other libraries, namely :
- GLib - GLib
- libpopt - libpopt
- libxml - libxml
- libintl - gettext
- libiconv - libiconv
The sources should be organised in folders as follow : The sources should be organised in folders as follow :
$(PROJECT_DIR)\glib $(PROJECT_DIR)\glib
$(PROJECT_DIR)\gstreamer (this package) $(PROJECT_DIR)\gstreamer (this package)
$(PROJECT_DIR)\libiconv $(PROJECT_DIR)\libiconv
$(PROJECT_DIR)\libintl $(PROJECT_DIR)\gettext
$(PROJECT_DIR)\libxml2 $(PROJECT_DIR)\libxml2
$(PROJECT_DIR)\popt $(PROJECT_DIR)\popt
NOTE : you can find Win32 versions of these libraries on http://gnuwin32.sourceforge.net/ NOTE : you can find Win32 versions of these libraries on http://gettext.sourceforge.net/ and
You will need the Binaries and Developer files for each package. http://gnuwin32.sourceforge.net/ (you will need the Binaries and Developer files for each package.)
NOTE : GLib can be found on ftp://ftp.gtk.org/pub/gtk/v2.4/ and should be compiled from the NOTE : GLib can be found on ftp://ftp.gtk.org/pub/gtk/v2.4/ and should be compiled from the
sources sources