diff --git a/diaspora/lang/ru/messages.po b/diaspora/lang/ru/messages.po index 3c064fa1..34a8c323 100644 --- a/diaspora/lang/ru/messages.po +++ b/diaspora/lang/ru/messages.po @@ -4,15 +4,14 @@ # # # Translators: -# Alexander An , 2020 # Stanislav N. , 2017-2018 msgid "" msgstr "" "Project-Id-Version: friendica\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-05-07 00:15-0400\n" -"PO-Revision-Date: 2020-10-09 19:03+0000\n" -"Last-Translator: Alexander An \n" +"POT-Creation-Date: 2014-06-22 13:18+0200\n" +"PO-Revision-Date: 2018-05-25 00:01+0000\n" +"Last-Translator: Stanislav N. \n" "Language-Team: Russian (http://www.transifex.com/Friendica/friendica/language/ru/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -20,96 +19,44 @@ msgstr "" "Language: ru\n" "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" -#: diaspora.php:53 +#: diaspora.php:37 msgid "Post to Diaspora" msgstr "Отправить в Diaspora" -#: diaspora.php:78 -#, php-format +#: diaspora.php:142 msgid "" -"Please remember: You can always be reached from Diaspora with your Friendica" -" handle %s. " -msgstr "Помните: с вами всегда можно связаться из сети Diaspora по вашему адресу Friendica %s." +"Can't login to your Diaspora account. Please check username and password and" +" ensure you used the complete address (including http...)" +msgstr "Невозможно войти в вашу учетную запись Diaspora. Пожалуйста, проверьте имя пользователя, пароль и убедитесь, что вы ввели полный адрес пода (включая http/https)" -#: diaspora.php:79 -msgid "" -"This connector is only meant if you still want to use your old Diaspora " -"account for some time. " -msgstr "Этот коннектор предназначен только для тех случаев, когда вы хотите использовать вашу старую учётную запись в Diaspora в течение какого-то времени." - -#: diaspora.php:80 -#, php-format -msgid "" -"However, it is preferred that you tell your Diaspora contacts the new handle" -" %s instead." -msgstr "Но будет лучше, если вы просто предложите вашим контактам в Diaspora использовать ваш новый адрес %s." - -#: diaspora.php:90 -msgid "All aspects" -msgstr "Все контакты" - -#: diaspora.php:91 -msgid "Public" -msgstr "Публично" - -#: diaspora.php:97 -msgid "Post to aspect:" -msgstr "Для группы:" - -#: diaspora.php:98 -#, php-format -msgid "Connected with your Diaspora account %s" -msgstr "Соединено с вашей учётной записью Diaspora %s" - -#: diaspora.php:101 -msgid "" -"Can't login to your Diaspora account. Please check handle (in the format " -"user@domain.tld) and password." -msgstr "Не получается зайти в вашу учётную запись Diaspora. Пожалуйста, проверьте правильность имени (в формате user@domain.tld) и пароль." - -#: diaspora.php:109 +#: diaspora.php:149 diaspora.php:153 msgid "Diaspora Export" msgstr "Экспорт в Diaspora" -#: diaspora.php:110 -msgid "Information" -msgstr "Информация" - -#: diaspora.php:111 -msgid "Error" -msgstr "Ошибка" - -#: diaspora.php:112 -msgid "Save Settings" -msgstr "Сохранить настройки" - -#: diaspora.php:116 +#: diaspora.php:163 msgid "Enable Diaspora Post Addon" msgstr "Включить аддон Diaspora Post" -#: diaspora.php:117 -msgid "Diaspora handle" -msgstr "Имя в Diaspora" +#: diaspora.php:168 +msgid "Diaspora username" +msgstr "Имя пользователя Diaspora" -#: diaspora.php:118 +#: diaspora.php:173 msgid "Diaspora password" msgstr "Пароль Diaspora" -#: diaspora.php:118 -msgid "" -"Privacy notice: Your Diaspora password will be stored unencrypted to " -"authenticate you with your Diaspora pod. This means your Friendica node " -"administrator can have access to it." -msgstr "Предупреждение: Ваш пароль для Diaspora будет сохранён в открытом виде, чтобы производить вход в ваш сервер Diaspora. Это означает, что администратор этого узла Friendica может получить к нему доступ." +#: diaspora.php:178 +msgid "Diaspora site URL" +msgstr "URL пода Diaspora" -#: diaspora.php:120 +#: diaspora.php:183 msgid "Post to Diaspora by default" msgstr "Отправлять в Diaspora по умолчанию" -#: diaspora.php:138 -msgid "Diaspora settings updated." -msgstr "Настройки Diaspora обновлены." +#: diaspora.php:189 +msgid "Save Settings" +msgstr "Сохранить настройки" -#: diaspora.php:141 -msgid "Diaspora connector disabled." -msgstr "Коннектор Diaspora отключён." +#: diaspora.php:324 +msgid "Diaspora post failed. Queued for retry." +msgstr "Ошибка отправки сообщения в Diaspora. В очереди на еще одну попытку." diff --git a/diaspora/lang/ru/strings.php b/diaspora/lang/ru/strings.php index 1038ec21..c414f622 100644 --- a/diaspora/lang/ru/strings.php +++ b/diaspora/lang/ru/strings.php @@ -7,22 +7,12 @@ function string_plural_select_ru($n){ }} ; $a->strings["Post to Diaspora"] = "Отправить в Diaspora"; -$a->strings["Please remember: You can always be reached from Diaspora with your Friendica handle %s. "] = "Помните: с вами всегда можно связаться из сети Diaspora по вашему адресу Friendica %s."; -$a->strings["This connector is only meant if you still want to use your old Diaspora account for some time. "] = "Этот коннектор предназначен только для тех случаев, когда вы хотите использовать вашу старую учётную запись в Diaspora в течение какого-то времени."; -$a->strings["However, it is preferred that you tell your Diaspora contacts the new handle %s instead."] = "Но будет лучше, если вы просто предложите вашим контактам в Diaspora использовать ваш новый адрес %s."; -$a->strings["All aspects"] = "Все контакты"; -$a->strings["Public"] = "Публично"; -$a->strings["Post to aspect:"] = "Для группы:"; -$a->strings["Connected with your Diaspora account %s"] = "Соединено с вашей учётной записью Diaspora %s"; -$a->strings["Can't login to your Diaspora account. Please check handle (in the format user@domain.tld) and password."] = "Не получается зайти в вашу учётную запись Diaspora. Пожалуйста, проверьте правильность имени (в формате user@domain.tld) и пароль."; +$a->strings["Can't login to your Diaspora account. Please check username and password and ensure you used the complete address (including http...)"] = "Невозможно войти в вашу учетную запись Diaspora. Пожалуйста, проверьте имя пользователя, пароль и убедитесь, что вы ввели полный адрес пода (включая http/https)"; $a->strings["Diaspora Export"] = "Экспорт в Diaspora"; -$a->strings["Information"] = "Информация"; -$a->strings["Error"] = "Ошибка"; -$a->strings["Save Settings"] = "Сохранить настройки"; $a->strings["Enable Diaspora Post Addon"] = "Включить аддон Diaspora Post"; -$a->strings["Diaspora handle"] = "Имя в Diaspora"; +$a->strings["Diaspora username"] = "Имя пользователя Diaspora"; $a->strings["Diaspora password"] = "Пароль Diaspora"; -$a->strings["Privacy notice: Your Diaspora password will be stored unencrypted to authenticate you with your Diaspora pod. This means your Friendica node administrator can have access to it."] = "Предупреждение: Ваш пароль для Diaspora будет сохранён в открытом виде, чтобы производить вход в ваш сервер Diaspora. Это означает, что администратор этого узла Friendica может получить к нему доступ."; +$a->strings["Diaspora site URL"] = "URL пода Diaspora"; $a->strings["Post to Diaspora by default"] = "Отправлять в Diaspora по умолчанию"; -$a->strings["Diaspora settings updated."] = "Настройки Diaspora обновлены."; -$a->strings["Diaspora connector disabled."] = "Коннектор Diaspora отключён."; +$a->strings["Save Settings"] = "Сохранить настройки"; +$a->strings["Diaspora post failed. Queued for retry."] = "Ошибка отправки сообщения в Diaspora. В очереди на еще одну попытку."; diff --git a/langfilter/lang/ru/messages.po b/langfilter/lang/ru/messages.po index 341ef768..e6236625 100644 --- a/langfilter/lang/ru/messages.po +++ b/langfilter/lang/ru/messages.po @@ -10,8 +10,8 @@ msgid "" msgstr "" "Project-Id-Version: friendica\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-03 22:02-0400\n" -"PO-Revision-Date: 2020-10-09 17:48+0000\n" +"POT-Creation-Date: 2018-04-01 11:11-0400\n" +"PO-Revision-Date: 2020-04-09 18:00+0000\n" "Last-Translator: Alexander An \n" "Language-Team: Russian (http://www.transifex.com/Friendica/friendica/language/ru/)\n" "MIME-Version: 1.0\n" @@ -20,58 +20,62 @@ msgstr "" "Language: ru\n" "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" -#: langfilter.php:52 +#: langfilter.php:58 msgid "Language Filter" msgstr "Языковой фильтр" -#: langfilter.php:53 +#: langfilter.php:59 msgid "" "This addon tries to identify the language posts are writen in. If it does " "not match any language specifed below, posts will be hidden by collapsing " "them." msgstr "Это дополнение пытается идентифицировать язык, на котором написаны посты. Если язык не соответствует ни одному, указанному ниже, то такие посты будут скрыты." -#: langfilter.php:54 +#: langfilter.php:60 msgid "Use the language filter" msgstr "Использовать языковой фильтр" -#: langfilter.php:55 +#: langfilter.php:61 msgid "Able to read" msgstr "Возможность читать" -#: langfilter.php:55 +#: langfilter.php:61 msgid "" -"List of abbreviations (ISO 639-1 codes) for languages you speak, comma " -"separated. For example \"de,it\"." -msgstr "Список аббревиатур (кодов по ISO 639-1 ) для языков, на которых вы говорите. Например, \"ru,en\"." +"List of abbreviations (iso2 codes) for languages you speak, comma separated." +" For example \"de,it\"." +msgstr "Список аббериватур (кодов по iso2) для языков, на которых вы говорите. Например, \"ru,en\"." -#: langfilter.php:56 +#: langfilter.php:62 msgid "Minimum confidence in language detection" msgstr "Минимальная уверенность в определении языка" -#: langfilter.php:56 +#: langfilter.php:62 msgid "" "Minimum confidence in language detection being correct, from 0 to 100. Posts" " will not be filtered when the confidence of language detection is below " "this percent value." msgstr "Минимальная уверенность в правильном определении языка, от 0 до 100. Посты не будут скрыты, если уверенность в правильном определении языка в процентах ниже этого значения." -#: langfilter.php:57 +#: langfilter.php:63 msgid "Minimum length of message body" msgstr "Минимальная длина тела сообщения" -#: langfilter.php:57 +#: langfilter.php:63 msgid "" "Minimum number of characters in message body for filter to be used. Posts " "shorter than this will not be filtered. Note: Language detection is " "unreliable for short content (<200 characters)." msgstr "Минимальное количество знаков в теле сообщения для применения фильтрации. Посты, длина которых меньше указанного значения, не будут отфильтрованы. Обратите внимание, что определение языка работает ненадежно для небольших постов (<200 символов)." -#: langfilter.php:58 +#: langfilter.php:64 msgid "Save Settings" msgstr "Сохранить настройки" -#: langfilter.php:189 +#: langfilter.php:105 +msgid "Language Filter Settings saved." +msgstr "Настройки фильтрации языков сохранены." + +#: langfilter.php:182 #, php-format msgid "Filtered language: %s" msgstr "Отфильтрованный язык: %s" diff --git a/langfilter/lang/ru/strings.php b/langfilter/lang/ru/strings.php index 1b3a1581..fa3ee90f 100644 --- a/langfilter/lang/ru/strings.php +++ b/langfilter/lang/ru/strings.php @@ -10,10 +10,11 @@ $a->strings["Language Filter"] = "Языковой фильтр"; $a->strings["This addon tries to identify the language posts are writen in. If it does not match any language specifed below, posts will be hidden by collapsing them."] = "Это дополнение пытается идентифицировать язык, на котором написаны посты. Если язык не соответствует ни одному, указанному ниже, то такие посты будут скрыты."; $a->strings["Use the language filter"] = "Использовать языковой фильтр"; $a->strings["Able to read"] = "Возможность читать"; -$a->strings["List of abbreviations (ISO 639-1 codes) for languages you speak, comma separated. For example \"de,it\"."] = "Список аббревиатур (кодов по ISO 639-1 ) для языков, на которых вы говорите. Например, \"ru,en\"."; +$a->strings["List of abbreviations (iso2 codes) for languages you speak, comma separated. For example \"de,it\"."] = "Список аббериватур (кодов по iso2) для языков, на которых вы говорите. Например, \"ru,en\"."; $a->strings["Minimum confidence in language detection"] = "Минимальная уверенность в определении языка"; $a->strings["Minimum confidence in language detection being correct, from 0 to 100. Posts will not be filtered when the confidence of language detection is below this percent value."] = "Минимальная уверенность в правильном определении языка, от 0 до 100. Посты не будут скрыты, если уверенность в правильном определении языка в процентах ниже этого значения."; $a->strings["Minimum length of message body"] = "Минимальная длина тела сообщения"; $a->strings["Minimum number of characters in message body for filter to be used. Posts shorter than this will not be filtered. Note: Language detection is unreliable for short content (<200 characters)."] = "Минимальное количество знаков в теле сообщения для применения фильтрации. Посты, длина которых меньше указанного значения, не будут отфильтрованы. Обратите внимание, что определение языка работает ненадежно для небольших постов (<200 символов)."; $a->strings["Save Settings"] = "Сохранить настройки"; +$a->strings["Language Filter Settings saved."] = "Настройки фильтрации языков сохранены."; $a->strings["Filtered language: %s"] = "Отфильтрованный язык: %s"; diff --git a/mailstream/mailstream.php b/mailstream/mailstream.php index 9631a11a..23aed60f 100644 --- a/mailstream/mailstream.php +++ b/mailstream/mailstream.php @@ -155,7 +155,7 @@ function mailstream_do_images($a, &$item, &$attachments) { continue; } $cookiejar = tempnam(get_temppath(), 'cookiejar-mailstream-'); - $curlResult = DI::httpRequest()->fetchFull($url, 0, '', $cookiejar); + $curlResult = DI::httpRequest()->fetchFull($url, true, 0, '', $cookiejar); $attachments[$url] = [ 'data' => $curlResult->getBody(), 'guid' => hash("crc32", $url), diff --git a/pumpio/pumpio.php b/pumpio/pumpio.php index cd44b682..cea19717 100644 --- a/pumpio/pumpio.php +++ b/pumpio/pumpio.php @@ -1590,7 +1590,7 @@ function pumpio_fetchallcomments(App $a, $uid, $id) function pumpio_reachable($url) { - return DI::httpRequest()->get($url, ['timeout' => 10])->isSuccess(); + return DI::httpRequest()->get($url, false, ['timeout' => 10])->isSuccess(); } /* diff --git a/statusnet/statusnet.php b/statusnet/statusnet.php index 05853025..0ab711ca 100644 --- a/statusnet/statusnet.php +++ b/statusnet/statusnet.php @@ -1453,7 +1453,7 @@ function statusnet_convertmsg(App $a, $body) } elseif ($oembed_data->type != "link") { $body = str_replace($search, "[url=" . $expanded_url . "]" . $expanded_url . "[/url]", $body); } else { - $img_str = DI::httpRequest()->fetch($expanded_url, 4); + $img_str = DI::httpRequest()->fetch($expanded_url, true, 4); $tempfile = tempnam(get_temppath(), "cache"); file_put_contents($tempfile, $img_str); diff --git a/twitter/lang/C/messages.po b/twitter/lang/C/messages.po index ec200a31..d76bb2b8 100644 --- a/twitter/lang/C/messages.po +++ b/twitter/lang/C/messages.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-10-23 02:00-0400\n" +"POT-Creation-Date: 2018-06-02 10:25+0700\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -17,27 +17,31 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: twitter.php:189 +#: twitter.php:195 msgid "Post to Twitter" msgstr "" -#: twitter.php:234 +#: twitter.php:236 msgid "" "You submitted an empty PIN, please Sign In with Twitter again to get a new " "one." msgstr "" -#: twitter.php:291 twitter.php:295 +#: twitter.php:263 +msgid "Twitter settings updated." +msgstr "" + +#: twitter.php:293 twitter.php:297 msgid "Twitter Import/Export/Mirror" msgstr "" -#: twitter.php:302 +#: twitter.php:304 msgid "" "No consumer key pair for Twitter found. Please contact your site " "administrator." msgstr "" -#: twitter.php:314 +#: twitter.php:316 msgid "" "At this Friendica instance the Twitter addon was enabled but you have not " "yet connected your account to your Twitter account. To do so click the " @@ -46,42 +50,38 @@ msgid "" "be posted to Twitter." msgstr "" -#: twitter.php:315 +#: twitter.php:317 msgid "Log in with Twitter" msgstr "" -#: twitter.php:317 +#: twitter.php:319 msgid "Copy the PIN from Twitter here" msgstr "" -#: twitter.php:322 twitter.php:377 twitter.php:757 +#: twitter.php:324 twitter.php:366 twitter.php:636 msgid "Save Settings" msgstr "" -#: twitter.php:324 twitter.php:379 -msgid "An error occured: " -msgstr "" - -#: twitter.php:341 +#: twitter.php:336 msgid "Currently connected to: " msgstr "" -#: twitter.php:342 twitter.php:352 +#: twitter.php:337 msgid "Disconnect" msgstr "" -#: twitter.php:359 +#: twitter.php:347 msgid "Allow posting to Twitter" msgstr "" -#: twitter.php:359 +#: twitter.php:347 msgid "" "If enabled all your public postings can be posted to the " "associated Twitter account. You can choose to do so by default (here) or for " "every posting separately in the posting options when writing the entry." msgstr "" -#: twitter.php:362 +#: twitter.php:350 msgid "" "Note: Due to your privacy settings (Hide your profile " "details from unknown viewers?) the link potentially included in public " @@ -89,23 +89,23 @@ msgid "" "the visitor that the access to your profile has been restricted." msgstr "" -#: twitter.php:365 +#: twitter.php:353 msgid "Send public postings to Twitter by default" msgstr "" -#: twitter.php:368 +#: twitter.php:356 msgid "Mirror all posts from twitter that are no replies" msgstr "" -#: twitter.php:371 +#: twitter.php:359 msgid "Import the remote timeline" msgstr "" -#: twitter.php:374 +#: twitter.php:362 msgid "Automatically create contacts" msgstr "" -#: twitter.php:374 +#: twitter.php:362 msgid "" "This will automatically create a contact in Friendica as soon as you receive " "a message from an existing contact via the Twitter network. If you do not " @@ -115,15 +115,18 @@ msgid "" "recreate this contact when they post again." msgstr "" -#: twitter.php:759 +#: twitter.php:614 +msgid "Twitter post failed. Queued for retry." +msgstr "" + +#: twitter.php:628 +msgid "Settings updated." +msgstr "" + +#: twitter.php:638 msgid "Consumer key" msgstr "" -#: twitter.php:760 +#: twitter.php:639 msgid "Consumer secret" msgstr "" - -#: twitter.php:945 -#, php-format -msgid "%s on Twitter" -msgstr "" diff --git a/twitter/lang/de/messages.po b/twitter/lang/de/messages.po index f8eb5297..9c227b86 100644 --- a/twitter/lang/de/messages.po +++ b/twitter/lang/de/messages.po @@ -5,15 +5,15 @@ # # Translators: # Tobias Diekershoff , 2014-2015 -# Tobias Diekershoff , 2018 +# Tobias Diekershoff , 2018,2020 # Ulf Rompe , 2019 msgid "" msgstr "" "Project-Id-Version: friendica\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-06-02 10:25+0700\n" -"PO-Revision-Date: 2019-02-11 13:54+0000\n" -"Last-Translator: Ulf Rompe \n" +"POT-Creation-Date: 2020-10-23 02:00-0400\n" +"PO-Revision-Date: 2020-10-25 18:54+0000\n" +"Last-Translator: Tobias Diekershoff \n" "Language-Team: German (http://www.transifex.com/Friendica/friendica/language/de/)\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -21,31 +21,27 @@ msgstr "" "Language: de\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: twitter.php:195 +#: twitter.php:189 msgid "Post to Twitter" msgstr "Auf Twitter veröffentlichen" -#: twitter.php:236 +#: twitter.php:234 msgid "" "You submitted an empty PIN, please Sign In with Twitter again to get a new " "one." msgstr "Du hast keine PIN übertragen. Bitte melde dich erneut bei Twitter an, um eine neue PIN zu erhalten." -#: twitter.php:263 -msgid "Twitter settings updated." -msgstr "Twitter-Einstellungen aktualisiert." - -#: twitter.php:293 twitter.php:297 +#: twitter.php:291 twitter.php:295 msgid "Twitter Import/Export/Mirror" msgstr "Twitter-Import/Export/Spiegeln" -#: twitter.php:304 +#: twitter.php:302 msgid "" "No consumer key pair for Twitter found. Please contact your site " "administrator." msgstr "Kein Consumer-Schlüsselpaar für Twitter gefunden. Bitte wende dich an den Administrator der Seite." -#: twitter.php:316 +#: twitter.php:314 msgid "" "At this Friendica instance the Twitter addon was enabled but you have not " "yet connected your account to your Twitter account. To do so click the " @@ -54,38 +50,42 @@ msgid "" " be posted to Twitter." msgstr "Auf diesem Friendica-Server wurde das Twitter-Addon aktiviert, aber du hast deinen Account noch nicht mit deinem Twitter-Account verbunden. Klicke dazu auf die Schaltfläche unten. Du erhältst dann eine PIN von Twitter, die du in das Eingabefeld unten einfügst. Denk daran, den Senden-Knopf zu drücken! Nur öffentliche Beiträge werden bei Twitter veröffentlicht." -#: twitter.php:317 +#: twitter.php:315 msgid "Log in with Twitter" msgstr "bei Twitter anmelden" -#: twitter.php:319 +#: twitter.php:317 msgid "Copy the PIN from Twitter here" msgstr "Kopiere die Twitter-PIN hier her" -#: twitter.php:324 twitter.php:366 twitter.php:636 +#: twitter.php:322 twitter.php:377 twitter.php:757 msgid "Save Settings" msgstr "Einstellungen speichern" -#: twitter.php:336 +#: twitter.php:324 twitter.php:379 +msgid "An error occured: " +msgstr "Ein Fehler ist aufgetreten:" + +#: twitter.php:341 msgid "Currently connected to: " msgstr "Momentan verbunden mit: " -#: twitter.php:337 +#: twitter.php:342 twitter.php:352 msgid "Disconnect" msgstr "Trennen" -#: twitter.php:347 +#: twitter.php:359 msgid "Allow posting to Twitter" msgstr "Veröffentlichung bei Twitter erlauben" -#: twitter.php:347 +#: twitter.php:359 msgid "" "If enabled all your public postings can be posted to the " "associated Twitter account. You can choose to do so by default (here) or for" " every posting separately in the posting options when writing the entry." msgstr "Wenn aktiviert, können all deine öffentlichen Einträge auf dem verbundenen Twitter Konto veröffentlicht werden. Du kannst dies (hier) als Standardverhalten einstellen oder beim Schreiben eines Beitrags in den Beitragsoptionen festlegen." -#: twitter.php:350 +#: twitter.php:362 msgid "" "Note: Due to your privacy settings (Hide your profile " "details from unknown viewers?) the link potentially included in public " @@ -93,23 +93,23 @@ msgid "" "the visitor that the access to your profile has been restricted." msgstr "Hinweis: Aufgrund deiner Privatsphären-Einstellungen (Profil-Details vor unbekannten Betrachtern verbergen?) wird der Link, der eventuell an deinen Twitter-Beitrag angehängt wird, um auf den Originalbeitrag zu verweisen, den Betrachter auf eine leere Seite führen, die ihn darüber informiert, dass der Zugriff eingeschränkt wurde." -#: twitter.php:353 +#: twitter.php:365 msgid "Send public postings to Twitter by default" msgstr "Veröffentliche öffentliche Beiträge standardmäßig bei Twitter" -#: twitter.php:356 +#: twitter.php:368 msgid "Mirror all posts from twitter that are no replies" msgstr "Spiegle alle Beiträge von Twitter, die keine Antworten oder wiederholten Nachrichten sind" -#: twitter.php:359 +#: twitter.php:371 msgid "Import the remote timeline" msgstr "Importiere die entfernte Zeitleiste" -#: twitter.php:362 +#: twitter.php:374 msgid "Automatically create contacts" msgstr "Automatisch Kontakte anlegen" -#: twitter.php:362 +#: twitter.php:374 msgid "" "This will automatically create a contact in Friendica as soon as you receive" " a message from an existing contact via the Twitter network. If you do not " @@ -119,18 +119,15 @@ msgid "" "recreate this contact when they post again." msgstr "Mit dieser Option wird automatisch ein Kontakt bei Friendica angelegt, wenn du eine Nachricht von einem bestehenden Kontakt auf Twitter erhältst. Ist die Option nicht aktiv, musst du manuell Kontakte für diejenigen deiner Twitter Kontakte anlegen, deren Nachrichten du auf Friendica lesen möchtest.. Auf der anderen Seite kannst du, so diese Option aktiv ist, nicht einfach Twitter Kontakte aus deinen Kontakten bei Friendica entfernen, da diese bei der nächsten Gelegenheit neu erstellt werden." -#: twitter.php:614 -msgid "Twitter post failed. Queued for retry." -msgstr "Veröffentlichung bei Twitter gescheitert. Wir versuchen es später erneut." - -#: twitter.php:628 -msgid "Settings updated." -msgstr "Einstellungen aktualisiert." - -#: twitter.php:638 +#: twitter.php:759 msgid "Consumer key" msgstr "Consumer Key" -#: twitter.php:639 +#: twitter.php:760 msgid "Consumer secret" msgstr "Consumer Secret" + +#: twitter.php:945 +#, php-format +msgid "%s on Twitter" +msgstr "%s auf Twitter" diff --git a/twitter/lang/de/strings.php b/twitter/lang/de/strings.php index c518ee1c..aa6b0e7d 100644 --- a/twitter/lang/de/strings.php +++ b/twitter/lang/de/strings.php @@ -8,13 +8,13 @@ function string_plural_select_de($n){ ; $a->strings["Post to Twitter"] = "Auf Twitter veröffentlichen"; $a->strings["You submitted an empty PIN, please Sign In with Twitter again to get a new one."] = "Du hast keine PIN übertragen. Bitte melde dich erneut bei Twitter an, um eine neue PIN zu erhalten."; -$a->strings["Twitter settings updated."] = "Twitter-Einstellungen aktualisiert."; $a->strings["Twitter Import/Export/Mirror"] = "Twitter-Import/Export/Spiegeln"; $a->strings["No consumer key pair for Twitter found. Please contact your site administrator."] = "Kein Consumer-Schlüsselpaar für Twitter gefunden. Bitte wende dich an den Administrator der Seite."; $a->strings["At this Friendica instance the Twitter addon was enabled but you have not yet connected your account to your Twitter account. To do so click the button below to get a PIN from Twitter which you have to copy into the input box below and submit the form. Only your public posts will be posted to Twitter."] = "Auf diesem Friendica-Server wurde das Twitter-Addon aktiviert, aber du hast deinen Account noch nicht mit deinem Twitter-Account verbunden. Klicke dazu auf die Schaltfläche unten. Du erhältst dann eine PIN von Twitter, die du in das Eingabefeld unten einfügst. Denk daran, den Senden-Knopf zu drücken! Nur öffentliche Beiträge werden bei Twitter veröffentlicht."; $a->strings["Log in with Twitter"] = "bei Twitter anmelden"; $a->strings["Copy the PIN from Twitter here"] = "Kopiere die Twitter-PIN hier her"; $a->strings["Save Settings"] = "Einstellungen speichern"; +$a->strings["An error occured: "] = "Ein Fehler ist aufgetreten:"; $a->strings["Currently connected to: "] = "Momentan verbunden mit: "; $a->strings["Disconnect"] = "Trennen"; $a->strings["Allow posting to Twitter"] = "Veröffentlichung bei Twitter erlauben"; @@ -25,7 +25,6 @@ $a->strings["Mirror all posts from twitter that are no replies"] = "Spiegle alle $a->strings["Import the remote timeline"] = "Importiere die entfernte Zeitleiste"; $a->strings["Automatically create contacts"] = "Automatisch Kontakte anlegen"; $a->strings["This will automatically create a contact in Friendica as soon as you receive a message from an existing contact via the Twitter network. If you do not enable this, you need to manually add those Twitter contacts in Friendica from whom you would like to see posts here. However if enabled, you cannot merely remove a twitter contact from the Friendica contact list, as it will recreate this contact when they post again."] = "Mit dieser Option wird automatisch ein Kontakt bei Friendica angelegt, wenn du eine Nachricht von einem bestehenden Kontakt auf Twitter erhältst. Ist die Option nicht aktiv, musst du manuell Kontakte für diejenigen deiner Twitter Kontakte anlegen, deren Nachrichten du auf Friendica lesen möchtest.. Auf der anderen Seite kannst du, so diese Option aktiv ist, nicht einfach Twitter Kontakte aus deinen Kontakten bei Friendica entfernen, da diese bei der nächsten Gelegenheit neu erstellt werden."; -$a->strings["Twitter post failed. Queued for retry."] = "Veröffentlichung bei Twitter gescheitert. Wir versuchen es später erneut."; -$a->strings["Settings updated."] = "Einstellungen aktualisiert."; $a->strings["Consumer key"] = "Consumer Key"; $a->strings["Consumer secret"] = "Consumer Secret"; +$a->strings["%s on Twitter"] = "%s auf Twitter"; diff --git a/twitter/twitter.php b/twitter/twitter.php index 7d77f83c..da1ea4c6 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -111,7 +111,6 @@ function twitter_install() Hook::register('prepare_body' , __FILE__, 'twitter_prepare_body'); Hook::register('check_item_notification', __FILE__, 'twitter_check_item_notification'); Hook::register('probe_detect' , __FILE__, 'twitter_probe_detect'); - Hook::register('parse_link' , __FILE__, 'twitter_parse_link'); Logger::info("installed twitter"); } @@ -895,80 +894,6 @@ function twitter_prepare_body(App $a, array &$b) } } -/** - * Parse Twitter status URLs since Twitter removed OEmbed - * - * @param App $a - * @param array $b Expected format: - * [ - * 'url' => [URL to parse], - * 'format' => 'json'|'', - * 'text' => Output parameter - * ] - * @throws \Friendica\Network\HTTPException\InternalServerErrorException - */ -function twitter_parse_link(App $a, array &$b) -{ - // Only handle Twitter status URLs - if (!preg_match('#^https?://(?:mobile\.|www\.)?twitter.com/[^/]+/status/(\d+).*#', $b['url'], $matches)) { - return; - } - - $ckey = DI::config()->get('twitter', 'consumerkey'); - $csecret = DI::config()->get('twitter', 'consumersecret'); - - if (empty($ckey) || empty($csecret)) { - return; - } - - $connection = new TwitterOAuth($ckey, $csecret); - - $parameters = ['trim_user' => false, 'tweet_mode' => 'extended', 'id' => $matches[1], 'include_ext_alt_text' => true]; - - $status = $connection->get('statuses/show', $parameters); - - if (empty($status->id)) { - return; - } - - $item = twitter_createpost($a, 0, $status, [], true, false, true); - - if ($b['format'] == 'json') { - if (!empty($status->extended_entities->media[0]->media_url_https)) { - $images = [['src' => $status->extended_entities->media[0]->media_url_https]]; - } - - $b['text'] = [ - 'data' => [ - 'type' => 'link', - 'url' => $item['plink'], - 'title' => DI::l10n()->t('%s on Twitter', $status->user->name), - 'text' => BBCode::toPlaintext($item['body'], false), - 'images' => $images ?? [], - ], - 'contentType' => 'attachment', - 'success' => true, - ]; - } else { - $b['text'] = BBCode::getShareOpeningTag( - $item['author-name'], - $item['author-link'], - $item['author-avatar'], - $item['plink'], - $item['created'] - ); - $b['text'] .= $item['body'] . '[/share]'; - } -} - - -/********************* - * - * General functions - * - *********************/ - - /** * @brief Build the item array for the mirrored post * @@ -1401,7 +1326,7 @@ function twitter_expand_entities($body, stdClass $status, $picture) } elseif ($oembed_data->type != 'link') { $replace = '[url=' . $expanded_url . ']' . $url->display_url . '[/url]'; } else { - $img_str = DI::httpRequest()->fetch($final_url, 4); + $img_str = DI::httpRequest()->fetch($final_url, true, 4); $tempfile = tempnam(get_temppath(), 'cache'); file_put_contents($tempfile, $img_str); @@ -1485,8 +1410,6 @@ function twitter_media_entities($post, array &$postarray) } } - - // This is a pure media post, first search for all media urls $media = []; foreach ($post->extended_entities->media AS $medium) {