Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorChyla Zbigniew <chyla@src.gnome.org>2001-08-20 14:36:28 (GMT)
committer Chyla Zbigniew <chyla@src.gnome.org>2001-08-20 14:36:28 (GMT)
commit28626f3d3c9aacc49c6f79353e7fcb2e49360b02 (patch)
treea9fd55cb9cec62772f351a4dae43c7d3a14e7bda /pdf
parent65780a7ef9a0b237d620265b3f712a535d288460 (diff)
Added po.
* Makefile.am (SUBDIRS): Added po. * configure.in (AC_OUTPUT): Added intl/Makefile po/Makefile.in. * xpdf/Makefile.am (INCLUDES): Added -DGNOMELOCALEDIR. * xpdf/bonobo-application-x-pdf.cc (main): Set textdomain and locale. * xpdf/gpdf.cc (main): ditto. Marked a few strings for translation.
Diffstat (limited to 'pdf')
-rw-r--r--pdf/xpdf/Makefile.am1
-rw-r--r--pdf/xpdf/gpdf.cc15
2 files changed, 10 insertions, 6 deletions
diff --git a/pdf/xpdf/Makefile.am b/pdf/xpdf/Makefile.am
index dec8324..c6c294d 100644
--- a/pdf/xpdf/Makefile.am
+++ b/pdf/xpdf/Makefile.am
@@ -3,6 +3,7 @@ INCLUDES = \
-I$(top_srcdir)/goo \
-I$(top_srcdir)/ltk \
-DDATADIR=\""$(datadir)"\" \
+ -DGNOMELOCALEDIR=\""$(datadir)/locale"\" \
$(EXTRA_GLIB_CFLAGS) \
$(EXTRA_GNOME_CFLAGS)
diff --git a/pdf/xpdf/gpdf.cc b/pdf/xpdf/gpdf.cc
index 7286c4a..a4f64a2 100644
--- a/pdf/xpdf/gpdf.cc
+++ b/pdf/xpdf/gpdf.cc
@@ -4,6 +4,7 @@
* Author:
* Michael Meeks <michael@imaginator.com>
*/
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
@@ -19,7 +20,6 @@ extern "C" {
#include <bonobo.h>
#undef GString
}
-#include "config.h"
#include "bonobo-application-x-pdf.h"
poptContext ctx;
@@ -119,7 +119,7 @@ extern "C" {
stream = bonobo_stream_open (BONOBO_IO_DRIVER_FS, name, Bonobo_Storage_READ, 0);
if (stream == NULL) {
- char *err = g_strconcat (_("Could not open "), name, NULL);
+ char *err = g_strdup_printf (_("Could not open %s"), name);
gnome_error_dialog_parented (err, GTK_WINDOW(container->app));
g_free (err);
return FALSE;
@@ -196,7 +196,7 @@ extern "C" {
g_free (fname);
} else {
GtkWidget *dialog;
- dialog = gnome_message_box_new ("Can't open a directory",
+ dialog = gnome_message_box_new (_("Can't open a directory"),
GNOME_MESSAGE_BOX_ERROR,
GNOME_STOCK_BUTTON_OK, NULL);
gnome_dialog_set_parent (GNOME_DIALOG (dialog),
@@ -475,7 +475,7 @@ container_new (const char *fname)
container = g_new0 (Container, 1);
container->app = bonobo_window_new ("pdf-viewer",
- "GNOME PDF viewer");
+ _("GNOME PDF viewer"));
gtk_drag_dest_set (container->app,
GTK_DEST_DEFAULT_ALL,
@@ -539,10 +539,13 @@ main (int argc, char **argv)
const char **view_files = NULL;
gboolean loaded;
int i;
-
+
+ bindtextdomain (PACKAGE, GNOMELOCALEDIR);
+ textdomain (PACKAGE);
+ setlocale (LC_ALL, "");
+
CORBA_exception_init (&ev);
-
gnomelib_register_popt_table (oaf_popt_options, "OAF");
gnome_init_with_popt_table("PDFViewer", "0.0.1",
argc, argv,