Changeset 34
- Timestamp:
- 11/02/07 18:37:53
- Files:
-
- trunk/src/tmut-folder-selector.c (modified) (2 diffs)
- trunk/src/tmut-folder-view.c (modified) (7 diffs)
- trunk/src/tmut-main.c (modified) (3 diffs)
- trunk/src/tmut-menu-view.c (modified) (10 diffs)
- trunk/src/tmut-msg-view.c (modified) (2 diffs)
- trunk/src/tmut-platform-factory.c (modified) (1 diff)
- trunk/src/tmut-ringtone-player.c (modified) (2 diffs)
- trunk/src/tmut-shell-child.c (modified) (1 diff)
- trunk/src/tmut-shell-window.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/tmut-folder-selector.c
r28 r34 18 18 */ 19 19 20 #if HAVE_CONFIG_H 21 #include "config.h" 22 #endif 23 24 #include <glib/gi18n-lib.h> 25 20 26 #include "tmut-folder-selector.h" 21 27 #include "tmut-shell-window.h" … … 146 152 gtk_container_add (GTK_CONTAINER (sw), GTK_WIDGET (priv->folders_treeview)); 147 153 renderer = gtk_cell_renderer_text_new (); 148 column = gtk_tree_view_column_new_with_attributes ( "Folder", renderer,154 column = gtk_tree_view_column_new_with_attributes (_("Folder"), renderer, 149 155 "text", TNY_GTK_FOLDER_STORE_TREE_MODEL_NAME_COLUMN, NULL); 150 156 gtk_tree_view_column_set_sort_column_id (column, trunk/src/tmut-folder-view.c
r32 r34 18 18 */ 19 19 20 #if HAVE_CONFIG_H 21 #include "config.h" 22 #endif 23 24 #include <glib/gi18n-lib.h> 25 20 26 #include "tmut-folder-view.h" 21 27 #include "tmut-folder-selector.h" … … 71 77 72 78 if (canceled) 73 msg = "User canceled the operation";79 msg = _("User canceled the operation"); 74 80 else if (err) 75 81 msg = err->message; … … 178 184 tmut_shell_window_set_child ( 179 185 tmut_shell_child_get_window (TMUT_SHELL_CHILD (self)), 180 TMUT_SHELL_CHILD (view), "Select destination");186 TMUT_SHELL_CHILD (view), _("Select destination")); 181 187 182 188 g_object_unref (header); … … 209 215 GtkWidget *dialog = gtk_message_dialog_new (GTK_WINDOW (priv->shell), 210 216 GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_YES_NO, 211 "This will remove the message with subject \"%s\"",217 _("This will remove the message with subject \"%s\""), 212 218 tny_header_get_subject (header)); 213 219 if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES) { … … 246 252 GtkButton *menu_button; 247 253 248 menu_button = GTK_BUTTON (gtk_button_new_with_label ( "Actions"));254 menu_button = GTK_BUTTON (gtk_button_new_with_label (_("Actions"))); 249 255 250 256 menu = GTK_MENU (gtk_menu_new ()); 251 257 252 mdel_menuitem = gtk_menu_item_new_with_label ( "Delete a message");253 mmove_menuitem = gtk_menu_item_new_with_label ( "Move a message");258 mdel_menuitem = gtk_menu_item_new_with_label (_("Delete a message")); 259 mmove_menuitem = gtk_menu_item_new_with_label (_("Move a message")); 254 260 255 261 gtk_widget_show (mdel_menuitem); … … 346 352 tmut_shell_window_set_child ( 347 353 tmut_shell_child_get_window (TMUT_SHELL_CHILD (self)), 348 TMUT_SHELL_CHILD (view), "Go back");354 TMUT_SHELL_CHILD (view), _("Go back")); 349 355 350 356 } … … 426 432 427 433 renderer = gtk_cell_renderer_text_new (); 428 column = gtk_tree_view_column_new_with_attributes ( "Subject", renderer,434 column = gtk_tree_view_column_new_with_attributes (_("Subject"), renderer, 429 435 "text", TNY_GTK_HEADER_LIST_MODEL_SUBJECT_COLUMN, NULL); 430 436 gtk_tree_view_column_set_sizing (column, GTK_TREE_VIEW_COLUMN_FIXED); trunk/src/tmut-main.c
r33 r34 18 18 */ 19 19 20 #if HAVE_CONFIG_H 21 #include "config.h" 22 #endif 23 20 24 #include <gtk/gtk.h> 25 #include <glib/gi18n-lib.h> 21 26 22 27 #include <tny-account-store.h> 23 28 #include <tny-account-store-view.h> 24 29 25 #include <libintl.h>26 30 27 #include "config.h"28 31 #include "tmut-platform-factory.h" 29 32 #include "tmut-menu-view.h" … … 49 52 50 53 window = GTK_WIDGET (tmut_shell_window_new ()); 51 gtk_window_set_title (GTK_WINDOW (window), "TMut");54 gtk_window_set_title (GTK_WINDOW (window), _("TMut")); 52 55 53 56 platfact = tmut_platform_factory_get_instance (); … … 58 61 59 62 tmut_shell_window_set_child (TMUT_SHELL_WINDOW (window), 60 TMUT_SHELL_CHILD (view), "Select account or folder");63 TMUT_SHELL_CHILD (view), _("Select account or folder")); 61 64 62 65 tny_account_store_view_set_account_store (view, account_store); trunk/src/tmut-menu-view.c
r30 r34 18 18 */ 19 19 20 #if HAVE_CONFIG_H 21 #include "config.h" 22 #endif 23 24 #include <glib/gi18n-lib.h> 25 20 26 #include "tmut-menu-view.h" 21 27 #include "tmut-folder-view.h" … … 63 69 64 70 if (canceled) 65 msg = "User canceled the operation";71 msg = _("User canceled the operation"); 66 72 else if (err) 67 73 msg = err->message; … … 170 176 tmut_shell_window_set_child ( 171 177 tmut_shell_child_get_window (TMUT_SHELL_CHILD (self)), 172 TMUT_SHELL_CHILD (view), "Select destination");178 TMUT_SHELL_CHILD (view), _("Select destination")); 173 179 174 180 g_object_unref (folder); … … 202 208 TNY_GTK_FOLDER_STORE_TREE_MODEL_INSTANCE_COLUMN, 203 209 &store, -1); 204 dialog = gtk_dialog_new_with_buttons ( "Create a folder",210 dialog = gtk_dialog_new_with_buttons (_("Create a folder"), 205 211 GTK_WINDOW (priv->shell), 206 212 GTK_DIALOG_MODAL, … … 210 216 211 217 entry = gtk_entry_new (); 212 gtk_entry_set_text (GTK_ENTRY (entry), "New folder");218 gtk_entry_set_text (GTK_ENTRY (entry), _("New folder")); 213 219 gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), entry); 214 220 gtk_widget_show (entry); … … 269 275 { 270 276 gint result; 271 GtkWidget *dialog = gtk_dialog_new_with_buttons ( "Delete a folder",277 GtkWidget *dialog = gtk_dialog_new_with_buttons (_("Delete a folder"), 272 278 GTK_WINDOW (priv->shell), 273 279 GTK_DIALOG_MODAL, … … 275 281 GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT, 276 282 NULL); 277 GtkWidget *label = gtk_label_new ( "Are you sure you want to delete this folder?");283 GtkWidget *label = gtk_label_new (_("Are you sure you want to delete this folder?")); 278 284 gtk_container_add (GTK_CONTAINER (GTK_DIALOG(dialog)->vbox), label); 279 285 gtk_widget_show (label); … … 336 342 GtkButton *menu_button; 337 343 338 menu_button = GTK_BUTTON (gtk_button_new_with_label ( "Actions"));344 menu_button = GTK_BUTTON (gtk_button_new_with_label (_("Actions"))); 339 345 menu = GTK_MENU (gtk_menu_new ()); 340 fcreate_menuitem = gtk_menu_item_new_with_label ( "Create new folder");341 fmove_menuitem = gtk_menu_item_new_with_label ( "Copy or move a folder");342 fdel_menuitem = gtk_menu_item_new_with_label ( "Delete a folder");343 nmsg_menuitem = gtk_menu_item_new_with_label ( "New message");346 fcreate_menuitem = gtk_menu_item_new_with_label (_("Create new folder")); 347 fmove_menuitem = gtk_menu_item_new_with_label (_("Copy or move a folder")); 348 fdel_menuitem = gtk_menu_item_new_with_label (_("Delete a folder")); 349 nmsg_menuitem = gtk_menu_item_new_with_label (_("New message")); 344 350 gtk_widget_show (nmsg_menuitem); 345 351 gtk_widget_show (fcreate_menuitem); … … 474 480 tmut_shell_window_set_child ( 475 481 tmut_shell_child_get_window (TMUT_SHELL_CHILD (self)), 476 TMUT_SHELL_CHILD (view), "Select E-mail to view");482 TMUT_SHELL_CHILD (view), _("Select E-mail to view")); 477 483 g_object_unref (folder); 478 484 } … … 518 524 gtk_container_add (GTK_CONTAINER (sw), GTK_WIDGET (priv->folders_treeview)); 519 525 renderer = gtk_cell_renderer_text_new (); 520 column = gtk_tree_view_column_new_with_attributes ( "Folder", renderer,526 column = gtk_tree_view_column_new_with_attributes (_("Folder"), renderer, 521 527 "text", TNY_GTK_FOLDER_STORE_TREE_MODEL_NAME_COLUMN, NULL); 522 528 gtk_tree_view_column_set_sort_column_id (column, trunk/src/tmut-msg-view.c
r21 r34 18 18 */ 19 19 20 21 #include <config.h> 20 #if HAVE_CONFIG_H 21 #include "config.h" 22 #endif 23 24 #include <glib/gi18n-lib.h> 22 25 23 26 #include "tmut-msg-view.h" … … 72 75 73 76 hbox = gtk_hbox_new (FALSE, 0); 74 reply_button = gtk_button_new_with_label ( "Reply");75 forward_button = gtk_button_new_with_label ( "Forward");77 reply_button = gtk_button_new_with_label (_("Reply")); 78 forward_button = gtk_button_new_with_label (_("Forward")); 76 79 77 80 gtk_widget_show (hbox); trunk/src/tmut-platform-factory.c
r3 r34 17 17 * Boston, MA 02110-1301, USA. 18 18 */ 19 #include <config.h> 19 #if HAVE_CONFIG_H 20 #include "config.h" 21 #endif 22 23 #include <glib/gi18n-lib.h> 20 24 21 25 #include "tmut-platform-factory.h" trunk/src/tmut-ringtone-player.c
r11 r34 18 18 */ 19 19 20 #if HAVE_CONFIG_H 21 #include "config.h" 22 #endif 23 24 #include <glib/gi18n-lib.h> 25 20 26 #include "tmut-ringtone-player.h" 21 27 … … 29 35 case TMUT_RINGTONE_NEW_MESSAGE: 30 36 default: 31 g_printf ( "Play ringtone\n");37 g_printf (_("Play ringtone\n")); 32 38 break; 33 39 } trunk/src/tmut-shell-child.c
r12 r34 18 18 */ 19 19 20 #include <config.h> 20 #if HAVE_CONFIG_H 21 #include "config.h" 22 #endif 23 24 #include <glib/gi18n-lib.h> 21 25 22 26 #include <tmut-shell-child.h> trunk/src/tmut-shell-window.c
r31 r34 19 19 20 20 21 #include <config.h> 21 #if HAVE_CONFIG_H 22 #include "config.h" 23 #endif 24 25 #include <glib/gi18n-lib.h> 22 26 23 27 #include "tmut-shell-window.h"
