From b2034fdfec040a67988e543a911208ef2491ce7a Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Sun, 22 Feb 2015 12:58:46 +0100 Subject: New RoundCube Plugins Git folder --- vcard_attachments/composer.json | 29 +++ vcard_attachments/localization/ar.inc | 20 ++ vcard_attachments/localization/ar_SA.inc | 20 ++ vcard_attachments/localization/ast.inc | 20 ++ vcard_attachments/localization/az_AZ.inc | 20 ++ vcard_attachments/localization/be_BE.inc | 20 ++ vcard_attachments/localization/bg_BG.inc | 20 ++ vcard_attachments/localization/br.inc | 20 ++ vcard_attachments/localization/bs_BA.inc | 20 ++ vcard_attachments/localization/ca_ES.inc | 20 ++ vcard_attachments/localization/cs_CZ.inc | 20 ++ vcard_attachments/localization/cy_GB.inc | 20 ++ vcard_attachments/localization/da_DK.inc | 20 ++ vcard_attachments/localization/de_CH.inc | 20 ++ vcard_attachments/localization/de_DE.inc | 20 ++ vcard_attachments/localization/el_GR.inc | 20 ++ vcard_attachments/localization/en_CA.inc | 20 ++ vcard_attachments/localization/en_GB.inc | 20 ++ vcard_attachments/localization/en_US.inc | 23 +++ vcard_attachments/localization/eo.inc | 20 ++ vcard_attachments/localization/es_419.inc | 20 ++ vcard_attachments/localization/es_AR.inc | 20 ++ vcard_attachments/localization/es_ES.inc | 20 ++ vcard_attachments/localization/et_EE.inc | 20 ++ vcard_attachments/localization/eu_ES.inc | 20 ++ vcard_attachments/localization/fa_IR.inc | 20 ++ vcard_attachments/localization/fi_FI.inc | 20 ++ vcard_attachments/localization/fo_FO.inc | 20 ++ vcard_attachments/localization/fr_FR.inc | 20 ++ vcard_attachments/localization/gl_ES.inc | 20 ++ vcard_attachments/localization/he_IL.inc | 20 ++ vcard_attachments/localization/hr_HR.inc | 20 ++ vcard_attachments/localization/hu_HU.inc | 20 ++ vcard_attachments/localization/hy_AM.inc | 20 ++ vcard_attachments/localization/ia.inc | 20 ++ vcard_attachments/localization/id_ID.inc | 20 ++ vcard_attachments/localization/it_IT.inc | 20 ++ vcard_attachments/localization/ja_JP.inc | 20 ++ vcard_attachments/localization/km_KH.inc | 20 ++ vcard_attachments/localization/ko_KR.inc | 20 ++ vcard_attachments/localization/ku.inc | 20 ++ vcard_attachments/localization/lb_LU.inc | 20 ++ vcard_attachments/localization/lt_LT.inc | 20 ++ vcard_attachments/localization/lv_LV.inc | 20 ++ vcard_attachments/localization/ml_IN.inc | 20 ++ vcard_attachments/localization/mr_IN.inc | 20 ++ vcard_attachments/localization/nb_NO.inc | 20 ++ vcard_attachments/localization/nl_NL.inc | 20 ++ vcard_attachments/localization/nn_NO.inc | 20 ++ vcard_attachments/localization/pl_PL.inc | 20 ++ vcard_attachments/localization/pt_BR.inc | 20 ++ vcard_attachments/localization/pt_PT.inc | 20 ++ vcard_attachments/localization/ro_RO.inc | 20 ++ vcard_attachments/localization/ru_RU.inc | 20 ++ vcard_attachments/localization/si_LK.inc | 20 ++ vcard_attachments/localization/sk_SK.inc | 20 ++ vcard_attachments/localization/sl_SI.inc | 20 ++ vcard_attachments/localization/sr_CS.inc | 20 ++ vcard_attachments/localization/sv_SE.inc | 20 ++ vcard_attachments/localization/tr_TR.inc | 20 ++ vcard_attachments/localization/uk_UA.inc | 20 ++ vcard_attachments/localization/vi_VN.inc | 20 ++ vcard_attachments/localization/zh_CN.inc | 20 ++ vcard_attachments/localization/zh_TW.inc | 20 ++ vcard_attachments/skins/classic/style.css | 17 ++ vcard_attachments/skins/classic/vcard.png | Bin 0 -> 493 bytes .../skins/classic/vcard_add_contact.png | Bin 0 -> 1361 bytes vcard_attachments/skins/larry/style.css | 16 ++ vcard_attachments/skins/larry/vcard.png | Bin 0 -> 493 bytes .../skins/larry/vcard_add_contact.png | Bin 0 -> 1859 bytes vcard_attachments/tests/VcardAttachments.php | 23 +++ vcard_attachments/vcard_attachments.php | 227 +++++++++++++++++++++ vcard_attachments/vcardattach.js | 37 ++++ 73 files changed, 1612 insertions(+) create mode 100644 vcard_attachments/composer.json create mode 100644 vcard_attachments/localization/ar.inc create mode 100644 vcard_attachments/localization/ar_SA.inc create mode 100644 vcard_attachments/localization/ast.inc create mode 100644 vcard_attachments/localization/az_AZ.inc create mode 100644 vcard_attachments/localization/be_BE.inc create mode 100644 vcard_attachments/localization/bg_BG.inc create mode 100644 vcard_attachments/localization/br.inc create mode 100644 vcard_attachments/localization/bs_BA.inc create mode 100644 vcard_attachments/localization/ca_ES.inc create mode 100644 vcard_attachments/localization/cs_CZ.inc create mode 100644 vcard_attachments/localization/cy_GB.inc create mode 100644 vcard_attachments/localization/da_DK.inc create mode 100644 vcard_attachments/localization/de_CH.inc create mode 100644 vcard_attachments/localization/de_DE.inc create mode 100644 vcard_attachments/localization/el_GR.inc create mode 100644 vcard_attachments/localization/en_CA.inc create mode 100644 vcard_attachments/localization/en_GB.inc create mode 100644 vcard_attachments/localization/en_US.inc create mode 100644 vcard_attachments/localization/eo.inc create mode 100644 vcard_attachments/localization/es_419.inc create mode 100644 vcard_attachments/localization/es_AR.inc create mode 100644 vcard_attachments/localization/es_ES.inc create mode 100644 vcard_attachments/localization/et_EE.inc create mode 100644 vcard_attachments/localization/eu_ES.inc create mode 100644 vcard_attachments/localization/fa_IR.inc create mode 100644 vcard_attachments/localization/fi_FI.inc create mode 100644 vcard_attachments/localization/fo_FO.inc create mode 100644 vcard_attachments/localization/fr_FR.inc create mode 100644 vcard_attachments/localization/gl_ES.inc create mode 100644 vcard_attachments/localization/he_IL.inc create mode 100644 vcard_attachments/localization/hr_HR.inc create mode 100644 vcard_attachments/localization/hu_HU.inc create mode 100644 vcard_attachments/localization/hy_AM.inc create mode 100644 vcard_attachments/localization/ia.inc create mode 100644 vcard_attachments/localization/id_ID.inc create mode 100644 vcard_attachments/localization/it_IT.inc create mode 100644 vcard_attachments/localization/ja_JP.inc create mode 100644 vcard_attachments/localization/km_KH.inc create mode 100644 vcard_attachments/localization/ko_KR.inc create mode 100644 vcard_attachments/localization/ku.inc create mode 100644 vcard_attachments/localization/lb_LU.inc create mode 100644 vcard_attachments/localization/lt_LT.inc create mode 100644 vcard_attachments/localization/lv_LV.inc create mode 100644 vcard_attachments/localization/ml_IN.inc create mode 100644 vcard_attachments/localization/mr_IN.inc create mode 100644 vcard_attachments/localization/nb_NO.inc create mode 100644 vcard_attachments/localization/nl_NL.inc create mode 100644 vcard_attachments/localization/nn_NO.inc create mode 100644 vcard_attachments/localization/pl_PL.inc create mode 100644 vcard_attachments/localization/pt_BR.inc create mode 100644 vcard_attachments/localization/pt_PT.inc create mode 100644 vcard_attachments/localization/ro_RO.inc create mode 100644 vcard_attachments/localization/ru_RU.inc create mode 100644 vcard_attachments/localization/si_LK.inc create mode 100644 vcard_attachments/localization/sk_SK.inc create mode 100644 vcard_attachments/localization/sl_SI.inc create mode 100644 vcard_attachments/localization/sr_CS.inc create mode 100644 vcard_attachments/localization/sv_SE.inc create mode 100644 vcard_attachments/localization/tr_TR.inc create mode 100644 vcard_attachments/localization/uk_UA.inc create mode 100644 vcard_attachments/localization/vi_VN.inc create mode 100644 vcard_attachments/localization/zh_CN.inc create mode 100644 vcard_attachments/localization/zh_TW.inc create mode 100644 vcard_attachments/skins/classic/style.css create mode 100644 vcard_attachments/skins/classic/vcard.png create mode 100644 vcard_attachments/skins/classic/vcard_add_contact.png create mode 100644 vcard_attachments/skins/larry/style.css create mode 100644 vcard_attachments/skins/larry/vcard.png create mode 100644 vcard_attachments/skins/larry/vcard_add_contact.png create mode 100644 vcard_attachments/tests/VcardAttachments.php create mode 100644 vcard_attachments/vcard_attachments.php create mode 100644 vcard_attachments/vcardattach.js (limited to 'vcard_attachments') diff --git a/vcard_attachments/composer.json b/vcard_attachments/composer.json new file mode 100644 index 0000000..07105bd --- /dev/null +++ b/vcard_attachments/composer.json @@ -0,0 +1,29 @@ +{ + "name": "roundcube/vcard_attachments", + "type": "roundcube-plugin", + "description": "This plugin detects vCard attachments/bodies and shows a button(s) to add them to address book", + "license": "GPLv3+", + "version": "3.2", + "authors": [ + { + "name": "Thomas Bruederli", + "email": "roundcube@gmail.com", + "role": "Lead" + }, + { + "name": "Aleksander Machniak", + "email": "alec@alec.pl", + "role": "Lead" + } + ], + "repositories": [ + { + "type": "composer", + "url": "http://plugins.roundcube.net" + } + ], + "require": { + "php": ">=5.3.0", + "roundcube/plugin-installer": ">=0.1.3" + } +} diff --git a/vcard_attachments/localization/ar.inc b/vcard_attachments/localization/ar.inc new file mode 100644 index 0000000..2d40d9b --- /dev/null +++ b/vcard_attachments/localization/ar.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'إضافة vCard إلى دفتر العناوين'; +$labels['vcardsavefailed'] = 'غير قادر على حفظ بصيغة vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/ar_SA.inc b/vcard_attachments/localization/ar_SA.inc new file mode 100644 index 0000000..4746189 --- /dev/null +++ b/vcard_attachments/localization/ar_SA.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'إضافة صيغة vCard إلى دفتر العناوين'; +$labels['vcardsavefailed'] = 'غير قادر على الحفظ بصيغة vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/ast.inc b/vcard_attachments/localization/ast.inc new file mode 100644 index 0000000..899e8a2 --- /dev/null +++ b/vcard_attachments/localization/ast.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Amestar vCard a la llibreta de direiciones'; +$labels['vcardsavefailed'] = 'Nun pue guardase la vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/az_AZ.inc b/vcard_attachments/localization/az_AZ.inc new file mode 100644 index 0000000..7329c7f --- /dev/null +++ b/vcard_attachments/localization/az_AZ.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'vCard-ı kontakta daxil et'; +$labels['vcardsavefailed'] = 'vCard-ı saxlamaq alınmadı'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/be_BE.inc b/vcard_attachments/localization/be_BE.inc new file mode 100644 index 0000000..57a48e1 --- /dev/null +++ b/vcard_attachments/localization/be_BE.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Дадаць vCard у адрасную кнігу'; +$labels['vcardsavefailed'] = 'Немагчыма захаваць vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/bg_BG.inc b/vcard_attachments/localization/bg_BG.inc new file mode 100644 index 0000000..7e0b174 --- /dev/null +++ b/vcard_attachments/localization/bg_BG.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Добавяне на vCard към адресната книга'; +$labels['vcardsavefailed'] = 'Невъзможен запис на vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/br.inc b/vcard_attachments/localization/br.inc new file mode 100644 index 0000000..d11a63f --- /dev/null +++ b/vcard_attachments/localization/br.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Ouzhpennañ ar vCard d\'ar c\'harned chomlec\'hioù'; +$labels['vcardsavefailed'] = 'N\'haller ket enrollañ ar vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/bs_BA.inc b/vcard_attachments/localization/bs_BA.inc new file mode 100644 index 0000000..32304d6 --- /dev/null +++ b/vcard_attachments/localization/bs_BA.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Dodaj vCard u adresar'; +$labels['vcardsavefailed'] = 'Nije moguće sačuvati vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/ca_ES.inc b/vcard_attachments/localization/ca_ES.inc new file mode 100644 index 0000000..c09315d --- /dev/null +++ b/vcard_attachments/localization/ca_ES.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Afegeix la vCard a la llibreta d\'adreces'; +$labels['vcardsavefailed'] = 'No s\'ha pogut desar la vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/cs_CZ.inc b/vcard_attachments/localization/cs_CZ.inc new file mode 100644 index 0000000..372d650 --- /dev/null +++ b/vcard_attachments/localization/cs_CZ.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Přidat vCard do adresáře'; +$labels['vcardsavefailed'] = 'Nelze uložit vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/cy_GB.inc b/vcard_attachments/localization/cy_GB.inc new file mode 100644 index 0000000..814ed0b --- /dev/null +++ b/vcard_attachments/localization/cy_GB.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Ychwanegu vCard i\'r llyfr cyfeiriadau'; +$labels['vcardsavefailed'] = 'Methwyd cadw\'r vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/da_DK.inc b/vcard_attachments/localization/da_DK.inc new file mode 100644 index 0000000..3107246 --- /dev/null +++ b/vcard_attachments/localization/da_DK.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Tilføj vCard til adressebogen'; +$labels['vcardsavefailed'] = 'Kan ikke gemme dette vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/de_CH.inc b/vcard_attachments/localization/de_CH.inc new file mode 100644 index 0000000..edee86f --- /dev/null +++ b/vcard_attachments/localization/de_CH.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Kontakt im Adressbuch speichern'; +$labels['vcardsavefailed'] = 'Der Kontakt konnte nicht gespeichert werden'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/de_DE.inc b/vcard_attachments/localization/de_DE.inc new file mode 100644 index 0000000..edee86f --- /dev/null +++ b/vcard_attachments/localization/de_DE.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Kontakt im Adressbuch speichern'; +$labels['vcardsavefailed'] = 'Der Kontakt konnte nicht gespeichert werden'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/el_GR.inc b/vcard_attachments/localization/el_GR.inc new file mode 100644 index 0000000..a59f6f5 --- /dev/null +++ b/vcard_attachments/localization/el_GR.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Προσθήκη vCard στο βιβλίο διευθύνσεων'; +$labels['vcardsavefailed'] = 'Δεν είναι δυνατή η αποθήκευση του vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/en_CA.inc b/vcard_attachments/localization/en_CA.inc new file mode 100644 index 0000000..ac21ef9 --- /dev/null +++ b/vcard_attachments/localization/en_CA.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Add vCard to addressbook'; +$labels['vcardsavefailed'] = 'Unable to save vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/en_GB.inc b/vcard_attachments/localization/en_GB.inc new file mode 100644 index 0000000..ac21ef9 --- /dev/null +++ b/vcard_attachments/localization/en_GB.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Add vCard to addressbook'; +$labels['vcardsavefailed'] = 'Unable to save vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/en_US.inc b/vcard_attachments/localization/en_US.inc new file mode 100644 index 0000000..a52a932 --- /dev/null +++ b/vcard_attachments/localization/en_US.inc @@ -0,0 +1,23 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ + +$labels = array(); +$labels['addvcardmsg'] = 'Add vCard to addressbook'; +$labels['vcardsavefailed'] = 'Unable to save vCard'; + +?> \ No newline at end of file diff --git a/vcard_attachments/localization/eo.inc b/vcard_attachments/localization/eo.inc new file mode 100644 index 0000000..bcdfbb0 --- /dev/null +++ b/vcard_attachments/localization/eo.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Aldoni vCard al adresaro'; +$labels['vcardsavefailed'] = 'vCard ne konserveblas'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/es_419.inc b/vcard_attachments/localization/es_419.inc new file mode 100644 index 0000000..3d56d76 --- /dev/null +++ b/vcard_attachments/localization/es_419.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Agregar vCard a la libreta de direcciones'; +$labels['vcardsavefailed'] = 'No se puede guardar la vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/es_AR.inc b/vcard_attachments/localization/es_AR.inc new file mode 100644 index 0000000..ee2f0c8 --- /dev/null +++ b/vcard_attachments/localization/es_AR.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Agregar vCard a la libreta de direcciones'; +$labels['vcardsavefailed'] = 'Imposible guardar vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/es_ES.inc b/vcard_attachments/localization/es_ES.inc new file mode 100644 index 0000000..28ea13e --- /dev/null +++ b/vcard_attachments/localization/es_ES.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Añadir tarjeta vCard a la libreta de direcciones'; +$labels['vcardsavefailed'] = 'No se pudo guardar la tarjeta vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/et_EE.inc b/vcard_attachments/localization/et_EE.inc new file mode 100644 index 0000000..73d2070 --- /dev/null +++ b/vcard_attachments/localization/et_EE.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Lisa vCard aadressiraamatusse'; +$labels['vcardsavefailed'] = 'vCard salvestamine nurjus'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/eu_ES.inc b/vcard_attachments/localization/eu_ES.inc new file mode 100644 index 0000000..f60ac6e --- /dev/null +++ b/vcard_attachments/localization/eu_ES.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Gehitu vCard helbide-liburura'; +$labels['vcardsavefailed'] = 'Ezin da vCard gorde'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/fa_IR.inc b/vcard_attachments/localization/fa_IR.inc new file mode 100644 index 0000000..2cfbb50 --- /dev/null +++ b/vcard_attachments/localization/fa_IR.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'افزودن vCard به دفترچه نشانی'; +$labels['vcardsavefailed'] = 'ناتوان در ذخیره vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/fi_FI.inc b/vcard_attachments/localization/fi_FI.inc new file mode 100644 index 0000000..58aceb1 --- /dev/null +++ b/vcard_attachments/localization/fi_FI.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Lisää vCard osoitekirjaan'; +$labels['vcardsavefailed'] = 'vCardin tallennus epäonnistui'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/fo_FO.inc b/vcard_attachments/localization/fo_FO.inc new file mode 100644 index 0000000..92a9d76 --- /dev/null +++ b/vcard_attachments/localization/fo_FO.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Legg vCard til búðstaðar savn'; +$labels['vcardsavefailed'] = 'Kann ikki goyma vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/fr_FR.inc b/vcard_attachments/localization/fr_FR.inc new file mode 100644 index 0000000..6bf588d --- /dev/null +++ b/vcard_attachments/localization/fr_FR.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Ajouter la vcard au carnet d\'adresses'; +$labels['vcardsavefailed'] = 'Impossible d\'enregistrer la vcard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/gl_ES.inc b/vcard_attachments/localization/gl_ES.inc new file mode 100644 index 0000000..55792ee --- /dev/null +++ b/vcard_attachments/localization/gl_ES.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Engadir vCard á Axenda de enderezos'; +$labels['vcardsavefailed'] = 'Non foi posíbel gardar a vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/he_IL.inc b/vcard_attachments/localization/he_IL.inc new file mode 100644 index 0000000..4a0a4cd --- /dev/null +++ b/vcard_attachments/localization/he_IL.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'הוספת כרטיס ביקור בפורמט vCard לספר הכתובות'; +$labels['vcardsavefailed'] = 'לא ניתן לשמור את כרטיס הביקור vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/hr_HR.inc b/vcard_attachments/localization/hr_HR.inc new file mode 100644 index 0000000..93fc17c --- /dev/null +++ b/vcard_attachments/localization/hr_HR.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Dodaj vCard u imenik'; +$labels['vcardsavefailed'] = 'Ne mogu pohraniti vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/hu_HU.inc b/vcard_attachments/localization/hu_HU.inc new file mode 100644 index 0000000..e4d609f --- /dev/null +++ b/vcard_attachments/localization/hu_HU.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'vCard hozzáadása a címjegyzékhez'; +$labels['vcardsavefailed'] = 'Sikertelen a vCard mentése'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/hy_AM.inc b/vcard_attachments/localization/hy_AM.inc new file mode 100644 index 0000000..d565882 --- /dev/null +++ b/vcard_attachments/localization/hy_AM.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Ավելացնել vCard-ը հասցեագրքում'; +$labels['vcardsavefailed'] = 'vCard-ի պահպանումը ձախողվեց'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/ia.inc b/vcard_attachments/localization/ia.inc new file mode 100644 index 0000000..7b430f9 --- /dev/null +++ b/vcard_attachments/localization/ia.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Adder le vCard al adressario'; +$labels['vcardsavefailed'] = 'Impossibile salveguardar le vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/id_ID.inc b/vcard_attachments/localization/id_ID.inc new file mode 100644 index 0000000..ea3a31a --- /dev/null +++ b/vcard_attachments/localization/id_ID.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Tambahkan vCard ke buku alamat'; +$labels['vcardsavefailed'] = 'Tidak dapat menyimpan vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/it_IT.inc b/vcard_attachments/localization/it_IT.inc new file mode 100644 index 0000000..fbe498f --- /dev/null +++ b/vcard_attachments/localization/it_IT.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Aggiungi vCard alla Agenda'; +$labels['vcardsavefailed'] = 'Abilita a salvare vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/ja_JP.inc b/vcard_attachments/localization/ja_JP.inc new file mode 100644 index 0000000..4cd738b --- /dev/null +++ b/vcard_attachments/localization/ja_JP.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'vCardをアドレス帳に追加'; +$labels['vcardsavefailed'] = 'vCardを保存できませんでした。'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/km_KH.inc b/vcard_attachments/localization/km_KH.inc new file mode 100644 index 0000000..75e2334 --- /dev/null +++ b/vcard_attachments/localization/km_KH.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'បន្ថែម vCard ទៅ​សៀវភៅ​អាសយដ្ឋាន'; +$labels['vcardsavefailed'] = 'មិន​អាច​រក្សាទុក vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/ko_KR.inc b/vcard_attachments/localization/ko_KR.inc new file mode 100644 index 0000000..fbbb739 --- /dev/null +++ b/vcard_attachments/localization/ko_KR.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = '주소록에 vCard 추가'; +$labels['vcardsavefailed'] = 'vCard를 저장할 수 없음'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/ku.inc b/vcard_attachments/localization/ku.inc new file mode 100644 index 0000000..a2cd976 --- /dev/null +++ b/vcard_attachments/localization/ku.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'vCardê tevî deftera navnîşanan bike'; +$labels['vcardsavefailed'] = 'Tomarkirina vCard betal bike'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/lb_LU.inc b/vcard_attachments/localization/lb_LU.inc new file mode 100644 index 0000000..005650f --- /dev/null +++ b/vcard_attachments/localization/lb_LU.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'vCard an d\'Adressbuch setzen'; +$labels['vcardsavefailed'] = 'vCard kann net gespäichert ginn'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/lt_LT.inc b/vcard_attachments/localization/lt_LT.inc new file mode 100644 index 0000000..468a9da --- /dev/null +++ b/vcard_attachments/localization/lt_LT.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Įtraukti vizitinę kortelę į adresų knygą'; +$labels['vcardsavefailed'] = 'Įrašyti vizitinės kortelės nepavyko'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/lv_LV.inc b/vcard_attachments/localization/lv_LV.inc new file mode 100644 index 0000000..079e4f8 --- /dev/null +++ b/vcard_attachments/localization/lv_LV.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Pievienot vizītkarti adrešu grāmatai'; +$labels['vcardsavefailed'] = 'Nevarēja saglabāt vizītkarti'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/ml_IN.inc b/vcard_attachments/localization/ml_IN.inc new file mode 100644 index 0000000..0b77865 --- /dev/null +++ b/vcard_attachments/localization/ml_IN.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'വിലാസപുസ്തകത്തിലേക്ക് വികാര്‍ഡ് ചേര്‍ക്കുക'; +$labels['vcardsavefailed'] = 'വികാര്‍ഡ് ചേര്‍ക്കാന്‍ പറ്റിയില്ല'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/mr_IN.inc b/vcard_attachments/localization/mr_IN.inc new file mode 100644 index 0000000..8dcf3c4 --- /dev/null +++ b/vcard_attachments/localization/mr_IN.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'व्हीकार्ड पत्ते नोंदवहीत समाविष्ट करा'; +$labels['vcardsavefailed'] = 'व्हीकार्ड जतन करण्यास असमर्थ'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/nb_NO.inc b/vcard_attachments/localization/nb_NO.inc new file mode 100644 index 0000000..5f61392 --- /dev/null +++ b/vcard_attachments/localization/nb_NO.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Legg til vCard i adresseboken'; +$labels['vcardsavefailed'] = 'Ikke i stand til å lagre vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/nl_NL.inc b/vcard_attachments/localization/nl_NL.inc new file mode 100644 index 0000000..748d621 --- /dev/null +++ b/vcard_attachments/localization/nl_NL.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Voeg vCard toe aan adresboek'; +$labels['vcardsavefailed'] = 'Kan vCard niet opslaan'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/nn_NO.inc b/vcard_attachments/localization/nn_NO.inc new file mode 100644 index 0000000..09803d5 --- /dev/null +++ b/vcard_attachments/localization/nn_NO.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Legg til vCard i adresseboka'; +$labels['vcardsavefailed'] = 'Klarte ikkje lagra vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/pl_PL.inc b/vcard_attachments/localization/pl_PL.inc new file mode 100644 index 0000000..8da9436 --- /dev/null +++ b/vcard_attachments/localization/pl_PL.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Dodaj wizytówkę (vCard) do kontaktów'; +$labels['vcardsavefailed'] = 'Nie można zapisać wizytówki (vCard)'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/pt_BR.inc b/vcard_attachments/localization/pt_BR.inc new file mode 100644 index 0000000..3244bba --- /dev/null +++ b/vcard_attachments/localization/pt_BR.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Adicionar o vCard ao Catálogo de Endereços'; +$labels['vcardsavefailed'] = 'Impossível salvar o vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/pt_PT.inc b/vcard_attachments/localization/pt_PT.inc new file mode 100644 index 0000000..9e5e110 --- /dev/null +++ b/vcard_attachments/localization/pt_PT.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Adicionar o vCard ao Livro de Endereços'; +$labels['vcardsavefailed'] = 'Não foi possível guardar o vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/ro_RO.inc b/vcard_attachments/localization/ro_RO.inc new file mode 100644 index 0000000..9aa9b07 --- /dev/null +++ b/vcard_attachments/localization/ro_RO.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Adaugă vCard la agendă'; +$labels['vcardsavefailed'] = 'Nu pot salva vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/ru_RU.inc b/vcard_attachments/localization/ru_RU.inc new file mode 100644 index 0000000..985cda4 --- /dev/null +++ b/vcard_attachments/localization/ru_RU.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Добавить в контакты'; +$labels['vcardsavefailed'] = 'Не удалось сохранить vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/si_LK.inc b/vcard_attachments/localization/si_LK.inc new file mode 100644 index 0000000..87da90e --- /dev/null +++ b/vcard_attachments/localization/si_LK.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'vCard පත ලිපින පොතට එක් කරන්න'; +$labels['vcardsavefailed'] = 'vCard පත සුරැකීම අසාර්ථකයි'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/sk_SK.inc b/vcard_attachments/localization/sk_SK.inc new file mode 100644 index 0000000..ecbaac8 --- /dev/null +++ b/vcard_attachments/localization/sk_SK.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Pridať vizitku vCard do adresára'; +$labels['vcardsavefailed'] = 'Vizitku vCard nemožno uložiť'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/sl_SI.inc b/vcard_attachments/localization/sl_SI.inc new file mode 100644 index 0000000..3f5053d --- /dev/null +++ b/vcard_attachments/localization/sl_SI.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Dodaj vCard med Stike.'; +$labels['vcardsavefailed'] = 'Stika vCard ni bilo mogoče shraniti.'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/sr_CS.inc b/vcard_attachments/localization/sr_CS.inc new file mode 100644 index 0000000..d6cc942 --- /dev/null +++ b/vcard_attachments/localization/sr_CS.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Додај вЦард у Адресар'; +$labels['vcardsavefailed'] = 'немоћан сачувати вчард'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/sv_SE.inc b/vcard_attachments/localization/sv_SE.inc new file mode 100644 index 0000000..2d0d928 --- /dev/null +++ b/vcard_attachments/localization/sv_SE.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Lägg till vCard i adressbok'; +$labels['vcardsavefailed'] = 'Kunde inte spara vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/tr_TR.inc b/vcard_attachments/localization/tr_TR.inc new file mode 100644 index 0000000..f524433 --- /dev/null +++ b/vcard_attachments/localization/tr_TR.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Vcard\'ı adres deferine ekle'; +$labels['vcardsavefailed'] = 'vCard kaydedilemedi'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/uk_UA.inc b/vcard_attachments/localization/uk_UA.inc new file mode 100644 index 0000000..b61ffc5 --- /dev/null +++ b/vcard_attachments/localization/uk_UA.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Додати vCard до контактів'; +$labels['vcardsavefailed'] = 'Не вдалось зберегти vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/vi_VN.inc b/vcard_attachments/localization/vi_VN.inc new file mode 100644 index 0000000..d63ad96 --- /dev/null +++ b/vcard_attachments/localization/vi_VN.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = 'Thêm vCard vào sổ địa chỉ'; +$labels['vcardsavefailed'] = 'Không thể lưu vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/zh_CN.inc b/vcard_attachments/localization/zh_CN.inc new file mode 100644 index 0000000..b619210 --- /dev/null +++ b/vcard_attachments/localization/zh_CN.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = '添加 vCard 至地址簿中'; +$labels['vcardsavefailed'] = '无法保存 vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/localization/zh_TW.inc b/vcard_attachments/localization/zh_TW.inc new file mode 100644 index 0000000..639593b --- /dev/null +++ b/vcard_attachments/localization/zh_TW.inc @@ -0,0 +1,20 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Vcard Attachments plugin | + | Copyright (C) 2012-2013, The Roundcube Dev Team | + | | + | Licensed under the GNU General Public License version 3 or | + | any later version with exceptions for skins & plugins. | + | See the README file for a full license statement. | + | | + +-----------------------------------------------------------------------+ + + For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-vcard_attachments/ +*/ +$labels['addvcardmsg'] = '加入 vCard 到通訊錄'; +$labels['vcardsavefailed'] = '無法儲存 vCard'; +?> \ No newline at end of file diff --git a/vcard_attachments/skins/classic/style.css b/vcard_attachments/skins/classic/style.css new file mode 100644 index 0000000..044d398 --- /dev/null +++ b/vcard_attachments/skins/classic/style.css @@ -0,0 +1,17 @@ + +p.vcardattachment { + margin: 0.5em 1em; + border: 1px solid #999; + border-radius:4px; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + width: auto; +} + +p.vcardattachment a { + display: block; + background: url(vcard_add_contact.png) 4px 0px no-repeat; + padding: 0.7em 0.5em 0.3em 42px; + height: 22px; +} diff --git a/vcard_attachments/skins/classic/vcard.png b/vcard_attachments/skins/classic/vcard.png new file mode 100644 index 0000000..8bf6b1b Binary files /dev/null and b/vcard_attachments/skins/classic/vcard.png differ diff --git a/vcard_attachments/skins/classic/vcard_add_contact.png b/vcard_attachments/skins/classic/vcard_add_contact.png new file mode 100644 index 0000000..478c1f3 Binary files /dev/null and b/vcard_attachments/skins/classic/vcard_add_contact.png differ diff --git a/vcard_attachments/skins/larry/style.css b/vcard_attachments/skins/larry/style.css new file mode 100644 index 0000000..4f9f61b --- /dev/null +++ b/vcard_attachments/skins/larry/style.css @@ -0,0 +1,16 @@ + +p.vcardattachment { + margin: 0.5em 1em; + width: auto; + background: #f9f9f9; + border: 1px solid #d3d3d3; + border-radius: 4px; + box-shadow: 0 0 2px #ccc; + -webkit-box-shadow: 0 0 2px #ccc; +} + +p.vcardattachment a { + display: block; + background: url(vcard_add_contact.png) 6px 2px no-repeat; + padding: 1.2em 0.5em 0.7em 46px; +} diff --git a/vcard_attachments/skins/larry/vcard.png b/vcard_attachments/skins/larry/vcard.png new file mode 100644 index 0000000..8bf6b1b Binary files /dev/null and b/vcard_attachments/skins/larry/vcard.png differ diff --git a/vcard_attachments/skins/larry/vcard_add_contact.png b/vcard_attachments/skins/larry/vcard_add_contact.png new file mode 100644 index 0000000..a8ce459 Binary files /dev/null and b/vcard_attachments/skins/larry/vcard_add_contact.png differ diff --git a/vcard_attachments/tests/VcardAttachments.php b/vcard_attachments/tests/VcardAttachments.php new file mode 100644 index 0000000..4b37cfc --- /dev/null +++ b/vcard_attachments/tests/VcardAttachments.php @@ -0,0 +1,23 @@ +api); + + $this->assertInstanceOf('vcard_attachments', $plugin); + $this->assertInstanceOf('rcube_plugin', $plugin); + } +} + diff --git a/vcard_attachments/vcard_attachments.php b/vcard_attachments/vcard_attachments.php new file mode 100644 index 0000000..74718be --- /dev/null +++ b/vcard_attachments/vcard_attachments.php @@ -0,0 +1,227 @@ +action == 'show' || $rcmail->action == 'preview') { + $this->add_hook('message_load', array($this, 'message_load')); + $this->add_hook('template_object_messagebody', array($this, 'html_output')); + } + else if (!$rcmail->output->framed && (!$rcmail->action || $rcmail->action == 'list')) { + $icon = 'plugins/vcard_attachments/' .$this->local_skin_path(). '/vcard.png'; + $rcmail->output->set_env('vcard_icon', $icon); + $this->include_script('vcardattach.js'); + } + + $this->register_action('plugin.savevcard', array($this, 'save_vcard')); + } + + /** + * Check message bodies and attachments for vcards + */ + function message_load($p) + { + $this->message = $p['object']; + + // handle attachments vcard attachments + foreach ((array)$this->message->attachments as $attachment) { + if ($this->is_vcard($attachment)) { + $this->vcard_parts[] = $attachment->mime_id; + } + } + // the same with message bodies + foreach ((array)$this->message->parts as $part) { + if ($this->is_vcard($part)) { + $this->vcard_parts[] = $part->mime_id; + $this->vcard_bodies[] = $part->mime_id; + } + } + + if ($this->vcard_parts) + $this->add_texts('localization'); + } + + /** + * This callback function adds a box below the message content + * if there is a vcard attachment available + */ + function html_output($p) + { + $attach_script = false; + + foreach ($this->vcard_parts as $part) { + $vcards = rcube_vcard::import($this->message->get_part_body($part, true)); + + // successfully parsed vcards? + if (empty($vcards)) { + continue; + } + + // remove part's body + if (in_array($part, $this->vcard_bodies)) { + $p['content'] = ''; + } + + foreach ($vcards as $idx => $vcard) { + // skip invalid vCards + if (empty($vcard->email) || empty($vcard->email[0])) { + continue; + } + + $display = $vcard->displayname . ' <'.$vcard->email[0].'>'; + + // add box below message body + $p['content'] .= html::p(array('class' => 'vcardattachment'), + html::a(array( + 'href' => "#", + 'onclick' => "return plugin_vcard_save_contact('" . rcube::JQ($part.':'.$idx) . "')", + 'title' => $this->gettext('addvcardmsg'), + ), + html::span(null, rcube::Q($display))) + ); + } + + $attach_script = true; + } + + if ($attach_script) { + $this->include_script('vcardattach.js'); + $this->include_stylesheet($this->local_skin_path() . '/style.css'); + } + + return $p; + } + + /** + * Handler for request action + */ + function save_vcard() + { + $this->add_texts('localization', true); + + $uid = rcube_utils::get_input_value('_uid', rcube_utils::INPUT_POST); + $mbox = rcube_utils::get_input_value('_mbox', rcube_utils::INPUT_POST); + $mime_id = rcube_utils::get_input_value('_part', rcube_utils::INPUT_POST); + + $rcmail = rcmail::get_instance(); + $storage = $rcmail->get_storage(); + $storage->set_folder($mbox); + + if ($uid && $mime_id) { + list($mime_id, $index) = explode(':', $mime_id); + $part = $storage->get_message_part($uid, $mime_id, null, null, null, true); + } + + $error_msg = $this->gettext('vcardsavefailed'); + + if ($part && ($vcards = rcube_vcard::import($part)) + && ($vcard = $vcards[$index]) && $vcard->displayname && $vcard->email + ) { + $CONTACTS = $this->get_address_book(); + $email = $vcard->email[0]; + $contact = $vcard->get_assoc(); + $valid = true; + + // skip entries without an e-mail address or invalid + if (empty($email) || !$CONTACTS->validate($contact, true)) { + $valid = false; + } + else { + // We're using UTF8 internally + $email = rcube_utils::idn_to_utf8($email); + + // compare e-mail address + $existing = $CONTACTS->search('email', $email, 1, false); + // compare display name + if (!$existing->count && $vcard->displayname) { + $existing = $CONTACTS->search('name', $vcard->displayname, 1, false); + } + + if ($existing->count) { + $rcmail->output->command('display_message', $this->gettext('contactexists'), 'warning'); + $valid = false; + } + } + + if ($valid) { + $plugin = $rcmail->plugins->exec_hook('contact_create', array('record' => $contact, 'source' => null)); + $contact = $plugin['record']; + + if (!$plugin['abort'] && $CONTACTS->insert($contact)) + $rcmail->output->command('display_message', $this->gettext('addedsuccessfully'), 'confirmation'); + else + $rcmail->output->command('display_message', $error_msg, 'error'); + } + } + else { + $rcmail->output->command('display_message', $error_msg, 'error'); + } + + $rcmail->output->send(); + } + + /** + * Checks if specified message part is a vcard data + * + * @param rcube_message_part Part object + * + * @return boolean True if part is of type vcard + */ + function is_vcard($part) + { + return ( + // Content-Type: text/vcard; + $part->mimetype == 'text/vcard' || + // Content-Type: text/x-vcard; + $part->mimetype == 'text/x-vcard' || + // Content-Type: text/directory; profile=vCard; + ($part->mimetype == 'text/directory' && ( + ($part->ctype_parameters['profile'] && + strtolower($part->ctype_parameters['profile']) == 'vcard') + // Content-Type: text/directory; (with filename=*.vcf) + || ($part->filename && preg_match('/\.vcf$/i', $part->filename)) + ) + ) + ); + } + + /** + * Getter for default (writable) addressbook + */ + private function get_address_book() + { + if ($this->abook) { + return $this->abook; + } + + $rcmail = rcmail::get_instance(); + $abook = $rcmail->config->get('default_addressbook'); + + // Get configured addressbook + $CONTACTS = $rcmail->get_address_book($abook, true); + + // Get first writeable addressbook if the configured doesn't exist + // This can happen when user deleted the addressbook (e.g. Kolab folder) + if ($abook === null || $abook === '' || !is_object($CONTACTS)) { + $source = reset($rcmail->get_address_sources(true)); + $CONTACTS = $rcmail->get_address_book($source['id'], true); + } + + return $this->abook = $CONTACTS; + } +} diff --git a/vcard_attachments/vcardattach.js b/vcard_attachments/vcardattach.js new file mode 100644 index 0000000..1019448 --- /dev/null +++ b/vcard_attachments/vcardattach.js @@ -0,0 +1,37 @@ +/** + * vcard_attachments plugin script + * + * @licstart The following is the entire license notice for the + * JavaScript code in this file. + * + * Copyright (c) 2012-2014, The Roundcube Dev Team + * + * The JavaScript code in this page is free software: you can redistribute it + * and/or modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * @licend The above is the entire license notice + * for the JavaScript code in this file. + */ + +function plugin_vcard_save_contact(mime_id) +{ + var lock = rcmail.set_busy(true, 'loading'); + rcmail.http_post('plugin.savevcard', { _uid: rcmail.env.uid, _mbox: rcmail.env.mailbox, _part: mime_id }, lock); + + return false; +} + +function plugin_vcard_insertrow(data) +{ + var ctype = data.row.ctype; + + if (ctype == 'text/vcard' || ctype == 'text/x-vcard' || ctype == 'text/directory') { + $('#rcmrow'+data.uid+' > td.attachment').html(''); + } +} + +if (window.rcmail && rcmail.gui_objects.messagelist) { + rcmail.addEventListener('insertrow', function(data, evt) { plugin_vcard_insertrow(data); }); +} -- cgit v1.2.3