GTK+: Fix data dir name for translations.

This commit is contained in:
Brandon Wright 2018-12-03 20:52:12 -06:00
parent 62425f7f43
commit 51d3051712
2 changed files with 3 additions and 24 deletions

View File

@ -33,8 +33,8 @@ AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.19.2])
snes9xlocaledir='${prefix}/${DATADIRNAME}/locale'
snes9xdatadir='${prefix}/${DATADIRNAME}/snes9x'
snes9xlocaledir='${prefix}/share/locale'
snes9xdatadir='${prefix}/share/snes9x'
AC_SUBST(snes9xlocaledir)
AC_SUBST(snes9xdatadir)

View File

@ -11,28 +11,7 @@
#include "gtk_s9xcore.h"
#include "gtk_s9xwindow.h"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#ifdef ENABLE_NLS
#include <libintl.h>
#define _(String) gettext(String)
#ifdef gettext_noop
#define N_(String) gettext_noop(String)
#else
#define N_(String) (String)
#endif
#else /* NLS is disabled */
#define _(String) (String)
#define N_(String) (String)
#define textdomain(String) (String)
#define gettext(String) (String)
#define dgettext(Domain,String) (String)
#define dcgettext(Domain,String,Type) (String)
#define bindtextdomain(Domain,Directory) (Domain)
#define bind_textdomain_codeset(Domain,Codeset) (Codeset)
#endif /* ENABLE_NLS */
#include <glib/gi18n.h>
#define SNES9X_GTK_AUTHORS "(c) 2007 - 2018 Brandon Wright (bearoso@gmail.com)"
#define SNES9X_GTK_VERSION "86"