# HG changeset patch # User Luke Schierer # Date 1045578975 0 # Node ID c7986b4d182a172fa4782541b025e28feb7530a2 # Parent 2427d847e39c9e0a254826967097e4008da2f822 [gaim-migrate @ 4870] Matthew Smith (smigs) writes: "- Some more i18n _() added. (ticker.c, timestamp.c) - A couple of dialogs given titles (instead of "Unnamed"). (dialogs.c) - Lots more files added to POTFILES.in - I cleaned up the file list in HACKING, removing files that no longer exist, and changing names/locations for others." committer: Tailor Script diff -r 2427d847e39c -r c7986b4d182a HACKING --- a/HACKING Mon Feb 17 15:22:21 2003 +0000 +++ b/HACKING Tue Feb 18 14:36:15 2003 +0000 @@ -38,8 +38,8 @@ either post it on sf.net/projects/gaim in the patches section, or email it to gaim@marko.net. -This file was last modified by $Author: faceprint $ on -$Date: 2003-01-31 08:03:47 -0500 (Fri, 31 Jan 2003) $. Do not expect any information contained +This file was last modified by $Author: lschiere $ on +$Date: 2003-02-18 09:36:15 -0500 (Tue, 18 Feb 2003) $. Do not expect any information contained within to be current or correct. Here's something new. Someone requested that I comment the code. No. I'm a @@ -143,20 +143,6 @@ about.c: Not much to say here, just a few basic functions. -aim.c: - This is where the main() function is. It takes care of a lot of the - initialization stuff, and showing the login window. It's pretty tiny - and there's not really much to edit in it. This has some of the most - pointless functions, like gaim_setup, which optionally turns off sounds - on signon. A lot of this file should actually be part of other files. - -applet.c: - This controls most things that are related to the applet. I don't like - looking at this file because it still has functionsLikeThis. But at - least it doesn't have many of them anymore. Anyway, this file isn't - very big because there's really not much difference between the panel - version and the app version. - away.c: This takes care of most of the away stuff: setting the away message (do_away_message); coming back (do_im_back); drawing the away window; @@ -210,17 +196,6 @@ use any of gaim's code) and is actually a separate project from gaim (but is maintained by Eric). -gtkspell.c: - This controls spell checking. It's not a widget per se but it does have - some influence over the GtkText widget. It's a separate project from - gaim; if you have a patch for this file send it to the author (the - contact info is in the file). - -gtkticker.c: - Syd, our resident GTK God, wrote a GtkWidget, GtkTicker. This is that - widget. It's cool, and it's tiny. This is actually a really good example - widget for those of you looking to write your own. - html.c: Don't ask my why this is called html.c. Most of it is just grab_url, which does like the name says; it downloads a URL to show in the @@ -237,6 +212,13 @@ including importing them from a file, saving them, adding and removing buddies and groups, etc. +main.c: + This is where the main() function is. It takes care of a lot of the + initialization stuff, and showing the login window. It's pretty tiny + and there's not really much to edit in it. This has some of the most + pointless functions, like gaim_setup, which optionally turns off sounds + on signon. A lot of this file should actually be part of other files. + md5.c: Oscar, Yahoo, and MSN all require md5 hashing, so better to put it in the core than have the same thing in three different places. @@ -262,9 +244,6 @@ top half sets up perl and tells it what's going on and the bottom half implements the AIM module. -plugins.c: - This contains the UI for the plugins dialog. It's mostly GTK. - prefs.c: The important function in here is build_prefs, but the most useful function is gaim_button. build_prefs draws the window, and calls @@ -301,7 +280,18 @@ this file will take care of determining if a sound should be played and which file should be played. -ticker.c: +util.c: + There's not really a lot of cohesion to this file; it's just a lot of + stuff that happened to be thrown into it for no apparent reason. None + of it is particularly tasty; it's all just utility functions. Just + like the name says. + +plugins/ticker/gtkticker.c: + Syd, our resident GTK God, wrote a GtkWidget, GtkTicker. This is that + widget. It's cool, and it's tiny. This is actually a really good example + widget for those of you looking to write your own. + +plugins/ticker/ticker.c: Syd is just so cool. I really can't get over it. He let me come visit him at Netscape one day, and I got to see all of their toys (don't worry, I'm under an NDA). Anyway, this file is for the buddy @@ -309,12 +299,6 @@ functions that you'd want right up at the top. Someday I want to be as cool as Syd. -util.c: - There's not really a lot of cohesion to this file; it's just a lot of - stuff that happened to be thrown into it for no apparent reason. None - of it is particularly tasty; it's all just utility functions. Just - like the name says. - For the PRPLs, the only protocol whose "main" gaim file isn't the same as the name of the protocol is ICQ; for that it's gaim_icq.c. But ICQ is deprecated and you should be using Oscar for ICQ anyway. diff -r 2427d847e39c -r c7986b4d182a plugins/ticker/ticker.c --- a/plugins/ticker/ticker.c Mon Feb 17 15:22:21 2003 +0000 +++ b/plugins/ticker/ticker.c Tue Feb 18 14:36:15 2003 +0000 @@ -93,7 +93,7 @@ tickerwindow = gtk_window_new (GTK_WINDOW_TOPLEVEL); g_signal_connect (GTK_OBJECT(tickerwindow), "destroy", G_CALLBACK (BuddyTickerDestroyWindow), "WM destroy"); - gtk_window_set_title (GTK_WINDOW(tickerwindow), "Gaim - Buddy Ticker"); + gtk_window_set_title (GTK_WINDOW(tickerwindow), _("Gaim - Buddy Ticker")); gtk_window_set_role (GTK_WINDOW(tickerwindow), "ticker"); gtk_widget_realize(tickerwindow); diff -r 2427d847e39c -r c7986b4d182a plugins/timestamp.c --- a/plugins/timestamp.c Mon Feb 17 15:22:21 2003 +0000 +++ b/plugins/timestamp.c Tue Feb 18 14:36:15 2003 +0000 @@ -76,14 +76,14 @@ hbox = gtk_hbox_new(FALSE, 5); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 5); - label = gtk_label_new("Delay"); + label = gtk_label_new(_("Delay")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 5); adj = (GtkAdjustment *)gtk_adjustment_new(timestamp/(60*1000), 1, G_MAXINT, 1, 0, 0); spinner = gtk_spin_button_new(adj, 0, 0); gtk_box_pack_start(GTK_BOX(hbox), spinner, TRUE, TRUE, 0); - label = gtk_label_new("minutes."); + label = gtk_label_new(_("minutes.")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 5); hbox = gtk_hbox_new(TRUE, 5); diff -r 2427d847e39c -r c7986b4d182a po/POTFILES.in --- a/po/POTFILES.in Mon Feb 17 15:22:21 2003 +0000 +++ b/po/POTFILES.in Tue Feb 18 14:36:15 2003 +0000 @@ -13,6 +13,7 @@ src/protocols/irc/irc.c src/protocols/jabber/jabber.c src/protocols/msn/msn.c +src/protocols/msn/switchboard.c src/protocols/napster/napster.c src/protocols/oscar/oscar.c src/protocols/toc/toc.c @@ -20,13 +21,17 @@ src/protocols/zephyr/zephyr.c src/about.c src/away.c +src/browser.c src/buddy.c src/buddy_chat.c src/conversation.c src/dialogs.c src/ft.c +src/gaim-remote.c src/gaimrc.c src/gtkconv.c +src/gtkft.c +src/gtkimhtml.c src/gtkutils.c src/html.c src/list.c diff -r 2427d847e39c -r c7986b4d182a src/dialogs.c --- a/src/dialogs.c Mon Feb 17 15:22:21 2003 +0000 +++ b/src/dialogs.c Tue Feb 18 14:36:15 2003 +0000 @@ -405,7 +405,7 @@ g_free(filename); gtk_misc_set_alignment(GTK_MISC(img), 0, 0); - w->window = gtk_dialog_new_with_buttons("", GTK_WINDOW(c->window), GTK_DIALOG_MODAL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, _("_Warn"), GTK_RESPONSE_OK, NULL); + w->window = gtk_dialog_new_with_buttons(_("Gaim - Warn User"), GTK_WINDOW(c->window), GTK_DIALOG_MODAL, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, _("_Warn"), GTK_RESPONSE_OK, NULL); gtk_dialog_set_default_response (GTK_DIALOG(w->window), GTK_RESPONSE_OK); g_signal_connect(G_OBJECT(w->window), "response", G_CALLBACK(do_warn), w); @@ -4025,6 +4025,7 @@ GAIM_DIALOG(window); gtk_window_set_role(GTK_WINDOW(window), "dialog"); + gtk_window_set_title(GTK_WINDOW(window), _("Gaim - Clear Log")); gtk_container_set_border_width(GTK_CONTAINER(window), 10); gtk_window_set_policy(GTK_WINDOW(window), TRUE, TRUE, TRUE); g_signal_connect(GTK_OBJECT(window), "delete_event", G_CALLBACK(destroy_dialog), window);