1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +01:00

Merge branch 'master' of gitorious.org:owncloud/owncloud into ace-editor

This commit is contained in:
Tom Needham 2012-01-13 16:55:55 +00:00
commit 8d78bb73cd
60 changed files with 1601 additions and 471 deletions

View File

@ -10,10 +10,17 @@
require_once ("../../../lib/base.php");
OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts');
$l=new OC_L10N('contacts');
$bookid = $_POST['bookid'];
OC_Contacts_Addressbook::setActive($bookid, $_POST['active']);
if(!OC_Contacts_Addressbook::setActive($bookid, $_POST['active'])) {
OC_JSON::error(array('data' => array('message' => $l->t('Error (de)activating addressbook.'))));
OC_Log::write('contacts','ajax/activation.php: Error activating addressbook: '.$bookid, OC_Log::ERROR);
exit();
}
$book = OC_Contacts_App::getAddressbook($bookid);
/* is there an OC_JSON::error() ? */
OC_JSON::success(array(
'active' => OC_Contacts_Addressbook::isActive($bookid),

View File

@ -26,6 +26,7 @@ require_once('../../../lib/base.php');
// Check if we are a user
OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts');
$l=new OC_L10N('contacts');
$aid = $_POST['id'];
$addressbook = OC_Contacts_App::getAddressbook( $aid );
@ -54,12 +55,31 @@ foreach( $add as $propname){
$value = $values[$propname];
if( isset( $parameters[$propname] ) && count( $parameters[$propname] )){
$prop_parameters = $parameters[$propname];
}
else{
} else {
$prop_parameters = array();
}
$vcard->addProperty($propname, $value, $prop_parameters);
$vcard->addProperty($propname, $value); //, $prop_parameters);
$line = count($vcard->children) - 1;
foreach ($prop_parameters as $key=>$element) {
if(is_array($element) && strtoupper($key) == 'TYPE') {
// FIXME: Maybe this doesn't only apply for TYPE?
// And it probably shouldn't be done here anyways :-/
foreach($element as $e){
if($e != '' && !is_null($e)){
$vcard->children[$line]->parameters[] = new Sabre_VObject_Parameter($key,$e);
}
}
} else {
$vcard->children[$line]->parameters[] = new Sabre_VObject_Parameter($key,$element);
}
}
}
$id = OC_Contacts_VCard::add($aid,$vcard->serialize());
if(!$id) {
OC_JSON::error(array('data' => array('message' => $l->t('There was an error adding the contact.'))));
OC_Log::write('contacts','ajax/addcard.php: Recieved non-positive ID on adding card: '.$name, OC_Log::ERROR);
exit();
}
// NOTE: Why is this in OC_Contacts_App?
OC_Contacts_App::renderDetails($id, $vcard);

View File

@ -26,13 +26,33 @@ require_once('../../../lib/base.php');
// Check if we are a user
OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts');
$l=new OC_L10N('contacts');
$id = $_POST['id'];
$vcard = OC_Contacts_App::getContactVCard( $id );
$name = $_POST['name'];
$value = $_POST['value'];
$parameters = isset($_POST['parameters'])?$_POST['parameters']:array();
if(!is_array($value)){
$value = trim($value);
if(!$value && in_array($name, array('TEL', 'EMAIL', 'ORG'))) {
OC_JSON::error(array('data' => array('message' => $l->t('Cannot add empty property.'))));
exit();
}
} elseif($name === 'ADR') { // only add if non-empty elements.
$empty = true;
foreach($value as $part) {
if(trim($part) != '') {
$empty = false;
break;
}
}
if($empty) {
OC_JSON::error(array('data' => array('message' => $l->t('At least one of the address fields has to be filled out.'))));
exit();
}
}
$parameters = isset($_POST['parameters']) ? $_POST['parameters'] : array();
$property = $vcard->addProperty($name, $value); //, $parameters);
@ -41,17 +61,23 @@ $line = count($vcard->children) - 1;
// Apparently Sabre_VObject_Parameter doesn't do well with multiple values or I don't know how to do it. Tanghus.
foreach ($parameters as $key=>$element) {
if(is_array($element) && strtoupper($key) == 'TYPE') {
// FIXME: Maybe this doesn't only apply for TYPE?
// NOTE: Maybe this doesn't only apply for TYPE?
// And it probably shouldn't be done here anyways :-/
foreach($element as $e){
if($e != '' && !is_null($e)){
$vcard->children[$line]->parameters[] = new Sabre_VObject_Parameter($key,$e);
}
}
} else {
$vcard->children[$line]->parameters[] = new Sabre_VObject_Parameter($key,$element);
}
}
OC_Contacts_VCard::edit($id,$vcard->serialize());
if(!OC_Contacts_VCard::edit($id,$vcard->serialize())) {
OC_JSON::error(array('data' => array('message' => $l->t('Error adding contact property.'))));
OC_Log::write('contacts','ajax/addproperty.php: Error updating contact property: '.$name, OC_Log::ERROR);
exit();
}
$adr_types = OC_Contacts_App::getTypesOfProperty('ADR');
$phone_types = OC_Contacts_App::getTypesOfProperty('TEL');

View File

@ -1,6 +1,6 @@
<?php
/**
* Copyright (c) 2011 Thomas Tanghus <thomas@tanghus.net>
* Copyright (c) 2011-2012 Thomas Tanghus <thomas@tanghus.net>
* Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>
* This file is licensed under the Affero General Public License version 3 or
* later.
@ -16,7 +16,17 @@ OC_JSON::checkAppEnabled('contacts');
$userid = OC_User::getUser();
$bookid = OC_Contacts_Addressbook::add($userid, $_POST['name'], null);
OC_Contacts_Addressbook::setActive($bookid, 1);
if(!$bookid) {
OC_JSON::error(array('data' => array('message' => $l->t('Error adding addressbook.'))));
OC_Log::write('contacts','ajax/createaddressbook.php: Error adding addressbook: '.$_POST['name'], OC_Log::ERROR);
exit();
}
if(!OC_Contacts_Addressbook::setActive($bookid, 1)) {
OC_JSON::error(array('data' => array('message' => $l->t('Error activating addressbook.'))));
OC_Log::write('contacts','ajax/createaddressbook.php: Error activating addressbook: '.$bookid, OC_Log::ERROR);
//exit();
}
$addressbook = OC_Contacts_App::getAddressbook($bookid);
$tmpl = new OC_Template('contacts', 'part.chooseaddressbook.rowfields');
$tmpl->assign('addressbook', $addressbook);

View File

@ -26,6 +26,7 @@ require_once('../../../lib/base.php');
// Check if we are a user
OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts');
$l10n = new OC_L10N('contacts');
$id = $_GET['id'];
$checksum = $_GET['checksum'];
@ -35,5 +36,10 @@ $line = OC_Contacts_App::getPropertyLineByChecksum($vcard, $checksum);
unset($vcard->children[$line]);
OC_Contacts_VCard::edit($id,$vcard->serialize());
if(!OC_Contacts_VCard::edit($id,$vcard->serialize())) {
OC_JSON::error(array('data' => array('message' => $l->t('Error deleting contact property.'))));
OC_Log::write('contacts','ajax/deleteproperty.php: Error deleting contact property', OC_Log::ERROR);
exit();
}
OC_JSON::success(array('data' => array( 'id' => $id )));

16
ajax/messagebox.php Normal file
View File

@ -0,0 +1,16 @@
<?php
/**
* Copyright (c) 2011 Thomas Tanghus <thomas@tanghus.net>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
require_once('../../../lib/base.php');
$l10n = new OC_L10N('contacts');
OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts');
$output = new OC_TEMPLATE("contacts", "part.messagebox");
$output -> printpage();
?>

View File

@ -72,9 +72,14 @@ foreach($missingparameters as $i){
}
// Do checksum and be happy
// NOTE: This checksum is not used..?
$checksum = md5($vcard->children[$line]->serialize());
OC_Contacts_VCard::edit($id,$vcard->serialize());
if(!OC_Contacts_VCard::edit($id,$vcard->serialize())) {
OC_JSON::error(array('data' => array('message' => $l->t('Error updating contact property.'))));
OC_Log::write('contacts','ajax/setproperty.php: Error updating contact property: '.$value, OC_Log::ERROR);
exit();
}
$adr_types = OC_Contacts_App::getTypesOfProperty('ADR');
$phone_types = OC_Contacts_App::getTypesOfProperty('TEL');

View File

@ -1,6 +1,6 @@
<?php
/**
* Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>
* Copyright (c) 2011-2012 Thomas Tanghus <thomas@tanghus.net>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
@ -15,8 +15,19 @@ OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('contacts');
$bookid = $_POST['id'];
OC_Contacts_Addressbook::edit($bookid, $_POST['name'], null);
OC_Contacts_Addressbook::setActive($bookid, $_POST['active']);
if(!OC_Contacts_Addressbook::edit($bookid, $_POST['name'], null)) {
OC_JSON::error(array('data' => array('message' => $l->t('Error updating addressbook.'))));
OC_Log::write('contacts','ajax/updateaddressbook.php: Error adding addressbook: ', OC_Log::ERROR);
//exit();
}
if(!OC_Contacts_Addressbook::setActive($bookid, $_POST['active'])) {
OC_JSON::error(array('data' => array('message' => $l->t('Error (de)activating addressbook.'))));
OC_Log::write('contacts','ajax/updateaddressbook.php: Error (de)activating addressbook: '.$bookid, OC_Log::ERROR);
//exit();
}
$addressbook = OC_Contacts_App::getAddressbook($bookid);
$tmpl = new OC_Template('contacts', 'part.chooseaddressbook.rowfields');
$tmpl->assign('addressbook', $addressbook);

View File

@ -1,4 +1,5 @@
<?php
$l=new OC_L10N('contacts');
OC::$CLASSPATH['OC_Contacts_App'] = 'apps/contacts/lib/app.php';
OC::$CLASSPATH['OC_Contacts_Addressbook'] = 'apps/contacts/lib/addressbook.php';
@ -17,7 +18,8 @@ OC_App::addNavigationEntry( array(
'order' => 10,
'href' => OC_Helper::linkTo( 'contacts', 'index.php' ),
'icon' => OC_Helper::imagePath( 'settings', 'users.svg' ),
'name' => 'Contacts' ));
'name' => $l->t('Contacts') ));
OC_APP::registerPersonal('contacts','settings');
require_once('apps/contacts/lib/search.php');

View File

@ -1,270 +0,0 @@
/* -------------------------------------------------------------------------------------------------
ownCloud changes: search for OWNCLOUD
Based on formtastic style sheet
This stylesheet forms part of the Formtastic Rails Plugin
(c) 2008-2011 Justin French
--------------------------------------------------------------------------------------------------*/
/* NORMALIZE AND RESET - obviously inspired by Yahoo's reset.css, but scoped to just .formtastic
--------------------------------------------------------------------------------------------------*/
.formtastic,
.formtastic ul,
.formtastic ol,
.formtastic li,
.formtastic fieldset,
.formtastic legend,
/*.formtastic input,
.formtastic textarea,
.formtastic select, COMMENTED BY OWNCLOUD */
.formtastic p {
margin:0;
padding:0;
}
.formtastic fieldset {
border:0;
}
.formtastic em,
.formtastic strong {
font-style:normal;
font-weight:normal;
}
.formtastic ol,
.formtastic ul {
list-style:none;
}
.formtastic abbr,
.formtastic acronym {
border:0;
font-variant:normal;
}
/*.formtastic input,
.formtastic textarea {
font-family:sans-serif;
font-size:inherit;
font-weight:inherit;
}
.formtastic input,
.formtastic textarea,
.formtastic select {
font-size:100%;
} COMMENTED BY OWNCLOUD */
.formtastic legend {
white-space:normal;
color:#000;
}
/* SEMANTIC ERRORS
--------------------------------------------------------------------------------------------------*/
.formtastic .errors {
color:#cc0000;
margin:0.5em 0 1.5em 25%;
list-style:square;
}
.formtastic .errors li {
padding:0;
border:none;
display:list-item;
}
/* BUTTONS
--------------------------------------------------------------------------------------------------*/
.formtastic .buttons {
overflow:hidden; /* clear containing floats */
padding-left:25%;
}
.formtastic .button {
float:left;
padding-right:0.5em;
border:none; /* ADDED BY OWNCLOUD */
}
/* INPUTS
--------------------------------------------------------------------------------------------------*/
.formtastic .inputs {
padding:0.5em 0; /* padding and negative margin juggling is for Firefox */
margin-top:-0.5em;
margin-bottom:1em;
}
.formtastic .input {
}
/* LEFT ALIGNED LABELS
--------------------------------------------------------------------------------------------------*/
.formtastic .input .label {
display:block;
width:25%;
float:left;
padding-top:.2em;
}
.formtastic .fragments .label,
.formtastic .choices .label {
position:absolute;
width:95%;
left:0px;
}
.formtastic .fragments .label label,
.formtastic .choices .label label {
position:absolute;
}
/* NESTED FIELDSETS AND LEGENDS (radio, check boxes and date/time inputs use nested fieldsets)
--------------------------------------------------------------------------------------------------*/
.formtastic .choices {
position:relative;
}
.formtastic .choices-group {
float:left;
width:74%;
margin:0;
padding:0 0 0 25%;
}
.formtastic .choice {
padding:0;
border:0;
}
/* INLINE HINTS
--------------------------------------------------------------------------------------------------*/
.formtastic .input .inline-hints {
color:#666;
margin:0.5em 0 0 25%;
}
/* INLINE ERRORS
--------------------------------------------------------------------------------------------------*/
.formtastic .inline-errors {
color:#cc0000;
margin:0.5em 0 0 25%;
}
.formtastic .errors {
color:#cc0000;
margin:0.5em 0 0 25%;
list-style:square;
}
.formtastic .errors li {
padding:0;
border:none;
display:list-item;
}
/* STRING, NUMERIC, PASSWORD, EMAIL, URL, PHONE, SEARCH (ETC) OVERRIDES
--------------------------------------------------------------------------------------------------*/
.formtastic .stringish input {
width:72%;
}
.formtastic .stringish input[size] {
width:auto;
max-width:72%;
}
/* TEXTAREA OVERRIDES
--------------------------------------------------------------------------------------------------*/
.formtastic .text textarea {
width:72%;
}
.formtastic .text textarea[cols] {
width:auto;
max-width:72%;
}
/* HIDDEN OVERRIDES
--------------------------------------------------------------------------------------------------*/
.formtastic .hidden {
display:none;
}
/* BOOLEAN LABELS
--------------------------------------------------------------------------------------------------*/
.formtastic .boolean label {
padding-left:25%;
display:block;
}
/* CHOICE GROUPS
--------------------------------------------------------------------------------------------------*/
.formtastic .choices-group {
margin-bottom:-0.5em;
}
.formtastic .choice {
margin:0.1em 0 0.5em 0;
}
.formtastic .choice label {
float:none;
width:100%;
line-height:100%;
padding-top:0;
margin-bottom:0.6em;
}
/* ADJUSTMENTS FOR INPUTS INSIDE LABELS (boolean input, radio input, check_boxes input)
--------------------------------------------------------------------------------------------------*/
.formtastic .choice label input,
.formtastic .boolean label input {
margin:0 0.3em 0 0.1em;
line-height:100%;
}
/* FRAGMENTED INPUTS (DATE/TIME/DATETIME)
--------------------------------------------------------------------------------------------------*/
.formtastic .fragments {
position:relative;
}
.formtastic .fragments-group {
float:left;
width:74%;
margin:0;
padding:0 0 0 25%;
}
.formtastic .fragment {
float:left;
width:auto;
margin:0 .3em 0 0;
padding:0;
border:0;
}
.formtastic .fragment label {
display:none;
}
.formtastic .fragment label input {
display:inline;
margin:0;
padding:0;
}

View File

@ -4,13 +4,51 @@
#contacts_details_name { font-weight:bold;font-size:1.1em;margin-left:25%;}
#contacts_details_photo { margin:.5em 0em .5em 25%; }
#contacts_deletecard {position:absolute;top:15px;right:0;}
#contacts_deletecard {position:absolute;top:15px;right:25px;}
#contacts_downloadcard {position:absolute;top:15px;right:50px;}
#contacts_details_list { list-style:none; }
#contacts_details_list li { overflow:visible; }
#contacts_details_list li p.contacts_property_name { width:25%; float:left;text-align:right;padding-right:0.3em;color:#666; }
#contacts_details_list li p.contacts_property_data, #contacts_details_list li ul.contacts_property_data { width:72%;float:left; }
#contacts_details_list li p.contacts_property_data, #contacts_details_list li ul.contacts_property_data { width:72%;float:left; clear: right; }
#contacts_setproperty_button { margin-left:25%; }
dl.form
{
width: 100%;
float: left;
clear: right;
margin: 1em;
padding: 0;
}
.form dt
{
display: table-cell;
clear: left;
float: left;
min-width: 10em;
margin: 0;
padding-top: 0.5em;
padding-right: 1em;
font-weight: bold;
text-align:right;
vertical-align: text-bottom;
bottom: 0px;
}
.form dd
{
display: table-cell;
clear: right;
float: left;
min-width: 20em;
margin: 0;
padding: 0;
white-space: nowrap;
top: 0px;
}
.form input { position: relative; width: 20em; }
.contacts_property_data ul, ol.contacts_property_data { list-style:none; }
.contacts_property_data li { overflow: hidden; }
.contacts_property_data li label { width:20%; float:left; text-align:right;padding-right:0.3em; }

View File

@ -1,6 +1,6 @@
<?php
/**
* Copyright (c) 2011 Georg Ehrke <ownclouddev at georgswebsite dot de>
* Copyright (c) 2011-2012 Thomas Tanghus <thomas@tanghus.net>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
@ -20,9 +20,9 @@ if(isset($book)){
$cardobjects = OC_Contacts_VCard::all($book);
header('Content-Type: text/directory');
header('Content-Disposition: inline; filename=' . str_replace(' ', '_', $addressbook['displayname']) . '.vcf');
for($i = 0;$i <= count($cardobjects); $i++){
echo $cardobjects[$i]['carddata'];
//echo '\r\n';
foreach($cardobjects as $card) {
echo $card['carddata'];
}
}elseif(isset($contact)){
$data = OC_Contacts_App::getContactObject($contact);
@ -33,7 +33,7 @@ if(isset($book)){
exit;
}
header('Content-Type: text/directory');
header('Content-Disposition: inline; filename=' . $data['fullname'] . '.vcf');
header('Content-Disposition: inline; filename=' . str_replace(' ', '_', $data['fullname']) . '.vcf');
echo $data['carddata'];
}
?>

View File

@ -44,26 +44,24 @@ OC_App::setActiveNavigationEntry( 'contacts_index' );
$id = isset( $_GET['id'] ) ? $_GET['id'] : null;
$details = array();
// FIXME: This cannot work..?
if(is_null($id) && count($contacts) > 0) {
$id = $contacts[0]['id'];
}
$vcard = null;
$details = null;
if(!is_null($id)) {
$vcard = OC_Contacts_App::getContactVCard($id);
$details = OC_Contacts_VCard::structureContact($vcard);
if(!is_null($vcard)) {
$details = OC_Contacts_VCard::structureContact($vcard);
}
}
// if( !is_null($id)/* || count($contacts)*/){
// if(is_null($id)) $id = $contacts[0]['id'];
// $vcard = OC_Contacts_App::getContactVCard($id);
// $details = OC_Contacts_VCard::structureContact($vcard);
// }
// Include Style and Script
OC_Util::addScript('contacts','interface');
OC_Util::addStyle('contacts','styles');
OC_Util::addStyle('contacts','formtastic');
OC_Util::addScript('contacts','jquery.inview');
OC_Util::addScript('', 'jquery.multiselect');
OC_Util::addStyle('', 'jquery.multiselect');
OC_Util::addStyle('contacts','styles');
//OC_Util::addStyle('contacts','formtastic');
$property_types = OC_Contacts_App::getAddPropertyOptions();
$adr_types = OC_Contacts_App::getTypesOfProperty('ADR');

View File

@ -18,9 +18,6 @@
* You should have received a copy of the GNU Affero General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*
* TODO:
* If you add a contact, its thumbnail doesnt show in the list. But when you add another one it shows up, but not for the second contact added.
* Place a new contact in correct alphabetic order
*/
@ -31,6 +28,30 @@ Contacts={
$('#carddav_url').show();
$('#carddav_url_close').show();
},
messageBox:function(title, msg) {
if($('#messagebox').dialog('isOpen') == true){
// NOTE: Do we ever get here?
$('#messagebox').dialog('moveToTop');
}else{
$('#dialog_holder').load(OC.filePath('contacts', 'ajax', 'messagebox.php'), function(){
$('#messagebox').dialog(
{
autoOpen: true,
title: title,
buttons: [{
text: "Ok",
click: function() { $(this).dialog("close"); }
}],
close: function(event, ui) {
$(this).dialog('destroy').remove();
},
open: function(event, ui) {
$('#messagebox_msg').html(msg);
}
});
});
}
},
Addressbooks:{
overview:function(){
if($('#chooseaddressbook_dialog').dialog('isOpen') == true){
@ -85,7 +106,8 @@ Contacts={
Contacts.UI.Contacts.update();
Contacts.UI.Addressbooks.overview();
} else {
alert('Error: ' + data.message);
Contacts.UI.messageBox(t('contacts', 'Error'), data.message);
//alert('Error: ' + data.message);
}
});
}
@ -114,37 +136,29 @@ Contacts={
}
},
Contacts:{
/**
* Reload the contacts list.
*/
update:function(){
$.getJSON('ajax/contacts.php',{},function(jsondata){
if(jsondata.status == 'success'){
$('#contacts').html(jsondata.data.page);
}
else{
alert(jsondata.data.message);
Contacts.UI.messageBox(t('contacts', 'Error'),jsondata.data.message);
//alert(jsondata.data.message);
}
});
/*
var contactlist = $('#contacts');
var contacts = contactlist.children('li').get();
//alert(contacts);
contacts.sort(function(a, b) {
var compA = $(a).text().toUpperCase();
var compB = $(b).text().toUpperCase();
return (compA < compB) ? -1 : (compA > compB) ? 1 : 0;
})
$.each(contacts, function(idx, itm) { contactlist.append(itm); });
*/
setTimeout(Contacts.UI.Contacts.lazyupdate(), 500);
setTimeout(Contacts.UI.Contacts.lazyupdate, 500);
},
/**
* Add thumbnails to the contact list as they become visible in the viewport.
*/
lazyupdate:function(){
//alert('lazyupdate');
$('#contacts li').live('inview', function(){
if (!$(this).find('a').attr('style')) {
//alert($(this).data('id') + ' has background: ' + $(this).attr('style'));
$(this).find('a').css('background','url(thumbnail.php?id='+$(this).data('id')+') no-repeat');
}/* else {
alert($(this).data('id') + ' has style ' + $(this).attr('style').match('url'));
}*/
}
});
}
}
@ -155,6 +169,10 @@ $(document).ready(function(){
/*-------------------------------------------------------------------------
* Event handlers
*-----------------------------------------------------------------------*/
/**
* Load the details view for a contact.
*/
$('#leftcontent li').live('click',function(){
var id = $(this).data('id');
var oldid = $('#rightcontent').data('id');
@ -168,13 +186,18 @@ $(document).ready(function(){
$('#leftcontent li[data-id="'+jsondata.data.id+'"]').addClass('active');
}
else{
alert(jsondata.data.message);
Contacts.UI.messageBox(t('contacts', 'Error'), jsondata.data.message);
//alert(jsondata.data.message);
}
});
return false;
});
/**
* Delete currently selected contact (and clear form?)
*/
$('#contacts_deletecard').live('click',function(){
$('#contacts_deletecard').tipsy('hide');
var id = $('#rightcontent').data('id');
$.getJSON('ajax/deletecard.php',{'id':id},function(jsondata){
if(jsondata.status == 'success'){
@ -183,12 +206,17 @@ $(document).ready(function(){
$('#rightcontent').empty();
}
else{
alert(jsondata.data.message);
Contacts.UI.messageBox(t('contacts', 'Error'), jsondata.data.message);
//alert(jsondata.data.message);
}
});
return false;
});
/**
* Add a property to the contact.
* NOTE: Where does 'contacts_addproperty' exist?
*/
$('#contacts_addproperty').live('click',function(){
var id = $('#rightcontent').data('id');
$.getJSON('ajax/showaddproperty.php',{'id':id},function(jsondata){
@ -197,12 +225,16 @@ $(document).ready(function(){
$('#contacts_addproperty').hide();
}
else{
alert(jsondata.data.message);
Contacts.UI.messageBox(t('contacts', 'Error'), jsondata.data.message);
alert('From handler: '+jsondata.data.message);
}
});
return false;
});
/**
* Change the inputs based on which type of property is selected for addition.
*/
$('#contacts_addpropertyform [name="name"]').live('change',function(){
$('#contacts_addpropertyform #contacts_addresspart').remove();
$('#contacts_addpropertyform #contacts_phonepart').remove();
@ -226,17 +258,23 @@ $(document).ready(function(){
$('#contacts_addpropertyform').before(jsondata.data.page);
}
else{
alert(jsondata.data.message);
Contacts.UI.messageBox(t('contacts', 'Error'), jsondata.data.message);
}
}, 'json');
return false;
});
/**
* Show the Addressbook chooser
*/
$('#chooseaddressbook').click(function(){
Contacts.UI.Addressbooks.overview();
return false;
});
/**
* Open blank form to add new contact.
*/
$('#contacts_newcontact').click(function(){
$.getJSON('ajax/showaddcard.php',{},function(jsondata){
if(jsondata.status == 'success'){
@ -245,27 +283,46 @@ $(document).ready(function(){
.find('select').chosen();
}
else{
alert(jsondata.data.message);
Contacts.UI.messageBox(t('contacts', 'Error'), jsondata.data.message);
//alert(jsondata.data.message);
}
});
return false;
});
/**
* Add and insert a new contact into the list.
*/
$('#contacts_addcardform input[type="submit"]').live('click',function(){
$.post('ajax/addcard.php',$('#contacts_addcardform').serialize(),function(jsondata){
if(jsondata.status == 'success'){
$('#rightcontent').data('id',jsondata.data.id);
$('#rightcontent').html(jsondata.data.page);
$('#leftcontent .active').removeClass('active');
$('#leftcontent ul').append('<li data-id="'+jsondata.data.id+'" class="active"><a href="index.php?id='+jsondata.data.id+'">'+jsondata.data.name+'</a></li>');
var item = '<li data-id="'+jsondata.data.id+'" class="active"><a href="index.php?id='+jsondata.data.id+'" style="background: url(thumbnail.php?id='+jsondata.data.id+') no-repeat scroll 0% 0% transparent;">'+jsondata.data.name+'</a></li>';
var added = false;
$('#leftcontent ul li').each(function(){
if ($(this).text().toLowerCase() > jsondata.data.name.toLowerCase()) {
$(this).before(item).fadeIn('fast');
added = true;
return false;
}
});
if(!added) {
$('#leftcontent ul').append(item);
}
}
else{
alert(jsondata.data.message);
Contacts.UI.messageBox(t('contacts', 'Error'), jsondata.data.message);
//alert(jsondata.data.message);
}
}, 'json');
return false;
});
/**
* Show inputs for editing a property.
*/
$('.contacts_property [data-use="edit"]').live('click',function(){
var id = $('#rightcontent').data('id');
var checksum = $(this).parents('.contacts_property').first().data('checksum');
@ -275,19 +332,24 @@ $(document).ready(function(){
.find('select').chosen();
}
else{
alert(jsondata.data.message);
Contacts.UI.messageBox(t('contacts', 'Error'), jsondata.data.message);
//alert(jsondata.data.message);
}
});
return false;
});
/**
* Save the edited property
*/
$('#contacts_setpropertyform input[type="submit"]').live('click',function(){
$.post('ajax/setproperty.php',$(this).parents('form').first().serialize(),function(jsondata){
if(jsondata.status == 'success'){
$('.contacts_property[data-checksum="'+jsondata.data.oldchecksum+'"]').replaceWith(jsondata.data.page);
}
else{
alert(jsondata.data.message);
Contacts.UI.messageBox(t('contacts', 'Error'), jsondata.data.message);
//alert(jsondata.data.message);
}
},'json');
return false;
@ -301,7 +363,8 @@ $(document).ready(function(){
$('.contacts_property[data-checksum="'+checksum+'"]').remove();
}
else{
alert(jsondata.data.message);
Contacts.UI.messageBox(t('contacts', 'Error'), jsondata.data.message);
//alert(jsondata.data.message);
}
});
return false;
@ -338,4 +401,7 @@ $(document).ready(function(){
// element has gone out of viewport
}
});
$('.button').tipsy();
//Contacts.UI.messageBox('Hello','Sailor');
});

36
l10n/ar.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "هذا ليس دفتر عناوينك.",
"Contact could not be found." => "لم يتم العثور على الشخص.",
"vCard could not be read." => "لم يتم قراءة ال vCard بنجاح.",
"Information about vCard is incorrect. Please reload the page." => "المعلومات الموجودة في ال vCard غير صحيحة. الرجاء إعادة تحديث الصفحة.",
"Address" => "عنوان",
"Telephone" => "الهاتف",
"Email" => "البريد الالكتروني",
"Organization" => "المؤسسة",
"Work" => "الوظيفة",
"Home" => "البيت",
"Mobile" => "الهاتف المحمول",
"Text" => "معلومات إضافية",
"Voice" => "صوت",
"Fax" => "الفاكس",
"Video" => "الفيديو",
"Pager" => "الرنان",
"This is not your contact." => ".هذا ليس من معارفي",
"This card is not RFC compatible." => "هذا الكرت ليس متلائم مع نظام ال RFC.",
"This card does not contain a photo." => "لا يحتوي هذا الكرت على صورة.",
"Add Contact" => "أضف شخص ",
"Group" => "مجموعة",
"Name" => "الاسم",
"PO Box" => "العنوان البريدي",
"Extended" => "إضافة",
"Street" => "شارع",
"City" => "المدينة",
"Region" => "المنطقة",
"Zipcode" => "رقم المنطقة",
"Country" => "البلد",
"Create Contact" => "أضف شخص ",
"Edit" => "تعديل",
"Delete" => "حذف",
"Birthday" => "تاريخ الميلاد",
"Phone" => "الهاتف"
);

36
l10n/ca.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Aquesta no és la vostra llibreta d'adreces",
"Contact could not be found." => "No s'ha trobat el contacte.",
"vCard could not be read." => "No s'ha pogut llegir la vCard",
"Information about vCard is incorrect. Please reload the page." => "La informació de la vCard és incorrecta. Carregueu la pàgina de nou.",
"Address" => "Adreça",
"Telephone" => "Telèfon",
"Email" => "Correu electrònic",
"Organization" => "Organització",
"Work" => "Feina",
"Home" => "Casa",
"Mobile" => "Mòbil",
"Text" => "Text",
"Voice" => "Veu",
"Fax" => "Fax",
"Video" => "Vídeo",
"Pager" => "Paginador",
"This is not your contact." => "Aquest contacte no és vostre.",
"This card is not RFC compatible." => "Aquesta targeta no és compatible amb RFC.",
"This card does not contain a photo." => "Aquesta targeta no conté foto.",
"Add Contact" => "Afegeix un contacte",
"Group" => "Grup",
"Name" => "Nom",
"PO Box" => "Adreça Postal",
"Extended" => "Addicional",
"Street" => "Carrer",
"City" => "Ciutat",
"Region" => "Comarca",
"Zipcode" => "Codi postal",
"Country" => "País",
"Create Contact" => "Crea un contacte",
"Edit" => "Edita",
"Delete" => "Elimina",
"Birthday" => "Aniversari",
"Phone" => "Telèfon"
);

