Mark the protocol descriptions for translation and tweak them a bit.

Sat, 30 Apr 2022 02:31:54 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Sat, 30 Apr 2022 02:31:54 -0500
changeset 41348
74b1a5db343b
parent 41346
d25fecfb02f9
child 41349
15aeaa1e84ec

Mark the protocol descriptions for translation and tweak them a bit.

Testing Done:
Compile only

Reviewed at https://reviews.imfreedom.org/r/902/

libpurple/protocols/bonjour/bonjour.c file | annotate | diff | comparison | revisions
libpurple/protocols/facebook/facebook.c file | annotate | diff | comparison | revisions
libpurple/protocols/gg/gg.c file | annotate | diff | comparison | revisions
libpurple/protocols/irc/irc.c file | annotate | diff | comparison | revisions
libpurple/protocols/jabber/xmpp.c file | annotate | diff | comparison | revisions
libpurple/protocols/novell/novell.c file | annotate | diff | comparison | revisions
libpurple/protocols/sametime/sametime.c file | annotate | diff | comparison | revisions
libpurple/protocols/silc/silc.c file | annotate | diff | comparison | revisions
libpurple/protocols/zephyr/zephyr.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/bonjour/bonjour.c	Thu Apr 28 18:14:32 2022 -0500
+++ b/libpurple/protocols/bonjour/bonjour.c	Sat Apr 30 02:31:54 2022 -0500
@@ -753,7 +753,8 @@
 		BONJOUR_TYPE_PROTOCOL,
 		"id", "prpl-bonjour",
 		"name", "Bonjour",
-		"description", "Bonjour is a serverless protocol, developed by Apple",
+		"description", _("Bonjour is a serverless protocol for local "
+		                 "networks."),
 		"icon-name", "im-bonjour",
 		"icon-resource-path", "/im/pidgin/libpurple/bonjour/icons",
 		"options", OPT_PROTO_NO_PASSWORD,
--- a/libpurple/protocols/facebook/facebook.c	Thu Apr 28 18:14:32 2022 -0500
+++ b/libpurple/protocols/facebook/facebook.c	Sat Apr 30 02:31:54 2022 -0500
@@ -1737,7 +1737,9 @@
 	fb_protocol = g_object_new(FACEBOOK_TYPE_PROTOCOL,
 	                           "id", FB_PROTOCOL_ID,
 	                           "name", "Facebook",
-	                           "description", "Facebook is a chat protocol, developed by Facebook",
+	                           "description", _("Facebook Messenger allows "
+	                                            "you to talk with your "
+	                                            "friends on Facebook."),
 	                           "icon-name", "im-facebook",
 	                           "icon-resource-path", "/im/pidgin/libpurple/facebook/icons",
 	                           "options", OPT_PROTO_CHAT_TOPIC,
--- a/libpurple/protocols/gg/gg.c	Thu Apr 28 18:14:32 2022 -0500
+++ b/libpurple/protocols/gg/gg.c	Sat Apr 30 02:31:54 2022 -0500
@@ -1211,7 +1211,7 @@
 		GGP_TYPE_PROTOCOL,
 		"id", "prpl-gg",
 		"name", "Gadu-Gadu",
-		"description", "Gadu-Gadu is a Polish instant messaging client",
+		"description", _("Gadu-Gadu is a Polish instant messaging network."),
 		"icon-name", "im-gadu-gadu",
 		"icon-resource-path", "/im/pidgin/libpurple/gg/icons",
 		NULL));
--- a/libpurple/protocols/irc/irc.c	Thu Apr 28 18:14:32 2022 -0500
+++ b/libpurple/protocols/irc/irc.c	Sat Apr 30 02:31:54 2022 -0500
@@ -1165,7 +1165,8 @@
 		IRC_TYPE_PROTOCOL,
 		"id", "prpl-irc",
 		"name", "IRC",
-		"description", "Internet Relay Chat (IRC) is a text-based chat system",
+		"description", _("Internet Relay Chat (IRC) is a text-based chat "
+		                 "system."),
 		"icon-name", "im-irc",
 		"icon-resource-path", "/im/pidgin/libpurple/irc/icons",
 		"options", OPT_PROTO_CHAT_TOPIC | OPT_PROTO_PASSWORD_OPTIONAL |
