cpw.nader.asynclogging-3: bad2521d: Fixed a few unmarked translation strings...
morshed.nader at gmail.com
morshed.nader at gmail.com
Mon May 30 03:07:54 EDT 2011
----------------------------------------------------------------------
Revision: bad2521d29a448e5d9e652b494d1dc099c07cd2c
Parent: 09900a6ec8f3a5946d48fbdaca1b7566ce5a5b60
Author: morshed.nader at gmail.com
Date: 05/30/11 02:27:05
Branch: im.pidgin.cpw.nader.asynclogging-3
URL: http://d.pidgin.im/viewmtn/revision/info/bad2521d29a448e5d9e652b494d1dc099c07cd2c
Changelog:
Fixed a few unmarked translation strings in writing logs
Changes against parent 09900a6ec8f3a5946d48fbdaca1b7566ce5a5b60
patched libpurple/htmllog.c
patched libpurple/txtlog.c
-------------- next part --------------
============================================================
--- libpurple/htmllog.c 1fbac63c0f554d97bebf54aeac75b35db3ed65ed
+++ libpurple/htmllog.c a54e51eb531b008a5b64c756115a2934c070b67c
@@ -143,7 +143,7 @@ convert_image_tags(const PurpleLog *log,
}
/* Write the new image tag */
- g_string_append_printf(newmsg, "<IMG SRC=\"%s\">", new_filename);
+ g_string_append_printf(newmsg, "<img src=\"%s\">", new_filename);
g_free(new_filename);
g_free(path);
}
@@ -222,11 +222,11 @@ purple_html_log_write(PurpleLog *log, Pu
date_full = purple_date_format_full(localtime(&log_time));
if (purple_log_get_chat_type(log) == PURPLE_LOG_SYSTEM)
- header = g_strdup_printf("System log for account %s (%s) "
- "connected at %s",
+ header = g_strdup_printf(_("System log for account %s (%s) "
+ "connected at %s"),
purple_account_get_username(account), prpl, date_full);
else
- header = g_strdup_printf("Conversation with %s at %s on %s (%s)",
+ header = g_strdup_printf(_("Conversation with %s at %s on %s (%s)"),
purple_log_get_name(log), date_full,
purple_account_get_username(account), prpl);
@@ -284,13 +284,15 @@ purple_html_log_write(PurpleLog *log, Pu
date, escaped_from, msg_fixed);
else if (type & PURPLE_MESSAGE_AUTO_RESP) {
if (type & PURPLE_MESSAGE_SEND)
- line = g_strdup_printf(_("<font color=\"#16569E\"><font "
- "size=\"2\">(%s)</font> <b>%s <AUTO-REPLY>:</b>"
- "</font> %s<br/>\n"), date, escaped_from, msg_fixed);
+ line = g_strdup_printf("<font color=\"#16569E\"><font "
+ "size=\"2\">(%s)</font> <b>%s <%s>:</b>"
+ "</font> %s<br/>\n", date, escaped_from, _("AUTO-REPLY"),
+ msg_fixed);
else
line = g_strdup_printf(_("<font color=\"#A82F2F\"><font "
- "size=\"2\">(%s)</font> <b>%s <AUTO-REPLY>:</b>"
- "</font> %s<br/>\n"), date, escaped_from, msg_fixed);
+ "size=\"2\">(%s)</font> <b>%s <%s>:</b>"
+ "</font> %s<br/>\n"), date, escaped_from, _("AUTO-REPLY"),
+ msg_fixed);
} else if (type & PURPLE_MESSAGE_RECV) {
if (purple_message_meify(msg_fixed, -1))
line = g_strdup_printf("<font color=\"#062585\"><font "
@@ -420,7 +422,7 @@ write_footer(PurpleCommonLog *common_log
g_object_unref(file_stream);
if (!success)
- purple_debug_warning("htmllog", "Error writing file footer: %s\n",
+ purple_debug_warning("htmllog", "Error writing log footer: %s\n",
error->message);
g_clear_error(&error);
============================================================
--- libpurple/txtlog.c b183991bb8e128dd52281a97c75076e613f77119
+++ libpurple/txtlog.c 92f09c5d2985e480f688b345afcc9c8dd0b10f66
@@ -133,12 +133,12 @@ purple_txt_log_write(PurpleLog *log, Pur
prpl = PURPLE_PLUGIN_PROTOCOL_INFO(plugin)->list_icon(account, NULL);
if (chat_type == PURPLE_LOG_SYSTEM)
- line = g_strdup_printf("System log for account %s (%s) "
- "connected at %s\n",
+ line = g_strdup_printf(_("System log for account %s (%s) "
+ "connected at %s\n"),
purple_account_get_username(account), prpl,
purple_date_format_full(localtime(&log_time)));
else
- line = g_strdup_printf("Conversation with %s at %s on %s (%s)\n",
+ line = g_strdup_printf(_("Conversation with %s at %s on %s (%s)\n"),
purple_log_get_name(log),
purple_date_format_full(localtime(&log_time)),
purple_account_get_username(account), prpl);
@@ -166,8 +166,8 @@ purple_txt_log_write(PurpleLog *log, Pur
type & PURPLE_MESSAGE_RECV)
{
if (type & PURPLE_MESSAGE_AUTO_RESP)
- line = g_strdup_printf(_("(%s) %s <AUTO-REPLY>: %s\n"), date,
- from, stripped);
+ line = g_strdup_printf(_("(%s) %s <%s>: %s\n"), date,
+ from, _("AUTO-REPLY"), stripped);
else {
if (purple_message_meify(stripped, -1))
line = g_strdup_printf("(%s) ***%s %s\n", date, from,
More information about the Commits
mailing list