36
l10n/cs_CZ.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Toto není Váš adresář.",
"Contact could not be found." => "Kontakt nebyl nalezen.",
"vCard could not be read." => "vCard nelze přečíst.",
"Information about vCard is incorrect. Please reload the page." => "Informace o vCard je nesprávná. Obnovte stránku, prosím.",
"Address" => "Adresa",
"Telephone" => "Telefon",
"Email" => "Email",
"Organization" => "Organizace",
"Work" => "Pracovní",
"Home" => "Domácí",
"Mobile" => "Mobil",
"Text" => "Text",
"Voice" => "Hlas",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Pager",
"This is not your contact." => "Toto není Váš kontakt.",
"This card is not RFC compatible." => "Tato karta není kompatibilní s RFC.",
"This card does not contain a photo." => "Tato karta neobsahuje foto",
"Add Contact" => "Přidat kontakt",
"Group" => "Skupina",
"Name" => "Jméno",
"PO Box" => "PO box",
"Extended" => "Rozšířené",
"Street" => "Ulice",
"City" => "Město",
"Region" => "Kraj",
"Zipcode" => "PSČ",
"Country" => "Země",
"Create Contact" => "Vytvořit kontakt",
"Edit" => "Editovat",
"Delete" => "Odstranit",
"Birthday" => "Narozeniny",
"Phone" => "Telefon"
);