--- a/libpurple/protocols/jabber/xmpp.c	Thu Apr 28 18:14:32 2022 -0500
+++ b/libpurple/protocols/jabber/xmpp.c	Sat Apr 30 02:31:54 2022 -0500
@@ -139,7 +139,8 @@
 		XMPP_TYPE_PROTOCOL,
 		"id", XMPP_PROTOCOL_ID,
 		"name", "XMPP",
-		"description", "Extensible Messaging and Presence Protocol for IM, voice and video",
+		"description", _("Extensible Messaging and Presence Protocol for IM, "
+		                 "voice, and video."),
 		"icon-name", "im-jabber",
 		"icon-resource-path", "/im/pidgin/libpurple/xmpp/icons",
 		"options", options,
--- a/libpurple/protocols/novell/novell.c	Thu Apr 28 18:14:32 2022 -0500
+++ b/libpurple/protocols/novell/novell.c	Sat Apr 30 02:31:54 2022 -0500
@@ -3642,7 +3642,8 @@
 		NOVELL_TYPE_PROTOCOL,
 		"id", "prpl-novell",
 		"name", "GroupWise",
-		"description", "GroupWise is a messaging and collaboration platform from Micro Focus",
+		"description", _("GroupWise is a messaging and collaboration "
+		                 "platform from Micro Focus."),
 		"icon-name", "im-novell",
 		"icon-resource-path", "/im/pidgin/libpurple/novell/icons",
 		NULL));
--- a/libpurple/protocols/sametime/sametime.c	Thu Apr 28 18:14:32 2022 -0500
+++ b/libpurple/protocols/sametime/sametime.c	Sat Apr 30 02:31:54 2022 -0500
@@ -66,11 +66,6 @@
 
 static PurpleProtocol *my_protocol = NULL;
 
-#define PROTOCOL_ID        "prpl-meanwhile"
-#define PROTOCOL_NAME      "Sametime"
-#define PROTOCOL_DESCRIPTION "Sametime chat by Lotus"
-
-
 /* considering that there's no display of this information for protocols,
    I don't know why I even bother providing these. Oh valiant reader,
    I do it all for you. */
@@ -5393,9 +5388,9 @@
 mw_protocol_new(void) {
   return PURPLE_PROTOCOL(g_object_new(
     MW_TYPE_PROTOCOL,
-    "id", PROTOCOL_ID,
-    "name", PROTOCOL_NAME,
-    "description", PROTOCOL_DESCRIPTION,
+    "id", "prpl-meanwhile",
+    "name", "Sametime",
+    "description", _("HCL Sametime enterprise chat."),
     "icon-name", "im-meanwhile",
     "icon-resource-path", "/im/pidgin/libpurple/sametime/icons",
     NULL));
--- a/libpurple/protocols/silc/silc.c	Thu Apr 28 18:14:32 2022 -0500
+++ b/libpurple/protocols/silc/silc.c	Sat Apr 30 02:31:54 2022 -0500
@@ -2350,7 +2350,7 @@
 	        SILCPURPLE_TYPE_PROTOCOL,
 	        "id", "prpl-silc",
 	        "name", "SILC",
-	        "description", "SILC - Secure Internet Live Conferencing protocol",
+	        "description", _("Secure Internet Live Conferencing protocol."),
 	        "icon-name", "im-silc",
 	        "icon-resource-path", "/im/pidgin/libpurple/silc/icons",
 	        "options", OPT_PROTO_CHAT_TOPIC | OPT_PROTO_UNIQUE_CHATNAME |
--- a/libpurple/protocols/zephyr/zephyr.c	Thu Apr 28 18:14:32 2022 -0500
+++ b/libpurple/protocols/zephyr/zephyr.c	Sat Apr 30 02:31:54 2022 -0500
@@ -1725,7 +1725,7 @@
 		ZEPHYR_TYPE_PROTOCOL,
 		"id", "prpl-zephyr",
 		"name", "Zephyr",
-		"description", "Zephyr is an instant messaging protocol, created at MIT",
+		"description", _("The chat component of Project Athena."),
 		"icon-name", "im-zephyr",
 		"icon-resource-path", "/im/pidgin/libpurple/zephyr/icons",
 		"options", OPT_PROTO_CHAT_TOPIC | OPT_PROTO_NO_PASSWORD,

mercurial