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 --- zipdownload/README | 34 +++ zipdownload/composer.json | 30 +++ zipdownload/config.inc.php.dist | 18 ++ zipdownload/localization/ar.inc | 18 ++ zipdownload/localization/ar_SA.inc | 18 ++ zipdownload/localization/ast.inc | 22 ++ zipdownload/localization/az_AZ.inc | 18 ++ zipdownload/localization/be_BE.inc | 22 ++ zipdownload/localization/bg_BG.inc | 22 ++ zipdownload/localization/br.inc | 22 ++ zipdownload/localization/bs_BA.inc | 22 ++ zipdownload/localization/ca_ES.inc | 22 ++ zipdownload/localization/cs_CZ.inc | 22 ++ zipdownload/localization/cy_GB.inc | 22 ++ zipdownload/localization/da_DK.inc | 22 ++ zipdownload/localization/de_CH.inc | 22 ++ zipdownload/localization/de_DE.inc | 22 ++ zipdownload/localization/el_GR.inc | 22 ++ zipdownload/localization/en_CA.inc | 22 ++ zipdownload/localization/en_GB.inc | 22 ++ zipdownload/localization/en_US.inc | 24 +++ zipdownload/localization/eo.inc | 18 ++ zipdownload/localization/es_419.inc | 22 ++ zipdownload/localization/es_AR.inc | 22 ++ zipdownload/localization/es_ES.inc | 22 ++ zipdownload/localization/et_EE.inc | 22 ++ zipdownload/localization/eu_ES.inc | 22 ++ zipdownload/localization/fa_AF.inc | 18 ++ zipdownload/localization/fa_IR.inc | 22 ++ zipdownload/localization/fi_FI.inc | 22 ++ zipdownload/localization/fo_FO.inc | 18 ++ zipdownload/localization/fr_FR.inc | 22 ++ zipdownload/localization/fy_NL.inc | 18 ++ zipdownload/localization/gl_ES.inc | 22 ++ zipdownload/localization/he_IL.inc | 22 ++ zipdownload/localization/hr_HR.inc | 18 ++ zipdownload/localization/hu_HU.inc | 22 ++ zipdownload/localization/hy_AM.inc | 18 ++ zipdownload/localization/ia.inc | 22 ++ zipdownload/localization/id_ID.inc | 18 ++ zipdownload/localization/it_IT.inc | 22 ++ zipdownload/localization/ja_JP.inc | 22 ++ zipdownload/localization/km_KH.inc | 18 ++ zipdownload/localization/ko_KR.inc | 22 ++ zipdownload/localization/ku.inc | 22 ++ zipdownload/localization/ku_IQ.inc | 22 ++ zipdownload/localization/lb_LU.inc | 22 ++ zipdownload/localization/lt_LT.inc | 22 ++ zipdownload/localization/lv_LV.inc | 18 ++ zipdownload/localization/ml_IN.inc | 22 ++ zipdownload/localization/nb_NO.inc | 22 ++ zipdownload/localization/nl_NL.inc | 22 ++ zipdownload/localization/nn_NO.inc | 18 ++ zipdownload/localization/pl_PL.inc | 22 ++ zipdownload/localization/pt_BR.inc | 22 ++ zipdownload/localization/pt_PT.inc | 22 ++ zipdownload/localization/ro_RO.inc | 18 ++ zipdownload/localization/ru_RU.inc | 22 ++ zipdownload/localization/sk_SK.inc | 22 ++ zipdownload/localization/sl_SI.inc | 18 ++ zipdownload/localization/sr_CS.inc | 18 ++ zipdownload/localization/sv_SE.inc | 22 ++ zipdownload/localization/tr_TR.inc | 22 ++ zipdownload/localization/uk_UA.inc | 18 ++ zipdownload/localization/vi_VN.inc | 22 ++ zipdownload/localization/zh_CN.inc | 18 ++ zipdownload/localization/zh_TW.inc | 22 ++ zipdownload/skins/classic/zip.png | Bin 0 -> 546 bytes zipdownload/skins/classic/zipdownload.css | 8 + zipdownload/skins/larry/zipdownload.css | 7 + zipdownload/tests/Zipdownload.php | 23 ++ zipdownload/zipdownload.js | 99 +++++++++ zipdownload/zipdownload.php | 334 ++++++++++++++++++++++++++++++ 73 files changed, 1891 insertions(+) create mode 100644 zipdownload/README create mode 100644 zipdownload/composer.json create mode 100644 zipdownload/config.inc.php.dist create mode 100644 zipdownload/localization/ar.inc create mode 100644 zipdownload/localization/ar_SA.inc create mode 100644 zipdownload/localization/ast.inc create mode 100644 zipdownload/localization/az_AZ.inc create mode 100644 zipdownload/localization/be_BE.inc create mode 100644 zipdownload/localization/bg_BG.inc create mode 100644 zipdownload/localization/br.inc create mode 100644 zipdownload/localization/bs_BA.inc create mode 100644 zipdownload/localization/ca_ES.inc create mode 100644 zipdownload/localization/cs_CZ.inc create mode 100644 zipdownload/localization/cy_GB.inc create mode 100644 zipdownload/localization/da_DK.inc create mode 100644 zipdownload/localization/de_CH.inc create mode 100644 zipdownload/localization/de_DE.inc create mode 100644 zipdownload/localization/el_GR.inc create mode 100644 zipdownload/localization/en_CA.inc create mode 100644 zipdownload/localization/en_GB.inc create mode 100644 zipdownload/localization/en_US.inc create mode 100644 zipdownload/localization/eo.inc create mode 100644 zipdownload/localization/es_419.inc create mode 100644 zipdownload/localization/es_AR.inc create mode 100644 zipdownload/localization/es_ES.inc create mode 100644 zipdownload/localization/et_EE.inc create mode 100644 zipdownload/localization/eu_ES.inc create mode 100644 zipdownload/localization/fa_AF.inc create mode 100644 zipdownload/localization/fa_IR.inc create mode 100644 zipdownload/localization/fi_FI.inc create mode 100644 zipdownload/localization/fo_FO.inc create mode 100644 zipdownload/localization/fr_FR.inc create mode 100644 zipdownload/localization/fy_NL.inc create mode 100644 zipdownload/localization/gl_ES.inc create mode 100644 zipdownload/localization/he_IL.inc create mode 100644 zipdownload/localization/hr_HR.inc create mode 100644 zipdownload/localization/hu_HU.inc create mode 100644 zipdownload/localization/hy_AM.inc create mode 100644 zipdownload/localization/ia.inc create mode 100644 zipdownload/localization/id_ID.inc create mode 100644 zipdownload/localization/it_IT.inc create mode 100644 zipdownload/localization/ja_JP.inc create mode 100644 zipdownload/localization/km_KH.inc create mode 100644 zipdownload/localization/ko_KR.inc create mode 100644 zipdownload/localization/ku.inc create mode 100644 zipdownload/localization/ku_IQ.inc create mode 100644 zipdownload/localization/lb_LU.inc create mode 100644 zipdownload/localization/lt_LT.inc create mode 100644 zipdownload/localization/lv_LV.inc create mode 100644 zipdownload/localization/ml_IN.inc create mode 100644 zipdownload/localization/nb_NO.inc create mode 100644 zipdownload/localization/nl_NL.inc create mode 100644 zipdownload/localization/nn_NO.inc create mode 100644 zipdownload/localization/pl_PL.inc create mode 100644 zipdownload/localization/pt_BR.inc create mode 100644 zipdownload/localization/pt_PT.inc create mode 100644 zipdownload/localization/ro_RO.inc create mode 100644 zipdownload/localization/ru_RU.inc create mode 100644 zipdownload/localization/sk_SK.inc create mode 100644 zipdownload/localization/sl_SI.inc create mode 100644 zipdownload/localization/sr_CS.inc create mode 100644 zipdownload/localization/sv_SE.inc create mode 100644 zipdownload/localization/tr_TR.inc create mode 100644 zipdownload/localization/uk_UA.inc create mode 100644 zipdownload/localization/vi_VN.inc create mode 100644 zipdownload/localization/zh_CN.inc create mode 100644 zipdownload/localization/zh_TW.inc create mode 100644 zipdownload/skins/classic/zip.png create mode 100644 zipdownload/skins/classic/zipdownload.css create mode 100644 zipdownload/skins/larry/zipdownload.css create mode 100644 zipdownload/tests/Zipdownload.php create mode 100644 zipdownload/zipdownload.js create mode 100644 zipdownload/zipdownload.php (limited to 'zipdownload') diff --git a/zipdownload/README b/zipdownload/README new file mode 100644 index 0000000..e343398 --- /dev/null +++ b/zipdownload/README @@ -0,0 +1,34 @@ +Roundcube Webmail ZipDownload +============================= +This plugin adds an option to download all attachments to a message in one zip +file, when a message has multiple attachments. The plugin also allows the +download of a selection of messages in 1 zip file. + +Requirements +============ +* php_zip extension (including ZipArchive class) + Either install it via PECL or for PHP >= 5.2 compile with --enable-zip option + +License +======= +This plugin is released under the GNU General Public License Version 3 +or later (http://www.gnu.org/licenses/gpl.html). + +Even if skins might contain some programming work, they are not considered +as a linked part of the plugin and therefore skins DO NOT fall under the +provisions of the GPL license. See the README file located in the core skins +folder for details on the skin license. + +Install +======= +* Place this plugin folder into plugins directory of Roundcube +* Add zipdownload to $config['plugins'] in your Roundcube config + +NB: When downloading the plugin from GitHub you will need to create a +directory called zipdownload and place the files in there, ignoring the +root directory in the downloaded archive + +Config +====== +The default config file is plugins/zipdownload/config.inc.php.dist +Rename this to plugins/zipdownload/config.inc.php \ No newline at end of file diff --git a/zipdownload/composer.json b/zipdownload/composer.json new file mode 100644 index 0000000..bc171d8 --- /dev/null +++ b/zipdownload/composer.json @@ -0,0 +1,30 @@ +{ + "name": "roundcube/zipdownload", + "type": "roundcube-plugin", + "description": "Adds an option to download all attachments to a message in one zip file, when a message has multiple attachments. Also allows the download of a selection of messages in one zip file. Supports mbox and maildir format.", + "license": "GPLv3+", + "version": "3.0", + "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", + "ext-zip": "*" + } +} diff --git a/zipdownload/config.inc.php.dist b/zipdownload/config.inc.php.dist new file mode 100644 index 0000000..171b4ae --- /dev/null +++ b/zipdownload/config.inc.php.dist @@ -0,0 +1,18 @@ + \ No newline at end of file diff --git a/zipdownload/localization/ar.inc b/zipdownload/localization/ar.inc new file mode 100644 index 0000000..ac85850 --- /dev/null +++ b/zipdownload/localization/ar.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'تنزيل كل المرفقات'; diff --git a/zipdownload/localization/ar_SA.inc b/zipdownload/localization/ar_SA.inc new file mode 100644 index 0000000..e8652a1 --- /dev/null +++ b/zipdownload/localization/ar_SA.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'تحميل جميع المرفقات'; diff --git a/zipdownload/localization/ast.inc b/zipdownload/localization/ast.inc new file mode 100644 index 0000000..74bb0ff --- /dev/null +++ b/zipdownload/localization/ast.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Descargar tolos axuntos'; +$labels['download'] = 'Descargar...'; +$labels['downloadmbox'] = 'Formatu Mbox (.zip)'; +$labels['downloadmaildir'] = 'Formatu Maildir (.zip)'; +$labels['downloademl'] = 'Fonte (.eml)'; diff --git a/zipdownload/localization/az_AZ.inc b/zipdownload/localization/az_AZ.inc new file mode 100644 index 0000000..cc93b8a --- /dev/null +++ b/zipdownload/localization/az_AZ.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Bütün qoşmaları endir'; diff --git a/zipdownload/localization/be_BE.inc b/zipdownload/localization/be_BE.inc new file mode 100644 index 0000000..80d2bdb --- /dev/null +++ b/zipdownload/localization/be_BE.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Спампаваць усе далучэнні'; +$labels['download'] = 'Сцягнуць...'; +$labels['downloadmbox'] = 'Фармат mbox (.zip)'; +$labels['downloadmaildir'] = 'Фармат maildir (.zip)'; +$labels['downloademl'] = 'Выточны файл (.eml)'; diff --git a/zipdownload/localization/bg_BG.inc b/zipdownload/localization/bg_BG.inc new file mode 100644 index 0000000..36bf538 --- /dev/null +++ b/zipdownload/localization/bg_BG.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Изтегляне на всички прикачени файлове'; +$labels['download'] = 'Изтегляне...'; +$labels['downloadmbox'] = 'Mbox формат (.zip)'; +$labels['downloadmaildir'] = 'Maildir формат (.zip)'; +$labels['downloademl'] = 'Outlook формат (.eml)'; diff --git a/zipdownload/localization/br.inc b/zipdownload/localization/br.inc new file mode 100644 index 0000000..0312002 --- /dev/null +++ b/zipdownload/localization/br.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Pellgargañ an holl stagadennoù'; +$labels['download'] = 'Pellgargañ…'; +$labels['downloadmbox'] = 'Mentrezh Mbox (.zip)'; +$labels['downloadmaildir'] = 'Mentrezh Maildir (.zip)'; +$labels['downloademl'] = 'Tarzh (.eml)'; diff --git a/zipdownload/localization/bs_BA.inc b/zipdownload/localization/bs_BA.inc new file mode 100644 index 0000000..d6389f9 --- /dev/null +++ b/zipdownload/localization/bs_BA.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Preuzmi sve priloge'; +$labels['download'] = 'Preuzmi...'; +$labels['downloadmbox'] = 'Mbox format (.zip)'; +$labels['downloadmaildir'] = 'Maildir format (.zip)'; +$labels['downloademl'] = 'Izvorno (.eml)'; diff --git a/zipdownload/localization/ca_ES.inc b/zipdownload/localization/ca_ES.inc new file mode 100644 index 0000000..c8dd680 --- /dev/null +++ b/zipdownload/localization/ca_ES.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Descarrega tots els adjunts'; +$labels['download'] = 'Descarrega...'; +$labels['downloadmbox'] = 'Format mbox (.zip)'; +$labels['downloadmaildir'] = 'Format maildir (.zip)'; +$labels['downloademl'] = 'Codi font (.eml)'; diff --git a/zipdownload/localization/cs_CZ.inc b/zipdownload/localization/cs_CZ.inc new file mode 100644 index 0000000..9c4d45f --- /dev/null +++ b/zipdownload/localization/cs_CZ.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Stáhnout všechny přílohy'; +$labels['download'] = 'Stáhnout...'; +$labels['downloadmbox'] = 'Formát mbox (.zip)'; +$labels['downloadmaildir'] = 'Formát maildir (.zip)'; +$labels['downloademl'] = 'Zdroj (.eml)'; diff --git a/zipdownload/localization/cy_GB.inc b/zipdownload/localization/cy_GB.inc new file mode 100644 index 0000000..d0a60f0 --- /dev/null +++ b/zipdownload/localization/cy_GB.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Llwytho lawr holl atodiadau'; +$labels['download'] = 'Llwytho lawr...'; +$labels['downloadmbox'] = 'Fformat mbox (.zip)'; +$labels['downloadmaildir'] = 'Fformat maildir (.zip)'; +$labels['downloademl'] = 'Ffynhonnell (.eml)'; diff --git a/zipdownload/localization/da_DK.inc b/zipdownload/localization/da_DK.inc new file mode 100644 index 0000000..7cf9814 --- /dev/null +++ b/zipdownload/localization/da_DK.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Download alle som .zip-fil'; +$labels['download'] = 'Download...'; +$labels['downloadmbox'] = 'Mbox format (.zip)'; +$labels['downloadmaildir'] = 'Maildir format (.zip)'; +$labels['downloademl'] = 'Kilde (.eml)'; diff --git a/zipdownload/localization/de_CH.inc b/zipdownload/localization/de_CH.inc new file mode 100644 index 0000000..f1a180e --- /dev/null +++ b/zipdownload/localization/de_CH.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Alle Anhänge herunterladen'; +$labels['download'] = 'Download...'; +$labels['downloadmbox'] = 'Mbox Format (.zip)'; +$labels['downloadmaildir'] = 'Maildir Format (.zip)'; +$labels['downloademl'] = 'Source (.eml)'; diff --git a/zipdownload/localization/de_DE.inc b/zipdownload/localization/de_DE.inc new file mode 100644 index 0000000..d3dadc0 --- /dev/null +++ b/zipdownload/localization/de_DE.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Alle Anhänge herunterladen'; +$labels['download'] = 'Herunterladen...'; +$labels['downloadmbox'] = 'Mbox-Format (.zip)'; +$labels['downloadmaildir'] = 'Maildir-Format (.zip)'; +$labels['downloademl'] = 'Quelltext (.eml)'; diff --git a/zipdownload/localization/el_GR.inc b/zipdownload/localization/el_GR.inc new file mode 100644 index 0000000..db9a5b1 --- /dev/null +++ b/zipdownload/localization/el_GR.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Λήψη όλων των συνημμένων'; +$labels['download'] = 'Λήψη...'; +$labels['downloadmbox'] = 'Μορφή mbox (.zip)'; +$labels['downloadmaildir'] = 'Μορφή maildir (.zip)'; +$labels['downloademl'] = 'Πηγή (.eml)'; diff --git a/zipdownload/localization/en_CA.inc b/zipdownload/localization/en_CA.inc new file mode 100644 index 0000000..c3400d9 --- /dev/null +++ b/zipdownload/localization/en_CA.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Download all attachments'; +$labels['download'] = 'Download...'; +$labels['downloadmbox'] = 'Mbox format (.zip)'; +$labels['downloadmaildir'] = 'Maildir format (.zip)'; +$labels['downloademl'] = 'Source (.eml)'; diff --git a/zipdownload/localization/en_GB.inc b/zipdownload/localization/en_GB.inc new file mode 100644 index 0000000..c3400d9 --- /dev/null +++ b/zipdownload/localization/en_GB.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Download all attachments'; +$labels['download'] = 'Download...'; +$labels['downloadmbox'] = 'Mbox format (.zip)'; +$labels['downloadmaildir'] = 'Maildir format (.zip)'; +$labels['downloademl'] = 'Source (.eml)'; diff --git a/zipdownload/localization/en_US.inc b/zipdownload/localization/en_US.inc new file mode 100644 index 0000000..9114520 --- /dev/null +++ b/zipdownload/localization/en_US.inc @@ -0,0 +1,24 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ + +$labels = array(); +$labels['downloadall'] = 'Download all attachments'; +$labels['download'] = 'Download...'; +$labels['downloadmbox'] = 'Mbox format (.zip)'; +$labels['downloadmaildir'] = 'Maildir format (.zip)'; +$labels['downloademl'] = 'Source (.eml)'; diff --git a/zipdownload/localization/eo.inc b/zipdownload/localization/eo.inc new file mode 100644 index 0000000..7290524 --- /dev/null +++ b/zipdownload/localization/eo.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Elŝuti ĉiujn kunsendaĵojn'; diff --git a/zipdownload/localization/es_419.inc b/zipdownload/localization/es_419.inc new file mode 100644 index 0000000..095926c --- /dev/null +++ b/zipdownload/localization/es_419.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Descargar todos los archivos adjuntos'; +$labels['download'] = 'Descargando...'; +$labels['downloadmbox'] = 'Formato mbox (.zip)'; +$labels['downloadmaildir'] = 'Formato maildir (.zip)'; +$labels['downloademl'] = 'Fuente (.eml)'; diff --git a/zipdownload/localization/es_AR.inc b/zipdownload/localization/es_AR.inc new file mode 100644 index 0000000..5a4d24a --- /dev/null +++ b/zipdownload/localization/es_AR.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Descargar Todo'; +$labels['download'] = 'Descargar...'; +$labels['downloadmbox'] = 'Formato Mbox (.zip)'; +$labels['downloadmaildir'] = 'Formato Maildir (.zip)'; +$labels['downloademl'] = 'Original (.eml)'; diff --git a/zipdownload/localization/es_ES.inc b/zipdownload/localization/es_ES.inc new file mode 100644 index 0000000..1c95b7f --- /dev/null +++ b/zipdownload/localization/es_ES.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Descargar todos los adjuntos'; +$labels['download'] = 'Descargar...'; +$labels['downloadmbox'] = 'Formato mbox (.zip)'; +$labels['downloadmaildir'] = 'Formato maildir (.zip)'; +$labels['downloademl'] = 'Fuente (.eml)'; diff --git a/zipdownload/localization/et_EE.inc b/zipdownload/localization/et_EE.inc new file mode 100644 index 0000000..a28653f --- /dev/null +++ b/zipdownload/localization/et_EE.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Laadi alla kõik manused'; +$labels['download'] = 'lae arvutisse'; +$labels['downloadmbox'] = 'Mbox vorming (.zip)'; +$labels['downloadmaildir'] = 'Maildir vorming (.zip)'; +$labels['downloademl'] = 'Lähtetekst (.eml)'; diff --git a/zipdownload/localization/eu_ES.inc b/zipdownload/localization/eu_ES.inc new file mode 100644 index 0000000..3d923f1 --- /dev/null +++ b/zipdownload/localization/eu_ES.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Deskargatu eranskin guztiak'; +$labels['download'] = 'Deskargatu...'; +$labels['downloadmbox'] = 'Mbox formatua (.zip)'; +$labels['downloadmaildir'] = 'Maildir formatua (.zip)'; +$labels['downloademl'] = 'Iturburua (.eml)'; diff --git a/zipdownload/localization/fa_AF.inc b/zipdownload/localization/fa_AF.inc new file mode 100644 index 0000000..89e898f --- /dev/null +++ b/zipdownload/localization/fa_AF.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'بارگزاری همه ضمیمه ها'; diff --git a/zipdownload/localization/fa_IR.inc b/zipdownload/localization/fa_IR.inc new file mode 100644 index 0000000..4465fd2 --- /dev/null +++ b/zipdownload/localization/fa_IR.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'بارگیری همه پیوست‌ها'; +$labels['download'] = 'بارگیری'; +$labels['downloadmbox'] = 'قالب Mbox (.zip)'; +$labels['downloadmaildir'] = 'قالب Maildir (.zip)'; +$labels['downloademl'] = 'منبع (.eml)'; diff --git a/zipdownload/localization/fi_FI.inc b/zipdownload/localization/fi_FI.inc new file mode 100644 index 0000000..fed2d9c --- /dev/null +++ b/zipdownload/localization/fi_FI.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Lataa kaikki liitteet'; +$labels['download'] = 'Lataa...'; +$labels['downloadmbox'] = 'Mbox-muoto (.zip)'; +$labels['downloadmaildir'] = 'Maildir-muoto (.zip)'; +$labels['downloademl'] = 'Lähde (.eml)'; diff --git a/zipdownload/localization/fo_FO.inc b/zipdownload/localization/fo_FO.inc new file mode 100644 index 0000000..5feb35a --- /dev/null +++ b/zipdownload/localization/fo_FO.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Heinta allar viðheftingar'; diff --git a/zipdownload/localization/fr_FR.inc b/zipdownload/localization/fr_FR.inc new file mode 100644 index 0000000..57c8bf6 --- /dev/null +++ b/zipdownload/localization/fr_FR.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Télécharger toutes les pièces jointes'; +$labels['download'] = 'Télécharger...'; +$labels['downloadmbox'] = 'Format mbox (.zip)'; +$labels['downloadmaildir'] = 'Format maildir (.zip)'; +$labels['downloademl'] = 'Source (.eml)'; diff --git a/zipdownload/localization/fy_NL.inc b/zipdownload/localization/fy_NL.inc new file mode 100644 index 0000000..96d69d0 --- /dev/null +++ b/zipdownload/localization/fy_NL.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloademl'] = 'Boarne (.eml)'; diff --git a/zipdownload/localization/gl_ES.inc b/zipdownload/localization/gl_ES.inc new file mode 100644 index 0000000..04912f4 --- /dev/null +++ b/zipdownload/localization/gl_ES.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Descargar todos os adxuntos'; +$labels['download'] = 'Descargar'; +$labels['downloadmbox'] = 'En formato mbox (.zip)'; +$labels['downloadmaildir'] = 'En formato maildir (.zip)'; +$labels['downloademl'] = 'Código fonte (.eml)'; diff --git a/zipdownload/localization/he_IL.inc b/zipdownload/localization/he_IL.inc new file mode 100644 index 0000000..50521fc --- /dev/null +++ b/zipdownload/localization/he_IL.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'להוריד את כל הצרופות'; +$labels['download'] = 'מוריד כעת...'; +$labels['downloadmbox'] = 'פורמט Mbox ‏(zip.)'; +$labels['downloadmaildir'] = 'פורמט Maildir ‏(zip.)'; +$labels['downloademl'] = 'מקור (eml.)'; diff --git a/zipdownload/localization/hr_HR.inc b/zipdownload/localization/hr_HR.inc new file mode 100644 index 0000000..6b21f01 --- /dev/null +++ b/zipdownload/localization/hr_HR.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Preuzmi sve privitke'; diff --git a/zipdownload/localization/hu_HU.inc b/zipdownload/localization/hu_HU.inc new file mode 100644 index 0000000..557d14c --- /dev/null +++ b/zipdownload/localization/hu_HU.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Összes csatolmány letöltése'; +$labels['download'] = 'Letöltés...'; +$labels['downloadmbox'] = 'Mbox formátum (.zip)'; +$labels['downloadmaildir'] = 'Maildir formátum (.zip)'; +$labels['downloademl'] = 'Forrás (.eml)'; diff --git a/zipdownload/localization/hy_AM.inc b/zipdownload/localization/hy_AM.inc new file mode 100644 index 0000000..0f24512 --- /dev/null +++ b/zipdownload/localization/hy_AM.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Ներբեռնել բոլո կցված նիշքերը'; diff --git a/zipdownload/localization/ia.inc b/zipdownload/localization/ia.inc new file mode 100644 index 0000000..c35619a --- /dev/null +++ b/zipdownload/localization/ia.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Discargar tote le attachamentos'; +$labels['download'] = 'Discargar...'; +$labels['downloadmbox'] = 'Formato Mbox (.zip)'; +$labels['downloadmaildir'] = 'Formato Maildir (.zip)'; +$labels['downloademl'] = 'Fonte (.eml)'; diff --git a/zipdownload/localization/id_ID.inc b/zipdownload/localization/id_ID.inc new file mode 100644 index 0000000..ca1abc8 --- /dev/null +++ b/zipdownload/localization/id_ID.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Unduh semua lampiran'; diff --git a/zipdownload/localization/it_IT.inc b/zipdownload/localization/it_IT.inc new file mode 100644 index 0000000..96cd889 --- /dev/null +++ b/zipdownload/localization/it_IT.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Scarica tutti gli allegati'; +$labels['download'] = 'Scaricare...'; +$labels['downloadmbox'] = 'Formato mbox (.zip)'; +$labels['downloadmaildir'] = 'Formato maildir (.zip)'; +$labels['downloademl'] = 'Sorgente (.eml)'; diff --git a/zipdownload/localization/ja_JP.inc b/zipdownload/localization/ja_JP.inc new file mode 100644 index 0000000..71a8143 --- /dev/null +++ b/zipdownload/localization/ja_JP.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'すべての添付ファイルをダウンロード'; +$labels['download'] = 'ダウンロード...'; +$labels['downloadmbox'] = 'mbox形式(.zip)'; +$labels['downloadmaildir'] = 'Maildir形式(.zip)'; +$labels['downloademl'] = 'ソース(.eml)'; diff --git a/zipdownload/localization/km_KH.inc b/zipdownload/localization/km_KH.inc new file mode 100644 index 0000000..9bf5721 --- /dev/null +++ b/zipdownload/localization/km_KH.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'ទាញ​យក​ឯកសារ​ភ្ជាប់​ទាំងអស់'; diff --git a/zipdownload/localization/ko_KR.inc b/zipdownload/localization/ko_KR.inc new file mode 100644 index 0000000..2cc610a --- /dev/null +++ b/zipdownload/localization/ko_KR.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = '모든 첨부파일을 다운로드'; +$labels['download'] = '다운로드...'; +$labels['downloadmbox'] = 'Mbox 형식(.zip)'; +$labels['downloadmaildir'] = 'Maildir 형식(.zip)'; +$labels['downloademl'] = '소스(.eml)'; diff --git a/zipdownload/localization/ku.inc b/zipdownload/localization/ku.inc new file mode 100644 index 0000000..af8165d --- /dev/null +++ b/zipdownload/localization/ku.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Hemû pêvekan daxîne'; +$labels['download'] = 'Daxîne...'; +$labels['downloadmbox'] = 'Mbox format (.zip)'; +$labels['downloadmaildir'] = 'Maildir format (.zip)'; +$labels['downloademl'] = 'Çavkanî (.eml)'; diff --git a/zipdownload/localization/ku_IQ.inc b/zipdownload/localization/ku_IQ.inc new file mode 100644 index 0000000..0374e01 --- /dev/null +++ b/zipdownload/localization/ku_IQ.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'داگرتنی هەموو هاوپێچەکان'; +$labels['download'] = 'داگرتن...'; +$labels['downloadmbox'] = 'Mbox format (.zip)'; +$labels['downloadmaildir'] = 'Maildir format (.zip)'; +$labels['downloademl'] = 'Source (.eml)'; diff --git a/zipdownload/localization/lb_LU.inc b/zipdownload/localization/lb_LU.inc new file mode 100644 index 0000000..70e6059 --- /dev/null +++ b/zipdownload/localization/lb_LU.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'All d\'Unhäng eroflueden'; +$labels['download'] = 'Eroflueden...'; +$labels['downloadmbox'] = 'Mbox-Format (.zip)'; +$labels['downloadmaildir'] = 'Maildir-Format (.zip)'; +$labels['downloademl'] = 'Source (.eml)'; diff --git a/zipdownload/localization/lt_LT.inc b/zipdownload/localization/lt_LT.inc new file mode 100644 index 0000000..85ecb9b --- /dev/null +++ b/zipdownload/localization/lt_LT.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Atsisiųsti visus priedus'; +$labels['download'] = 'Parsisiųsti...'; +$labels['downloadmbox'] = 'Mbox formatas (.zip)'; +$labels['downloadmaildir'] = 'Maildir formatas (.zip)'; +$labels['downloademl'] = 'Kodas (.eml)'; diff --git a/zipdownload/localization/lv_LV.inc b/zipdownload/localization/lv_LV.inc new file mode 100644 index 0000000..9dcf4cd --- /dev/null +++ b/zipdownload/localization/lv_LV.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Lejupielādēt visus pielikumus'; diff --git a/zipdownload/localization/ml_IN.inc b/zipdownload/localization/ml_IN.inc new file mode 100644 index 0000000..3dcaffa --- /dev/null +++ b/zipdownload/localization/ml_IN.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'എല്ലാ അറ്റാച്ച്മെന്റുകളും ഡൗൺലോഡ് ചെയ്യുക'; +$labels['download'] = 'ഡൗൺലോഡ്...'; +$labels['downloadmbox'] = 'എംബോക്സ് രീതി (.zip)'; +$labels['downloadmaildir'] = 'മെയിൽഡിർ രീതി (.zip)'; +$labels['downloademl'] = 'സ്രോതസ്സ് (.eml)'; diff --git a/zipdownload/localization/nb_NO.inc b/zipdownload/localization/nb_NO.inc new file mode 100644 index 0000000..196a723 --- /dev/null +++ b/zipdownload/localization/nb_NO.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Last ned alle vedlegg'; +$labels['download'] = 'Nedlaste...'; +$labels['downloadmbox'] = 'Mbox format (.zip)'; +$labels['downloadmaildir'] = 'Maildir format (.zip)'; +$labels['downloademl'] = 'Kildekode (.eml)'; diff --git a/zipdownload/localization/nl_NL.inc b/zipdownload/localization/nl_NL.inc new file mode 100644 index 0000000..ef82769 --- /dev/null +++ b/zipdownload/localization/nl_NL.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Alle bijlagen downloaden'; +$labels['download'] = 'Download...'; +$labels['downloadmbox'] = 'Mbox-formaat (.zip)'; +$labels['downloadmaildir'] = 'Maildir-formaat (.zip)'; +$labels['downloademl'] = 'Bron (.eml)'; diff --git a/zipdownload/localization/nn_NO.inc b/zipdownload/localization/nn_NO.inc new file mode 100644 index 0000000..2440a2e --- /dev/null +++ b/zipdownload/localization/nn_NO.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Last ned alle vedlegg'; diff --git a/zipdownload/localization/pl_PL.inc b/zipdownload/localization/pl_PL.inc new file mode 100644 index 0000000..eefbd74 --- /dev/null +++ b/zipdownload/localization/pl_PL.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Pobierz wszystkie jako ZIP'; +$labels['download'] = 'Pobierz...'; +$labels['downloadmbox'] = 'Format mbox (.zip)'; +$labels['downloadmaildir'] = 'Format maildir (.zip)'; +$labels['downloademl'] = 'Źródło wiadomości (.eml)'; diff --git a/zipdownload/localization/pt_BR.inc b/zipdownload/localization/pt_BR.inc new file mode 100644 index 0000000..daac3ae --- /dev/null +++ b/zipdownload/localization/pt_BR.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Baixar todos os anexos'; +$labels['download'] = 'Baixar...'; +$labels['downloadmbox'] = 'Formato mbox (.zip)'; +$labels['downloadmaildir'] = 'Formato maildir (.zip)'; +$labels['downloademl'] = 'Original (.eml)'; diff --git a/zipdownload/localization/pt_PT.inc b/zipdownload/localization/pt_PT.inc new file mode 100644 index 0000000..4574bc4 --- /dev/null +++ b/zipdownload/localization/pt_PT.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Guardar todos os anexos'; +$labels['download'] = 'Descarregar...'; +$labels['downloadmbox'] = 'Formato Mbox (.zip)'; +$labels['downloadmaildir'] = 'Formato Maildir (.zip)'; +$labels['downloademl'] = 'Original (.eml)'; diff --git a/zipdownload/localization/ro_RO.inc b/zipdownload/localization/ro_RO.inc new file mode 100644 index 0000000..5c872d0 --- /dev/null +++ b/zipdownload/localization/ro_RO.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Descarcă toate atașamentele'; diff --git a/zipdownload/localization/ru_RU.inc b/zipdownload/localization/ru_RU.inc new file mode 100644 index 0000000..93725e3 --- /dev/null +++ b/zipdownload/localization/ru_RU.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Загрузить все вложения'; +$labels['download'] = 'Загрузка...'; +$labels['downloadmbox'] = 'Формат Mbox (.zip)'; +$labels['downloadmaildir'] = 'Формат Maildir (.zip)'; +$labels['downloademl'] = 'Исходный формат (.eml)'; diff --git a/zipdownload/localization/sk_SK.inc b/zipdownload/localization/sk_SK.inc new file mode 100644 index 0000000..a7ab21c --- /dev/null +++ b/zipdownload/localization/sk_SK.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Stiahnuť všetky prílohy'; +$labels['download'] = 'Stiahnuť...'; +$labels['downloadmbox'] = 'Formát Mbox (.zip)'; +$labels['downloadmaildir'] = 'Formát Maildir (.zip)'; +$labels['downloademl'] = 'Zdroj (.eml)'; diff --git a/zipdownload/localization/sl_SI.inc b/zipdownload/localization/sl_SI.inc new file mode 100644 index 0000000..4fa4ca3 --- /dev/null +++ b/zipdownload/localization/sl_SI.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Prenesi vse priponke'; diff --git a/zipdownload/localization/sr_CS.inc b/zipdownload/localization/sr_CS.inc new file mode 100644 index 0000000..0fc8edd --- /dev/null +++ b/zipdownload/localization/sr_CS.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Преузми све прилоге'; diff --git a/zipdownload/localization/sv_SE.inc b/zipdownload/localization/sv_SE.inc new file mode 100644 index 0000000..4a3d5de --- /dev/null +++ b/zipdownload/localization/sv_SE.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Ladda ner alla bifogade filer'; +$labels['download'] = 'Hämta...'; +$labels['downloadmbox'] = 'Format Mbox (.zip)'; +$labels['downloadmaildir'] = 'Format Maildir (.zip)'; +$labels['downloademl'] = 'Källkod (.eml)'; diff --git a/zipdownload/localization/tr_TR.inc b/zipdownload/localization/tr_TR.inc new file mode 100644 index 0000000..21a44eb --- /dev/null +++ b/zipdownload/localization/tr_TR.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Tüm ek dosyaları indir'; +$labels['download'] = 'İndir...'; +$labels['downloadmbox'] = 'Mbox biçimi(.zip)'; +$labels['downloadmaildir'] = 'Maildir biçimi (.zip)'; +$labels['downloademl'] = 'Kaynak (.eml)'; diff --git a/zipdownload/localization/uk_UA.inc b/zipdownload/localization/uk_UA.inc new file mode 100644 index 0000000..e7f6646 --- /dev/null +++ b/zipdownload/localization/uk_UA.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Завантажити всі вкладення'; diff --git a/zipdownload/localization/vi_VN.inc b/zipdownload/localization/vi_VN.inc new file mode 100644 index 0000000..d631466 --- /dev/null +++ b/zipdownload/localization/vi_VN.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = 'Tải tất cả tệp tin đính kèm'; +$labels['download'] = 'Tải xuống...'; +$labels['downloadmbox'] = 'Định dạng mbox (.zip)'; +$labels['downloadmaildir'] = 'Định dạng Maildir (.zip)'; +$labels['downloademl'] = 'Mã nguồn (.eml)'; diff --git a/zipdownload/localization/zh_CN.inc b/zipdownload/localization/zh_CN.inc new file mode 100644 index 0000000..5e0fd4e --- /dev/null +++ b/zipdownload/localization/zh_CN.inc @@ -0,0 +1,18 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = '下载全部附件'; diff --git a/zipdownload/localization/zh_TW.inc b/zipdownload/localization/zh_TW.inc new file mode 100644 index 0000000..4fb9efe --- /dev/null +++ b/zipdownload/localization/zh_TW.inc @@ -0,0 +1,22 @@ +.inc | + | | + | Localization file of the Roundcube Webmail Zipdownload plugin | + | Copyright (C) 2012-2014, 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-zipdownload/ +*/ +$labels['downloadall'] = '下載所有附件'; +$labels['download'] = '下載...'; +$labels['downloadmbox'] = 'Mbox 格式 (.zip)'; +$labels['downloadmaildir'] = 'Maildir 格式 (.zip)'; +$labels['downloademl'] = '原始格式 (.eml)'; diff --git a/zipdownload/skins/classic/zip.png b/zipdownload/skins/classic/zip.png new file mode 100644 index 0000000..c64fde8 Binary files /dev/null and b/zipdownload/skins/classic/zip.png differ diff --git a/zipdownload/skins/classic/zipdownload.css b/zipdownload/skins/classic/zipdownload.css new file mode 100644 index 0000000..2608fdf --- /dev/null +++ b/zipdownload/skins/classic/zipdownload.css @@ -0,0 +1,8 @@ +/* Roundcube Zipdownload plugin styles for classic skin */ + +a.zipdownload { + display: inline-block; + padding: 0 0 2px 20px; + background: url(zip.png) 0 1px no-repeat; + font-style: italic; +} diff --git a/zipdownload/skins/larry/zipdownload.css b/zipdownload/skins/larry/zipdownload.css new file mode 100644 index 0000000..bb92631 --- /dev/null +++ b/zipdownload/skins/larry/zipdownload.css @@ -0,0 +1,7 @@ +/* Roundcube Zipdownload plugin styles for skin "Larry" */ + +a.zipdownload { + display: inline-block; + margin-top: .5em; + padding: 3px 5px 4px 5px; +} diff --git a/zipdownload/tests/Zipdownload.php b/zipdownload/tests/Zipdownload.php new file mode 100644 index 0000000..3882dea --- /dev/null +++ b/zipdownload/tests/Zipdownload.php @@ -0,0 +1,23 @@ +api); + + $this->assertInstanceOf('zipdownload', $plugin); + $this->assertInstanceOf('rcube_plugin', $plugin); + } +} + diff --git a/zipdownload/zipdownload.js b/zipdownload/zipdownload.js new file mode 100644 index 0000000..af9136c --- /dev/null +++ b/zipdownload/zipdownload.js @@ -0,0 +1,99 @@ +/** + * ZipDownload plugin script + * + * @licstart The following is the entire license notice for the + * JavaScript code in this file. + * + * Copyright (c) 2013-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. + */ + +window.rcmail && rcmail.addEventListener('init', function(evt) { + // register additional actions + rcmail.register_command('download-eml', function() { rcmail_zipdownload('eml'); }); + rcmail.register_command('download-mbox', function() { rcmail_zipdownload('mbox'); }); + rcmail.register_command('download-maildir', function() { rcmail_zipdownload('maildir'); }); + + // commands status + rcmail.message_list && rcmail.message_list.addEventListener('select', function(list) { + var selected = list.get_selection().length; + + rcmail.enable_command('download', selected > 0); + rcmail.enable_command('download-eml', selected == 1); + rcmail.enable_command('download-mbox', 'download-maildir', selected > 1); + }); + + // hook before default download action + rcmail.addEventListener('beforedownload', rcmail_zipdownload_menu); + + // find and modify default download link/button + $.each(rcmail.buttons['download'] || [], function() { + var link = $('#' + this.id), + span = $('span', link); + + if (!span.length) { + span = $(''); + link.html('').append(span); + } + + span.text(rcmail.gettext('zipdownload.download')); + rcmail.env.download_link = link; + }); + }); + + +function rcmail_zipdownload(mode) +{ + // default .eml download of single message + if (mode == 'eml') { + var uid = rcmail.get_single_uid(); + rcmail.goto_url('viewsource', {_uid: uid, _mbox: rcmail.get_message_mailbox(uid), _save: 1}); + return; + } + + // multi-message download, use hidden form to POST selection + if (rcmail.message_list && rcmail.message_list.get_selection().length > 1) { + var inputs = [], form = $('#zipdownload-form'), + post = rcmail.selection_post_data(); + + post._mode = mode; + post._token = rcmail.env.request_token; + + $.each(post, function(k, v) { + if (typeof v == 'object' && v.length > 1) { + for (var j=0; j < v.length; j++) + inputs.push($('').attr({type: 'hidden', name: k+'[]', value: v[j]})); + } + else { + inputs.push($('').attr({type: 'hidden', name: k, value: v})); + } + }); + + if (!form.length) + form = $('
').attr({ + style: 'display: none', + method: 'POST', + action: '?_task=mail&_action=plugin.zipdownload.messages' + }) + .appendTo('body'); + + form.html('').append(inputs).submit(); + } +} + +// display download options menu +function rcmail_zipdownload_menu(e) +{ + // show (sub)menu for download selection + rcmail.command('menu-open', 'zipdownload-menu', e && e.target ? e.target : rcmail.env.download_link, e); + + // abort default download action + return false; +} diff --git a/zipdownload/zipdownload.php b/zipdownload/zipdownload.php new file mode 100644 index 0000000..2e103ce --- /dev/null +++ b/zipdownload/zipdownload.php @@ -0,0 +1,334 @@ + 520, + 'file' => __FILE__, + 'line' => __LINE__, + 'message' => "php_zip extension is required for the zipdownload plugin"), true, false); + return; + } + + $rcmail = rcmail::get_instance(); + + $this->load_config(); + $this->charset = $rcmail->config->get('zipdownload_charset', RCUBE_CHARSET); + $this->add_texts('localization'); + + if ($rcmail->config->get('zipdownload_attachments', 1) > -1 && ($rcmail->action == 'show' || $rcmail->action == 'preview')) { + $this->add_hook('template_object_messageattachments', array($this, 'attachment_ziplink')); + } + + $this->register_action('plugin.zipdownload.attachments', array($this, 'download_attachments')); + $this->register_action('plugin.zipdownload.messages', array($this, 'download_messages')); + + if (!$rcmail->action && $rcmail->config->get('zipdownload_selection')) { + $this->download_menu(); + } + } + + /** + * Place a link/button after attachments listing to trigger download + */ + public function attachment_ziplink($p) + { + $rcmail = rcmail::get_instance(); + + // only show the link if there is more than the configured number of attachments + if (substr_count($p['content'], ' $rcmail->config->get('zipdownload_attachments', 1)) { + $href = $rcmail->url(array( + '_action' => 'plugin.zipdownload.attachments', + '_mbox' => $rcmail->output->env['mailbox'], + '_uid' => $rcmail->output->env['uid'], + )); + + $link = html::a(array('href' => $href, 'class' => 'button zipdownload'), + rcube::Q($this->gettext('downloadall')) + ); + + // append link to attachments list, slightly different in some skins + switch (rcmail::get_instance()->config->get('skin')) { + case 'classic': + $p['content'] = str_replace('', html::tag('li', array('class' => 'zipdownload'), $link) . '', $p['content']); + break; + + default: + $p['content'] .= $link; + break; + } + + $this->include_stylesheet($this->local_skin_path() . '/zipdownload.css'); + } + + return $p; + } + + /** + * Adds download options menu to the page + */ + public function download_menu() + { + $this->include_script('zipdownload.js'); + $this->add_label('download'); + + $rcmail = rcmail::get_instance(); + $menu = array(); + $ul_attr = array('role' => 'menu', 'aria-labelledby' => 'aria-label-zipdownloadmenu'); + if ($rcmail->config->get('skin') != 'classic') { + $ul_attr['class'] = 'toolbarmenu'; + } + + foreach (array('eml', 'mbox', 'maildir') as $type) { + $menu[] = html::tag('li', null, $rcmail->output->button(array( + 'command' => "download-$type", + 'label' => "zipdownload.download$type", + 'classact' => 'active', + ))); + } + + $rcmail->output->add_footer(html::div(array('id' => 'zipdownload-menu', 'class' => 'popupmenu', 'aria-hidden' => 'true'), + html::tag('h2', array('class' => 'voice', 'id' => 'aria-label-zipdownloadmenu'), "Message Download Options Menu") . + html::tag('ul', $ul_attr, implode('', $menu)))); + } + + /** + * Handler for attachment download action + */ + public function download_attachments() + { + $rcmail = rcmail::get_instance(); + $imap = $rcmail->get_storage(); + $temp_dir = $rcmail->config->get('temp_dir'); + $tmpfname = tempnam($temp_dir, 'zipdownload'); + $tempfiles = array($tmpfname); + $message = new rcube_message(rcube_utils::get_input_value('_uid', rcube_utils::INPUT_GET)); + + // open zip file + $zip = new ZipArchive(); + $zip->open($tmpfname, ZIPARCHIVE::OVERWRITE); + + foreach ($message->attachments as $part) { + $pid = $part->mime_id; + $part = $message->mime_parts[$pid]; + $filename = $part->filename; + + if ($filename === null || $filename === '') { + $ext = (array) rcube_mime::get_mime_extensions($part->mimetype); + $ext = array_shift($ext); + $filename = $rcmail->gettext('messagepart') . ' ' . $pid; + if ($ext) { + $filename .= '.' . $ext; + } + } + + $disp_name = $this->_convert_filename($filename); + $tmpfn = tempnam($temp_dir, 'zipattach'); + $tmpfp = fopen($tmpfn, 'w'); + $tempfiles[] = $tmpfn; + + $message->get_part_body($part->mime_id, false, 0, $tmpfp); + $zip->addFile($tmpfn, $disp_name); + fclose($tmpfp); + } + + $zip->close(); + + $filename = ($message->subject ? $message->subject : 'roundcube') . '.zip'; + $this->_deliver_zipfile($tmpfname, $filename); + + // delete temporary files from disk + foreach ($tempfiles as $tmpfn) { + unlink($tmpfn); + } + + exit; + } + + /** + * Handler for message download action + */ + public function download_messages() + { + $rcmail = rcmail::get_instance(); + + if ($rcmail->config->get('zipdownload_selection') && !empty($_POST['_uid'])) { + $messageset = rcmail::get_uids(); + if (sizeof($messageset)) { + $this->_download_messages($messageset); + } + } + } + + /** + * Helper method to packs all the given messages into a zip archive + * + * @param array List of message UIDs to download + */ + private function _download_messages($messageset) + { + $rcmail = rcmail::get_instance(); + $imap = $rcmail->get_storage(); + $mode = rcube_utils::get_input_value('_mode', rcube_utils::INPUT_POST); + $temp_dir = $rcmail->config->get('temp_dir'); + $tmpfname = tempnam($temp_dir, 'zipdownload'); + $tempfiles = array($tmpfname); + $folders = count($messageset) > 1; + + // @TODO: file size limit + + // open zip file + $zip = new ZipArchive(); + $zip->open($tmpfname, ZIPARCHIVE::OVERWRITE); + + if ($mode == 'mbox') { + $tmpfp = fopen($tmpfname . '.mbox', 'w'); + } + + foreach ($messageset as $mbox => $uids) { + $imap->set_folder($mbox); + $path = $folders ? str_replace($imap->get_hierarchy_delimiter(), '/', $mbox) . '/' : ''; + + foreach ($uids as $uid) { + $headers = $imap->get_message_headers($uid); + + if ($mode == 'mbox') { + $from = rcube_mime::decode_address_list($headers->from, null, true, $headers->charset, true); + $from = array_shift($from); + + // Mbox format header + // @FIXME: \r\n or \n + // @FIXME: date format + $header = sprintf("From %s %s\r\n", + // replace spaces with hyphens + $from ? preg_replace('/\s/', '-', $from) : 'MAILER-DAEMON', + // internaldate + $headers->internaldate + ); + + fwrite($tmpfp, $header); + + // Use stream filter to quote "From " in the message body + stream_filter_register('mbox_filter', 'zipdownload_mbox_filter'); + $filter = stream_filter_append($tmpfp, 'mbox_filter'); + $imap->get_raw_body($uid, $tmpfp); + stream_filter_remove($filter); + fwrite($tmpfp, "\r\n"); + } + else { // maildir + $subject = rcube_mime::decode_mime_string((string)$headers->subject); + $subject = $this->_convert_filename($subject); + $subject = substr($subject, 0, 16); + + $disp_name = ($subject ? $subject : 'message_rfc822') . ".eml"; + $disp_name = $path . $uid . "_" . $disp_name; + + $tmpfn = tempnam($temp_dir, 'zipmessage'); + $tmpfp = fopen($tmpfn, 'w'); + $imap->get_raw_body($uid, $tmpfp); + $tempfiles[] = $tmpfn; + fclose($tmpfp); + $zip->addFile($tmpfn, $disp_name); + } + } + } + + $filename = $folders ? 'messages' : $imap->get_folder(); + + if ($mode == 'mbox') { + $tempfiles[] = $tmpfname . '.mbox'; + fclose($tmpfp); + $zip->addFile($tmpfname . '.mbox', $filename . '.mbox'); + } + + $zip->close(); + + $this->_deliver_zipfile($tmpfname, $filename . '.zip'); + + // delete temporary files from disk + foreach ($tempfiles as $tmpfn) { + unlink($tmpfn); + } + + exit; + } + + /** + * Helper method to send the zip archive to the browser + */ + private function _deliver_zipfile($tmpfname, $filename) + { + $browser = new rcube_browser; + $rcmail = rcmail::get_instance(); + + $rcmail->output->nocacheing_headers(); + + if ($browser->ie) + $filename = rawurlencode($filename); + else + $filename = addcslashes($filename, '"'); + + // send download headers + header("Content-Type: application/octet-stream"); + if ($browser->ie) { + header("Content-Type: application/force-download"); + } + + // don't kill the connection if download takes more than 30 sec. + @set_time_limit(0); + header("Content-Disposition: attachment; filename=\"". $filename ."\""); + header("Content-length: " . filesize($tmpfname)); + readfile($tmpfname); + } + + /** + * Helper function to convert filenames to the configured charset + */ + private function _convert_filename($str) + { + $str = rcube_charset::convert($str, RCUBE_CHARSET, $this->charset); + + return strtr($str, array(':' => '', '/' => '-')); + } +} + +class zipdownload_mbox_filter extends php_user_filter +{ + function filter($in, $out, &$consumed, $closing) + { + while ($bucket = stream_bucket_make_writeable($in)) { + // messages are read line by line + if (preg_match('/^>*From /', $bucket->data)) { + $bucket->data = '>' . $bucket->data; + $bucket->datalen += 1; + } + + $consumed += $bucket->datalen; + stream_bucket_append($out, $bucket); + } + + return PSFS_PASS_ON; + } +} -- cgit v1.2.3