View File

@ -1,22 +1,26 @@
<?php $TRANSLATIONS = array(
"You need to log in." => "Du skal logge ind.",
"This is not your addressbook." => "Dette er ikke din adressebog.",
"Contact could not be found." => "Kontakt kunne ikke findes.",
"This is not your contact." => "Dette er ikke din kontakt.",
"Contact could not be found." => "Kontaktperson kunne ikke findes.",
"vCard could not be read." => "Kunne ikke læse vCard.",
"Information about vCard is incorrect. Please reload the page." => "Informationen om vCard er forkert. Genindlæs siden.",
"This card is not RFC compatible." => "Dette kort er ikke RFC-kompatibelt.",
"This card does not contain a photo." => "Dette kort indeholder ikke et foto.",
"Add Contact" => "Tilføj kontakt",
"Group" => "Gruppe",
"Name" => "Navn",
"Create Contact" => "Ny Kontakt",
"Address" => "Adresse",
"Telephone" => "Telefon",
"Email" => "Email",
"Organization" => "Organisation",
"Work" => "Arbejde",
"Home" => "Hjem",
"Home" => "Hjemme",
"Mobile" => "Mobil",
"Text" => "SMS",
"Voice" => "Telefonsvarer",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Personsøger",
"This is not your contact." => "Dette er ikke din kontaktperson.",
"This card is not RFC compatible." => "Dette kort er ikke RFC-kompatibelt.",
"This card does not contain a photo." => "Dette kort indeholder ikke et foto.",
"Add Contact" => "Tilføj kontaktperson",
"Group" => "Gruppe",
"Name" => "Navn",
"PO Box" => "Postboks",
"Extended" => "Udvidet",
"Street" => "Vej",
@ -24,15 +28,9 @@
"Region" => "Region",
"Zipcode" => "Postnummer",
"Country" => "Land",
"Mobile" => "Mobil",
"Text" => "SMS",
"Voice" => "Telefonsvarer",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Personsøger",
"Create Contact" => "Ny kontaktperson",
"Edit" => "Rediger",
"Delete" => "Slet",
"Add Property" => "Tilføj Egenskab",
"Birthday" => "Fødselsdag",
"Phone" => "Telefon",
"Edit" => "Redigér"
"Phone" => "Telefon"
);

View File

