diff --git a/ajax/addcard.php b/ajax/addcard.php index e9f82f1b..6005d74d 100644 --- a/ajax/addcard.php +++ b/ajax/addcard.php @@ -28,13 +28,13 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user if( !OC_User::isLoggedIn()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in.')))); exit(); } $addressbook = OC_Contacts_Addressbook::find( $aid ); if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your addressbook!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your addressbook.')))); // Same here (as with the contact error). Could this error be improved? exit(); } diff --git a/ajax/addproperty.php b/ajax/addproperty.php index 7df67e3d..a311bba6 100644 --- a/ajax/addproperty.php +++ b/ajax/addproperty.php @@ -28,26 +28,26 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user if( !OC_User::isLoggedIn()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in.')))); exit(); } $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Can not find Contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Contact could not be found.')))); exit(); } $addressbook = OC_Contacts_Addressbook::find( $card['addressbookid'] ); if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact.')))); exit(); } $vcard = OC_Contacts_VCard::parse($card['carddata']); // Check if the card is valid if(is_null($vcard)){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Unable to parse vCard!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('vCard could not be read.')))); exit(); } diff --git a/ajax/deletebook.php b/ajax/deletebook.php index 9e623120..38322f5c 100644 --- a/ajax/deletebook.php +++ b/ajax/deletebook.php @@ -29,13 +29,13 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user if( !OC_User::isLoggedIn()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in.')))); exit(); } $addressbook = OC_Contacts_Addressbook::find( $id ); if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact.')))); exit(); } diff --git a/ajax/deletecard.php b/ajax/deletecard.php index b31c643f..7dde7d30 100644 --- a/ajax/deletecard.php +++ b/ajax/deletecard.php @@ -29,20 +29,20 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user if( !OC_User::isLoggedIn()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in.')))); exit(); } $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Can not find Contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Contact could not be found.')))); exit(); } $addressbook = OC_Contacts_Addressbook::find( $card['addressbookid'] ); if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact.')))); exit(); } diff --git a/ajax/deleteproperty.php b/ajax/deleteproperty.php index df2ae2e1..07cea0b5 100644 --- a/ajax/deleteproperty.php +++ b/ajax/deleteproperty.php @@ -31,27 +31,27 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user if( !OC_User::isLoggedIn()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in.')))); exit(); } $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Can not find Contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Contact could not be found.')))); exit(); } $addressbook = OC_Contacts_Addressbook::find( $card['addressbookid'] ); if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact.')))); exit(); } $vcard = OC_Contacts_VCard::parse($card['carddata']); // Check if the card is valid if(is_null($vcard)){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Unable to parse vCard!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('vCard could not be read.')))); exit(); } @@ -62,7 +62,7 @@ for($i=0;$ichildren);$i++){ } } if(is_null($line)){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Information about vCard is incorrect. Please reload page!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Information about vCard is incorrect. Please reload the page.')))); exit(); } diff --git a/ajax/getdetails.php b/ajax/getdetails.php index 19addd91..ab1f1d66 100644 --- a/ajax/getdetails.php +++ b/ajax/getdetails.php @@ -29,27 +29,27 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user if( !OC_User::isLoggedIn()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in.')))); exit(); } $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Can not find Contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Contact could not be found.')))); exit(); } $addressbook = OC_Contacts_Addressbook::find( $card['addressbookid'] ); if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact.')))); exit(); } $vcard = OC_Contacts_VCard::parse($card['carddata']); // Check if the card is valid if(is_null($vcard)){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Unable to parse vCard!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('vCard could not be read.')))); exit(); } diff --git a/ajax/setproperty.php b/ajax/setproperty.php index 9a4e8eea..9178a6aa 100644 --- a/ajax/setproperty.php +++ b/ajax/setproperty.php @@ -29,26 +29,26 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user if( !OC_User::isLoggedIn()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in.')))); exit(); } $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Can not find Contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Contact could not be found.')))); exit(); } $addressbook = OC_Contacts_Addressbook::find( $card['addressbookid'] ); if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact.')))); exit(); } $vcard = OC_Contacts_VCard::parse($card['carddata']); // Check if the card is valid if(is_null($vcard)){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Unable to parse vCard!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('vCard could not be read.')))); exit(); } @@ -59,7 +59,7 @@ for($i=0;$ichildren);$i++){ } } if(is_null($line)){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Information about vCard is incorrect. Please reload page!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Information about vCard is incorrect. Please reload the page.')))); exit(); } diff --git a/ajax/showaddcard.php b/ajax/showaddcard.php index dea8073a..89c78fcd 100644 --- a/ajax/showaddcard.php +++ b/ajax/showaddcard.php @@ -27,7 +27,7 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user if( !OC_User::isLoggedIn()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in.')))); exit(); } diff --git a/ajax/showaddproperty.php b/ajax/showaddproperty.php index 75dbe01c..718478d4 100644 --- a/ajax/showaddproperty.php +++ b/ajax/showaddproperty.php @@ -28,19 +28,19 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user if( !OC_User::isLoggedIn()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in.')))); exit(); } $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Can not find Contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Contact could not be found.')))); exit(); } $addressbook = OC_Contacts_Addressbook::find( $card['addressbookid'] ); if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact.')))); exit(); } diff --git a/ajax/showsetproperty.php b/ajax/showsetproperty.php index 51187d50..77b90ea8 100644 --- a/ajax/showsetproperty.php +++ b/ajax/showsetproperty.php @@ -29,26 +29,26 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user if( !OC_User::isLoggedIn()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('You need to log in.')))); exit(); } $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Can not find Contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Contact could not be found.')))); exit(); } $addressbook = OC_Contacts_Addressbook::find( $card['addressbookid'] ); if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('This is not your contact.')))); exit(); } $vcard = OC_Contacts_VCard::parse($card['carddata']); // Check if the card is valid if(is_null($vcard)){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Unable to parse vCard!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('vCard could not be read.')))); exit(); } @@ -59,7 +59,7 @@ for($i=0;$ichildren);$i++){ } } if(is_null($line)){ - echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Information about vCard is incorrect. Please reload page!')))); + echo json_encode( array( 'status' => 'error', 'data' => array( 'message' => $l10n->t('Information about vCard is incorrect. Please reload the page.')))); exit(); } diff --git a/l10n/de.php b/l10n/de.php new file mode 100644 index 00000000..04a74024 --- /dev/null +++ b/l10n/de.php @@ -0,0 +1,9 @@ + "Mobil", +"Text" => "Text", +"Fax" => "Fax", +"Video" => "Video", +"Pager" => "Pager", +"Birthday" => "Geburtstag", +"Edit" => "Bearbeiten" +); diff --git a/l10n/it.php b/l10n/it.php new file mode 100644 index 00000000..7a57d6fc --- /dev/null +++ b/l10n/it.php @@ -0,0 +1,38 @@ + "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", +"Extended" => "Estendi", +"Street" => "Via", +"City" => "Città", +"Region" => "Regione", +"Zipcode" => "CAP", +"Country" => "Stato", +"Mobile" => "Cellulare", +"Text" => "Testo", +"Voice" => "Voce", +"Fax" => "Fax", +"Video" => "Video", +"Pager" => "Pager", +"Delete" => "Cancella", +"Add Property" => "Aggiungi proprietà", +"Birthday" => "Compleanno", +"Phone" => "Telefono", +"Edit" => "Modifica" +); diff --git a/photo.php b/photo.php index 1b955a8a..7ba2002b 100644 --- a/photo.php +++ b/photo.php @@ -29,20 +29,20 @@ $l10n = new OC_L10N('contacts'); // Check if we are a user if( !OC_User::isLoggedIn()){ - echo $l10n->t('You need to log in!'); + echo $l10n->t('You need to log in.'); exit(); } $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ - echo $l10n->t('Can not find Contact!'); + echo $l10n->t('Contact could not be found.'); exit(); } $addressbook = OC_Contacts_Addressbook::find( $card['addressbookid'] ); if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ - echo $l10n->t('This is not your contact!'); + echo $l10n->t('This is not your contact.'); // This is a weird error, why would it come up? (Better feedback for users?) exit(); } @@ -50,7 +50,7 @@ $content = OC_Contacts_VCard::parse($card['carddata']); // invalid vcard if( is_null($content)){ - echo $l10n->t('This card is not RFC compatible!'); + echo $l10n->t('This card is not RFC compatible.'); exit(); } // Photo :-) @@ -87,4 +87,4 @@ foreach($content->children as $child){ } // Not found :-( -echo $l10n->t('This card does not contain photo data!'); +echo $l10n->t('This card does not contain a photo.'); diff --git a/templates/part.addpropertyform.php b/templates/part.addpropertyform.php index 32affde9..ad623b0d 100644 --- a/templates/part.addpropertyform.php +++ b/templates/part.addpropertyform.php @@ -18,23 +18,23 @@ t('PO Box'); ?> - t('Extended Address'); ?> - t('Street Name'); ?> + t('Extended'); ?> + t('Street'); ?> t('City'); ?> t('Region'); ?> - t('Postal Code'); ?> + t('Zipcode'); ?> t('Country'); ?>
diff --git a/templates/part.property.php b/templates/part.property.php index d0d2b773..3469f53b 100644 --- a/templates/part.property.php +++ b/templates/part.property.php @@ -12,7 +12,7 @@ - t('Organisation'); ?> + t('Organization'); ?> @@ -26,11 +26,11 @@ - t('Telephone'); ?> + t('Phone'); ?> - (t('tel_'.strtolower($_['property']['parameters']['TYPE'])); ?>) + () @@ -40,7 +40,7 @@ t('Address'); ?>
- (t('adr_'.strtolower($_['property']['parameters']['TYPE'])); ?>) + () @@ -48,10 +48,10 @@ t('PO Box'); ?>
- t('Extended Address'); ?>
+ t('Extended'); ?>
- t('Street Name'); ?>
+ t('Street'); ?>
t('City'); ?>
@@ -60,7 +60,7 @@ t('Region'); ?>
- t('Postal Code'); ?>
+ t('Zipcode'); ?>
t('Country'); ?> diff --git a/templates/part.setpropertyform.php b/templates/part.setpropertyform.php index 52483ebf..69c78979 100644 --- a/templates/part.setpropertyform.php +++ b/templates/part.setpropertyform.php @@ -3,11 +3,11 @@
-
-
+
+


-
+