Changeset 380
- Timestamp:
- 05/25/06 11:36:08
- Files:
-
- trunk/config.h.in (modified) (1 diff)
- trunk/configure.ac (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-common.c (modified) (2 diffs)
- trunk/libtinymail-camel/tny-msg-folder.c (modified) (2 diffs)
- trunk/libtinymail-camel/tny-msg-header.c (modified) (3 diffs)
- trunk/libtinymail-camel/tny-msg-mime-part.c (modified) (3 diffs)
- trunk/libtinymail-camel/tny-msg.c (modified) (2 diffs)
- trunk/libtinymail-camel/tny-session-camel.c (modified) (3 diffs)
- trunk/libtinymail-camel/tny-store-account.c (modified) (3 diffs)
- trunk/libtinymail-gnome-desktop/tny-account-store.c (modified) (1 diff)
- trunk/libtinymail-gnome-desktop/tny-device.c (modified) (2 diffs)
- trunk/libtinymail-gnome-desktop/tny-password-dialog.c (modified) (2 diffs)
- trunk/libtinymail-gnome-desktop/tny-platform-factory.c (modified) (1 diff)
- trunk/libtinymailui-gtk/tny-msg-header-list-model.c (modified) (2 diffs)
- trunk/libtinymailui-gtk/tny-msg-header-view.c (modified) (2 diffs)
- trunk/libtinymailui-gtk/tny-msg-view.c (modified) (2 diffs)
- trunk/libtinymailui-gtk/tny-save-strategy.c (modified) (3 diffs)
- trunk/libtinymailui-mozembed/tny-moz-embed-msg-view.c (modified) (3 diffs)
- trunk/libtinymailui-mozembed/tny-moz-embed-stream.c (modified) (2 diffs)
- trunk/tinymail/tny-main.c (modified) (1 diff)
- trunk/tinymail/tny-summary-window.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/config.h.in
r379 r380 73 73 #undef STDC_HEADERS 74 74 75 /* Define the location where the catalogs will be installed */ 76 #undef TNY_LOCALE_DIR 77 75 78 /* Version number of package */ 76 79 #undef VERSION trunk/configure.ac
r379 r380 33 33 AC_SUBST(GETTEXT_PACKAGE) 34 34 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext]) 35 AM_GLIB_DEFINE_LOCALEDIR([TNY_LOCALE_DIR]) 35 36 ALL_LINGUAS="" 36 37 AM_GLIB_GNU_GETTEXT trunk/libtinymail-camel/tny-camel-common.c
r379 r380 19 19 20 20 #include <config.h> 21 22 #include <glib/gi18n-lib.h> 21 23 22 24 #include <string.h> … … 42 44 if (G_UNLIKELY (!gtfnd)) 43 45 { 44 g_warning ( "Invalid e-mail address in field");46 g_warning (_("Invalid e-mail address in field")); 45 47 return; 46 48 } trunk/libtinymail-camel/tny-msg-folder.c
r379 r380 20 20 #include <config.h> 21 21 22 #include <glib/gi18n-lib.h> 23 22 24 #include <string.h> 23 25 #include <tny-msg-folder-iface.h> … … 543 545 544 546 info->cancelled = FALSE; 545 str = g_strdup_printf ( "Reading folder `%s'", priv->folder->full_name);547 str = g_strdup_printf (_("Reading folder `%s'"), priv->folder->full_name); 546 548 _tny_account_start_camel_operation (TNY_ACCOUNT_IFACE (priv->account), 547 549 tny_msg_folder_refresh_headers_async_status, info, str); trunk/libtinymail-camel/tny-msg-header.c
r379 r380 20 20 #include <config.h> 21 21 22 #include <glib/gi18n-lib.h> 23 22 24 #include <glib.h> 23 25 #include <string.h> … … 174 176 175 177 if (G_UNLIKELY (self->mime_message)) 176 g_warning ( "Strange behaviour: Overwriting existing MIME message");178 g_warning (_("Strange behaviour: Overwriting existing MIME message")); 177 179 178 180 self->mime_message = camel_mime_message; … … 201 203 202 204 if (G_UNLIKELY (me->folder)) 203 g_warning ( "Strange behaviour: Overwriting existing folder");205 g_warning (_("Strange behaviour: Overwriting existing folder")); 204 206 205 207 g_mutex_lock (me->hdr_lock); trunk/libtinymail-camel/tny-msg-mime-part.c
r379 r380 20 20 #include <config.h> 21 21 22 #include <glib/gi18n-lib.h> 23 22 24 #include <string.h> 23 25 #include <tny-msg-mime-part-iface.h> … … 94 96 if (G_UNLIKELY (!wrapper)) 95 97 { 96 g_error ( "Mime part does not yet have a source stream, use "97 "tny_msg_mime_part_construct_from_stream first") ;98 g_error (_("Mime part does not yet have a source stream, use " 99 "tny_msg_mime_part_construct_from_stream first")); 98 100 camel_object_unref (CAMEL_OBJECT (cstream)); 99 101 return; … … 190 192 if (G_UNLIKELY (!wrapper)) 191 193 { 192 g_error ( "Mime part does not yet have a source stream, use "193 "tny_msg_mime_part_construct_from_stream first") ;194 g_error (_("Mime part does not yet have a source stream, use " 195 "tny_msg_mime_part_construct_from_stream first")); 194 196 camel_object_unref (CAMEL_OBJECT (cstream)); 195 197 return; trunk/libtinymail-camel/tny-msg.c
r379 r380 19 19 20 20 #include <config.h> 21 22 #include <glib/gi18n-lib.h> 21 23 22 24 #include <time.h> … … 391 393 tny_msg_add_part (TNY_MSG_IFACE (self), list->data); 392 394 else 393 g_warning ( "Item number %d isn't a TnyMsgMimePartIface\n", nth);395 g_warning (_("Item number %d isn't a TnyMsgMimePartIface\n"), nth); 394 396 395 397 list = g_list_next (list); nth++; trunk/libtinymail-camel/tny-session-camel.c
r362 r380 19 19 20 20 #include <config.h> 21 #include <glib/gi18n-lib.h> 21 22 22 23 #include <stdlib.h> … … 28 29 #include <camel/camel.h> 29 30 #include <camel/camel-filter-driver.h> 30 #include <camel/camel-i18n.h> 31 32 31 33 #include <camel/camel-store.h> 32 34 #include <camel/camel.h> … … 446 448 if (G_LIKELY (camel_init (base_directory, TRUE) != 0)) 447 449 { 448 g_error ( "Critical ERROR: Cannot init %d as camel directory\n", base_directory);450 g_error (_("Critical ERROR: Cannot init %d as camel directory\n"), base_directory); 449 451 exit (1); 450 452 } trunk/libtinymail-camel/tny-store-account.c
r379 r380 20 20 #include <config.h> 21 21 22 #include <glib/gi18n-lib.h> 23 22 24 #include <glib.h> 23 25 … … 54 56 if (G_UNLIKELY (priv->service == NULL)) 55 57 { 56 g_error ( "couldn't get service %s: %s\n", priv->url_string,58 g_error (_("Couldn't get service %s: %s\n"), priv->url_string, 57 59 camel_exception_get_description (priv->ex)); 58 60 camel_exception_clear (priv->ex); … … 118 120 if (camel_exception_is_set (priv->ex)) 119 121 { 120 g_warning ( "Not connected with %s: %s\n", priv->url_string,122 g_warning (_("Not connected with %s: %s\n"), priv->url_string, 121 123 camel_exception_get_description (priv->ex)); 122 124 camel_exception_clear (priv->ex); trunk/libtinymail-gnome-desktop/tny-account-store.c
r371 r380 19 19 20 20 /* TODO: Refactor this type to a libtinymail-emerge */ 21 #include <config.h> 21 22 22 23 #include <string.h> trunk/libtinymail-gnome-desktop/tny-device.c
r257 r380 17 17 * Boston, MA 02111-1307, USA. 18 18 */ 19 20 #include <config.h> 21 22 #include <glib/gi18n-lib.h> 19 23 20 24 #include <tny-device.h> … … 57 61 case LIBNM_NO_NETWORKMANAGER: 58 62 case LIBNM_INVALID_CONTEXT: 59 g_print ( "Invalid network manager installation. Going to assume Online status\n");63 g_print (_("Invalid network manager installation. Going to assume Online status\n")); 60 64 case LIBNM_ACTIVE_NETWORK_CONNECTION: 61 65 default: trunk/libtinymail-gnome-desktop/tny-password-dialog.c
r266 r380 19 19 20 20 /* TODO: Refactory this type to libtinymailui-gtk */ 21 #include <config.h> 22 #include <glib/gi18n-lib.h> 21 23 22 24 #include <gtk/gtk.h> … … 90 92 GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, NULL); 91 93 92 gtk_window_set_title (GTK_WINDOW (self), "Password input");94 gtk_window_set_title (GTK_WINDOW (self), _("Password input")); 93 95 94 96 /* TODO: Add key icon or something */ trunk/libtinymail-gnome-desktop/tny-platform-factory.c
r348 r380 17 17 * Boston, MA 02111-1307, USA. 18 18 */ 19 #include <config.h> 19 20 20 21 #include <tny-platform-factory.h> trunk/libtinymailui-gtk/tny-msg-header-list-model.c
r379 r380 21 21 22 22 #include <glib.h> 23 #include <glib/gi18n-lib.h> 23 24 24 25 #include <tny-msg-header-list-model.h> … … 167 168 file_time = localtime (&file_time_raw); 168 169 169 readable_date_size = strftime (readable_date, 63, "%Y-%m-%d, %-I:%M %p", file_time);170 readable_date_size = strftime (readable_date, 63, _("%Y-%m-%d, %-I:%M %p"), file_time); 170 171 171 172 return readable_date; trunk/libtinymailui-gtk/tny-msg-header-view.c
r379 r380 19 19 20 20 #include <config.h> 21 22 #include <glib/gi18n-lib.h> 21 23 22 24 #include <string.h> … … 51 53 file_time = localtime (&file_time_raw); 52 54 53 readable_date_size = strftime (readable_date, 63, "%Y-%m-%d, %-I:%M %p", file_time);55 readable_date_size = strftime (readable_date, 63, _("%Y-%m-%d, %-I:%M %p"), file_time); 54 56 55 57 return g_strdup (readable_date); trunk/libtinymailui-gtk/tny-msg-view.c
r379 r380 20 20 #include <config.h> 21 21 22 #include <glib/gi18n-lib.h> 23 22 24 #include <unistd.h> 23 25 #include <fcntl.h> … … 137 139 if (!G_LIKELY (priv->save_strategy)) 138 140 { 139 g_warning ( "No save strategy for this message view\n");141 g_warning (_("No save strategy for this message view\n")); 140 142 return; 141 143 } trunk/libtinymailui-gtk/tny-save-strategy.c
r379 r380 19 19 20 20 #include <config.h> 21 22 #include <glib/gi18n-lib.h> 21 23 22 24 #include <unistd.h> … … 98 100 { 99 101 GtkFileChooserDialog *dialog = GTK_FILE_CHOOSER_DIALOG 100 (gtk_file_chooser_dialog_new ( "Save File", NULL,102 (gtk_file_chooser_dialog_new (_("Save File"), NULL, 101 103 GTK_FILE_CHOOSER_ACTION_SAVE, 102 104 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_SAVE, … … 136 138 GTK_MESSAGE_ERROR, 137 139 GTK_BUTTONS_CLOSE, 138 "Saving to %s failed\n", uri);140 _("Saving to %s failed\n"), uri); 139 141 gtk_dialog_run (GTK_DIALOG (errd)); 140 142 gtk_widget_destroy (GTK_WIDGET (errd)); trunk/libtinymailui-mozembed/tny-moz-embed-msg-view.c
r364 r380 18 18 */ 19 19 20 #include <config.h> 21 #include <glib/gi18n-lib.h> 22 20 23 #include <unistd.h> 21 24 #include <fcntl.h> … … 102 105 { 103 106 /* This shouldn't happen */ 104 g_warning ( "Mimepart problem\n");107 g_warning (_("Mimepart problem\n")); 105 108 parts = g_list_next (parts); 106 109 continue; … … 193 196 if (!G_LIKELY (priv->save_strategy)) 194 197 { 195 g_warning ( "No save strategy for this message view\n");198 g_warning (_("No save strategy for this message view\n")); 196 199 return; 197 200 } trunk/libtinymailui-mozembed/tny-moz-embed-stream.c
r335 r380 17 17 * Boston, MA 02111-1307, USA. 18 18 */ 19 20 #include <config.h> 21 #include <glib/gi18n-lib.h> 19 22 20 23 #include <glib.h> … … 171 174 172 175 } else { 173 g_warning ( "Can't write %s\n", priv->filename);176 g_warning (_("Can't write %s\n"), priv->filename); 174 177 } 175 178 trunk/tinymail/tny-main.c
r379 r380 71 71 #endif 72 72 73 bindtextdomain(GETTEXT_PACKAGE, TNY_LOCALE_DIR); 74 73 75 platfact = TNY_PLATFORM_FACTORY_IFACE 74 76 (tny_platform_factory_get_instance ()); trunk/tinymail/tny-summary-window.c
r379 r380 22 22 #include <config.h> 23 23 24 #include <glib/gi18n-lib.h> 25 24 26 #include <string.h> 25 27 #include <gtk/gtk.h> … … 132 134 133 135 if (online) 134 gtk_window_set_title (GTK_WINDOW (self), "Tinymail - online");136 gtk_window_set_title (GTK_WINDOW (self), _("Tinymail - online")); 135 137 else 136 gtk_window_set_title (GTK_WINDOW (self), "Tinymail - offline");138 gtk_window_set_title (GTK_WINDOW (self), _("Tinymail - offline")); 137 139 138 140 return; … … 489 491 gtk_paned_pack2 (GTK_PANED (vpaned1), GTK_WIDGET (priv->msg_view), TRUE, TRUE); 490 492 491 gtk_window_set_title (window, "Tinymail");493 gtk_window_set_title (window, _("Tinymail - offline")); 492 494 gtk_container_set_border_width (GTK_CONTAINER (window), 0); 493 494 495 495 496 mailbox_sw = gtk_scrolled_window_new (NULL, NULL); … … 532 533 /* mailbox_view columns */ 533 534 renderer = gtk_cell_renderer_text_new (); 534 column = gtk_tree_view_column_new_with_attributes ( "Folder", renderer,535 column = gtk_tree_view_column_new_with_attributes (_("Folder"), renderer, 535 536 "text", TNY_ACCOUNT_TREE_MODEL_NAME_COLUMN, NULL); 536 537 gtk_tree_view_column_set_sort_column_id (column, TNY_ACCOUNT_TREE_MODEL_NAME_COLUMN); … … 541 542 { /* Not really working yet */ 542 543 renderer = gtk_cell_renderer_text_new (); 543 column = gtk_tree_view_column_new_with_attributes ( "Folder", renderer,544 column = gtk_tree_view_column_new_with_attributes (_("Unread"), renderer, 544 545 "text", TNY_ACCOUNT_TREE_MODEL_UNREAD_COLUMN, NULL); 545 546 gtk_tree_view_column_set_sort_column_id (column, TNY_ACCOUNT_TREE_MODEL_UNREAD_COLUMN); … … 551 552 /* header_view columns */ 552 553 renderer = gtk_cell_renderer_text_new (); 553 column = gtk_tree_view_column_new_with_attributes ( "From", renderer,554 column = gtk_tree_view_column_new_with_attributes (_("From"), renderer, 554 555 "text", TNY_MSG_HEADER_LIST_MODEL_FROM_COLUMN, NULL); 555 556 gtk_tree_view_column_set_sort_column_id (column, TNY_MSG_HEADER_LIST_MODEL_FROM_COLUMN); … … 561 562 { /* Unlikely ;-) */ 562 563 renderer = gtk_cell_renderer_text_new (); 563 column = gtk_tree_view_column_new_with_attributes ( "To", renderer,564 column = gtk_tree_view_column_new_with_attributes (_("To"), renderer, 564 565 "text", TNY_MSG_HEADER_LIST_MODEL_TO_COLUMN, NULL); 565 566 gtk_tree_view_column_set_sort_column_id (column, TNY_MSG_HEADER_LIST_MODEL_TO_COLUMN); … … 570 571 571 572 renderer = gtk_cell_renderer_text_new (); 572 column = gtk_tree_view_column_new_with_attributes ( "Subject", renderer,573 column = gtk_tree_view_column_new_with_attributes (_("Subject"), renderer, 573 574 "text", TNY_MSG_HEADER_LIST_MODEL_SUBJECT_COLUMN, NULL); 574 575 gtk_tree_view_column_set_sort_column_id (column, TNY_MSG_HEADER_LIST_MODEL_SUBJECT_COLUMN); … … 579 580 580 581 renderer = gtk_cell_renderer_text_new (); 581 column = gtk_tree_view_column_new_with_attributes ( "Date", renderer,582 column = gtk_tree_view_column_new_with_attributes (_("Date"), renderer, 582 583 "text", TNY_MSG_HEADER_LIST_MODEL_DATE_RECEIVED_COLUMN, NULL); 583 584 gtk_tree_view_column_set_sort_column_id (column, TNY_MSG_HEADER_LIST_MODEL_DATE_RECEIVED_COLUMN);