@ -1,9 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Dies ist nicht dein Adressbuch.",
"Contact could not be found." => "Kontakt konnte nicht gefunden werden.",
"vCard could not be read." => "vCard konnte nicht gelesen werden.",
"Information about vCard is incorrect. Please reload the page." => "Die Information der vCard ist fehlerhaft. Bitte aktualisiere die Seite.",
"Address" => "Adresse",
"Telephone" => "Telefon",
"Email" => "Email",
"Organization" => "Organisation",
"Work" => "Arbeit",
"Home" => "Zuhause",
"Mobile" => "Mobil",
"Text" => "Text",
"Voice" => "Anruf",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Pager",
"This is not your contact." => "Dies ist nicht dein Kontakt.",
"This card is not RFC compatible." => "Diese Karte ist nicht RFC-kompatibel.",
"This card does not contain a photo." => "Diese Karte enthält kein Foto.",
"Add Contact" => "Kontakt hinzufügen",
"Group" => "Gruppe",
"Name" => "Name",
"PO Box" => "Postfach",
"Extended" => "Erweitert",
"Street" => "Straße",
"City" => "Stadt",
"Region" => "Region",
"Zipcode" => "Postleitzahl",
"Country" => "Land",
"Create Contact" => "Kontakt erstellen",
"Edit" => "Bearbeiten",
"Delete" => "Löschen",
"Birthday" => "Geburtstag",
"Edit" => "Bearbeiten"
"Phone" => "Telefon"
);

36
l10n/el.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Αυτό δεν είναι βιβλίο διευθύνσεων σας.",
"Contact could not be found." => "Η επαφή δεν μπρόρεσε να βρεθεί.",
"vCard could not be read." => "Η vCard δεν μπορεί να διαβαστεί.",
"Information about vCard is incorrect. Please reload the page." => "Οι πληροφορίες σχετικά με vCard είναι εσφαλμένες. Παρακαλώ επαναφορτώστε τη σελίδα.",
"Address" => "Διεύθυνση",
"Telephone" => "Τηλέφωνο",
"Email" => "Email",
"Organization" => "Οργανισμός",
"Work" => "Εργασία",
"Home" => "Σπίτι",
"Mobile" => "Κινητό",
"Text" => "Κείμενο",
"Voice" => "Φωνή",
"Fax" => "Φαξ",
"Video" => "Βίντεο",
"Pager" => "Βομβητής",
"This is not your contact." => "Αυτή δεν είναι επαφή σας.",
"This card is not RFC compatible." => "Αυτή η κάρτα δεν είναι RFC συμβατή.",
"This card does not contain a photo." => "Αυτή η κάρτα δεν περιέχει φωτογραφία.",
"Add Contact" => "Προσθήκη επαφής",
"Group" => "Ομάδα",
"Name" => "Όνομα",
"PO Box" => "Ταχ. Θυρίδα",
"Extended" => "Εκτεταμένη",
"Street" => "Οδός",
"City" => "Πόλη",
"Region" => "Περιοχή",
"Zipcode" => "Τ.Κ.",
"Country" => "Χώρα",
"Create Contact" => "Δημιουργία επαφής",
"Edit" => "Επεξεργασία",
"Delete" => "Διαγραφή",
"Birthday" => "Γενέθλια",
"Phone" => "Τηλέφωνο"
);

36
l10n/eo.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Ĉi tiu ne estas via adresaro.",
"Contact could not be found." => "Ne eblis trovi la kontakton.",
"vCard could not be read." => "Ne eblis legi vCard-on.",
"Information about vCard is incorrect. Please reload the page." => "Informo pri vCard estas malĝusta. Bonvolu reŝargi la paĝon.",
"Address" => "Adreso",
"Telephone" => "Telefono",
"Email" => "Retpoŝtadreso",
"Organization" => "Organizaĵo",
"Work" => "Laboro",
"Home" => "Hejmo",
"Mobile" => "Poŝtelefono",
"Text" => "Teksto",
"Voice" => "Voĉo",
"Fax" => "Fakso",
"Video" => "Videaĵo",
"Pager" => "Televokilo",
"This is not your contact." => "Tiu ĉi ne estas via kontakto.",
"This card is not RFC compatible." => "Ĉi tiu karto ne kongruas kun RFC.",
"This card does not contain a photo." => "Ĉi tiu karto ne havas foton.",
"Add Contact" => "Aldoni kontakton",
"Group" => "Grupo",
"Name" => "Nomo",
"PO Box" => "Abonkesto",
"Extended" => "Etendita",
"Street" => "Strato",
"City" => "Urbo",
"Region" => "Regiono",
"Zipcode" => "Poŝtokodo",
"Country" => "Lando",
"Create Contact" => "Krei kontakton",
"Edit" => "Redakti",
"Delete" => "Forigi",
"Birthday" => "Naskiĝotago",
"Phone" => "Telefono"
);

36
l10n/es.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Esta no es tu agenda de contactos.",
"Contact could not be found." => "No se pudo encontrar el contacto.",
"vCard could not be read." => "No se pudo leer el vCard.",
"Information about vCard is incorrect. Please reload the page." => "La información sobre el vCard es incorrecta. Por favor vuelve a cargar la página.",
"Address" => "Dirección",
"Telephone" => "Teléfono",
"Email" => "Correo electrónico",
"Organization" => "Organización",
"Work" => "Trabajo",
"Home" => "Particular",
"Mobile" => "Móvil",
"Text" => "Texto",
"Voice" => "Voz",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Localizador",
"This is not your contact." => "Este no es tu contacto.",
"This card is not RFC compatible." => "Esta tarjeta no es compatible con RFC.",
"This card does not contain a photo." => "Esta tarjeta no contiene ninguna foto.",
"Add Contact" => "Agregar contacto",
"Group" => "Grupo",
"Name" => "Nombre",
"PO Box" => "Código postal",
"Extended" => "Extendido",
"Street" => "Calle",
"City" => "Ciudad",
"Region" => "Región",
"Zipcode" => "Código Postal",
"Country" => "País",
"Create Contact" => "Crear contacto",
"Edit" => "Editar",
"Delete" => "Borrar",
"Birthday" => "Cumpleaños",
"Phone" => "Teléfono"
);

36
l10n/et_EE.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "See pole sinu aadressiraamat.",
"Contact could not be found." => "Kontakti ei leitud.",
"vCard could not be read." => "Visiitkaardi lugemine ebaõnnestus,",
"Information about vCard is incorrect. Please reload the page." => "Visiitkaardi info pole korrektne. Palun lae leht uuesti.",
"Address" => "Aadress",
"Telephone" => "Telefon",
"Email" => "E-post",
"Organization" => "Organisatsioon",
"Work" => "Töö",
"Home" => "Kodu",
"Mobile" => "Mobiil",
"Text" => "Tekst",
"Voice" => "Hääl",
"Fax" => "Faks",
"Video" => "Video",
"Pager" => "Piipar",
"This is not your contact." => "See pole sinu kontakt.",
"This card is not RFC compatible." => "See kaart ei ühildu RFC-ga.",
"This card does not contain a photo." => "Sellel kaardil pole fotot.",
"Add Contact" => "Lisa kontakt",
"Group" => "Grupp",
"Name" => "Nimi",
"PO Box" => "Postkontori postkast",
"Extended" => "Laiendatud",
"Street" => "Tänav",
"City" => "Linn",
"Region" => "Piirkond",
"Zipcode" => "Postiindeks",
"Country" => "Riik",
"Create Contact" => "Lisa kontakt",
"Edit" => "Muuda",
"Delete" => "Kustuta",
"Birthday" => "Sünnipäev",
"Phone" => "Telefon"
);

36
l10n/eu.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Hau ez da zure helbide liburua.",
"Contact could not be found." => "Ezin izan da kontaktua aurkitu.",
"vCard could not be read." => "Ezin izan da vCard-a irakurri.",
"Information about vCard is incorrect. Please reload the page." => "vCard-aren inguruko informazioa okerra da. Mesedez birkargatu orrialdea.",
"Address" => "Helbidea",
"Telephone" => "Telefonoa",
"Email" => "Eposta",
"Organization" => "Erakundea",
"Work" => "Lana",
"Home" => "Etxea",
"Mobile" => "Mugikorra",
"Text" => "Testua",
"Voice" => "Ahotsa",
"Fax" => "Fax-a",
"Video" => "Bideoa",
"Pager" => "Bilagailua",
"This is not your contact." => "Hau ez da zure kontaktua.",
"This card is not RFC compatible." => "Txartel hau ez da RFC bateragarria.",
"This card does not contain a photo." => "Txartel honek ez dauka argazkirik.",
"Add Contact" => "Gehitu Kontaktua",
"Group" => "Taldea",
"Name" => "Izena",
"PO Box" => "Posta kutxa",
"Extended" => "Hedatua",
"Street" => "Kalea",
"City" => "Hiria",
"Region" => "Eskualdea",
"Zipcode" => "Posta Kodea",
"Country" => "Herrialdea",
"Create Contact" => "Sortu Kontaktua",
"Edit" => "Editatu",
"Delete" => "Ezabatu",
"Birthday" => "Jaioteguna",
"Phone" => "Telefonoa"
);

36
l10n/fr.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Ce n'est pas votre carnet d'adresses.",
"Contact could not be found." => "Ce contact n'a pas été trouvé.",
"vCard could not be read." => "Cette vCard n'a pas pu être lue.",
"Information about vCard is incorrect. Please reload the page." => "Les informations relatives à cette vCard sont incorrectes. Veuillez recharger la page.",
"Address" => "Adresse",
"Telephone" => "Téléphone",
"Email" => "Email",
"Organization" => "Société",
"Work" => "Travail",
"Home" => "Maison",
"Mobile" => "Mobile",
"Text" => "Texte",
"Voice" => "Voix",
"Fax" => "Fax",
"Video" => "Vidéo",
"Pager" => "Bipeur",
"This is not your contact." => "Ce n'est pas votre contact.",
"This card is not RFC compatible." => "Cette fiche n'est pas compatible RFC.",
"This card does not contain a photo." => "Cette fiche ne contient pas de photo.",
"Add Contact" => "Ajouter un Contact",
"Group" => "Groupe",
"Name" => "Nom",
"PO Box" => "Boîte postale",
"Extended" => "Étendu",
"Street" => "Rue",
"City" => "Ville",
"Region" => "Région",
"Zipcode" => "Code postal",
"Country" => "Pays",
"Create Contact" => "Créer le Contact",
"Edit" => "Modifier",
"Delete" => "Effacer",
"Birthday" => "Anniversaire",
"Phone" => "Téléphone"
);

36
l10n/he.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "זהו אינו ספר הכתובות שלך",
"Contact could not be found." => "לא ניתן לאתר איש קשר",
"vCard could not be read." => "לא ניתן לקרוא vCard.",
"Information about vCard is incorrect. Please reload the page." => "המידע אודות vCard אינו נכון. נא לטעון מחדש את הדף.",
"Address" => "כתובת",
"Telephone" => "טלפון",
"Email" => "דואר אלקטרוני",
"Organization" => "ארגון",
"Work" => "עבודה",
"Home" => "בית",
"Mobile" => "נייד",
"Text" => "טקסט",
"Voice" => "קולי",
"Fax" => "פקס",
"Video" => "וידאו",
"Pager" => "זימונית",
"This is not your contact." => "זהו אינו איש קשר שלך",
"This card is not RFC compatible." => "כרטיס זה אינו תואם ל־RFC",
"This card does not contain a photo." => "כרטיס זה אינו כולל תמונה",
"Add Contact" => "הוספת איש קשר",
"Group" => "קבוצה",
"Name" => "שם",
"PO Box" => "תא דואר",
"Extended" => "מורחב",
"Street" => "רחוב",
"City" => "עיר",
"Region" => "אזור",
"Zipcode" => "מיקוד",
"Country" => "מדינה",
"Create Contact" => "יצירת איש קשר",
"Edit" => "עריכה",
"Delete" => "מחיקה",
"Birthday" => "יום הולדת",
"Phone" => "טלפון"
);

