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:
parent
f79d9ef220
commit
1634f6307b
2 changed files with 20 additions and 4 deletions
|
@ -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.
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue