actually turn on internationalisation.

2002-12-28  James Henstridge  <james@daa.com.au>

    * src/font-view.c (main): actually turn on internationalisation.
This commit is contained in:
James Henstridge 2002-12-28 01:27:42 +00:00 committed by James Henstridge
parent f79d9ef220
commit 1634f6307b
2 changed files with 20 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2002-12-28 James Henstridge <james@daa.com.au>
* src/font-view.c (main): actually turn on internationalisation.
2002-12-23 James Henstridge <james@daa.com.au>
* src/thumbnailer.c (main): get rid of unused variable.

View file

@ -21,6 +21,18 @@
# include <config.h>
#endif
#ifdef ENABLE_NLS
# include <libintl.h>
# define _(String) gettext(String)
# define N_(String) gettext_noop(String)
#else
# define _(String) (String)
# define N_(String) (String)
# define textdomain(String) (String)
# define bindtextdomain(Domain,Directory) (Domain)
# define bind_textdomain_codeset(Domain,Codeset) (Domain)
#endif
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_TYPE1_TABLES_H
@ -32,10 +44,6 @@
#include <libgnomevfs/gnome-vfs.h>
#include <libgnomevfs/gnome-vfs-mime-handlers.h>
#ifndef _
# define _(s) (s)
#endif
FT_Error FT_New_Face_From_URI(FT_Library library,
const gchar *uri,
FT_Long face_index,
@ -306,6 +314,10 @@ main(int argc, char **argv)
GdkPixmap *pixmap;
GdkColor white = { 0, 0xffff, 0xffff, 0xffff };
bindtextdomain(GETTEXT_PACKAGE, FONTILUS_LOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
textdomain(GETTEXT_PACKAGE);
gtk_init(&argc, &argv);
if (argc != 2) {