36
l10n/hr.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Ovo nije vaš adresar.",
"Contact could not be found." => "Kontakt ne postoji.",
"vCard could not be read." => "Nemoguće pročitati vCard.",
"Information about vCard is incorrect. Please reload the page." => "Informacija o vCard je neispravna. Osvježite stranicu.",
"Address" => "Adresa",
"Telephone" => "Telefon",
"Email" => "E-mail",
"Organization" => "Organizacija",
"Work" => "Posao",
"Home" => "Kuća",
"Mobile" => "Mobitel",
"Text" => "Tekst",
"Voice" => "Glasovno",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Pager",
"This is not your contact." => "Ovo nije vaš kontakt.",
"This card is not RFC compatible." => "Ova kartica nije sukladna prema RFC direktivama.",
"This card does not contain a photo." => "Ova kartica ne sadrži fotografiju.",
"Add Contact" => "Dodaj kontakt",
"Group" => "Grupa",
"Name" => "Naziv",
"PO Box" => "Poštanski Pretinac",
"Extended" => "Prošireno",
"Street" => "Ulica",
"City" => "Grad",
"Region" => "Regija",
"Zipcode" => "Poštanski broj",
"Country" => "Država",
"Create Contact" => "Izradi Kontakt",
"Edit" => "Uredi",
"Delete" => "Obriši",
"Birthday" => "Rođendan",
"Phone" => "Telefon"
);

36
l10n/hu_HU.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Ez nem a te címjegyzéked.",
"Contact could not be found." => "Kapcsolat nem található.",
"vCard could not be read." => "A vCard-ot nem lehet olvasni.",
"Information about vCard is incorrect. Please reload the page." => "A vCardról szóló információ helytelen. Töltsd újra az oldalt.",
"Address" => "Cím",
"Telephone" => "Telefonszám",
"Email" => "E-mail",
"Organization" => "Organizáció",
"Work" => "Munka",
"Home" => "Otthon",
"Mobile" => "Mobiltelefonszám",
"Text" => "Szöveg",
"Voice" => "Hang",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Lapozó",
"This is not your contact." => "Nem a te kapcsolatod.",
"This card is not RFC compatible." => "A kártya nem RFC kompatibilis.",
"This card does not contain a photo." => "A kártya nem tartlmaz fényképet.",
"Add Contact" => "Kontakt hozzáadása",
"Group" => "Csoport",
"Name" => "Név",
"PO Box" => "Postafiók",
"Extended" => "Kiterjesztett",
"Street" => "Utca",
"City" => "Helység",
"Region" => "Megye",
"Zipcode" => "Irányítószám",
"Country" => "Ország",
"Create Contact" => "Kontakt létrehozása",
"Edit" => "Szerkesztés",
"Delete" => "Törlés",
"Birthday" => "Születésnap",
"Phone" => "Telefonszám"
);

32
l10n/ia.php Normal file
View File

@ -0,0 +1,32 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Iste non es tu libro de adresses",
"Contact could not be found." => "Contacto non poterea esser legite",
"vCard could not be read." => "vCard non poterea esser legite.",
"Address" => "Adresse",
"Telephone" => "Telephono",
"Email" => "E-posta",
"Organization" => "Organisation",
"Work" => "Travalio",
"Home" => "Domo",
"Text" => "Texto",
"Voice" => "Voce",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Pager",
"This is not your contact." => "Iste non es tu contacto",
"This card is not RFC compatible." => "Iste carta non es compatibile con RFC",
"Add Contact" => "Adder contacto",
"Group" => "Gruppo",
"Name" => "Nomine",
"PO Box" => "Cassa postal",
"Street" => "Strata",
"City" => "Citate",
"Region" => "Region",
"Zipcode" => "Codice postal",
"Country" => "Pais",
"Create Contact" => "Crear contacto",
"Edit" => "Modificar",
"Delete" => "Deler",
"Birthday" => "Anniversario",
"Phone" => "Phono"
);

View File

@ -1,38 +1,36 @@
<?php $TRANSLATIONS = array(
"You need to log in." => "Bisogna effettuare il login.",
"This is not your addressbook." => "Questa non è la tua rubrica.",
"Contact could not be found." => "Il contatto non può essere trovato",
"This is not your contact." => "Questo non è un tuo contatto.",
"vCard could not be read." => "La vCard non può essere letta",
"Information about vCard is incorrect. Please reload the page." => "Informazioni sulla vCard incorrette. Ricaricare la pagina.",
"This card is not RFC compatible." => "Questa card non è compatibile con il protocollo RFC.",
"This card does not contain a photo." => "Questa card non contiene una foto.",
"Add Contact" => "Aggiungi contatto",
"Group" => "Gruppo",
"Name" => "Nome",
"Create Contact" => "Crea contatto",
"Address" => "Indirizzo",
"Telephone" => "Telefono",
"Email" => "Email",
"Organization" => "Organizzazione",
"Work" => "Lavoro",
"Home" => "Casa",
"PO Box" => "PO Box",
"Mobile" => "Cellulare",
"Text" => "Testo",
"Voice" => "Voce",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Cercapersone",
"This is not your contact." => "Questo non è un tuo contatto.",
"This card is not RFC compatible." => "Questa card non è compatibile con il protocollo RFC.",
"This card does not contain a photo." => "Questa card non contiene una foto.",
"Add Contact" => "Aggiungi contatto",
"Group" => "Gruppo",
"Name" => "Nome",
"PO Box" => "Casella postale",
"Extended" => "Estendi",
"Street" => "Via",
"City" => "Città",
"Region" => "Regione",
"Zipcode" => "CAP",
"Country" => "Stato",
"Mobile" => "Cellulare",
"Text" => "Testo",
"Voice" => "Voce",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Pager",
"Create Contact" => "Crea contatto",
"Edit" => "Modifica",
"Delete" => "Cancella",
"Add Property" => "Aggiungi proprietà",
"Birthday" => "Compleanno",
"Phone" => "Telefono",
"Edit" => "Modifica"
"Phone" => "Telefono"
);

36
l10n/ja_JP.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "これはあなたの電話帳ではありません。",
"Contact could not be found." => "連絡先を見つける事ができません。",
"vCard could not be read." => "vCardの読み込みに失敗しました。",
"Information about vCard is incorrect. Please reload the page." => "vCardの情報に誤りがあります。ページをリロードして下さい。",
"Address" => "住所",
"Telephone" => "電話番号",
"Email" => "メールアドレス",
"Organization" => "所属",
"Work" => "勤務先",
"Home" => "住居",
"Mobile" => "携帯電話",
"Text" => "TTY TDD",
"Voice" => "音声番号",
"Fax" => "FAX",
"Video" => "テレビ電話",
"Pager" => "ポケベル",
"This is not your contact." => "あなたの連絡先ではありません。",
"This card is not RFC compatible." => "このカードはRFCに準拠していません。",
"This card does not contain a photo." => "このカードは写真を含んでおりません。",
"Add Contact" => "連絡先の追加",
"Group" => "グループ",
"Name" => "氏名",
"PO Box" => "私書箱",
"Extended" => "拡張番地",
"Street" => "街路番地",
"City" => "都市",
"Region" => "地域",
"Zipcode" => "郵便番号",
"Country" => "国名",
"Create Contact" => "追加",
"Edit" => "編集",
"Delete" => "削除",
"Birthday" => "生年月日",
"Phone" => "電話番号"
);

36
l10n/lb.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Dat do ass net däin Adressbuch.",
"Contact could not be found." => "Konnt den Kontakt net fannen.",
"vCard could not be read." => "vCard konnt net gelies ginn.",
"Information about vCard is incorrect. Please reload the page." => "Informatioun iwwert vCard ass net richteg. Lued d'Säit wegl nei.",
"Address" => "Adress",
"Telephone" => "Telefon's Nummer",
"Email" => "Email",
"Organization" => "Firma",
"Work" => "Aarbecht",
"Home" => "Doheem",
"Mobile" => "GSM",
"Text" => "SMS",
"Voice" => "Voice",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Pager",
"This is not your contact." => "Dat do ass net däin Kontakt.",
"This card is not RFC compatible." => "Déi do Kaart ass net RFC kompatibel.",
"This card does not contain a photo." => "Déi do Kaart huet keng Foto.",
"Add Contact" => "Kontakt bäisetzen",
"Group" => "Grupp",
"Name" => "Numm",
"PO Box" => "Postleetzuel",
"Extended" => "Erweidert",
"Street" => "Strooss",
"City" => "Staat",
"Region" => "Regioun",
"Zipcode" => "Postleetzuel",
"Country" => "Land",
"Create Contact" => "Kontakt erstellen",
"Edit" => "Editéieren",
"Delete" => "Läschen",
"Birthday" => "Gebuertsdag",
"Phone" => "Telefon"
);

33
l10n/lt_LT.php Normal file
View File

@ -0,0 +1,33 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Tai ne jūsų adresų knygelė.",
"Contact could not be found." => "Kontaktas nerastas",
"vCard could not be read." => "Nenuskaitoma vCard.",
"Information about vCard is incorrect. Please reload the page." => "Informacija apie vCard yra neteisinga. ",
"Address" => "Adresas",
"Telephone" => "Telefonas",
"Email" => "El. paštas",
"Organization" => "Organizacija",
"Work" => "Darbo",
"Home" => "Namų",
"Mobile" => "Mobilusis",
"Text" => "Tekstas",
"Voice" => "Balso",
"Fax" => "Faksas",
"Video" => "Vaizdo",
"Pager" => "Pranešimų gaviklis",
"This is not your contact." => "Tai ne jūsų kontaktas",
"Add Contact" => "Pridėti kontaktą",
"Group" => "Grupė",
"Name" => "Vardas",
"PO Box" => "Pašto dėžutė",
"Street" => "Gatvė",
"City" => "Miestas",
"Region" => "Regionas",
"Zipcode" => "Pašto indeksas",
"Country" => "Šalis",
"Create Contact" => "Sukurti kontaktą",
"Edit" => "Keisti",
"Delete" => "Trinti",
"Birthday" => "Gimtadienis",
"Phone" => "Telefonas"
);

53
l10n/nl.php Normal file
View File

@ -0,0 +1,53 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Dit is niet uw adresboek.",
"Contact could not be found." => "Contact kon niet worden gevonden.",
"vCard could not be read." => "vCard kon niet worden gelezen.",
"Information about vCard is incorrect. Please reload the page." => "Informatie over de vCard is onjuist. Herlaad de pagina.",
"Address" => "Adres",
"Telephone" => "Telefoon",
"Email" => "E-mail",
"Organization" => "Organisatie",
"Work" => "Werk",
"Home" => "Thuis",
"Mobile" => "Mobiel",
"Text" => "Tekst",
"Voice" => "Stem",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Pieper",
"This is not your contact." => "Dit is niet uw contactpersoon.",
"This card is not RFC compatible." => "Deze kaart is niet RFC compatibel.",
"This card does not contain a photo." => "Deze contact bevat geen foto.",
"Add Contact" => "Contact toevoegen",
"Address Books" => "Adresboeken",
"Group" => "Groep",
"Name" => "Naam",
"Number" => "Nummer",
"Type" => "Type",
"PO Box" => "Postbus",
"Extended" => "Uitgebreide",
"Street" => "Straat",
"City" => "Stad",
"Region" => "Regio",
"Zipcode" => "Postcode",
"Country" => "Land",
"Create Contact" => "Contact aanmaken",
"Choose active Address Books" => "Kies actief Adresboek",
"New Address Book" => "Nieuw Adresboek",
"CardDav Link" => "CardDav Link",
"Download" => "Download",
"Edit" => "Bewerken",
"Delete" => "Verwijderen",
"Delete contact" => "Verwijder contact",
"Add" => "Voeg toe",
"Edit Address Book" => "Bewerk Adresboek",
"Displayname" => "Weergavenaam",
"Active" => "Actief",
"Save" => "Opslaan",
"Submit" => "Opslaan",
"Cancel" => "Anuleren",
"Birthday" => "Verjaardag",
"Preferred" => "Voorkeur",
"Phone" => "Telefoon",
"Update" => "Vernieuwe"
);

