diff --git a/po/telegram-purple.pot b/po/telegram-purple.pot index e4e8eae..baad563 100644 --- a/po/telegram-purple.pot +++ b/po/telegram-purple.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-04-12 00:53+0200\n" +"POT-Creation-Date: 2017-04-12 01:22+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -144,63 +144,69 @@ msgid "" "(Helps when not using Pidgin and you aren't being prompted for the code)" msgstr "" -#: ../telegram-purple.c:823 +#. Whether to do fallback SMS verification +#: ../telegram-purple.c:824 msgid "Always" msgstr "" -#: ../telegram-purple.c:824 +#. Whether to do fallback SMS verification +#: ../telegram-purple.c:826 msgid "Never" msgstr "" -#: ../telegram-purple.c:825 ../telegram-purple.c:843 +#. Whether to do fallback SMS verification +#. How to handle "large" files +#: ../telegram-purple.c:828 ../telegram-purple.c:849 msgid "Ask" msgstr "" -#: ../telegram-purple.c:827 +#: ../telegram-purple.c:830 msgid "Accept secret chats" msgstr "" -#: ../telegram-purple.c:831 +#: ../telegram-purple.c:834 msgid "Display buddies offline after (days)" msgstr "" -#: ../telegram-purple.c:835 +#: ../telegram-purple.c:838 msgid "" "Don't fetch history older than (days)\n" "(0 for unlimited)" msgstr "" -#: ../telegram-purple.c:841 +#. How to handle "large" files +#: ../telegram-purple.c:845 msgid "Discard" msgstr "" -#: ../telegram-purple.c:842 +#. How to handle "large" files +#: ../telegram-purple.c:847 msgid "Auto load" msgstr "" -#: ../telegram-purple.c:845 +#: ../telegram-purple.c:851 msgid "Auto load file transfers up to (kb)" msgstr "" -#: ../telegram-purple.c:849 +#: ../telegram-purple.c:855 msgid "Bigger file transfers" msgstr "" #. Chats -#: ../telegram-purple.c:853 +#: ../telegram-purple.c:859 msgid "Add all group chats to buddy list" msgstr "" #. Receipts -#: ../telegram-purple.c:858 +#: ../telegram-purple.c:864 msgid "Display notices of receipt" msgstr "" -#: ../telegram-purple.c:862 +#: ../telegram-purple.c:868 msgid "Send notices of receipt when present" msgstr "" -#: ../telegram-purple.c:887 +#: ../telegram-purple.c:893 msgid "Telegram Protocol Plugin." msgstr "" @@ -294,34 +300,38 @@ msgstr "" msgid "failed loading message" msgstr "" -#: ../tgp-msg.c:521 ../tgp-msg.c:567 +#. Content of a file transfer +#: ../tgp-msg.c:522 ../tgp-msg.c:572 msgid "document" msgstr "" -#: ../tgp-msg.c:523 +#. Content of a file transfer +#: ../tgp-msg.c:525 msgid "audio" msgstr "" -#: ../tgp-msg.c:525 +#. Content of a file transfer +#: ../tgp-msg.c:528 msgid "animation" msgstr "" -#: ../tgp-msg.c:527 +#. Content of a file transfer +#: ../tgp-msg.c:531 msgid "video" msgstr "" -#: ../tgp-msg.c:644 +#: ../tgp-msg.c:649 #, c-format msgid "Forwarded message from: %s
%s" msgstr "" #. FIXME: sometimes users aren't part of the response when receiving a forwarded message -#: ../tgp-msg.c:647 +#: ../tgp-msg.c:652 #, c-format msgid "Forwarded message:
%s" msgstr "" -#: ../tgp-msg.c:760 +#: ../tgp-msg.c:765 msgid "loading document or picture failed" msgstr "" diff --git a/telegram-purple.c b/telegram-purple.c index b739d5d..fc1db9c 100644 --- a/telegram-purple.c +++ b/telegram-purple.c @@ -820,8 +820,11 @@ static void tgprpl_init (PurplePlugin *plugin) { // Messaging GList *choices = NULL; + // Whether to do fallback SMS verification ADD_VALUE(choices, _("Always"), "always"); + // Whether to do fallback SMS verification ADD_VALUE(choices, _("Never"), "never"); + // Whether to do fallback SMS verification ADD_VALUE(choices, _("Ask"), "ask"); opt = purple_account_option_list_new (_("Accept secret chats"), @@ -838,8 +841,11 @@ static void tgprpl_init (PurplePlugin *plugin) { // Media and documents choices = NULL; + // How to handle "large" files ADD_VALUE(choices, _("Discard"), "discard"); + // How to handle "large" files ADD_VALUE(choices, _("Auto load"), "autoload"); + // How to handle "large" files ADD_VALUE(choices, _("Ask"), "ask"); opt = purple_account_option_int_new (_("Auto load file transfers up to (kb)"), TGP_KEY_MEDIA_SIZE, diff --git a/tgp-msg.c b/tgp-msg.c index a46b774..9418a52 100644 --- a/tgp-msg.c +++ b/tgp-msg.c @@ -518,12 +518,16 @@ static void tgp_msg_display (struct tgl_state *TLS, struct tgp_msg_loading *C) { if (C->data) { const char* path = C->data; + // Content of a file transfer const char *caption = _("document"); if (M->media.document->flags & TGLDF_AUDIO) { + // Content of a file transfer caption = _("audio"); } else if (M->media.document->flags & TGLDF_ANIMATED) { + // Content of a file transfer caption = _("animation"); } else if (M->media.document->flags & TGLDF_VIDEO) { + // Content of a file transfer caption = _("video"); } @@ -564,6 +568,7 @@ static void tgp_msg_display (struct tgl_state *TLS, struct tgp_msg_loading *C) { } else { if (! tgp_our_msg (TLS, M)) { if (C->data) { + // Content of a file transfer text = format_document (C->data, M->media.encr_document->caption, _("document"), M->media.encr_document->mime_type, M->media.encr_document->size);