From 350887f8923300a99cb403b0cfea5b14ce4efe8c Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Wed, 9 Nov 2016 14:25:51 +0100 Subject: [PATCH 1/7] prepare for Mastodon in the federation stats and include BlaBlaNet --- mod/admin.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mod/admin.php b/mod/admin.php index 287eff272..b9c714f37 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -269,13 +269,15 @@ function admin_page_federation(&$a) { // off one % two of them are needed in the query // Add more platforms if you like, when one returns 0 known nodes it is not // displayed on the stats page. - $platforms = array('Friendica', 'Diaspora', '%%red%%', 'Hubzilla', 'GNU Social', 'StatusNet'); + $platforms = array('Friendica', 'Diaspora', '%%red%%', 'Hubzilla', 'BlaBlaNet', 'GNU Social', 'StatusNet', 'Mastodon'); $colors = array('Friendica' => '#ffc018', // orange from the logo - 'Diaspora' => '#a1a1a1', // logo is black and white, makes a gray + 'Diaspora' => '#a1a1a1', // logo is black and white, makes a gray '%%red%%' => '#c50001', // fire red from the logo 'Hubzilla' => '#43488a', // blue from the logo + 'BlaBlaNet' => '#3B5998', // blue from the navbar at blablanet-dot-com 'GNU Social'=> '#a22430', // dark red from the logo - 'StatusNet' => '#789240'); // the green from the logo (red and blue have already others + 'StatusNet' => '#789240', // the green from the logo (red and blue have already others + 'Mastodon' => '#1a9df9'); // blue from the Mastodon logo $counts = array(); $total = 0; From 32b2d9952bf74883b05ce58cf0a032fe39643d64 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 13 Nov 2016 07:03:38 +0100 Subject: [PATCH 2/7] some platforms don't provide version information --- mod/admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/admin.php b/mod/admin.php index b9c714f37..2a7041985 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -285,14 +285,14 @@ function admin_page_federation(&$a) { // get a total count for the platform, the name and version of the // highest version and the protocol tpe $c = qu('SELECT COUNT(*) AS `total`, `platform`, `network`, `version` FROM `gserver` - WHERE `platform` LIKE "%s" AND `last_contact` > `last_failure` AND `version` != "" + WHERE `platform` LIKE "%s" AND `last_contact` > `last_failure` ORDER BY `version` ASC;', $p); $total = $total + $c[0]['total']; // what versions for that platform do we know at all? // again only the active nodes $v = qu('SELECT COUNT(*) AS `total`, `version` FROM `gserver` - WHERE `last_contact` > `last_failure` AND `platform` LIKE "%s" AND `version` != "" + WHERE `last_contact` > `last_failure` AND `platform` LIKE "%s" GROUP BY `version` ORDER BY `version`;', $p); From 772d33342c093fceb366e5aeb38ad097bcb8aa40 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 13 Nov 2016 08:12:09 +0100 Subject: [PATCH 3/7] add unkown to empty version strings --- mod/admin.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mod/admin.php b/mod/admin.php index 2a7041985..4dbdc377f 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -299,6 +299,17 @@ function admin_page_federation(&$a) { // // clean up version numbers // + // some platforms do not provide version information, add a unkown there + // to the version string for the displayed list. + $newV = array(); + foreach ($v as $vv) { + if ($vv['version'] == '') { + $newV[] = array('total'=>$vv['total'], 'version'=>t('unknown')); + } else { + $newV[] = $vv; + } + } + $v = $newV; // in the DB the Diaspora versions have the format x.x.x.x-xx the last // part (-xx) should be removed to clean up the versions from the "head // commit" information and combined into a single entry for x.x.x.x From df3c776e1b73e5d3b3dddf7b2419762a63f1db2e Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 13 Nov 2016 09:03:22 +0100 Subject: [PATCH 4/7] shorter foreach loop --- mod/admin.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/mod/admin.php b/mod/admin.php index 4dbdc377f..9eb86720d 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -301,15 +301,11 @@ function admin_page_federation(&$a) { // // some platforms do not provide version information, add a unkown there // to the version string for the displayed list. - $newV = array(); - foreach ($v as $vv) { - if ($vv['version'] == '') { - $newV[] = array('total'=>$vv['total'], 'version'=>t('unknown')); - } else { - $newV[] = $vv; + foreach ($v as $key => $value) { + if ($v[$key]['version'] == '') { + $v[$key] = array('total'=>$v[$key]['total'], 'version'=>t('unknown')); } } - $v = $newV; // in the DB the Diaspora versions have the format x.x.x.x-xx the last // part (-xx) should be removed to clean up the versions from the "head // commit" information and combined into a single entry for x.x.x.x From deaf82cfd0916a440b5063c71e0786062e8114c6 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Sun, 13 Nov 2016 11:23:19 +0100 Subject: [PATCH 5/7] DE translation of the core THX Andreas --- view/lang/de/messages.po | 222 ++++++++++++++++++++------------------- view/lang/de/strings.php | 45 ++++---- 2 files changed, 137 insertions(+), 130 deletions(-) diff --git a/view/lang/de/messages.po b/view/lang/de/messages.po index fa80dab10..a5ad4627a 100644 --- a/view/lang/de/messages.po +++ b/view/lang/de/messages.po @@ -35,9 +35,9 @@ msgid "" msgstr "" "Project-Id-Version: friendica\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-11-06 16:00+0100\n" -"PO-Revision-Date: 2016-11-10 09:26+0000\n" -"Last-Translator: Tobias Diekershoff \n" +"POT-Creation-Date: 2016-11-10 15:43+0100\n" +"PO-Revision-Date: 2016-11-11 10:10+0000\n" +"Last-Translator: Andreas H.\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" @@ -78,8 +78,8 @@ msgstr "Leute finden" msgid "Enter name or interest" msgstr "Name oder Interessen eingeben" -#: include/contact_widgets.php:32 include/Contact.php:325 -#: include/conversation.php:981 mod/follow.php:103 mod/allfriends.php:66 +#: include/contact_widgets.php:32 include/conversation.php:981 +#: include/Contact.php:347 mod/follow.php:103 mod/allfriends.php:66 #: mod/contacts.php:602 mod/dirfind.php:204 mod/match.php:72 #: mod/suggest.php:83 msgid "Connect/Follow" @@ -1168,57 +1168,6 @@ msgstr "(kein Betreff)" msgid "noreply" msgstr "noreply" -#: include/Contact.php:119 -msgid "stopped following" -msgstr "wird nicht mehr gefolgt" - -#: include/Contact.php:311 include/Contact.php:324 include/Contact.php:369 -#: include/conversation.php:968 include/conversation.php:984 -#: mod/allfriends.php:65 mod/directory.php:155 mod/dirfind.php:203 -#: mod/match.php:71 mod/suggest.php:82 -msgid "View Profile" -msgstr "Profil anschauen" - -#: include/Contact.php:368 include/conversation.php:967 -msgid "View Status" -msgstr "Pinnwand anschauen" - -#: include/Contact.php:370 include/conversation.php:969 -msgid "View Photos" -msgstr "Bilder anschauen" - -#: include/Contact.php:371 include/conversation.php:970 -msgid "Network Posts" -msgstr "Netzwerkbeiträge" - -#: include/Contact.php:372 include/conversation.php:971 -msgid "View Contact" -msgstr "Kontakt anzeigen" - -#: include/Contact.php:373 -msgid "Drop Contact" -msgstr "Kontakt löschen" - -#: include/Contact.php:374 include/conversation.php:972 -msgid "Send PM" -msgstr "Private Nachricht senden" - -#: include/Contact.php:375 include/conversation.php:976 -msgid "Poke" -msgstr "Anstupsen" - -#: include/Contact.php:748 -msgid "Organisation" -msgstr "Organisation" - -#: include/Contact.php:751 -msgid "News" -msgstr "Nachrichten" - -#: include/Contact.php:754 -msgid "Forum" -msgstr "Forum" - #: include/api.php:1019 #, php-format msgid "Daily posting limit of %d posts reached. The post was rejected." @@ -1375,6 +1324,37 @@ msgstr "Lösche die markierten Beiträge" msgid "Follow Thread" msgstr "Folge der Unterhaltung" +#: include/conversation.php:967 include/Contact.php:390 +msgid "View Status" +msgstr "Pinnwand anschauen" + +#: include/conversation.php:968 include/conversation.php:984 +#: include/Contact.php:333 include/Contact.php:346 include/Contact.php:391 +#: mod/allfriends.php:65 mod/directory.php:155 mod/dirfind.php:203 +#: mod/match.php:71 mod/suggest.php:82 +msgid "View Profile" +msgstr "Profil anschauen" + +#: include/conversation.php:969 include/Contact.php:392 +msgid "View Photos" +msgstr "Bilder anschauen" + +#: include/conversation.php:970 include/Contact.php:393 +msgid "Network Posts" +msgstr "Netzwerkbeiträge" + +#: include/conversation.php:971 include/Contact.php:394 +msgid "View Contact" +msgstr "Kontakt anzeigen" + +#: include/conversation.php:972 include/Contact.php:396 +msgid "Send PM" +msgstr "Private Nachricht senden" + +#: include/conversation.php:976 include/Contact.php:397 +msgid "Poke" +msgstr "Anstupsen" + #: include/conversation.php:1094 #, php-format msgid "%s likes this." @@ -1586,8 +1566,8 @@ msgstr "Vorschau" #: mod/fbrowser.php:136 mod/tagrm.php:11 mod/tagrm.php:94 mod/follow.php:121 #: mod/editpost.php:148 mod/message.php:220 mod/dfrn_request.php:875 #: mod/contacts.php:445 mod/photos.php:235 mod/photos.php:322 -#: mod/settings.php:677 mod/settings.php:703 mod/suggest.php:32 -#: mod/videos.php:128 +#: mod/suggest.php:32 mod/videos.php:128 mod/settings.php:677 +#: mod/settings.php:703 msgid "Cancel" msgstr "Abbrechen" @@ -2576,11 +2556,11 @@ msgstr "Möchtest Du wirklich dieses Item löschen?" #: include/items.php:1914 mod/follow.php:110 mod/api.php:105 #: mod/message.php:217 mod/dfrn_request.php:861 mod/profiles.php:648 #: mod/profiles.php:651 mod/profiles.php:677 mod/contacts.php:442 -#: mod/register.php:238 mod/settings.php:1158 mod/settings.php:1164 -#: mod/settings.php:1172 mod/settings.php:1176 mod/settings.php:1181 -#: mod/settings.php:1187 mod/settings.php:1193 mod/settings.php:1199 -#: mod/settings.php:1225 mod/settings.php:1226 mod/settings.php:1227 -#: mod/settings.php:1228 mod/settings.php:1229 mod/suggest.php:29 +#: mod/register.php:238 mod/suggest.php:29 mod/settings.php:1158 +#: mod/settings.php:1164 mod/settings.php:1172 mod/settings.php:1176 +#: mod/settings.php:1181 mod/settings.php:1187 mod/settings.php:1193 +#: mod/settings.php:1199 mod/settings.php:1225 mod/settings.php:1226 +#: mod/settings.php:1227 mod/settings.php:1228 mod/settings.php:1229 msgid "Yes" msgstr "Ja" @@ -2601,8 +2581,8 @@ msgstr "Ja" #: mod/contacts.php:350 mod/dirfind.php:11 mod/display.php:475 #: mod/events.php:190 mod/item.php:198 mod/item.php:210 mod/network.php:4 #: mod/photos.php:159 mod/photos.php:1072 mod/register.php:42 -#: mod/settings.php:22 mod/settings.php:128 mod/settings.php:663 -#: mod/suggest.php:58 mod/viewcontacts.php:45 index.php:397 +#: mod/suggest.php:58 mod/viewcontacts.php:45 mod/settings.php:22 +#: mod/settings.php:128 mod/settings.php:663 index.php:397 msgid "Permission denied." msgstr "Zugriff verweigert." @@ -3097,6 +3077,26 @@ msgstr "Beitrag" msgid "Item filed" msgstr "Beitrag abgelegt" +#: include/Contact.php:119 +msgid "stopped following" +msgstr "wird nicht mehr gefolgt" + +#: include/Contact.php:395 +msgid "Drop Contact" +msgstr "Kontakt löschen" + +#: include/Contact.php:770 +msgid "Organisation" +msgstr "Organisation" + +#: include/Contact.php:773 +msgid "News" +msgstr "Nachrichten" + +#: include/Contact.php:776 +msgid "Forum" +msgstr "Forum" + #: mod/oexchange.php:25 msgid "Post successful." msgstr "Beitrag erfolgreich veröffentlicht." @@ -7879,6 +7879,49 @@ msgstr "Spitznamen wählen: " msgid "Import your profile to this friendica instance" msgstr "Importiere Dein Profil auf diese Friendica Instanz" +#: mod/suggest.php:27 +msgid "Do you really want to delete this suggestion?" +msgstr "Möchtest Du wirklich diese Empfehlung löschen?" + +#: mod/suggest.php:71 +msgid "" +"No suggestions available. If this is a new site, please try again in 24 " +"hours." +msgstr "Keine Vorschläge verfügbar. Falls der Server frisch aufgesetzt wurde, versuche es bitte in 24 Stunden noch einmal." + +#: mod/suggest.php:84 mod/suggest.php:104 +msgid "Ignore/Hide" +msgstr "Ignorieren/Verbergen" + +#: mod/update_community.php:19 mod/update_display.php:23 +#: mod/update_network.php:27 mod/update_notes.php:36 mod/update_profile.php:35 +msgid "[Embedded content - reload page to view]" +msgstr "[Eingebetteter Inhalt - Seite neu laden zum Betrachten]" + +#: mod/videos.php:120 +msgid "Do you really want to delete this video?" +msgstr "Möchtest Du dieses Video wirklich löschen?" + +#: mod/videos.php:125 +msgid "Delete Video" +msgstr "Video Löschen" + +#: mod/videos.php:204 +msgid "No videos selected" +msgstr "Keine Videos ausgewählt" + +#: mod/videos.php:396 +msgid "Recent Videos" +msgstr "Neueste Videos" + +#: mod/videos.php:398 +msgid "Upload New Videos" +msgstr "Neues Video hochladen" + +#: mod/viewcontacts.php:72 +msgid "No contacts." +msgstr "Keine Kontakte." + #: mod/settings.php:60 msgid "Display" msgstr "Anzeige" @@ -8199,6 +8242,12 @@ msgstr "Automatische Updates nur, wenn Du oben auf der Netzwerkseite bist." msgid "Bandwith Saver Mode" msgstr "Bandbreiten-Spar-Modus" +#: mod/settings.php:1007 +msgid "" +"When enabled, embedded content is not displayed on automatic updates, they " +"only show on page reload." +msgstr "Wenn aktiviert, wird der eingebettete Inhalt nicht automatisch aktualisiert. In diesem Fall Seite bitte neu laden." + #: mod/settings.php:1009 msgid "General Theme Settings" msgstr "Allgemeine Themeneinstellungen" @@ -8574,49 +8623,6 @@ msgstr "Wenn Du Dein Profil von einem anderen Server umgezogen hast und einige D msgid "Resend relocate message to contacts" msgstr "Umzugsbenachrichtigung erneut an Kontakte senden" -#: mod/suggest.php:27 -msgid "Do you really want to delete this suggestion?" -msgstr "Möchtest Du wirklich diese Empfehlung löschen?" - -#: mod/suggest.php:71 -msgid "" -"No suggestions available. If this is a new site, please try again in 24 " -"hours." -msgstr "Keine Vorschläge verfügbar. Falls der Server frisch aufgesetzt wurde, versuche es bitte in 24 Stunden noch einmal." - -#: mod/suggest.php:84 mod/suggest.php:104 -msgid "Ignore/Hide" -msgstr "Ignorieren/Verbergen" - -#: mod/update_community.php:19 mod/update_display.php:23 -#: mod/update_network.php:27 mod/update_notes.php:36 mod/update_profile.php:35 -msgid "[Embedded content - reload page to view]" -msgstr "[Eingebetteter Inhalt - Seite neu laden zum Betrachten]" - -#: mod/videos.php:120 -msgid "Do you really want to delete this video?" -msgstr "Möchtest Du dieses Video wirklich löschen?" - -#: mod/videos.php:125 -msgid "Delete Video" -msgstr "Video Löschen" - -#: mod/videos.php:204 -msgid "No videos selected" -msgstr "Keine Videos ausgewählt" - -#: mod/videos.php:396 -msgid "Recent Videos" -msgstr "Neueste Videos" - -#: mod/videos.php:398 -msgid "Upload New Videos" -msgstr "Neues Video hochladen" - -#: mod/viewcontacts.php:72 -msgid "No contacts." -msgstr "Keine Kontakte." - #: object/Item.php:370 msgid "via" msgstr "via" diff --git a/view/lang/de/strings.php b/view/lang/de/strings.php index 523e9e991..346cd3202 100644 --- a/view/lang/de/strings.php +++ b/view/lang/de/strings.php @@ -271,18 +271,6 @@ $a->strings["Advanced Profile Settings"] = "Erweiterte Profil-Einstellungen"; $a->strings["Show visitors public community forums at the Advanced Profile Page"] = "Zeige Besuchern öffentliche Gemeinschafts-Foren auf der Erweiterten Profil-Seite"; $a->strings["(no subject)"] = "(kein Betreff)"; $a->strings["noreply"] = "noreply"; -$a->strings["stopped following"] = "wird nicht mehr gefolgt"; -$a->strings["View Profile"] = "Profil anschauen"; -$a->strings["View Status"] = "Pinnwand anschauen"; -$a->strings["View Photos"] = "Bilder anschauen"; -$a->strings["Network Posts"] = "Netzwerkbeiträge"; -$a->strings["View Contact"] = "Kontakt anzeigen"; -$a->strings["Drop Contact"] = "Kontakt löschen"; -$a->strings["Send PM"] = "Private Nachricht senden"; -$a->strings["Poke"] = "Anstupsen"; -$a->strings["Organisation"] = "Organisation"; -$a->strings["News"] = "Nachrichten"; -$a->strings["Forum"] = "Forum"; $a->strings["Daily posting limit of %d posts reached. The post was rejected."] = "Das tägliche Nachrichtenlimit von %d Nachrichten wurde erreicht. Die Nachtricht wurde verworfen."; $a->strings["Weekly posting limit of %d posts reached. The post was rejected."] = "Das wöchentliche Nachrichtenlimit von %d Nachrichten wurde erreicht. Die Nachtricht wurde verworfen."; $a->strings["Monthly posting limit of %d posts reached. The post was rejected."] = "Das monatliche Nachrichtenlimit von %d Nachrichten wurde erreicht. Die Nachtricht wurde verworfen."; @@ -318,6 +306,13 @@ $a->strings["Please wait"] = "Bitte warten"; $a->strings["remove"] = "löschen"; $a->strings["Delete Selected Items"] = "Lösche die markierten Beiträge"; $a->strings["Follow Thread"] = "Folge der Unterhaltung"; +$a->strings["View Status"] = "Pinnwand anschauen"; +$a->strings["View Profile"] = "Profil anschauen"; +$a->strings["View Photos"] = "Bilder anschauen"; +$a->strings["Network Posts"] = "Netzwerkbeiträge"; +$a->strings["View Contact"] = "Kontakt anzeigen"; +$a->strings["Send PM"] = "Private Nachricht senden"; +$a->strings["Poke"] = "Anstupsen"; $a->strings["%s likes this."] = "%s mag das."; $a->strings["%s doesn't like this."] = "%s mag das nicht."; $a->strings["%s attends."] = "%s nimmt teil."; @@ -719,6 +714,11 @@ $a->strings["comment"] = array( ); $a->strings["post"] = "Beitrag"; $a->strings["Item filed"] = "Beitrag abgelegt"; +$a->strings["stopped following"] = "wird nicht mehr gefolgt"; +$a->strings["Drop Contact"] = "Kontakt löschen"; +$a->strings["Organisation"] = "Organisation"; +$a->strings["News"] = "Nachrichten"; +$a->strings["Forum"] = "Forum"; $a->strings["Post successful."] = "Beitrag erfolgreich veröffentlicht."; $a->strings["Access denied."] = "Zugriff verweigert."; $a->strings["Welcome to %s"] = "Willkommen zu %s"; @@ -1797,6 +1797,16 @@ $a->strings["Confirm:"] = "Bestätigen:"; $a->strings["Choose a profile nickname. This must begin with a text character. Your profile address on this site will then be 'nickname@\$sitename'."] = "Wähle einen Spitznamen für Dein Profil. Dieser muss mit einem Buchstaben beginnen. Die Adresse Deines Profils auf dieser Seite wird 'spitzname@\$sitename' sein."; $a->strings["Choose a nickname: "] = "Spitznamen wählen: "; $a->strings["Import your profile to this friendica instance"] = "Importiere Dein Profil auf diese Friendica Instanz"; +$a->strings["Do you really want to delete this suggestion?"] = "Möchtest Du wirklich diese Empfehlung löschen?"; +$a->strings["No suggestions available. If this is a new site, please try again in 24 hours."] = "Keine Vorschläge verfügbar. Falls der Server frisch aufgesetzt wurde, versuche es bitte in 24 Stunden noch einmal."; +$a->strings["Ignore/Hide"] = "Ignorieren/Verbergen"; +$a->strings["[Embedded content - reload page to view]"] = "[Eingebetteter Inhalt - Seite neu laden zum Betrachten]"; +$a->strings["Do you really want to delete this video?"] = "Möchtest Du dieses Video wirklich löschen?"; +$a->strings["Delete Video"] = "Video Löschen"; +$a->strings["No videos selected"] = "Keine Videos ausgewählt"; +$a->strings["Recent Videos"] = "Neueste Videos"; +$a->strings["Upload New Videos"] = "Neues Video hochladen"; +$a->strings["No contacts."] = "Keine Kontakte."; $a->strings["Display"] = "Anzeige"; $a->strings["Social Networks"] = "Soziale Netzwerke"; $a->strings["Connected apps"] = "Verbundene Programme"; @@ -1874,6 +1884,7 @@ $a->strings["Don't show notices"] = "Info-Popups nicht anzeigen"; $a->strings["Infinite scroll"] = "Endloses Scrollen"; $a->strings["Automatic updates only at the top of the network page"] = "Automatische Updates nur, wenn Du oben auf der Netzwerkseite bist."; $a->strings["Bandwith Saver Mode"] = "Bandbreiten-Spar-Modus"; +$a->strings["When enabled, embedded content is not displayed on automatic updates, they only show on page reload."] = "Wenn aktiviert, wird der eingebettete Inhalt nicht automatisch aktualisiert. In diesem Fall Seite bitte neu laden."; $a->strings["General Theme Settings"] = "Allgemeine Themeneinstellungen"; $a->strings["Custom Theme Settings"] = "Benutzerdefinierte Theme Einstellungen"; $a->strings["Content Settings"] = "Einstellungen zum Inhalt"; @@ -1965,16 +1976,6 @@ $a->strings["Change the behaviour of this account for special situations"] = "Ve $a->strings["Relocate"] = "Umziehen"; $a->strings["If you have moved this profile from another server, and some of your contacts don't receive your updates, try pushing this button."] = "Wenn Du Dein Profil von einem anderen Server umgezogen hast und einige Deiner Kontakte Deine Beiträge nicht erhalten, verwende diesen Button."; $a->strings["Resend relocate message to contacts"] = "Umzugsbenachrichtigung erneut an Kontakte senden"; -$a->strings["Do you really want to delete this suggestion?"] = "Möchtest Du wirklich diese Empfehlung löschen?"; -$a->strings["No suggestions available. If this is a new site, please try again in 24 hours."] = "Keine Vorschläge verfügbar. Falls der Server frisch aufgesetzt wurde, versuche es bitte in 24 Stunden noch einmal."; -$a->strings["Ignore/Hide"] = "Ignorieren/Verbergen"; -$a->strings["[Embedded content - reload page to view]"] = "[Eingebetteter Inhalt - Seite neu laden zum Betrachten]"; -$a->strings["Do you really want to delete this video?"] = "Möchtest Du dieses Video wirklich löschen?"; -$a->strings["Delete Video"] = "Video Löschen"; -$a->strings["No videos selected"] = "Keine Videos ausgewählt"; -$a->strings["Recent Videos"] = "Neueste Videos"; -$a->strings["Upload New Videos"] = "Neues Video hochladen"; -$a->strings["No contacts."] = "Keine Kontakte."; $a->strings["via"] = "via"; $a->strings["Repeat the image"] = "Bild wiederholen"; $a->strings["Will repeat your image to fill the background."] = "Wiederholt das Bild um den Hintergrund auszufüllen."; From 26936755d933d81ed9f837d6c4e7130794f78f15 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 13 Nov 2016 17:42:26 +0000 Subject: [PATCH 6/7] Bugfix: Locations without coordinates aren't good for Diaspora --- include/diaspora.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/diaspora.php b/include/diaspora.php index db6844f44..9e3710e2d 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -2876,8 +2876,9 @@ class diaspora { "created_at" => $created, "provider_display_name" => $item["app"]); - if (count($location) == 0) + if (!isset($location["lat"]) OR !isset($location["lng"])) { unset($message["location"]); + } $type = "status_message"; } From e925c4139c17e43708426bb296a08b39e6fe8e8b Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 13 Nov 2016 18:28:55 +0000 Subject: [PATCH 7/7] Some documentation --- include/diaspora.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/diaspora.php b/include/diaspora.php index 9e3710e2d..10f1be93d 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -2876,6 +2876,7 @@ class diaspora { "created_at" => $created, "provider_display_name" => $item["app"]); + // Diaspora rejects messages when they contain a location without "lat" or "lng" if (!isset($location["lat"]) OR !isset($location["lng"])) { unset($message["location"]); }