36
l10n/nn_NO.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Dette er ikkje di adressebok.",
"Contact could not be found." => "Fann ikkje kontakten.",
"vCard could not be read." => "Klarte ikkje å lesa vCard-et.",
"Information about vCard is incorrect. Please reload the page." => "Informasjonen om vCard-et er feil, ver venleg og last sida på nytt.",
"Address" => "Adresse",
"Telephone" => "Telefonnummer",
"Email" => "Epost",
"Organization" => "Organisasjon",
"Work" => "Arbeid",
"Home" => "Heime",
"Mobile" => "Mobil",
"Text" => "Tekst",
"Voice" => "Tale",
"Fax" => "Faks",
"Video" => "Video",
"Pager" => "Personsøkjar",
"This is not your contact." => "Dette er ikkje din kontakt.",
"This card is not RFC compatible." => "Dette kortet er ikkje RFC-kompatibelt",
"This card does not contain a photo." => "Dette kortet har ingen bilete.",
"Add Contact" => "Legg til kontakt",
"Group" => "Gruppe",
"Name" => "Namn",
"PO Box" => "Postboks",
"Extended" => "Utvida",
"Street" => "Gate",
"City" => "Stad",
"Region" => "Region/fylke",
"Zipcode" => "Postnummer",
"Country" => "Land",
"Create Contact" => "Opprett kontakt",
"Edit" => "Endra",
"Delete" => "Slett",
"Birthday" => "Bursdag",
"Phone" => "Telefonnummer"
);

36
l10n/pl.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "To nie jest twoja książka adresowa.",
"Contact could not be found." => "Kontakt nie znaleziony.",
"vCard could not be read." => "Nie można odczytać vCard.",
"Information about vCard is incorrect. Please reload the page." => "Informacje o vCard są nieprawidłowe. Proszę odświeżyć stronę.",
"Address" => "Adres",
"Telephone" => "Telefon",
"Email" => "E-mail",
"Organization" => "Organizacja",
"Work" => "Praca",
"Home" => "Dom",
"Mobile" => "Komórka",
"Text" => "Tekst",
"Voice" => "Połączenie głosowe",
"Fax" => "Faks",
"Video" => "Połączenie wideo",
"Pager" => "Pager",
"This is not your contact." => "To nie jest twój kontakt.",
"This card is not RFC compatible." => "Ta karta nie jest zgodna ze specyfikacją RFC.",
"This card does not contain a photo." => "Ta karta nie zawiera zdjęć.",
"Add Contact" => "Dodaj kontakt",
"Group" => "Grupa",
"Name" => "Nazwisko",
"PO Box" => "PO Box",
"Extended" => "Rozszerzony",
"Street" => "Ulica",
"City" => "Miasto",
"Region" => "Region",
"Zipcode" => "Kod pocztowy",
"Country" => "Kraj",
"Create Contact" => "Utwórz kontakt",
"Edit" => "Edytuj",
"Delete" => "Usuń",
"Birthday" => "Urodziny",
"Phone" => "Telefon"
);

36
l10n/pt_BR.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Este não é o seu agenda de endereços.",
"Contact could not be found." => "Contato não pôde ser encontrado.",
"vCard could not be read." => "vCard não pôde ser lida.",
"Information about vCard is incorrect. Please reload the page." => "Informações sobre vCard é incorreta. Por favor, recarregue a página.",
"Address" => "Endereço",
"Telephone" => "Telefone",
"Email" => "E-mail",
"Organization" => "Organização",
"Work" => "Trabalho",
"Home" => "Home",
"Mobile" => "Móvel",
"Text" => "Texto",
"Voice" => "Voz",
"Fax" => "Fax",
"Video" => "Vídeo",
"Pager" => "Pager",
"This is not your contact." => "Este não é o seu contato.",
"This card is not RFC compatible." => "Este cartão não é compatível com RFC.",
"This card does not contain a photo." => "Este cartão não contém uma foto.",
"Add Contact" => "Adicionar Contato",
"Group" => "Grupo",
"Name" => "Nome",
"PO Box" => "Caixa Postal",
"Extended" => "Estendido",
"Street" => "Rua",
"City" => "Cidade",
"Region" => "Região",
"Zipcode" => "CEP",
"Country" => "País",
"Create Contact" => "Criar Contato",
"Edit" => "Editar",
"Delete" => "Excluir",
"Birthday" => "Aniversário",
"Phone" => "Telefone"
);

36
l10n/pt_PT.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Esta não é a sua lista de contactos",
"Contact could not be found." => "O contacto não foi encontrado",
"vCard could not be read." => "o vCard não pode ser lido",
"Information about vCard is incorrect. Please reload the page." => "A informação sobre o vCard está incorreta. Por favor refresque a página",
"Address" => "Morada",
"Telephone" => "Telefone",
"Email" => "Email",
"Organization" => "Organização",
"Work" => "Trabalho",
"Home" => "Casa",
"Mobile" => "Telemovel",
"Text" => "Texto",
"Voice" => "Voz",
"Fax" => "Fax",
"Video" => "Vídeo",
"Pager" => "Pager",
"This is not your contact." => "Este não é o seu contacto",
"This card is not RFC compatible." => "Este cartão não é compativel com RFC",
"This card does not contain a photo." => "Este cartão não possui foto",
"Add Contact" => "Adicionar Contacto",
"Group" => "Grupo",
"Name" => "Nome",
"PO Box" => "Apartado",
"Extended" => "Extendido",
"Street" => "Rua",
"City" => "Cidade",
"Region" => "Região",
"Zipcode" => "Código Postal",
"Country" => "País",
"Create Contact" => "Criar Contacto",
"Edit" => "Editar",
"Delete" => "Apagar",
"Birthday" => "Aniversário",
"Phone" => "Telefone"
);

36
l10n/ro.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Nu se găsește în agendă.",
"Contact could not be found." => "Contactul nu a putut fi găsit.",
"vCard could not be read." => "vCard nu poate fi citit.",
"Information about vCard is incorrect. Please reload the page." => "Informațiile despre vCard sunt incorecte. Reîncărcați pagina.",
"Address" => "Adresă",
"Telephone" => "Telefon",
"Email" => "Email",
"Organization" => "Organizație",
"Work" => "Servici",
"Home" => "Acasă",
"Mobile" => "Mobil",
"Text" => "Text",
"Voice" => "Voce",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Pager",
"This is not your contact." => "Nu este contactul tău",
"This card is not RFC compatible." => "Nu este compatibil RFC",
"This card does not contain a photo." => "Nu conține o fotografie",
"Add Contact" => "Adaugă contact",
"Group" => "Grup",
"Name" => "Nume",
"PO Box" => "CP",
"Extended" => "Extins",
"Street" => "Stradă",
"City" => "Oraș",
"Region" => "Regiune",
"Zipcode" => "Cod poștal",
"Country" => "Țară",
"Create Contact" => "Crează contact",
"Edit" => "Editează",
"Delete" => "Șterge",
"Birthday" => "Zi de naștere",
"Phone" => "Telefon"
);

36
l10n/ru.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Это не ваша адресная книга.",
"Contact could not be found." => "Контакт не найден.",
"vCard could not be read." => "Не удалось прочесть vCard.",
"Information about vCard is incorrect. Please reload the page." => "Информация о vCard некорректна. Пожалуйста, обновите страницу.",
"Address" => "Адрес",
"Telephone" => "Телефон",
"Email" => "Ящик эл. почты",
"Organization" => "Организация",
"Work" => "Рабочий",
"Home" => "Домашний",
"Mobile" => "Мобильный",
"Text" => "Текст",
"Voice" => "Голос",
"Fax" => "Факс",
"Video" => "Видео",
"Pager" => "Пейджер",
"This is not your contact." => "Это не контакт.",
"This card is not RFC compatible." => "Эта карточка не соответствует RFC.",
"This card does not contain a photo." => "Эта карточка не содержит фотографии.",
"Add Contact" => "Добавить Контакт",
"Group" => "Группа",
"Name" => "Имя",
"PO Box" => "АО",
"Extended" => "Расширенный",
"Street" => "Улица",
"City" => "Город",
"Region" => "Область",
"Zipcode" => "Почтовый индекс",
"Country" => "Страна",
"Create Contact" => "Создать Контакт",
"Edit" => "Редактировать",
"Delete" => "Удалить",
"Birthday" => "День рождения",
"Phone" => "Телефон"
);

36
l10n/sk_SK.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Toto nie je váš adresár.",
"Contact could not be found." => "Kontakt nebol nájdený.",
"vCard could not be read." => "vCard nemôže byť prečítaná.",
"Information about vCard is incorrect. Please reload the page." => "Informácie o vCard sú neplatné. Prosím obnovte stránku.",
"Address" => "Adresa",
"Telephone" => "Telefón",
"Email" => "E-mail",
"Organization" => "Organizácia",
"Work" => "Práca",
"Home" => "Domov",
"Mobile" => "Mobil",
"Text" => "SMS",
"Voice" => "Odkazová schránka",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Pager",
"This is not your contact." => "Toto nie je váš kontakt.",
"This card is not RFC compatible." => "Táto karta nie je kompatibilná s RFC.",
"This card does not contain a photo." => "Táto karta neobsahuje fotografiu.",
"Add Contact" => "Pridať Kontakt.",
"Group" => "Skupina",
"Name" => "Meno",
"PO Box" => "PO Box",
"Extended" => "Rozšírené",
"Street" => "Ulica",
"City" => "Mesto",
"Region" => "Región",
"Zipcode" => "PSČ",
"Country" => "Krajina",
"Create Contact" => "Vytvoriť Kontakt.",
"Edit" => "Upraviť",
"Delete" => "Odstrániť",
"Birthday" => "Narodeniny",
"Phone" => "Telefón"
);

36
l10n/sl.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "To ni vaš adresar.",
"Contact could not be found." => "Kontakta ni bilo mogoče najti.",
"vCard could not be read." => "vVizitko (vCard) ni bilo mogoče prebrati.",
"Information about vCard is incorrect. Please reload the page." => "Informacije o vVizitki (vCard) niso pravilne, Prosimo ponovno naložite okno.",
"Address" => "Naslov",
"Telephone" => "Telefon",
"Email" => "Email",
"Organization" => "Organizacija",
"Work" => "Delo",
"Home" => "Doma",
"Mobile" => "Mobitel",
"Text" => "Tekst",
"Voice" => "Glas- Voice",
"Fax" => "Faks",
"Video" => "Video",
"Pager" => "Pager",
"This is not your contact." => "To ni vaš kontakt",
"This card is not RFC compatible." => "Ta karta ni RFC kopatibilna.",
"This card does not contain a photo." => "Ta karta ne vsebuje slike.",
"Add Contact" => "Dodaj Kontakt",
"Group" => "Skupina",
"Name" => "Ime",
"PO Box" => "PO Box",
"Extended" => "Razširjeno.",
"Street" => "Ulica",
"City" => "Mesto",
"Region" => "Regija",
"Zipcode" => "Poštna št.",
"Country" => "Dežela",
"Create Contact" => "Ustvari Kontakt",
"Edit" => "Uredi",
"Delete" => "Izbriši",
"Birthday" => "Rojstni Dan",
"Phone" => "Telefon"
);

36
l10n/sr.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Ово није ваш адресар.",
"Contact could not be found." => "Контакт се не може наћи.",
"vCard could not be read." => "вКарта се не може читати.",
"Information about vCard is incorrect. Please reload the page." => "Подаци о вКарти су неисправни. Поново учитајте страницу.",
"Address" => "Адреса",
"Telephone" => "Телефон",
"Email" => "Е-маил",
"Organization" => "Организација",
"Work" => "Посао",
"Home" => "Кућа",
"Mobile" => "Мобилни",
"Text" => "Текст",
"Voice" => "Глас",
"Fax" => "Факс",
"Video" => "Видео",
"Pager" => "Пејџер",
"This is not your contact." => "Ово није ваш контакт.",
"This card is not RFC compatible." => "Ова карта није сагласна са РФЦ-ом.",
"This card does not contain a photo." => "Ова карта не садржи фотографију.",
"Add Contact" => "Додај контакт",
"Group" => "Група",
"Name" => "Име",
"PO Box" => "Поштански број",
"Extended" => "Прошири",
"Street" => "Улица",
"City" => "Град",
"Region" => "Регија",
"Zipcode" => "Зип код",
"Country" => "Земља",
"Create Contact" => "Направи контакт",
"Edit" => "Уреди",
"Delete" => "Обриши",
"Birthday" => "Рођендан",
"Phone" => "Телефон"
);

