Mercurial > pidgin
comparison src/away.c @ 350:fd3cc0a28d5d
[gaim-migrate @ 360]
Some locale stuff
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 07 Jun 2000 18:33:21 +0000 |
parents | b402a23f35df |
children | e4c34ca88d9b |
comparison
equal
deleted
inserted
replaced
349:b402a23f35df | 350:fd3cc0a28d5d |
---|---|
106 | 106 |
107 if (!imaway) { | 107 if (!imaway) { |
108 imaway = gtk_window_new(GTK_WINDOW_DIALOG); | 108 imaway = gtk_window_new(GTK_WINDOW_DIALOG); |
109 gtk_widget_realize(imaway); | 109 gtk_widget_realize(imaway); |
110 aol_icon(imaway->window); | 110 aol_icon(imaway->window); |
111 back = gtk_button_new_with_label("I'm Back!"); | 111 back = gtk_button_new_with_label(_("I'm Back!")); |
112 bbox = gtk_hbox_new(TRUE, 10); | 112 bbox = gtk_hbox_new(TRUE, 10); |
113 topbox = gtk_hbox_new(FALSE, 5); | 113 topbox = gtk_hbox_new(FALSE, 5); |
114 vbox = gtk_vbox_new(FALSE, 5); | 114 vbox = gtk_vbox_new(FALSE, 5); |
115 | 115 |
116 awaytext = gtk_text_new(NULL, NULL); | 116 awaytext = gtk_text_new(NULL, NULL); |
146 gtk_widget_show(bbox); | 146 gtk_widget_show(bbox); |
147 gtk_widget_show(vbox); | 147 gtk_widget_show(vbox); |
148 if (strlen(a->name)) | 148 if (strlen(a->name)) |
149 gtk_window_set_title(GTK_WINDOW(imaway), a->name); | 149 gtk_window_set_title(GTK_WINDOW(imaway), a->name); |
150 else | 150 else |
151 gtk_window_set_title(GTK_WINDOW(imaway), "Gaim - Away!"); | 151 gtk_window_set_title(GTK_WINDOW(imaway), _("Gaim - Away!")); |
152 gtk_window_set_focus(GTK_WINDOW(imaway), back); | 152 gtk_window_set_focus(GTK_WINDOW(imaway), back); |
153 gtk_container_add(GTK_CONTAINER(imaway), vbox); | 153 gtk_container_add(GTK_CONTAINER(imaway), vbox); |
154 awaymessage = a; | 154 awaymessage = a; |
155 | 155 |
156 } | 156 } |
259 | 259 |
260 remmenu = gtk_menu_new(); | 260 remmenu = gtk_menu_new(); |
261 | 261 |
262 | 262 |
263 | 263 |
264 menuitem = gtk_menu_item_new_with_label("New Away Message"); | 264 menuitem = gtk_menu_item_new_with_label(_("New Away Message")); |
265 gtk_menu_append(GTK_MENU(awaymenu), menuitem); | 265 gtk_menu_append(GTK_MENU(awaymenu), menuitem); |
266 gtk_widget_show(menuitem); | 266 gtk_widget_show(menuitem); |
267 gtk_signal_connect(GTK_OBJECT(menuitem), "activate", GTK_SIGNAL_FUNC(create_away_mess), NULL); | 267 gtk_signal_connect(GTK_OBJECT(menuitem), "activate", GTK_SIGNAL_FUNC(create_away_mess), NULL); |
268 | 268 |
269 | 269 |
278 | 278 |
279 awy = awy->next; | 279 awy = awy->next; |
280 | 280 |
281 } | 281 } |
282 | 282 |
283 menuitem = gtk_menu_item_new_with_label("Remove Away Message"); | 283 menuitem = gtk_menu_item_new_with_label(_("Remove Away Message")); |
284 gtk_menu_append(GTK_MENU(awaymenu), menuitem); | 284 gtk_menu_append(GTK_MENU(awaymenu), menuitem); |
285 gtk_widget_show(menuitem); | 285 gtk_widget_show(menuitem); |
286 gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), remmenu); | 286 gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), remmenu); |
287 gtk_widget_show(remmenu); | 287 gtk_widget_show(remmenu); |
288 | 288 |