Add translation comments

This commit is contained in:
Ben Wiederhake 2017-04-12 01:23:20 +02:00
parent 72102258ab
commit 798fc13578
3 changed files with 43 additions and 22 deletions

View file

@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 "<b>Forwarded message from: %s</b><br>%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 "<b>Forwarded message:</b><br>%s"
msgstr ""
#: ../tgp-msg.c:760
#: ../tgp-msg.c:765
msgid "loading document or picture failed"
msgstr ""

View file

@ -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,

View file

@ -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);