36
l10n/sr@latin.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Ovo nije vaš adresar.",
"Contact could not be found." => "Kontakt se ne može naći.",
"vCard could not be read." => "vKarta se ne može čitati.",
"Information about vCard is incorrect. Please reload the page." => "Podaci o vKarti su neispravni. Ponovo učitajte stranicu.",
"Address" => "Adresa",
"Telephone" => "Telefon",
"Email" => "E-mail",
"Organization" => "Organizacija",
"Work" => "Posao",
"Home" => "Kuća",
"Mobile" => "Mobilni",
"Text" => "Tekst",
"Voice" => "Glas",
"Fax" => "Faks",
"Video" => "Video",
"Pager" => "Pejdžer",
"This is not your contact." => "Ovo nije vaš kontakt.",
"This card is not RFC compatible." => "Ova karta nije saglasna sa RFC-om.",
"This card does not contain a photo." => "Ova karta ne sadrži fotografiju.",
"Add Contact" => "Dodaj kontakt",
"Group" => "Grupa",
"Name" => "Ime",
"PO Box" => "Poštanski broj",
"Extended" => "Proširi",
"Street" => "Ulica",
"City" => "Grad",
"Region" => "Regija",
"Zipcode" => "Zip kod",
"Country" => "Zemlja",
"Create Contact" => "Napravi kontakt",
"Edit" => "Uredi",
"Delete" => "Obriši",
"Birthday" => "Rođendan",
"Phone" => "Telefon"
);

36
l10n/sv.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Det här är inte din adressbok.",
"Contact could not be found." => "Kontakt kunde inte hittas.",
"vCard could not be read." => "vCard kunde inte läsas in.",
"Information about vCard is incorrect. Please reload the page." => "Information om vCard är felaktigt. Vänligen ladda om sidan.",
"Address" => "Adress",
"Telephone" => "Telefon",
"Email" => "E-post",
"Organization" => "Organisation",
"Work" => "Arbete",
"Home" => "Hem",
"Mobile" => "Mobil",
"Text" => "Text",
"Voice" => "Röst",
"Fax" => "Fax",
"Video" => "Video",
"Pager" => "Personsökare",
"This is not your contact." => "Det här är inte din kontakt.",
"This card is not RFC compatible." => "Detta kort är inte RFC-kompatibelt.",
"This card does not contain a photo." => "Detta kort innehåller inte något foto.",
"Add Contact" => "Lägg till kontakt",
"Group" => "Grupp",
"Name" => "Namn",
"PO Box" => "Postbox",
"Extended" => "Utökad",
"Street" => "Gata",
"City" => "Stad",
"Region" => "Län",
"Zipcode" => "Postnummer",
"Country" => "Land",
"Create Contact" => "Skapa kontakt",
"Edit" => "Redigera",
"Delete" => "Radera",
"Birthday" => "Födelsedag",
"Phone" => "Telefon"
);

36
l10n/tr.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "Bu sizin adres defteriniz değil.",
"Contact could not be found." => "Kişi bulunamadı.",
"vCard could not be read." => "vCard okunamadı.",
"Information about vCard is incorrect. Please reload the page." => "vCard bilgileri doğru değil. Lütfen sayfayı yenileyin.",
"Address" => "Adres",
"Telephone" => "Telefon",
"Email" => "Eposta",
"Organization" => "Organizasyon",
"Work" => "İş",
"Home" => "Ev",
"Mobile" => "Mobil",
"Text" => "Metin",
"Voice" => "Ses",
"Fax" => "Faks",
"Video" => "Video",
"Pager" => "Sayfalayıcı",
"This is not your contact." => "Bu sizin kişiniz değil.",
"This card is not RFC compatible." => "Bu kart RFC uyumlu değil.",
"This card does not contain a photo." => "Bu kart resim içermiyor.",
"Add Contact" => "Kişi Ekle",
"Group" => "Grup",
"Name" => "Ad",
"PO Box" => "Posta Kutusu",
"Extended" => "Uzatılmış",
"Street" => "Sokak",
"City" => "Şehir",
"Region" => "Bölge",
"Zipcode" => "Posta kodu",
"Country" => "Ülke",
"Create Contact" => "Kişi Oluştur",
"Edit" => "Düzenle",
"Delete" => "Sil",
"Birthday" => "Doğum günü",
"Phone" => "Telefon"
);

21
l10n/xgettextfiles Normal file
View File

@ -0,0 +1,21 @@
../appinfo/app.php
../ajax/activation.php
../ajax/addbook.php
../ajax/addcard.php
../ajax/addproperty.php
../ajax/createaddressbook.php
../ajax/deletebook.php
../ajax/deleteproperty.php
../ajax/getdetails.php
../ajax/setproperty.php
../ajax/updateaddressbook.php
../lib/app.php
../templates/index.php
../templates/part.addcardform.php
../templates/part.chooseaddressbook.php
../templates/part.chooseaddressbook.rowfields.php
../templates/part.details.php
../templates/part.editaddressbook.php
../templates/part.property.php
../templates/part.setpropertyform.php
../templates/settings.php

36
l10n/zh_CN.php Normal file
View File

@ -0,0 +1,36 @@
<?php $TRANSLATIONS = array(
"This is not your addressbook." => "这不是您的地址簿。",
"Contact could not be found." => "无法找到联系人。",
"vCard could not be read." => "vCard 无法读取。",
"Information about vCard is incorrect. Please reload the page." => "vCard 的信息不正确。请重新加载页面。",
"Address" => "地址",
"Telephone" => "电话",
"Email" => "电子邮件",
"Organization" => "组织",
"Work" => "工作",
"Home" => "家庭",
"Mobile" => "移动电话",
"Text" => "文本",
"Voice" => "语音",
"Fax" => "传真",
"Video" => "视频",
"Pager" => "传呼机",
"This is not your contact." => "这不是您的联系人。",
"This card is not RFC compatible." => "这张名片和RFC 标准不兼容。",
"This card does not contain a photo." => "这张名片不包含照片。",
"Add Contact" => "添加联系人",
"Group" => "分组",
"Name" => "名称",
"PO Box" => "邮箱",
"Extended" => "扩展",
"Street" => "街道",
"City" => "城市",
"Region" => "地区",
"Zipcode" => "邮编",
"Country" => "国家",
"Create Contact" => "创建联系人",
"Edit" => "编辑",
"Delete" => "删除",
"Birthday" => "生日",
"Phone" => "电话"
);

View File

