pidgin/purple-plugin-pack

6cec801be3d3
Parents 0fb42cae7f8f
Children c49a4f89d632
i18n support for plonkers, including adding it to POTFILES.in and running
'make update-po' from the po directory.
  • +40 -35
    plonkers/plonkers.c
  • +1 -0
    po/POTFILES.in
  • +60 -56
    po/en_AU.po
  • +62 -54
    po/es_ES.po
  • +62 -54
    po/fr.po
  • --- a/plonkers/plonkers.c Sun Jul 08 07:01:15 2007 -0400
    +++ b/plonkers/plonkers.c Wed Jul 11 03:07:51 2007 -0400
    @@ -26,6 +26,8 @@
    # include "../pp_config.h"
    #endif
    +#include "../common/pp_internal.h"
    +
    #define PURPLE_PLUGINS
    #include <cmds.h>
    @@ -229,34 +231,34 @@
    vbox = gtk_vbox_new(FALSE, 6);
    gtk_container_set_border_width(GTK_CONTAINER(vbox), 12);
    - frame = pidgin_make_frame(vbox, "Ignored Plonkers");
    + frame = pidgin_make_frame(vbox, _("Ignored Plonkers"));
    - pidgin_prefs_labeled_entry(frame, "Plonkers singular format:",
    + pidgin_prefs_labeled_entry(frame, _("Plonkers singular format:"),
    "/plugins/core/plugin_pack/plonkers/plonkers/format_singular",
    NULL);
    - pidgin_prefs_labeled_entry(frame, "Plonkers plural format:",
    + pidgin_prefs_labeled_entry(frame, _("Plonkers plural format:"),
    "/plugins/core/plugin_pack/plonkers/plonkers/format_plural",
    NULL);
    - frame = pidgin_make_frame(vbox, "Plonking");
    - pidgin_prefs_labeled_entry(frame, "Plonked singular plural:",
    + frame = pidgin_make_frame(vbox, _("Plonking"));
    + pidgin_prefs_labeled_entry(frame, _("Plonked singular plural:"),
    "/plugins/core/plugin_pack/plonkers/plonked/format_singular",
    NULL);
    - pidgin_prefs_labeled_entry(frame, "Plonked plural format:",
    + pidgin_prefs_labeled_entry(frame, _("Plonked plural format:"),
    "/plugins/core/plugin_pack/plonkers/plonked/format_plural",
    NULL);
    sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
    - frame = pidgin_make_frame(vbox, "Format information");
    + frame = pidgin_make_frame(vbox, _("Format information"));
    hbox = gtk_hbox_new(FALSE, 6);
    gtk_box_pack_start(GTK_BOX(frame), hbox, FALSE, FALSE, 0);
    gtk_widget_show(hbox);
    - label = plonkers_make_label("%P: List of plonkers", sg);
    + label = plonkers_make_label(_("%P: List of plonkers"), sg);
    gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
    - label = plonkers_make_label("%N: Number of plonkers", NULL);
    + label = plonkers_make_label(_("%N: Number of plonkers"), NULL);
    gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
    @@ -274,8 +276,8 @@
    ******************************************************************************/
    static gboolean
    plonkers_load(PurplePlugin *plugin) {
    - const gchar *help = "<pre>plonkers;\n"
    - "Tell people in a chat what you really think of them\n</pre>";
    + const gchar *help = _("<pre>plonkers;\nTell people in a chat what you "
    + "really think of them\n</pre>");
    /* register our command */
    plonkers_cmd = purple_cmd_register("plonkers", "", PURPLE_CMD_P_PLUGIN,
    @@ -297,23 +299,6 @@
    return TRUE;
    }
    -static void
    -init_plugin(PurplePlugin *plugin) {
    - purple_prefs_add_none("/plugins/core/plugin_pack");
    - purple_prefs_add_none("/plugins/core/plugin_pack/plonkers");
    - purple_prefs_add_none("/plugins/core/plugin_pack/plonkers/plonkers");
    - purple_prefs_add_string("/plugins/core/plugin_pack/plonkers/plonkers/format_singular",
    - "/me has identified %N plonker: %P.");
    - purple_prefs_add_string("/plugins/core/plugin_pack/plonkers/plonkers/format_plural",
    - "/me has identified %N plonkers: %P.");
    - purple_prefs_add_none("/plugins/core/plugin_pack/plonkers/plonked");
    - purple_prefs_add_string("/plugins/core/plugin_pack/plonkers/plonked/format_singular",
    - "/me plonks: %P.");
    - purple_prefs_add_string("/plugins/core/plugin_pack/plonkers/plonked/format_plural",
    - "/me plonks: %P.");
    -
    -}
    -
    static PidginPluginUiInfo ui_info = {
    plonkers_get_config_frame,
    0,
    @@ -334,14 +319,10 @@
    PURPLE_PRIORITY_DEFAULT, /* priority */
    "core-plugin_pack-Plonkers", /* id */
    - "Plonkers", /* name */
    + NULL, /* name */
    PP_VERSION, /* version */
    - "Tell plonkers what you really think", /* summary */
    - "A small plugin that lets you announce"
    - " to a chat room your current ignores, as"
    - " well as providing other pointless ingore and"
    - " privacy tools for dealing with idiots.\n"
    - "Name inspired by en_IE/GB word for 'idiots'.", /* description */
    + NULL, /* summary */
    + NULL, /* description */
    "Peter Lawler <bleeter from users.sf.net>", /* author */
    PP_WEBSITE, /* homepage */
    plonkers_load, /* load */
    @@ -358,4 +339,28 @@
    NULL /* reserved 4 */
    };
    +static void
    +init_plugin(PurplePlugin *plugin) {
    + purple_prefs_add_none("/plugins/core/plugin_pack");
    + purple_prefs_add_none("/plugins/core/plugin_pack/plonkers");
    + purple_prefs_add_none("/plugins/core/plugin_pack/plonkers/plonkers");
    + purple_prefs_add_string("/plugins/core/plugin_pack/plonkers/plonkers/format_singular",
    + _("/me has identified %N plonker: %P."));
    + purple_prefs_add_string("/plugins/core/plugin_pack/plonkers/plonkers/format_plural",
    + _("/me has identified %N plonkers: %P."));
    + purple_prefs_add_none("/plugins/core/plugin_pack/plonkers/plonked");
    + purple_prefs_add_string("/plugins/core/plugin_pack/plonkers/plonked/format_singular",
    + _("/me plonks: %P."));
    + purple_prefs_add_string("/plugins/core/plugin_pack/plonkers/plonked/format_plural",
    + _("/me plonks: %P."));
    +
    + plonkers_info.name = _("Plonkers");
    + plonkers_info.summary = _("Tell plonkers what you really think.");
    + plonkers_info.description = _("Plonkers is a small plugin that lets you "
    + "announce to a chat room your current list of ignores, as well as "
    + "providing other pointless ignore and privacy tools for dealing "
    + "with idiots. The name is inspired by the British/Irish word for "
    + "'idiots.'");
    +}
    +
    PURPLE_INIT_PLUGIN(plonkers, init_plugin, plonkers_info)
    --- a/po/POTFILES.in Sun Jul 08 07:01:15 2007 -0400
    +++ b/po/POTFILES.in Wed Jul 11 03:07:51 2007 -0400
    @@ -37,6 +37,7 @@
    napster/napster.c
    nicksaid/nicksaid.c
    oldlogger/oldlogger.c
    +plonkers/plonkers.c
    schedule/pidgin-schedule.c
    schedule/schedule.c
    sepandtab/sepandtab.c
    --- a/po/en_AU.po Sun Jul 08 07:01:15 2007 -0400
    +++ b/po/en_AU.po Wed Jul 11 03:07:51 2007 -0400
    @@ -8,7 +8,7 @@
    msgstr ""
    "Project-Id-Version: plugin_pack 0.1cvs\n"
    "Report-Msgid-Bugs-To: \n"
    -"POT-Creation-Date: 2007-06-21 19:55-0400\n"
    +"POT-Creation-Date: 2007-07-10 23:04-0400\n"
    "PO-Revision-Date: 2005-11-21 10:36+1100\n"
    "Last-Translator: Peter Lawler <trans@six-by-nine.com.au>\n"
    "Language-Team: English/AU <trans@six-by-nine.com.au>\n"
    @@ -138,85 +138,85 @@
    #: ../autoreply/autoreply.c:241 ../listhandler/aim_blt_files.c:301
    #: ../listhandler/aim_blt_files.c:465 ../listhandler/gen_xml_files.c:190
    -#: ../listhandler/gen_xml_files.c:430 ../listhandler/gen_xml_files.c:546
    -#: ../listhandler/gen_xml_files.c:623 ../listhandler/migrate.c:145
    +#: ../listhandler/gen_xml_files.c:430 ../listhandler/gen_xml_files.c:545
    +#: ../listhandler/gen_xml_files.c:622 ../listhandler/migrate.c:145
    #: ../listhandler/migrate.c:184
    msgid "_Cancel"
    msgstr ""
    -#: ../autoreply/autoreply.c:254
    +#: ../autoreply/autoreply.c:257
    msgid "Set _Autoreply Message"
    msgstr ""
    -#: ../autoreply/autoreply.c:263
    +#: ../autoreply/autoreply.c:266
    msgid "Autoreply message"
    msgstr ""
    -#: ../autoreply/autoreply.c:350
    +#: ../autoreply/autoreply.c:353
    msgid "Send autoreply messages when"
    msgstr ""
    -#: ../autoreply/autoreply.c:354
    +#: ../autoreply/autoreply.c:357
    msgid "When my account is _away"
    msgstr ""
    -#: ../autoreply/autoreply.c:358
    +#: ../autoreply/autoreply.c:361
    msgid "When my account is _idle"
    msgstr ""
    -#: ../autoreply/autoreply.c:362
    +#: ../autoreply/autoreply.c:365
    msgid "_Default reply"
    msgstr ""
    -#: ../autoreply/autoreply.c:369
    +#: ../autoreply/autoreply.c:372
    msgid ""
    "Autoreply Prefix\n"
    "(only when necessary)"
    msgstr ""
    -#: ../autoreply/autoreply.c:372
    +#: ../autoreply/autoreply.c:375
    msgid "Status message"
    msgstr ""
    -#: ../autoreply/autoreply.c:376
    +#: ../autoreply/autoreply.c:379
    msgid "Autoreply with status message"
    msgstr ""
    -#: ../autoreply/autoreply.c:378
    +#: ../autoreply/autoreply.c:381
    msgid "Never"
    msgstr ""
    -#: ../autoreply/autoreply.c:380
    +#: ../autoreply/autoreply.c:383
    msgid "Always when there is a status message"
    msgstr ""
    -#: ../autoreply/autoreply.c:382
    +#: ../autoreply/autoreply.c:385
    msgid "Only when there's no autoreply message"
    msgstr ""
    -#: ../autoreply/autoreply.c:387
    +#: ../autoreply/autoreply.c:390
    msgid "Delay between autoreplies"
    msgstr ""
    -#: ../autoreply/autoreply.c:391
    +#: ../autoreply/autoreply.c:394
    msgid "_Minimum delay (mins)"
    msgstr ""
    -#: ../autoreply/autoreply.c:395
    +#: ../autoreply/autoreply.c:398
    msgid "Times to send autoreplies"
    msgstr ""
    -#: ../autoreply/autoreply.c:399
    +#: ../autoreply/autoreply.c:402
    msgid "Ma_ximum count"
    msgstr ""
    -#: ../autoreply/autoreply.c:454
    +#: ../autoreply/autoreply.c:457
    msgid ""
    "I am currently not available. Please leave your message, and I will get back "
    "to you as soon as possible."
    msgstr ""
    -#: ../autoreply/autoreply.c:459
    +#: ../autoreply/autoreply.c:462
    msgid "This is an autoreply: "
    msgstr ""
    @@ -486,7 +486,7 @@
    msgid "Select timezone"
    msgstr ""
    -#: ../buddytime/buddytime.c:192
    +#: ../buddytime/buddytime.c:195
    msgid "Timezone"
    msgstr ""
    @@ -529,23 +529,27 @@
    msgid "<BR>Topic changed from: <BR>%s<BR>To:<BR>%s"
    msgstr ""
    -#: ../eight_ball/eight_ball.c:128
    +#: ../eight_ball/eight_ball.c:142
    msgid "8ball: sends a random 8ball message"
    msgstr ""
    -#: ../eight_ball/eight_ball.c:129
    +#: ../eight_ball/eight_ball.c:143
    msgid "sgball: sends a random Stargate Ball message"
    msgstr ""
    -#: ../eight_ball/eight_ball.c:196
    +#: ../eight_ball/eight_ball.c:144
    +msgid "fullcrap: sends random fooling blabber"
    +msgstr ""
    +
    +#: ../eight_ball/eight_ball.c:217
    msgid "Magic 8 Ball"
    msgstr ""
    -#: ../eight_ball/eight_ball.c:197
    +#: ../eight_ball/eight_ball.c:218
    msgid "Provides Magic 8-ball like functionality"
    msgstr ""
    -#: ../eight_ball/eight_ball.c:198
    +#: ../eight_ball/eight_ball.c:219
    msgid ""
    "Provides Magic 8-ball like functionality with the /8ball command, as well as "
    "similar functionality for common Stargate words or phrases with the /sg-ball "
    @@ -572,21 +576,21 @@
    #. should be completely mad and see if user has only one buddy (not a chat)
    #. * on the blist and pluralise if appropriate
    -#: ../gRIM/gRIM.c:281
    +#: ../gRIM/gRIM.c:280
    msgid ""
    "gRIM: rim your pals\n"
    "/rim &lt;filename&gt; &lt;duration-in-secs&gt;"
    msgstr ""
    +#: ../gRIM/gRIM.c:346
    +msgid "gRIM"
    +msgstr ""
    +
    #: ../gRIM/gRIM.c:347
    -msgid "gRIM"
    +msgid "A completely stupid and pointless plugin"
    msgstr ""
    #: ../gRIM/gRIM.c:348
    -msgid "A completely stupid and pointless plugin"
    -msgstr ""
    -
    -#: ../gRIM/gRIM.c:349
    #, fuzzy
    msgid ""
    "Adds commands to annoy buddies with. Inspired by a dumb IRC convo and Red "
    @@ -999,39 +1003,39 @@
    #. Last said
    #. Signed on
    #. Signed off
    -#: ../lastseen/lastseen.c:176 ../lastseen/lastseen.c:188
    +#: ../lastseen/lastseen.c:165
    msgid ""
    "\n"
    -"<b>Last Seen:</b>"
    +"<b>Last Seen</b>: "
    msgstr ""
    -#: ../lastseen/lastseen.c:177 ../lastseen/lastseen.c:189
    +#: ../lastseen/lastseen.c:166
    msgid ""
    "\n"
    -"<b>Last Said:</b>"
    +"<b>Last Said</b>: "
    msgstr ""
    -#: ../lastseen/lastseen.c:178 ../lastseen/lastseen.c:190
    +#: ../lastseen/lastseen.c:167
    msgid ""
    "\n"
    -"<b>Signed On:</b>"
    +"<b>Signed On</b>: "
    msgstr ""
    -#: ../lastseen/lastseen.c:179 ../lastseen/lastseen.c:191
    +#: ../lastseen/lastseen.c:168
    msgid ""
    "\n"
    -"<b>Signed Off:</b>"
    +"<b>Signed Off</b>: "
    msgstr ""
    -#: ../lastseen/lastseen.c:272
    +#: ../lastseen/lastseen.c:246
    msgid "Last Seen"
    msgstr ""
    -#: ../lastseen/lastseen.c:273
    +#: ../lastseen/lastseen.c:247
    msgid "Record when a buddy was last seen."
    msgstr ""
    -#: ../lastseen/lastseen.c:274
    +#: ../lastseen/lastseen.c:248
    msgid ""
    "Logs the time of a last received message, what they said, when they logged "
    "in, and when they logged out, for buddies on your buddy list."
    @@ -1040,7 +1044,7 @@
    #. create a field
    #: ../listhandler/aim_blt_files.c:287 ../listhandler/aim_blt_files.c:453
    #: ../listhandler/gen_xml_files.c:175 ../listhandler/gen_xml_files.c:416
    -#: ../listhandler/gen_xml_files.c:532 ../listhandler/gen_xml_files.c:608
    +#: ../listhandler/gen_xml_files.c:531 ../listhandler/gen_xml_files.c:607
    #: ../listhandler/migrate.c:129 ../listhandler/migrate.c:169
    #: ../schedule/pidgin-schedule.c:292
    msgid "Account"
    @@ -1052,12 +1056,12 @@
    msgstr ""
    #: ../listhandler/aim_blt_files.c:298 ../listhandler/gen_xml_files.c:187
    -#: ../listhandler/gen_xml_files.c:620
    +#: ../listhandler/gen_xml_files.c:619
    msgid "Choose the account to import to:"
    msgstr ""
    #: ../listhandler/aim_blt_files.c:299 ../listhandler/gen_xml_files.c:188
    -#: ../listhandler/gen_xml_files.c:621
    +#: ../listhandler/gen_xml_files.c:620
    msgid "_Import"
    msgstr ""
    @@ -1071,12 +1075,12 @@
    msgstr ""
    #: ../listhandler/aim_blt_files.c:464 ../listhandler/gen_xml_files.c:429
    -#: ../listhandler/gen_xml_files.c:545
    +#: ../listhandler/gen_xml_files.c:544
    msgid "Choose the account to export from:"
    msgstr ""
    #: ../listhandler/aim_blt_files.c:465 ../listhandler/gen_xml_files.c:430
    -#: ../listhandler/gen_xml_files.c:546
    +#: ../listhandler/gen_xml_files.c:545
    msgid "_Export"
    msgstr ""
    @@ -1085,7 +1089,7 @@
    msgstr ""
    #. and finally we can create the request
    -#: ../listhandler/gen_xml_files.c:186 ../listhandler/gen_xml_files.c:619
    +#: ../listhandler/gen_xml_files.c:186 ../listhandler/gen_xml_files.c:618
    msgid "Listhandler - Importing"
    msgstr ""
    @@ -1094,15 +1098,15 @@
    msgstr ""
    #. and finally we can create the request
    -#: ../listhandler/gen_xml_files.c:428 ../listhandler/gen_xml_files.c:544
    +#: ../listhandler/gen_xml_files.c:428 ../listhandler/gen_xml_files.c:543
    msgid "Listhandler - Exporting"
    msgstr ""
    -#: ../listhandler/gen_xml_files.c:441 ../listhandler/gen_xml_files.c:650