Changeset 45
- Timestamp:
- 04/12/06 16:17:43 (2 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 4 modified
-
po/LINGUAS (added)
-
po/ca.po (added)
-
po/es.po (added)
-
src/IDocument.cxx (modified) (3 diffs)
-
src/Makefile.am (modified) (1 diff)
-
src/gtk/MainView.cxx (modified) (4 diffs)
-
src/main.cxx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/IDocument.cxx
r43 r45 73 73 { 74 74 case DocumentErrorNone: 75 errorMessage = g_strdup (_("No error "));75 errorMessage = g_strdup (_("No error.")); 76 76 break; 77 77 case DocumentErrorOpenFile: … … 88 88 break; 89 89 case DocumentErrorHighlightFile: 90 errorMessage = g_strdup (_("Nonexistent or inv lid highlight file."));90 errorMessage = g_strdup (_("Nonexistent or invalid highlight file.")); 91 91 break; 92 92 case DocumentErrorBadPrinter: … … 106 106 break; 107 107 default: 108 errorMessage = g_strdup_printf (_("Unknown error (%d) "), errorCode);108 errorMessage = g_strdup_printf (_("Unknown error (%d)."), errorCode); 109 109 } 110 110 -
trunk/src/Makefile.am
r33 r45 33 33 34 34 epdfview_CXXFLAGS = \ 35 -DLOCALEDIR='"$(datadir)/locale"' \ 35 36 $(GLIB_CFLAGS) \ 36 37 $(POPPLER_CFLAGS) \ -
trunk/src/gtk/MainView.cxx
r44 r45 31 31 // Constants. 32 32 static gint CURRENT_PAGE_POS = 5; 33 static gint PAGE_VIEW_PADDING = 12; 34 static gint SCROLLBARS_SIZE = 20; 33 35 34 36 // Forward delarations. … … 370 372 g_assert (NULL != width && "Tried to save the width to a NULL pointer."); 371 373 g_assert (NULL != height && "Tried to save the height to a NULL pointer."); 372 373 *width = m_PageView->allocation.width - 12; 374 *height = m_PageViewScroll->allocation.height - 12; 374 375 gint scrollSize = SCROLLBARS_SIZE + PAGE_VIEW_PADDING * 2; 376 *width = m_PageViewScroll->allocation.width - scrollSize; 377 *height = m_PageViewScroll->allocation.height - scrollSize; 375 378 } 376 379 … … 420 423 GTK_POLICY_AUTOMATIC); 421 424 m_PageView = gtk_image_new (); 425 gtk_misc_set_padding (GTK_MISC (m_PageView), 426 PAGE_VIEW_PADDING, PAGE_VIEW_PADDING); 422 427 gtk_scrolled_window_add_with_viewport ( 423 428 GTK_SCROLLED_WINDOW (m_PageViewScroll), m_PageView); … … 431 436 { 432 437 GtkActionGroup *actionGroup = gtk_action_group_new ("ePDFView"); 438 // Set the translation domain for labels and tooltips. 439 gtk_action_group_set_translation_domain (actionGroup, PACKAGE); 433 440 // The data passed to all actions is the presenter 434 441 gtk_action_group_add_actions (actionGroup, g_NormalEntries, -
trunk/src/main.cxx
r43 r45 19 19 #include <stdlib.h> 20 20 #include <gettext.h> 21 #include <locale.h> 21 22 #include <gtk/gtk.h> 22 23 #include <IMainView.h> … … 29 30 main (int argc, char **argv) 30 31 { 32 // Enable NLS support. 33 setlocale (LC_ALL, ""); 34 bindtextdomain (PACKAGE, LOCALEDIR); 35 bind_textdomain_codeset (PACKAGE, "UTF-8"); 36 textdomain (PACKAGE); 31 37 // Initialize the GTK library. 32 38 gtk_init (&argc, &argv);