@ -203,15 +203,6 @@ class OC_Contacts_Addressbook{
while( $row = $result->fetchRow()){
$addressbooks[] = $row;
}
/*
foreach( $active as $aid ){
$stmt = OC_DB::prepare( 'SELECT * FROM *PREFIX*contacts_addressbooks WHERE id = ? ORDER BY displayname' );
$result = $stmt->execute(array($aid,));
while( $row = $result->fetchRow()){
$addressbooks[] = $row;
}
}*/
return $addressbooks;
}
@ -240,6 +231,7 @@ class OC_Contacts_Addressbook{
unset($openaddressbooks[array_search($id, $openaddressbooks)]);
}
}
// NOTE: Ugly hack...
$openaddressbooks = self::cleanArray($openaddressbooks, false);
sort($openaddressbooks, SORT_NUMERIC);
// FIXME: I alway end up with a ';' prepending when imploding the array..?
@ -264,6 +256,7 @@ class OC_Contacts_Addressbook{
* @return boolean
*/
public static function delete($id){
// FIXME: There's no error checking at all.
self::setActive($id, false);
$stmt = OC_DB::prepare( 'DELETE FROM *PREFIX*contacts_addressbooks WHERE id = ?' );
$stmt->execute(array($id));

View File

@ -56,15 +56,14 @@ class OC_Contacts_App{
return $card;
}
/**
* @brief Gets the VCard as text
* @returns The card or null if the card could not be parsed.
*/
public static function getContactVCard($id){
$card = self::getContactObject( $id );
$vcard = OC_VObject::parse($card['carddata']);
// Check if the card is valid
if(is_null($vcard)){
OC_JSON::error(array('data' => array( 'message' => self::$l10n->t('vCard could not be read.'))));
exit();
}
return $vcard;
}
@ -73,6 +72,7 @@ class OC_Contacts_App{
for($i=0;$i<count($vcard->children);$i++){
if(md5($vcard->children[$i]->serialize()) == $checksum ){
$line = $i;
break;
}
}
if(is_null($line)){

29
lib/search.php Normal file
View File

@ -0,0 +1,29 @@
<?php
class OC_Search_Provider_Contacts extends OC_Search_Provider{
function search($query){
$addressbooks = OC_Contacts_Addressbook::all(OC_User::getUser(), 1);
// if(count($calendars)==0 || !OC_App::isEnabled('contacts')){
// //return false;
// }
// NOTE: Does the following do anything
$results=array();
$searchquery=array();
if(substr_count($query, ' ') > 0){
$searchquery = explode(' ', $query);
}else{
$searchquery[] = $query;
}
$l = new OC_l10n('contacts');
foreach($addressbooks as $addressbook){
$vcards = OC_Contacts_VCard::all($addressbook['id']);
foreach($vcards as $vcard){
if(substr_count(strtolower($vcard['fullname']), strtolower($query)) > 0){
$link = OC_Helper::linkTo('apps/contacts', 'index.php?id='.urlencode($vcard['id']));
$results[]=new OC_Search_Result($vcard['fullname'],'', $link,$l->t('Contact'));//$name,$text,$link,$type
}
}
}
return $results;
}
}
new OC_Search_Provider_Contacts();

View File

@ -111,16 +111,29 @@ class OC_Contacts_VCard{
if(is_null($uid)){
$card->setUID();
$uid = $card->getAsString('UID');
$data = $card->serialize();
//$data = $card->serialize();
};
$uri = $uid.'.vcf';
// Add product ID.
$prodid = trim($card->getAsString('PRODID'));
if(!$prodid) {
$appinfo = $info=OC_App::getAppInfo('contacts');
$prodid = 'PRODID:-//ownCloud//NONSGML '.$appinfo['name'].' '.$appinfo['version'].'//EN';
$card->setString('PRODID', $prodid);
}
// VCARD must have a version
$version = $card->getAsString('VERSION');
// Add version if needed
if(is_null($version)){
if(!$version){
$card->add(new Sabre_VObject_Property('VERSION','3.0'));
$data = $card->serialize();
}
//$data = $card->serialize();
}/* else {
OC_Log::write('contacts','OC_Contacts_VCard::add. Version already set as: '.$version,OC_Log::DEBUG);
}*/
$now = new DateTime;
$card->setString('REV', $now->format(DateTime::W3C));
$data = $card->serialize();
}
else{
// that's hard. Creating a UID and not saving it
@ -130,10 +143,11 @@ class OC_Contacts_VCard{
$stmt = OC_DB::prepare( 'INSERT INTO *PREFIX*contacts_cards (addressbookid,fullname,carddata,uri,lastmodified) VALUES(?,?,?,?,?)' );
$result = $stmt->execute(array($id,$fn,$data,$uri,time()));
$newid = OC_DB::insertid('*PREFIX*contacts_cards');
OC_Contacts_Addressbook::touch($id);
return OC_DB::insertid('*PREFIX*contacts_cards');
return $newid;
}
/**
@ -150,6 +164,7 @@ class OC_Contacts_VCard{
foreach($card->children as $property){
if($property->name == 'FN'){
$fn = $property->value;
break;
}
}
}
@ -177,9 +192,15 @@ class OC_Contacts_VCard{
foreach($card->children as $property){
if($property->name == 'FN'){
$fn = $property->value;
break;
}
}
} else {
return false;
}
$now = new DateTime;
$card->setString('REV', $now->format(DateTime::W3C));
$data = $card->serialize();
$stmt = OC_DB::prepare( 'UPDATE *PREFIX*contacts_cards SET fullname = ?,carddata = ?, lastmodified = ? WHERE id = ?' );
$result = $stmt->execute(array($fn,$data,time(),$id));
@ -205,9 +226,13 @@ class OC_Contacts_VCard{
foreach($card->children as $property){
if($property->name == 'FN'){
$fn = $property->value;
break;
}
}
}
$now = new DateTime;
$card->setString('REV', $now->format(DateTime::W3C));
$data = $card->serialize();
$stmt = OC_DB::prepare( 'UPDATE *PREFIX*contacts_cards SET fullname = ?,carddata = ?, lastmodified = ? WHERE id = ?' );
$result = $stmt->execute(array($fn,$data,time(),$oldcard['id']));
@ -223,6 +248,7 @@ class OC_Contacts_VCard{
* @return boolean
*/
public static function delete($id){
// FIXME: Add error checking.
$stmt = OC_DB::prepare( 'DELETE FROM *PREFIX*contacts_cards WHERE id = ?' );
$stmt->execute(array($id));
@ -244,6 +270,7 @@ class OC_Contacts_VCard{
* @return boolean
*/
public static function deleteFromDAVData($aid,$uri){
// FIXME: Add error checking. Deleting a card gives an Kontact/Akonadi error.
$stmt = OC_DB::prepare( 'DELETE FROM *PREFIX*contacts_cards WHERE addressbookid = ? AND uri=?' );
$stmt->execute(array($aid,$uri));

View File

@ -1,17 +1,10 @@
<?php // Include Style and Script
//OC_Util::addScript('contacts','interface'); // this line caused entry duplication, cause contacts/index.php already inlcudes it
OC_Util::addScript('contacts','jquery.inview');
OC_Util::addStyle('contacts','styles');
OC_Util::addStyle('contacts','formtastic');
?>
<script type='text/javascript'>
var totalurl = '<?php echo OC_Helper::linkTo('contacts', 'carddav.php', null, true); ?>/addressbooks';
</script>
<div id="controls">
<form>
<input type="button" id="contacts_newcontact" value="<?php echo $l->t('Add Contact'); ?>">
<input type="button" id="chooseaddressbook" value="<?php echo $l->t('Address Books'); ?>">
<input type="button" id="chooseaddressbook" value="<?php echo $l->t('Addressbooks'); ?>">
</form>
</div>
<div id="leftcontent" class="leftcontent">
@ -31,7 +24,4 @@ OC_Util::addStyle('contacts','formtastic');
</div>
<!-- Dialogs -->
<div id="dialog_holder"></div>
<div id="parsingfail_dialog" title="Parsing Fail">
<?php echo $l->t("There was a fail, while parsing the file."); ?>
</div>
<!-- End of Dialogs -->

View File

@ -3,99 +3,108 @@
<input type="hidden" name="id" value="<?php echo $_['addressbooks'][0]['id']; ?>">
<?php else: ?>
<fieldset class="inputs">
<ol>
<li class="input stringish">
<label class="label" for="id"><?php echo $l->t('Group'); ?></label>
<dl class="form">
<dt>
<label class="label" for="id"><?php echo $l->t('Addressbook'); ?></label>
</dt>
<dd>
<select name="id" size="1">
<?php echo html_select_options($_['addressbooks'], null, array('value'=>'id', 'label'=>'displayname')); ?>
</select>
</li>
</ol>
</dd>
</dl>
</fieldset>
<?php endif; ?>
<fieldset class="inputs">
<ol>
<li class="input stringish">
<dl class="form">
<dt>
<label class="label" for="fn"><?php echo $l->t('Name'); ?></label>
</dd>
<dd>
<input id="fn" type="text" name="fn" value=""><br>
</li>
<li class="input stringish">
</dd>
<dt>
<label class="label" for="org"><?php echo $l->t('Organization'); ?></label>
</dt>
<dd>
<input id="org" type="text" name="value[ORG]" value="">
</li>
</ol>
</dd>
</dl>
</fieldset>
<fieldset class="inputs">
<ol>
<li class="input stringish">
<dl class="form">
<dt>
<label class="label" for="email"><?php echo $l->t('Email'); ?></label>
</dt>
<dd>
<input id="email" type="text" name="value[EMAIL]" value="">
</li>
<li class="input">
<fieldset class="fragments">
<legend class="label">
<label for="tel"><?php echo $l->t('Telephone'); ?></label>
</legend>
<ol class="fragments-group">
<li class="fragment">
<label for="tel"><?php echo $l->t('Number'); ?></label>
<input type="phone" id="tel" name="value[TEL]" value="">
</li>
<li class="fragment">
<label for="tel_type"><?php echo $l->t('Type'); ?></label>
<select id="TEL" name="parameters[TEL][TYPE][]" multiple="multiple">
<?php echo html_select_options($_['phone_types'], 'CELL') ?>
</select>
</li>
</ol>
</fieldset>
</li>
</ol>
</dd>
<dt>
<label for="tel"><?php echo $l->t('Telephone'); ?></label>
</dt>
<dd>
<input type="phone" id="tel" name="value[TEL]" value="">
<select id="TEL" name="parameters[TEL][TYPE][]" multiple="multiple">
<?php echo html_select_options($_['phone_types'], 'CELL') ?>
</select>
</dd>
</dl>
</fieldset>
<fieldset class="inputs">
<legend><?php echo $l->t('Address'); ?></legend>
<ol>
<li class="input">
<dl class="form">
<dt>
<label class="label" for="adr_type"><?php echo $l->t('Type'); ?></label>
</dt>
<dd>
<select id="adr_type" name="parameters[ADR][TYPE]" size="1">
<?php echo html_select_options($_['adr_types'], 'HOME') ?>
</select>
</li>
<li class="input stringish">
</dd>
<dt>
<label class="label" for="adr_pobox"><?php echo $l->t('PO Box'); ?></label>
</dt>
<dd>
<input type="text" id="adr_pobox" name="value[ADR][0]" value="">
</li>
<li class="input stringish">
</dd>
<dd>
<dt>
<label class="label" for="adr_extended"><?php echo $l->t('Extended'); ?></label>
</dt>
<dd>
<input type="text" id="adr_extended" name="value[ADR][1]" value="">
</li>
<li class="input stringish">
</dd>
<dt>
<label class="label" for="adr_street"><?php echo $l->t('Street'); ?></label>
</dt>
<dd>
<input type="text" id="adr_street" name="value[ADR][2]" value="">
</li>
<li class="input stringish">
</dd>
<dt>
<label class="label" for="adr_city"><?php echo $l->t('City'); ?></label>
</dt>
<dd>
<input type="text" id="adr_city" name="value[ADR][3]" value="">
</li>
<li class="input stringish">
</dd>
<dt>
<label class="label" for="adr_region"><?php echo $l->t('Region'); ?></label>
</dt>
<dd>
<input type="text" id="adr_region" name="value[ADR][4]" value="">
</li>
<li class="input stringish">
</dd>
<dt>
<label class="label" for="adr_zipcode"><?php echo $l->t('Zipcode'); ?></label>
</dtl>
<dd>
<input type="text" id="adr_zipcode" name="value[ADR][5]" value="">
</li>
<li class="input stringish">
</dd>
<dt>
<label class="label" for="adr_country"><?php echo $l->t('Country'); ?></label>
</dt>
<dd>
<input type="text" id="adr_country" name="value[ADR][6]" value="">
</li>
</ol>
</fieldset>
<fieldset class="buttons">
<ol>
<li class="commit button">
<input class="create" type="submit" name="submit" value="<?php echo $l->t('Create Contact'); ?>">
</li>
</ol>
</dd>
</dl>
</fieldset>
<input class="create" type="submit" name="submit" value="<?php echo $l->t('Create Contact'); ?>">
</form>

View File

@ -1,5 +1,5 @@
<?php
// FIXME: Make this readable.
echo "<td width=\"20px\"><input id=\"active_" . $_['addressbook']["id"] . "\" type=\"checkbox\" onClick=\"Contacts.UI.Addressbooks.activation(this, " . $_['addressbook']["id"] . ")\"" . (OC_Contacts_Addressbook::isActive($_['addressbook']["id"]) ? ' checked="checked"' : '') . "></td>";
echo "<td><label for=\"active_" . $_['addressbook']["id"] . "\">" . $_['addressbook']["displayname"] . "</label></td>";
echo "<td width=\"20px\"><a href=\"#\" onclick=\"Contacts.UI.showCardDAVUrl('" . OC_User::getUser() . "', '" . $_['addressbook']["uri"] . "');\" title=\"" . $l->t("CardDav Link") . "\" class=\"action\"><img class=\"svg action\" src=\"../../core/img/actions/public.svg\"></a></td><td width=\"20px\"><a href=\"export.php?bookid=" . $_['addressbook']["id"] . "\" title=\"" . $l->t("Download") . "\" class=\"action\"><img class=\"svg action\" src=\"../../core/img/actions/download.svg\"></a></td><td width=\"20px\"><a href=\"#\" title=\"" . $l->t("Edit") . "\" class=\"action\" onclick=\"Contacts.UI.Addressbooks.editAddressbook(this, " . $_['addressbook']["id"] . ");\"><img class=\"svg action\" src=\"../../core/img/actions/rename.svg\"></a></td><td width=\"20px\"><a href=\"#\" onclick=\"Contacts.UI.Addressbooks.deleteAddressbook('" . $_['addressbook']["id"] . "');\" title=\"" . $l->t("Delete") . "\" class=\"action\"><img class=\"svg action\" src=\"../../core/img/actions/delete.svg\"></a></td>";

View File

@ -1,5 +1,6 @@
<?php if(array_key_exists('FN',$_['details'])): ?>
<?php echo $this->inc('part.property.FN', array('property' => $_['details']['FN'][0])); ?>
<a href="export?contactid=<?php echo $_['id']; ?>"><img class="svg action" id="contacts_downloadcard" src="<?php echo image_path('', 'actions/download.svg'); ?>" title="<?php echo $l->t('Download contact');?>" /></a>
<img class="svg action" id="contacts_deletecard" src="<?php echo image_path('', 'actions/delete.svg'); ?>" title="<?php echo $l->t('Delete contact');?>" />
<?php if(isset($_['details']['PHOTO'])): // Emails first ?>
@ -86,3 +87,9 @@
</li>
</ul>
<?php endif; ?>
<script language="Javascript">
/* Re-tipsify ;-)*/
$('#contacts_deletecard').tipsy({gravity: 'ne'});
$('#contacts_downloadcard').tipsy({gravity: 'ne'});
$('.button').tipsy();
</script>

View File

@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
?>
<td id="<?php echo $_['new'] ? 'new' : 'edit' ?>addressbook_dialog" title="<?php echo $_['new'] ? $l->t("New Address Book") : $l->t("Edit Address Book"); ?>" colspan="6">
<td id="<?php echo $_['new'] ? 'new' : 'edit' ?>addressbook_dialog" title="<?php echo $_['new'] ? $l->t("New Addressbook") : $l->t("Edit Addressbook"); ?>" colspan="6">
<table width="100%" style="border: 0;">
<tr>
<th><?php echo $l->t('Displayname') ?></th>

View File

@ -0,0 +1,7 @@
<div id="messagebox">
<table width="100%" style="border: 0;">
<tr>
<th id="messagebox_msg"></th>
</tr>
</table>
</di>

View File

@ -1,7 +1,7 @@
<form id="mediaform">
<fieldset class="personalblock">
<strong>Contacts</strong><br />
CardDAV syncing address:
<strong><?php echo $l->t('Contacts'); ?></strong><br />
<?php echo $l->t('CardDAV syncing address:'); ?>
<?php echo OC_Helper::linkTo('apps/contacts', 'carddav.php', null, true); ?><br />
</fieldset>
</form>

View File

@ -46,8 +46,8 @@ $l10n = new OC_L10N('contacts');
$card = OC_Contacts_VCard::find( $id );
if( $card === false ){
OC_Log::write('contacts','thumbnail.php. Contact could not be found.',OC_Log::ERROR);
//echo $l10n->t('Contact could not be found.');
OC_Log::write('contacts','thumbnail.php. Contact could not be found: '.$id,OC_Log::ERROR);
getStandardImage();
exit();
}
@ -55,7 +55,6 @@ if( $card === false ){
$addressbook = OC_Contacts_Addressbook::find( $card['addressbookid'] );
if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){
OC_Log::write('contacts','thumbnail.php. Wrong contact/addressbook - WTF?',OC_Log::ERROR);
//echo $l10n->t('This is not your contact.'); // This is a weird error, why would it come up? (Better feedback for users?)
exit();
}