diff src/html.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 104a2659b358
line wrap: on
line diff
--- a/src/html.c	Wed Jun 07 17:14:32 2000 +0000
+++ b/src/html.c	Wed Jun 07 18:33:21 2000 +0000
@@ -116,17 +116,10 @@
 
         website = parse_url(url);
 
-	/*
-	host = gethostbyname(website.address);
-	if (!host) { return g_strdup("g001: Error resolving host\n"); }
-
-	if ((sock = connect_address(inet_addr(host->h_addr), website.port)) <= -1)
-		return g_strdup("g003: Error opening connection.\n");
-	*/
 	host = (struct in_addr *)get_address(website.address);
-	if (!host) { return g_strdup("g001: Error resolving host\n"); }
+	if (!host) { return g_strdup(_("g001: Error resolving host\n")); }
 	if ((sock = connect_address(host->s_addr, website.port)) < 0)
-		return g_strdup("g003: Error opening connection.\n");
+		return g_strdup(_("g003: Error opening connection.\n"));
 
 	g_snprintf(buf, sizeof(buf), "GET /%s HTTP/1.0\n\n", website.page);
 	g_snprintf(debug_buff, sizeof(debug_buff), "Request: %s\n", buf);
@@ -158,7 +151,7 @@
 				char tmpbuf[1024];
 				sscanf(cs, "Content-Length: %d", &datalen);
 
-                                g_snprintf(tmpbuf, 1024, "Getting %d bytes from %s", datalen, url);
+                                g_snprintf(tmpbuf, 1024, _("Getting %d bytes from %s"), datalen, url);
                                 pw = gtk_dialog_new();
 
 				label = gtk_label_new(tmpbuf);
@@ -171,7 +164,7 @@
 						   pbar, FALSE, FALSE, 5);
                                 gtk_widget_show(pbar);
                                 
-                                gtk_window_set_title(GTK_WINDOW(pw), "Getting Data");
+                                gtk_window_set_title(GTK_WINDOW(pw), _("Getting Data"));
                                 
                                 gtk_widget_realize(pw);
                                 aol_icon(pw->window);
@@ -204,7 +197,7 @@
         webdata[len] = 0;
 
 
-        g_snprintf(debug_buff, sizeof(debug_buff), "Receieved: '%s'\n", webdata);
+        g_snprintf(debug_buff, sizeof(debug_buff), _("Receieved: '%s'\n"), webdata);
         debug_print(debug_buff);
 
         if (pw)