Merge remote-tracking branch 'upstream/develop' into 1512-contact-rework
This commit is contained in:
commit
fe900ac576
8 changed files with 1013 additions and 787 deletions
9
boot.php
9
boot.php
|
@ -737,7 +737,14 @@ if(! class_exists('App')) {
|
|||
if($interval < 10000)
|
||||
$interval = 40000;
|
||||
|
||||
$this->page['title'] = $this->config['sitename'];
|
||||
// compose the page title from the sitename and the
|
||||
// current module called
|
||||
if (!$this->module=='')
|
||||
{
|
||||
$this->page['title'] = $this->config['sitename'].' ('.$this->module.')';
|
||||
} else {
|
||||
$this->page['title'] = $this->config['sitename'];
|
||||
}
|
||||
|
||||
/* put the head template at the beginning of page['htmlhead']
|
||||
* since the code added by the modules frequently depends on it
|
||||
|
|
|
@ -1386,11 +1386,6 @@ function diaspora_asphoto($importer,$xml,$msg) {
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function diaspora_comment($importer,$xml,$msg) {
|
||||
|
||||
$a = get_app();
|
||||
|
@ -1510,16 +1505,27 @@ function diaspora_comment($importer,$xml,$msg) {
|
|||
}
|
||||
}
|
||||
|
||||
// Fetch the contact id - if we know this contact
|
||||
$r = q("SELECT `id`, `network` FROM `contact` WHERE `nurl` = '%s' AND `uid` = %d LIMIT 1",
|
||||
dbesc(normalise_link($person['url'])), intval($importer['uid']));
|
||||
if ($r) {
|
||||
$cid = $r[0]['id'];
|
||||
$network = $r[0]['network'];
|
||||
} else {
|
||||
$cid = $contact['id'];
|
||||
$network = NETWORK_DIASPORA;
|
||||
}
|
||||
|
||||
$body = diaspora2bb($text);
|
||||
$message_id = $diaspora_handle . ':' . $guid;
|
||||
|
||||
$datarray = array();
|
||||
|
||||
$datarray['uid'] = $importer['uid'];
|
||||
$datarray['contact-id'] = $contact['id'];
|
||||
$datarray['contact-id'] = $cid;
|
||||
$datarray['type'] = 'remote-comment';
|
||||
$datarray['wall'] = $parent_item['wall'];
|
||||
$datarray['network'] = NETWORK_DIASPORA;
|
||||
$datarray['network'] = $network;
|
||||
$datarray['verb'] = ACTIVITY_POST;
|
||||
$datarray['gravity'] = GRAVITY_COMMENT;
|
||||
$datarray['guid'] = $guid;
|
||||
|
@ -2155,13 +2161,24 @@ function diaspora_like($importer,$xml,$msg) {
|
|||
EOT;
|
||||
$bodyverb = t('%1$s likes %2$s\'s %3$s');
|
||||
|
||||
// Fetch the contact id - if we know this contact
|
||||
$r = q("SELECT `id`, `network` FROM `contact` WHERE `nurl` = '%s' AND `uid` = %d LIMIT 1",
|
||||
dbesc(normalise_link($person['url'])), intval($importer['uid']));
|
||||
if ($r) {
|
||||
$cid = $r[0]['id'];
|
||||
$network = $r[0]['network'];
|
||||
} else {
|
||||
$cid = $contact['id'];
|
||||
$network = NETWORK_DIASPORA;
|
||||
}
|
||||
|
||||
$arr = array();
|
||||
|
||||
$arr['uri'] = $uri;
|
||||
$arr['uid'] = $importer['uid'];
|
||||
$arr['guid'] = $guid;
|
||||
$arr['network'] = NETWORK_DIASPORA;
|
||||
$arr['contact-id'] = $contact['id'];
|
||||
$arr['network'] = $network;
|
||||
$arr['contact-id'] = $cid;
|
||||
$arr['type'] = 'activity';
|
||||
$arr['wall'] = $parent_item['wall'];
|
||||
$arr['gravity'] = GRAVITY_LIKE;
|
||||
|
|
1641
view/de/messages.po
1641
view/de/messages.po
File diff suppressed because it is too large
Load diff
|
@ -297,6 +297,7 @@ $a->strings["{0} wants to be your friend"] = "{0} möchte mit Dir in Kontakt tre
|
|||
$a->strings["{0} sent you a message"] = "{0} schickte Dir eine Nachricht";
|
||||
$a->strings["{0} requested registration"] = "{0} möchte sich registrieren";
|
||||
$a->strings["No contacts."] = "Keine Kontakte.";
|
||||
$a->strings["Forum"] = "Forum";
|
||||
$a->strings["View Contacts"] = "Kontakte anzeigen";
|
||||
$a->strings["Invalid request identifier."] = "Invalid request identifier.";
|
||||
$a->strings["Discard"] = "Verwerfen";
|
||||
|
@ -582,6 +583,8 @@ $a->strings["Maximum Load Average"] = "Maximum Load Average";
|
|||
$a->strings["Maximum system load before delivery and poll processes are deferred - default 50."] = "Maximale Systemlast bevor Verteil- und Empfangsprozesse verschoben werden - Standard 50";
|
||||
$a->strings["Maximum Load Average (Frontend)"] = "Maximum Load Average (Frontend)";
|
||||
$a->strings["Maximum system load before the frontend quits service - default 50."] = "Maximale Systemlast bevor Vordergrundprozesse pausiert werden - Standard 50.";
|
||||
$a->strings["Maximum table size for optimization"] = "Maximale Tabellengröße zur Optimierung";
|
||||
$a->strings["Maximum table size (in MB) for the automatic optimization - default 100 MB. Enter -1 to disable it."] = "Maximale Tabellengröße (in MB) für die automatische Optimierung - Standard 100 MB. Gib -1 für Deaktivierung ein.";
|
||||
$a->strings["Periodical check of global contacts"] = "Regelmäßig globale Kontakte überprüfen";
|
||||
$a->strings["If enabled, the global contacts are checked periodically for missing or outdated data and the vitality of the contacts and servers."] = "Wenn diese Option aktiviert ist, werden die globalen Kontakte regelmäßig auf fehlende oder veraltete Daten sowie auf Erreichbarkeit des Kontakts und des Servers überprüft.";
|
||||
$a->strings["Days between requery"] = "Tage zwischen erneuten Abfragen";
|
||||
|
@ -720,11 +723,9 @@ $a->strings["Private messages to this group are at risk of public disclosure."]
|
|||
$a->strings["No such group"] = "Es gibt keine solche Gruppe";
|
||||
$a->strings["Group is empty"] = "Gruppe ist leer";
|
||||
$a->strings["Group: %s"] = "Gruppe: %s";
|
||||
$a->strings["Contact: %s"] = "Kontakt: %s";
|
||||
$a->strings["Private messages to this person are at risk of public disclosure."] = "Private Nachrichten an diese Person könnten an die Öffentlichkeit gelangen.";
|
||||
$a->strings["Invalid contact."] = "Ungültiger Kontakt.";
|
||||
$a->strings["No friends to display."] = "Keine Freunde zum Anzeigen.";
|
||||
$a->strings["Forum"] = "Forum";
|
||||
$a->strings["Friends of %s"] = "Freunde von %s";
|
||||
$a->strings["Event can not end before it has started."] = "Die Veranstaltung kann nicht enden bevor sie beginnt.";
|
||||
$a->strings["Event title and start time are required."] = "Der Veranstaltungstitel und die Anfangszeit müssen angegeben werden.";
|
||||
|
@ -1128,6 +1129,7 @@ $a->strings["StatusNet/Federated Social Web"] = "StatusNet/Federated Social Web"
|
|||
$a->strings[" - please do not use this form. Instead, enter %s into your Diaspora search bar."] = " - bitte verwende dieses Formular nicht. Stattdessen suche nach %s in Deiner Diaspora Suchleiste.";
|
||||
$a->strings["Registration successful. Please check your email for further instructions."] = "Registrierung erfolgreich. Eine E-Mail mit weiteren Anweisungen wurde an Dich gesendet.";
|
||||
$a->strings["Failed to send email message. Here your accout details:<br> login: %s<br> password: %s<br><br>You can change your password after login."] = "Versenden der E-Mail fehlgeschlagen. Hier sind Deine Account Details:\n\nLogin: %s\nPasswort: %s\n\nDu kannst das Passwort nach dem Anmelden ändern.";
|
||||
$a->strings["Registration successful."] = "Registrierung erfolgreich.";
|
||||
$a->strings["Your registration can not be processed."] = "Deine Registrierung konnte nicht verarbeitet werden.";
|
||||
$a->strings["Your registration is pending approval by the site owner."] = "Deine Registrierung muss noch vom Betreiber der Seite freigegeben werden.";
|
||||
$a->strings["This site has exceeded the number of allowed daily account registrations. Please try again tomorrow."] = "Die maximale Anzahl täglicher Registrierungen auf dieser Seite wurde überschritten. Bitte versuche es morgen noch einmal.";
|
||||
|
@ -1458,6 +1460,8 @@ $a->strings["Add/remove mention when a fourm page is selected/deselected in ACL
|
|||
$a->strings["Network Sidebar Widgets"] = "Widgets für Netzwerk und Seitenleiste";
|
||||
$a->strings["Search by Date"] = "Archiv";
|
||||
$a->strings["Ability to select posts by date ranges"] = "Möglichkeit die Beiträge nach Datumsbereichen zu sortieren";
|
||||
$a->strings["List Forums"] = "Zeige Foren";
|
||||
$a->strings["Enable widget to display the forums your are connected with"] = "Aktiviere Widget, um die Foren mit denen du verbunden bist anzuzeigen";
|
||||
$a->strings["Group Filter"] = "Gruppen Filter";
|
||||
$a->strings["Enable widget to display Network posts only from selected group"] = "Widget zur Darstellung der Beiträge nach Kontaktgruppen sortiert aktivieren.";
|
||||
$a->strings["Network Filter"] = "Netzwerk Filter";
|
||||
|
@ -1486,6 +1490,8 @@ $a->strings["Star Posts"] = "Beiträge Markieren";
|
|||
$a->strings["Ability to mark special posts with a star indicator"] = "Erlaubt es Beiträge mit einem Stern-Indikator zu markieren";
|
||||
$a->strings["Mute Post Notifications"] = "Benachrichtigungen für Beiträge Stumm schalten";
|
||||
$a->strings["Ability to mute notifications for a thread"] = "Möglichkeit Benachrichtigungen für einen Thread abbestellen zu können";
|
||||
$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["Connect URL missing."] = "Connect-URL fehlt";
|
||||
$a->strings["This site is not configured to allow communications with other networks."] = "Diese Seite ist so konfiguriert, dass keine Kommunikation mit anderen Netzwerken erfolgen kann.";
|
||||
$a->strings["No compatible communication protocols or feeds were discovered."] = "Es wurden keine kompatiblen Kommunikationsprotokolle oder Feeds gefunden.";
|
||||
|
@ -1502,6 +1508,7 @@ $a->strings["A deleted group with this name was revived. Existing item permissio
|
|||
$a->strings["Default privacy group for new contacts"] = "Voreingestellte Gruppe für neue Kontakte";
|
||||
$a->strings["Everybody"] = "Alle Kontakte";
|
||||
$a->strings["edit"] = "bearbeiten";
|
||||
$a->strings["Edit groups"] = "Gruppen bearbeiten";
|
||||
$a->strings["Edit group"] = "Gruppe bearbeiten";
|
||||
$a->strings["Create a new group"] = "Neue Gruppe erstellen";
|
||||
$a->strings["Contacts not in any group"] = "Kontakte in keiner Gruppe";
|
||||
|
@ -1525,6 +1532,7 @@ $a->strings["%s's birthday"] = "%ss Geburtstag";
|
|||
$a->strings["Happy Birthday %s"] = "Herzlichen Glückwunsch %s";
|
||||
$a->strings["Requested account is not available."] = "Das angefragte Profil ist nicht vorhanden.";
|
||||
$a->strings["Edit profile"] = "Profil bearbeiten";
|
||||
$a->strings["Atom feed"] = "Atom-Feed";
|
||||
$a->strings["Message"] = "Nachricht";
|
||||
$a->strings["Profiles"] = "Profile";
|
||||
$a->strings["Manage/edit profiles"] = "Profile verwalten/editieren";
|
||||
|
@ -1552,6 +1560,7 @@ $a->strings["Film/dance/culture/entertainment:"] = "Filme/Tänze/Kultur/Unterhal
|
|||
$a->strings["Love/Romance:"] = "Liebesleben:";
|
||||
$a->strings["Work/employment:"] = "Arbeit/Beschäftigung:";
|
||||
$a->strings["School/education:"] = "Schule/Ausbildung:";
|
||||
$a->strings["Forums:"] = "Foren:";
|
||||
$a->strings["Status"] = "Status";
|
||||
$a->strings["Status Messages and Posts"] = "Statusnachrichten und Beiträge";
|
||||
$a->strings["Profile Details"] = "Profildetails";
|
||||
|
@ -1629,6 +1638,8 @@ $a->strings["Undecided"] = array(
|
|||
0 => "Unentschieden",
|
||||
1 => "Unentschieden",
|
||||
);
|
||||
$a->strings["Forums"] = "Foren";
|
||||
$a->strings["External link to forum"] = "Externer Link zum Forum";
|
||||
$a->strings["view full size"] = "Volle Größe anzeigen";
|
||||
$a->strings["newer"] = "neuer";
|
||||
$a->strings["older"] = "älter";
|
||||
|
@ -1645,7 +1656,6 @@ $a->strings["%d Contact"] = array(
|
|||
);
|
||||
$a->strings["Full Text"] = "Volltext";
|
||||
$a->strings["Tags"] = "Tags";
|
||||
$a->strings["Forums"] = "Foren";
|
||||
$a->strings["poke"] = "anstupsen";
|
||||
$a->strings["poked"] = "stupste";
|
||||
$a->strings["ping"] = "anpingen";
|
||||
|
@ -1949,9 +1959,20 @@ $a->strings["Your personal photos"] = "Deine privaten Fotos";
|
|||
$a->strings["Local Directory"] = "Lokales Verzeichnis";
|
||||
$a->strings["Set zoomfactor for Earth Layers"] = "Zoomfaktor der Earth Layer";
|
||||
$a->strings["Show/hide boxes at right-hand column:"] = "Rahmen auf der rechten Seite anzeigen/verbergen";
|
||||
$a->strings["Midnight"] = "Mitternacht";
|
||||
$a->strings["Zenburn"] = "Zenburn";
|
||||
$a->strings["Bootstrap"] = "Bootstrap";
|
||||
$a->strings["Shades of Pink"] = "Shades of Pink";
|
||||
$a->strings["Lime and Orange"] = "Lime and Orange";
|
||||
$a->strings["GeoCities Retro"] = "GeoCities Retro";
|
||||
$a->strings["Background Image"] = "Hintergrundbild";
|
||||
$a->strings["The URL to a picture (e.g. from your photo album) that should be used as background image."] = "Die URL eines Bildes (z.B. aus deinem Fotoalbum), das als Hintergrundbild verwendet werden soll.";
|
||||
$a->strings["Background Color"] = "Hintergrundfarbe";
|
||||
$a->strings["HEX value for the background color. Don't include the #"] = "HEX Wert der Hintergrundfarbe. Gib die # nicht mit an.";
|
||||
$a->strings["font size"] = "Schriftgröße";
|
||||
$a->strings["base font size for your interface"] = "Basis-Schriftgröße für dein Interface.";
|
||||
$a->strings["Comma separated list of helper forums"] = "Komma-Separierte Liste der Helfer-Foren";
|
||||
$a->strings["Set style"] = "Stil auswählen";
|
||||
$a->strings["External link to forum"] = "Externer Link zum Forum";
|
||||
$a->strings["Quick Start"] = "Schnell-Start";
|
||||
$a->strings["greenzero"] = "greenzero";
|
||||
$a->strings["purplezero"] = "purplezero";
|
||||
|
|
|
@ -51,4 +51,3 @@
|
|||
<input id="event-submit" type="submit" name="submit" value="{{$submit|escape:'html'}}" />
|
||||
</form>
|
||||
|
||||
|
||||
|
|
|
@ -138,6 +138,10 @@
|
|||
}
|
||||
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.comment-edit-bb').hide();
|
||||
});
|
||||
{{else}}
|
||||
<script language="javascript" type="text/javascript">
|
||||
{{/if}}
|
||||
|
|
|
@ -2715,6 +2715,13 @@ a.mail-list-link {
|
|||
font-weight: bold;
|
||||
color: #FF0000;
|
||||
}
|
||||
#event-desc-text-edit-bb, #event-location-text-edit-bb {
|
||||
float: none;
|
||||
}
|
||||
#event-start-text, #event-finish-text, #event-summary-text, #event-desc-text, #event-location-text {
|
||||
margin-bottom: 10px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.settings-block {
|
||||
/* border: 1px solid #AAA; */
|
||||
|
|
74
view/theme/vier/templates/event_form.tpl
Normal file
74
view/theme/vier/templates/event_form.tpl
Normal file
|
@ -0,0 +1,74 @@
|
|||
|
||||
|
||||
<h3>{{$title}}</h3>
|
||||
|
||||
<p>
|
||||
{{$desc}}
|
||||
</p>
|
||||
|
||||
<form id="event-edit-form" action="{{$post}}" method="post" >
|
||||
|
||||
<input type="hidden" name="event_id" value="{{$eid}}" />
|
||||
<input type="hidden" name="cid" value="{{$cid}}" />
|
||||
<input type="hidden" name="uri" value="{{$uri}}" />
|
||||
<input type="hidden" name="preview" id="event-edit-preview" value="0" />
|
||||
|
||||
<div id="event-start-text">{{$s_text}}</div>
|
||||
{{$s_dsel}}
|
||||
|
||||
<div id="event-finish-text">{{$f_text}}</div>
|
||||
{{$f_dsel}}
|
||||
|
||||
<div id="event-datetime-break"></div>
|
||||
|
||||
<input type="checkbox" name="nofinish" value="1" id="event-nofinish-checkbox" {{$n_checked}} /> <div id="event-nofinish-text">{{$n_text}}</div>
|
||||
|
||||
<div id="event-nofinish-break"></div>
|
||||
|
||||
<input type="checkbox" name="adjust" value="1" id="event-adjust-checkbox" {{$a_checked}} /> <div id="event-adjust-text">{{$a_text}}</div>
|
||||
|
||||
<div id="event-adjust-break"></div>
|
||||
|
||||
<div id="event-summary-text">{{$t_text}}</div>
|
||||
<input type="text" size="65" id="event-summary" name="summary" value="{{$t_orig|escape:'html'}}" />
|
||||
|
||||
|
||||
<div id="event-desc-text">{{$d_text}}</div>
|
||||
<textarea id="comment-edit-text-desc" rows="8" cols="64" name="desc">{{$d_orig}}</textarea>
|
||||
<div id="event-desc-text-edit-bb" class="comment-edit-bb">
|
||||
<a title="{{$edimg}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="img" data-id="desc"><i class="icon-picture"></i></a>
|
||||
<a title="{{$edurl}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="url" data-id="desc"><i class="icon-link"></i></a>
|
||||
<a title="{{$edvideo}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="video" data-id="desc"><i class="icon-film"></i></a>
|
||||
|
||||
<a title="{{$eduline}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="u" data-id="desc"><i class="icon-underline"></i></a>
|
||||
<a title="{{$editalic}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="i" data-id="desc"><i class="icon-italic"></i></a>
|
||||
<a title="{{$edbold}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="b" data-id="desc"><i class="icon-bold"></i></a>
|
||||
<a title="{{$edquote}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="quote" data-id="desc"><i class="icon-quote-left"></i></a>
|
||||
</div>
|
||||
|
||||
<div id="event-location-text">{{$l_text}}</div>
|
||||
<textarea id="comment-edit-text-location" rows="4" cols="64" name="location">{{$l_orig}}</textarea>
|
||||
<div id="event-location-text-edit-bb" class="comment-edit-bb">
|
||||
<a title="{{$edimg}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="img" data-id="location"><i class="icon-picture"></i></a>
|
||||
<a title="{{$edurl}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="url" data-id="location"><i class="icon-link"></i></a>
|
||||
<a title="{{$edvideo}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="video" data-id="location"><i class="icon-film"></i></a>
|
||||
|
||||
<a title="{{$eduline}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="u" data-id="location"><i class="icon-underline"></i></a>
|
||||
<a title="{{$editalic}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="i" data-id="location"><i class="icon-italic"></i></a>
|
||||
<a title="{{$edbold}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="b" data-id="location"><i class="icon-bold"></i></a>
|
||||
<a title="{{$edquote}}" data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="quote" data-id="location"><i class="icon-quote-left"></i></a>
|
||||
</div>
|
||||
|
||||
<div id="event-location-break"></div>
|
||||
|
||||
<input type="checkbox" name="share" value="1" id="event-share-checkbox" {{$sh_checked}} /> <div id="event-share-text">{{$sh_text}}</div>
|
||||
<div id="event-share-break"></div>
|
||||
|
||||
{{$acl}}
|
||||
|
||||
<div class="clear"></div>
|
||||
<input id="event-edit-preview" type="submit" name="preview" value="{{$preview|escape:'html'}}" onclick="doEventPreview(); return false;" />
|
||||
<input id="event-submit" type="submit" name="submit" value="{{$submit|escape:'html'}}" />
|
||||
</form>
|
||||
|
||||
|
Loading…
Reference in a new issue