diff options
Diffstat (limited to 'plugins/newmail_notifier')
65 files changed, 264 insertions, 152 deletions
diff --git a/plugins/newmail_notifier/composer.json b/plugins/newmail_notifier/composer.json new file mode 100644 index 000000000..2ca5db709 --- /dev/null +++ b/plugins/newmail_notifier/composer.json @@ -0,0 +1,24 @@ +{ + "name": "roundcube/newmail_notifier", + "type": "roundcube-plugin", + "description": "Supports three methods of notification: 1. Basic - focus browser window and change favicon 2. Sound - play wav file 3. Desktop - display desktop notification (using webkitNotifications feature, supported by Chrome and Firefox with 'HTML5 Notifications' plugin).", + "license": "GNU GPLv3+", + "version": "0.7", + "authors": [ + { + "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/plugins/newmail_notifier/config.inc.php.dist b/plugins/newmail_notifier/config.inc.php.dist index cdb563c40..1a7c0d74f 100644 --- a/plugins/newmail_notifier/config.inc.php.dist +++ b/plugins/newmail_notifier/config.inc.php.dist @@ -9,4 +9,7 @@ $config['newmail_notifier_sound'] = false; // Enables desktop notification $config['newmail_notifier_desktop'] = false; +// Desktop notification close timeout in seconds +$config['newmail_notifier_desktop_timeout'] = 10; + ?> diff --git a/plugins/newmail_notifier/localization/ar_SA.inc b/plugins/newmail_notifier/localization/ar_SA.inc index 9ed56632b..7ea3d2e52 100644 --- a/plugins/newmail_notifier/localization/ar_SA.inc +++ b/plugins/newmail_notifier/localization/ar_SA.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'إظهار رسالة تنبيه فى المتصفح عند وصول رسالة جديدة'; $labels['desktop'] = 'إظهار رسالة تنبيه على سطح المكتب عند وصول رسالة جديدة'; $labels['sound'] = 'التنبيه الصوتى عند وصول رسالة جديدة'; @@ -25,5 +24,4 @@ $labels['body'] = 'لديك رسالة جديدة'; $labels['testbody'] = 'هذه رسالة تجربية'; $labels['desktopdisabled'] = 'رسائل التنبيه على سطح المكتب غير مفعلة فى متصفح الانترنت الخاص بك'; $labels['desktopunsupported'] = 'المتصفح الخاص بك لا يدعم رسائل سطح المكتب'; - ?> diff --git a/plugins/newmail_notifier/localization/ast.inc b/plugins/newmail_notifier/localization/ast.inc new file mode 100644 index 000000000..3c5c192e0 --- /dev/null +++ b/plugins/newmail_notifier/localization/ast.inc @@ -0,0 +1,28 @@ +<?php + +/* + +-----------------------------------------------------------------------+ + | plugins/newmail_notifier/localization/<lang>.inc | + | | + | Localization file of the Roundcube Webmail New Mail Notifier 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-newmail_notifier/ +*/ +$labels['basic'] = 'Amosar notificaciones del navegador cuando aporte un mensaxe nuevu'; +$labels['desktop'] = 'Amosar notificaciones del escritoriu cuando aporte un mensaxe nuevu'; +$labels['sound'] = 'Reproducir soníu cuando aporte un mensaxe nuevu'; +$labels['test'] = 'Prueba'; +$labels['title'] = '¡Mensaxe nuevu!'; +$labels['body'] = 'Recibisti un mensaxe nuevu'; +$labels['testbody'] = 'Esta ye una notificación de pruebes'; +$labels['desktopdisabled'] = 'Les notificaciones d\'escritoriu tán deshabilitaes nel to navegador.'; +$labels['desktopunsupported'] = 'El to navegador nun sofita notificaciones d\'escritoriu.'; +$labels['desktoptimeout'] = 'Zarrar notificación d\'escritoriu'; +?> diff --git a/plugins/newmail_notifier/localization/az_AZ.inc b/plugins/newmail_notifier/localization/az_AZ.inc index b1b9114ae..94283f9dc 100644 --- a/plugins/newmail_notifier/localization/az_AZ.inc +++ b/plugins/newmail_notifier/localization/az_AZ.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Yeni məktubun gəlməsi haqda brauzerdə xəbər ver'; $labels['desktop'] = 'Yeni məktubun gəlməsi haqda iş masasında xəbər ver'; $labels['sound'] = 'Yeni məktubun gəlməsi haqda səs siqnalı ver'; @@ -25,5 +24,4 @@ $labels['body'] = 'Sizə məktub gəldi'; $labels['testbody'] = 'Bu sınaq bildirişidir'; $labels['desktopdisabled'] = 'Sizin brauzerdə iş masasında bildiriş söndürülüb'; $labels['desktopunsupported'] = 'Sizin brauzer iş masasında bildiriş funksiyasını dəstəkləmir'; - ?> diff --git a/plugins/newmail_notifier/localization/be_BE.inc b/plugins/newmail_notifier/localization/be_BE.inc index 4d17d5785..e0b8e0bb9 100644 --- a/plugins/newmail_notifier/localization/be_BE.inc +++ b/plugins/newmail_notifier/localization/be_BE.inc @@ -15,15 +15,14 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - -$labels['basic'] = 'Адлюстроўваць інфармаванні азіральніка ў час атрымання новых павдеамленняў'; -$labels['desktop'] = 'Адлюстроўваць інфармаванні працоўнага стала ў час атрымання новых павдеамленняў'; +$labels['basic'] = 'Паказваць апавяшчэнні аб атрыманні новых паведамленняў у браўзеры'; +$labels['desktop'] = 'Паказваць апавяшчэнні аб атрыманні новых паведамленняў на працоўным стале'; $labels['sound'] = 'Агучваць атрыманне новых паведамленняў'; $labels['test'] = 'Праверыць'; $labels['title'] = 'Новы ліст!'; $labels['body'] = 'Вы атрымалі новае паведамленне.'; -$labels['testbody'] = 'Гэта тэставае інфармаванне.'; -$labels['desktopdisabled'] = 'Інфармаванне працоўнага стала адлкючана ў вашым азіральніку'; -$labels['desktopunsupported'] = 'Ваш азіральнік не падтрымлівае інфармаванне працоўнага стала.'; - +$labels['testbody'] = 'Гэта тэставае апавяшчэнне.'; +$labels['desktopdisabled'] = 'Апавяшчэнні на працоўным стале адключаныя ў браўзеры.'; +$labels['desktopunsupported'] = 'Ваш браўзер не падтрымлівае апавяшчэнні на працоўным стале.'; +$labels['desktoptimeout'] = 'Зачыніць апавяшчэнне на працоўным стале'; ?> diff --git a/plugins/newmail_notifier/localization/bg_BG.inc b/plugins/newmail_notifier/localization/bg_BG.inc new file mode 100644 index 000000000..15791dd93 --- /dev/null +++ b/plugins/newmail_notifier/localization/bg_BG.inc @@ -0,0 +1,28 @@ +<?php + +/* + +-----------------------------------------------------------------------+ + | plugins/newmail_notifier/localization/<lang>.inc | + | | + | Localization file of the Roundcube Webmail New Mail Notifier 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-newmail_notifier/ +*/ +$labels['basic'] = 'Показва известия в браузъра при ново писмо'; +$labels['desktop'] = 'Показва известия на работния плот при ново писмо'; +$labels['sound'] = 'Възпроизведи звук при ново писмо'; +$labels['test'] = 'Тест'; +$labels['title'] = 'Ново писмо!'; +$labels['body'] = 'Получихте ново писмо.'; +$labels['testbody'] = 'Това е тестово известие.'; +$labels['desktopdisabled'] = 'Известията на работния плот са изключени за Вашия браузър.'; +$labels['desktopunsupported'] = 'Вашият браузър не поддържа известия на работния плот.'; +$labels['desktoptimeout'] = 'Затваряне на известие на работния плот'; +?> diff --git a/plugins/newmail_notifier/localization/br.inc b/plugins/newmail_notifier/localization/br.inc index 540876eb3..0ef3c86dd 100644 --- a/plugins/newmail_notifier/localization/br.inc +++ b/plugins/newmail_notifier/localization/br.inc @@ -15,15 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - -$labels['basic'] = 'Display browser notifications on new message'; -$labels['desktop'] = 'Display desktop notifications on new message'; $labels['sound'] = 'Seniñ ar son pa kemennadenn nevez'; -$labels['test'] = 'Test'; $labels['title'] = 'Kemennadenn nevez !'; -$labels['body'] = 'You\'ve received a new message.'; -$labels['testbody'] = 'This is a test notification.'; -$labels['desktopdisabled'] = 'Desktop notifications are disabled in your browser.'; -$labels['desktopunsupported'] = 'Your browser does not support desktop notifications.'; - ?> diff --git a/plugins/newmail_notifier/localization/bs_BA.inc b/plugins/newmail_notifier/localization/bs_BA.inc index 267b542fc..a849c64c8 100644 --- a/plugins/newmail_notifier/localization/bs_BA.inc +++ b/plugins/newmail_notifier/localization/bs_BA.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Prikaži obavijesti za nove poruke u pregledniku'; $labels['desktop'] = 'Prikaži obavijesti za nove poruke na desktopu'; $labels['sound'] = 'Zvučni signal za novu poruku'; @@ -25,5 +24,5 @@ $labels['body'] = 'Dobili ste novu poruku.'; $labels['testbody'] = 'Ovo je testna obavijest.'; $labels['desktopdisabled'] = 'Desktop obavijesti su onemogućene u vašem pregledniku.'; $labels['desktopunsupported'] = 'Vaš preglednik ne podržava desktop obavijesti.'; - +$labels['desktoptimeout'] = 'Zatvori desktop obavijesti'; ?> diff --git a/plugins/newmail_notifier/localization/ca_ES.inc b/plugins/newmail_notifier/localization/ca_ES.inc index 8e0a8b443..bb510ae26 100644 --- a/plugins/newmail_notifier/localization/ca_ES.inc +++ b/plugins/newmail_notifier/localization/ca_ES.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Mostra notificacions del navegador quan hi hagi un missatge nou'; $labels['desktop'] = 'Mostra notificacions de l\'escriptori quan hi hagi un missatge nou'; $labels['sound'] = 'Reprodueix el so quan hi hagi un missatge nou'; @@ -25,5 +24,4 @@ $labels['body'] = 'Heu rebut un missatge nou.'; $labels['testbody'] = 'Això és una notificació de prova.'; $labels['desktopdisabled'] = 'Les notificacions d\'escriptori estan deshabilitades al vostre navegador.'; $labels['desktopunsupported'] = 'El vostre navegador no permet les notificacions d\'escriptori.'; - ?> diff --git a/plugins/newmail_notifier/localization/cs_CZ.inc b/plugins/newmail_notifier/localization/cs_CZ.inc index 55899aeb0..c7f2a8d09 100644 --- a/plugins/newmail_notifier/localization/cs_CZ.inc +++ b/plugins/newmail_notifier/localization/cs_CZ.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Zobrazit upozornění v prohlížeči při příchozí zprávě'; $labels['desktop'] = 'Zobrazit upozornění na ploše při příchozí zprávě'; $labels['sound'] = 'Přehrát zvuk při příchozí zprávě'; @@ -25,5 +24,5 @@ $labels['body'] = 'Dostali jste novou zprávu.'; $labels['testbody'] = 'Toto je zkouška upozornění.'; $labels['desktopdisabled'] = 'Upozornění na ploše jsou ve vašem prohlížeči vypnuté.'; $labels['desktopunsupported'] = 'Váš prohlížeč nepodporuje upozornění na ploše.'; - +$labels['desktoptimeout'] = 'Zavřít upozornění na ploše'; ?> diff --git a/plugins/newmail_notifier/localization/cy_GB.inc b/plugins/newmail_notifier/localization/cy_GB.inc index 38af4da49..126ddfdf9 100644 --- a/plugins/newmail_notifier/localization/cy_GB.inc +++ b/plugins/newmail_notifier/localization/cy_GB.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Dangos hysbysiadau porwr ar neges newydd'; $labels['desktop'] = 'Dangos hysbysiadau penbwrdd ar neges newydd'; $labels['sound'] = 'Chwarae sŵn ar neges newydd'; @@ -25,5 +24,5 @@ $labels['body'] = 'Rydych wedi derbyn neges newydd.'; $labels['testbody'] = 'Hysbysiad prawf yw hwn.'; $labels['desktopdisabled'] = 'Mae hysbysiadau penbwrdd wedi ei analluogi yn eich porwr'; $labels['desktopunsupported'] = 'Nid yw eich porwr yn cefnogi hysbysiadau penbwrdd.'; - +$labels['desktoptimeout'] = 'Cau hysbysiad penbwrdd'; ?> diff --git a/plugins/newmail_notifier/localization/da_DK.inc b/plugins/newmail_notifier/localization/da_DK.inc index f06b80f6b..26e4e6a7b 100644 --- a/plugins/newmail_notifier/localization/da_DK.inc +++ b/plugins/newmail_notifier/localization/da_DK.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Vis browserbesked ved ny besked'; $labels['desktop'] = 'Vis skrivebordsbesked ved ny besked'; $labels['sound'] = 'Afspil en lyd ved ny besked'; @@ -25,5 +24,4 @@ $labels['body'] = 'Du har modtaget en ny besked.'; $labels['testbody'] = 'Dette er en test meddelelse.'; $labels['desktopdisabled'] = 'Skrivebordsbeskeder er deaktiveret i din browser.'; $labels['desktopunsupported'] = 'Din browser understøtter ikke skrivebordsbeskeder.'; - ?> diff --git a/plugins/newmail_notifier/localization/de_CH.inc b/plugins/newmail_notifier/localization/de_CH.inc index 03a3957c9..1119e6a03 100644 --- a/plugins/newmail_notifier/localization/de_CH.inc +++ b/plugins/newmail_notifier/localization/de_CH.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Anzeige im Browser bei neuer Nachricht'; $labels['desktop'] = 'Desktop-Benachrichtigung bei neuer Nachricht'; $labels['sound'] = 'Akustische Meldung bei neuer Nachricht'; @@ -25,5 +24,5 @@ $labels['body'] = 'Sie haben eine neue Nachricht'; $labels['testbody'] = 'Dies ist eine Testbenachrichtigung'; $labels['desktopdisabled'] = 'Desktop-Benachrichtigungen sind deaktiviert.'; $labels['desktopunsupported'] = 'Ihr Browser unterstützt keine Desktop-Benachrichtigungen.'; - +$labels['desktoptimeout'] = 'Anzeige im Browser schliessen'; ?> diff --git a/plugins/newmail_notifier/localization/de_DE.inc b/plugins/newmail_notifier/localization/de_DE.inc index 3974fe897..4ecb8a3c8 100644 --- a/plugins/newmail_notifier/localization/de_DE.inc +++ b/plugins/newmail_notifier/localization/de_DE.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Benachrichtigung im Browser bei neuer Nachricht'; $labels['desktop'] = 'Desktop-Benachrichtigung bei neuer Nachricht'; $labels['sound'] = 'Akustische Meldung bei neuer Nachricht'; @@ -25,5 +24,5 @@ $labels['body'] = 'Sie haben eine neue Nachricht'; $labels['testbody'] = 'Dies ist eine Testbenachrichtigung'; $labels['desktopdisabled'] = 'Desktop-Benachrichtigungen sind deaktiviert.'; $labels['desktopunsupported'] = 'Ihr Browser unterstützt keine Desktop-Benachrichtigungen.'; - +$labels['desktoptimeout'] = 'Desktop-Benachrichtigung geschlossen.'; ?> diff --git a/plugins/newmail_notifier/localization/el_GR.inc b/plugins/newmail_notifier/localization/el_GR.inc new file mode 100644 index 000000000..5f41bc974 --- /dev/null +++ b/plugins/newmail_notifier/localization/el_GR.inc @@ -0,0 +1,27 @@ +<?php + +/* + +-----------------------------------------------------------------------+ + | plugins/newmail_notifier/localization/<lang>.inc | + | | + | Localization file of the Roundcube Webmail New Mail Notifier 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-newmail_notifier/ +*/ +$labels['basic'] = 'Εμφανίση ειδοποιήσεων πρόγραμματος περιήγησης στο νέο μήνυμα'; +$labels['desktop'] = 'Εμφάνιση ειδοποιήσεων στην επιφάνεια εργασίας για νέο μήνυμα '; +$labels['sound'] = 'Ηχητική ειδοποίηση κατά την λήψη νέων μηνυμάτων'; +$labels['test'] = 'Δοκιμη'; +$labels['title'] = 'Nεο Email!'; +$labels['body'] = 'Έχετε λάβει ένα νέο μήνυμα.'; +$labels['testbody'] = 'Αυτή είναι μια δοκιμή ειδοποίησης.'; +$labels['desktopdisabled'] = 'Οι κοινοποιήσεις Desktop ειναι απενεργοποιημένη στον περιηγητή σας.'; +$labels['desktopunsupported'] = 'Ο περιηγητής σας δεν υποστηρίζει ειδοποιήσεις στην επιφάνεια εργασίας.'; +?> diff --git a/plugins/newmail_notifier/localization/en_GB.inc b/plugins/newmail_notifier/localization/en_GB.inc index 3ea6c8c74..3ac79e594 100644 --- a/plugins/newmail_notifier/localization/en_GB.inc +++ b/plugins/newmail_notifier/localization/en_GB.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Display browser notifications on new message'; $labels['desktop'] = 'Display desktop notifications on new message'; $labels['sound'] = 'Play sound on new message'; @@ -25,5 +24,4 @@ $labels['body'] = 'You\'ve received a new message.'; $labels['testbody'] = 'This is a test notification.'; $labels['desktopdisabled'] = 'Desktop notifications are disabled in your browser.'; $labels['desktopunsupported'] = 'Your browser does not support desktop notifications.'; - ?> diff --git a/plugins/newmail_notifier/localization/en_US.inc b/plugins/newmail_notifier/localization/en_US.inc index 7c1c5cf3f..1c4054615 100644 --- a/plugins/newmail_notifier/localization/en_US.inc +++ b/plugins/newmail_notifier/localization/en_US.inc @@ -25,5 +25,6 @@ $labels['body'] = 'You\'ve received a new message.'; $labels['testbody'] = 'This is a test notification.'; $labels['desktopdisabled'] = 'Desktop notifications are disabled in your browser.'; $labels['desktopunsupported'] = 'Your browser does not support desktop notifications.'; +$labels['desktoptimeout'] = 'Close desktop notification'; ?> diff --git a/plugins/newmail_notifier/localization/eo.inc b/plugins/newmail_notifier/localization/eo.inc index da3f18e6b..8a4657677 100644 --- a/plugins/newmail_notifier/localization/eo.inc +++ b/plugins/newmail_notifier/localization/eo.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Montri atentigojn de retumilo pri nova mesaĝo'; $labels['desktop'] = 'Montri atentigojn de komputilo pri nova mesaĝo'; $labels['sound'] = 'Ludi sonon por nova mesaĝo'; @@ -25,5 +24,4 @@ $labels['body'] = 'Vi ricevis novan mesaĝon.'; $labels['testbody'] = 'Tio estas testo pri atentigo.'; $labels['desktopdisabled'] = 'Atentigoj de komputilo estas malŝaltitaj en via retumilo.'; $labels['desktopunsupported'] = 'Via retumilo ne subtenas atentigojn de komputilo.'; - ?> diff --git a/plugins/newmail_notifier/localization/es_AR.inc b/plugins/newmail_notifier/localization/es_AR.inc new file mode 100644 index 000000000..682d79ef4 --- /dev/null +++ b/plugins/newmail_notifier/localization/es_AR.inc @@ -0,0 +1,27 @@ +<?php + +/* + +-----------------------------------------------------------------------+ + | plugins/newmail_notifier/localization/<lang>.inc | + | | + | Localization file of the Roundcube Webmail New Mail Notifier 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-newmail_notifier/ +*/ +$labels['basic'] = 'Mostrar notificación cuando haya nuevos mensajes'; +$labels['desktop'] = 'Mostrar notificación en escritorio cuando haya nuevos mensajes'; +$labels['sound'] = 'Reproducir sonido cuando haya nuevos mensajes'; +$labels['test'] = 'Prueba'; +$labels['title'] = 'Correo nuevo!'; +$labels['body'] = 'Has recibido correo nuevo'; +$labels['testbody'] = 'Esta es una notificación de prueba'; +$labels['desktopdisabled'] = 'Las notificaciones en escritorio están deshabilitadas en tu navegador'; +$labels['desktopunsupported'] = 'Tu navegador no soporta notificaciones en escritorio'; +?> diff --git a/plugins/newmail_notifier/localization/es_ES.inc b/plugins/newmail_notifier/localization/es_ES.inc index 410d9356e..8809aa03c 100644 --- a/plugins/newmail_notifier/localization/es_ES.inc +++ b/plugins/newmail_notifier/localization/es_ES.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Mostrar notificaciones del navegador cuando llegue un nuevo mensaje'; $labels['desktop'] = 'Mostrar notificaciones del escritorio cuando llegue un nuevo mensaje'; $labels['sound'] = 'Reproducir sonido cuando llegue un nuevo mensaje'; @@ -25,5 +24,5 @@ $labels['body'] = 'Has recibido un mensaje nuevo.'; $labels['testbody'] = 'Esta es una notificación de pruebas.'; $labels['desktopdisabled'] = 'Las notificaciones de escritorio están deshabilitadas en tu navegador.'; $labels['desktopunsupported'] = 'Tu navegador no soporta notificaciones de escritorio.'; - +$labels['desktoptimeout'] = 'Cerrar notificación de escritorio'; ?> diff --git a/plugins/newmail_notifier/localization/et_EE.inc b/plugins/newmail_notifier/localization/et_EE.inc index 30971d79a..22bdde908 100644 --- a/plugins/newmail_notifier/localization/et_EE.inc +++ b/plugins/newmail_notifier/localization/et_EE.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Uue kirja saabumisel näita lehitsejas teavitust'; $labels['desktop'] = 'Uue kirja saabumisel näita töölaua teavitust'; $labels['sound'] = 'Uue kirja saabumisel mängi heli'; @@ -25,5 +24,4 @@ $labels['body'] = 'Saabus uus kiri.'; $labels['testbody'] = 'See on teavituse proov.'; $labels['desktopdisabled'] = 'Töölaua märguanded on su veebilehitsejas keelatud.'; $labels['desktopunsupported'] = 'Sinu veebilehitseja ei toeta töölaua märguandeid.'; - ?> diff --git a/plugins/newmail_notifier/localization/eu_ES.inc b/plugins/newmail_notifier/localization/eu_ES.inc new file mode 100644 index 000000000..7d7d90408 --- /dev/null +++ b/plugins/newmail_notifier/localization/eu_ES.inc @@ -0,0 +1,27 @@ +<?php + +/* + +-----------------------------------------------------------------------+ + | plugins/newmail_notifier/localization/<lang>.inc | + | | + | Localization file of the Roundcube Webmail New Mail Notifier 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-newmail_notifier/ +*/ +$labels['basic'] = 'Bistaratu nabigatzailearen jakinarazpenak mezu berrian'; +$labels['desktop'] = 'Bistaratu sistemaren jakinarazpenak mezu berrian'; +$labels['sound'] = 'Jo soinu bat mezu berriarekin'; +$labels['test'] = 'Testa'; +$labels['title'] = 'ePosta berria'; +$labels['body'] = 'Mezu berria jaso duzu'; +$labels['testbody'] = 'Hau jakinarazpen proba bat da'; +$labels['desktopdisabled'] = 'Sistemaren jakinarazpenak ezgaituak daude zure nabigatzailean'; +$labels['desktopunsupported'] = 'Zure nabigatzaileak ez ditu sistemaren jakinarazpenak onartzen.'; +?> diff --git a/plugins/newmail_notifier/localization/fa_IR.inc b/plugins/newmail_notifier/localization/fa_IR.inc index 71155fe4b..af58aeed2 100644 --- a/plugins/newmail_notifier/localization/fa_IR.inc +++ b/plugins/newmail_notifier/localization/fa_IR.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'نمایش تذکرهای مرورگر برای پیغام جدید'; $labels['desktop'] = 'نمایش تذکرهای رومیزی برای پیغام جدید'; $labels['sound'] = 'پخش صدا برای پیغام جدید'; @@ -25,5 +24,4 @@ $labels['body'] = 'شما یک پیغام جدید دریافت کردهای $labels['testbody'] = 'این یک تذکر آزمایشی است.'; $labels['desktopdisabled'] = 'تذکرهای رومیزی در مرورگر شما غیرفعال شدهاند.'; $labels['desktopunsupported'] = 'مرورگر شما تذکرهای رومیزی را پشتیبانی نمیکند.'; - ?> diff --git a/plugins/newmail_notifier/localization/fi_FI.inc b/plugins/newmail_notifier/localization/fi_FI.inc index 206ae8a1e..8d5c01243 100644 --- a/plugins/newmail_notifier/localization/fi_FI.inc +++ b/plugins/newmail_notifier/localization/fi_FI.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Näytä selainilmoitus uuden viestin saapuessa'; $labels['desktop'] = 'Näytä työpöytäilmoitus uuden viestin saapuessa'; $labels['sound'] = 'Toista ääni uuden viestin saapuessa'; @@ -25,5 +24,5 @@ $labels['body'] = 'Sait uuden viestin.'; $labels['testbody'] = 'Tämä on testi-ilmoitus.'; $labels['desktopdisabled'] = 'Työpöytäilmoitukset on estetty selaimessa.'; $labels['desktopunsupported'] = 'Selaimesi ei tue työpöytäilmoituksia.'; - +$labels['desktoptimeout'] = 'Sulje työpöytäilmoitus'; ?> diff --git a/plugins/newmail_notifier/localization/fr_FR.inc b/plugins/newmail_notifier/localization/fr_FR.inc index 3568b13cc..613b409ae 100644 --- a/plugins/newmail_notifier/localization/fr_FR.inc +++ b/plugins/newmail_notifier/localization/fr_FR.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Afficher une notification dans le navigateur à réception d\'un nouveau message'; $labels['desktop'] = 'Afficher une notification sur le bureau à réception d\'un nouveau message'; $labels['sound'] = 'Jouer un son à réception d\'un nouveau message'; @@ -25,5 +24,5 @@ $labels['body'] = 'Vous avez reçu un nouveau message'; $labels['testbody'] = 'Test de notification'; $labels['desktopdisabled'] = 'Les notifications sur le bureau sont désactivées dans votre navigateur'; $labels['desktopunsupported'] = 'Votre navigateur ne supporte pas les notifications sur le bureau'; - +$labels['desktoptimeout'] = 'Fermer les notifications de bureau'; ?> diff --git a/plugins/newmail_notifier/localization/gl_ES.inc b/plugins/newmail_notifier/localization/gl_ES.inc index 8d105531e..1dae35297 100644 --- a/plugins/newmail_notifier/localization/gl_ES.inc +++ b/plugins/newmail_notifier/localization/gl_ES.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Amosar notificacións no navegador cando entre unha mensaxe nova'; $labels['desktop'] = 'Amosar notificacións no escritorio cando chegue unha mensaxe nova'; $labels['sound'] = 'Tocar un son cando chegue unha mensaxe nova'; @@ -25,5 +24,4 @@ $labels['body'] = 'Recibiu unha mensaxe nova'; $labels['testbody'] = 'Esta é unha notificación de proba'; $labels['desktopdisabled'] = 'As notificacións de escritorio están desactivadas no seu navegador'; $labels['desktopunsupported'] = 'O teu navegador non soporta notificacións de escritorio.'; - ?> diff --git a/plugins/newmail_notifier/localization/he_IL.inc b/plugins/newmail_notifier/localization/he_IL.inc index 4241fcfcc..9002d7c6d 100644 --- a/plugins/newmail_notifier/localization/he_IL.inc +++ b/plugins/newmail_notifier/localization/he_IL.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'איתות מהדפדפן על הגעת הודעות חדשות'; $labels['desktop'] = 'איתות משולחן העבודה על הגעת הודעות חדשות'; $labels['sound'] = 'השמעת איתות קולי בעת הגעה של הודעה חדשה'; @@ -25,5 +24,4 @@ $labels['body'] = 'התקבלה הודעה חדשה'; $labels['testbody'] = 'זה איתות לנסיון'; $labels['desktopdisabled'] = 'איתותים משולחן העבודה אינם פעילים בדפדפן שלך'; $labels['desktopunsupported'] = 'הדפדפן שלך אינו תומך באיתותים משולחן העבודה'; - ?> diff --git a/plugins/newmail_notifier/localization/hr_HR.inc b/plugins/newmail_notifier/localization/hr_HR.inc index 6800c6b04..3ee6cff3b 100644 --- a/plugins/newmail_notifier/localization/hr_HR.inc +++ b/plugins/newmail_notifier/localization/hr_HR.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Prikaži dojave preglednika kada dođe nova poruka'; $labels['desktop'] = 'Prikaži dojave na desktopu kada dođe nova poruka'; $labels['sound'] = 'Pusti zvuk kada dođe nova poruka'; @@ -25,5 +24,4 @@ $labels['body'] = 'Primili ste novu poruku'; $labels['testbody'] = 'Ovo je probna dojava.'; $labels['desktopdisabled'] = 'Dojave na desktopu su onemogućene u vašem pregledniku.'; $labels['desktopunsupported'] = 'Vaš preglednik ne podržava dojave na desktopu.'; - ?> diff --git a/plugins/newmail_notifier/localization/hu_HU.inc b/plugins/newmail_notifier/localization/hu_HU.inc index 46fa78fc9..59464f27c 100644 --- a/plugins/newmail_notifier/localization/hu_HU.inc +++ b/plugins/newmail_notifier/localization/hu_HU.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Értesítés megjelenítése böngészőben amikor új üzenet érkezik'; $labels['desktop'] = 'Asztali értesítés megjelenítése új üzenet érkezésekor'; $labels['sound'] = 'Hang lejátszása új üzenet érkezésekor'; @@ -25,5 +24,5 @@ $labels['body'] = 'Új üzeneted érkezett.'; $labels['testbody'] = 'Ez egy teszt értesítés.'; $labels['desktopdisabled'] = 'Az asztali értesítés ki van kapcsolva a böngésződben.'; $labels['desktopunsupported'] = 'A böngésződ nem támogatja az asztali értesítéseket.'; - +$labels['desktoptimeout'] = 'Az asztali értesítés bezárása'; ?> diff --git a/plugins/newmail_notifier/localization/hy_AM.inc b/plugins/newmail_notifier/localization/hy_AM.inc index a932d0e0e..23fdbed65 100644 --- a/plugins/newmail_notifier/localization/hy_AM.inc +++ b/plugins/newmail_notifier/localization/hy_AM.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Ցուցադրել զննարկչի ծանուցում նոր հաղորդագրություն ստանալիս'; $labels['desktop'] = 'Ցուցադրել սեղանադրի ծանուցում նոր հաղորդագրություն ստանալիս'; $labels['sound'] = 'Ձայն հանել նոր հաղորդագրություն ստանալիս'; @@ -25,5 +24,4 @@ $labels['body'] = 'Դուք ստացաք նոր հաղորդագրություն $labels['testbody'] = 'Սա փորձնական ծանուցում է'; $labels['desktopdisabled'] = 'Սեղանադրի ծանուցումները Ձեր զննարկչում անջատված են'; $labels['desktopunsupported'] = 'Ձեր զննարկիչը չունի սեղանադրի ծանուցումների հնարավորություն։'; - ?> diff --git a/plugins/newmail_notifier/localization/ia.inc b/plugins/newmail_notifier/localization/ia.inc index 32187347f..cf83712ec 100644 --- a/plugins/newmail_notifier/localization/ia.inc +++ b/plugins/newmail_notifier/localization/ia.inc @@ -15,15 +15,8 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Monstrar notificationes de navigator in cata nove message'; -$labels['desktop'] = 'Display desktop notifications on new message'; -$labels['sound'] = 'Play the sound on new message'; $labels['test'] = 'Prova'; $labels['title'] = 'Nove message!'; -$labels['body'] = 'You\'ve received a new message.'; $labels['testbody'] = 'Iste es un notification de prova.'; -$labels['desktopdisabled'] = 'Desktop notifications are disabled in your browser.'; -$labels['desktopunsupported'] = 'Your browser does not support desktop notifications.'; - ?> diff --git a/plugins/newmail_notifier/localization/id_ID.inc b/plugins/newmail_notifier/localization/id_ID.inc index 87886a9d5..1f32afa7c 100644 --- a/plugins/newmail_notifier/localization/id_ID.inc +++ b/plugins/newmail_notifier/localization/id_ID.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Tampilkan pemberitahuan pada peramban saat ada pesan baru'; $labels['desktop'] = 'Tampilkan pemberitahuan pada desktop saat ada pesan baru'; $labels['sound'] = 'Mainkan suara saat ada pesan baru'; @@ -25,5 +24,4 @@ $labels['body'] = 'Anda telah menerima sebuah pesan baru.'; $labels['testbody'] = 'Ini adalah percobaan pemberitahuan.'; $labels['desktopdisabled'] = 'Pemberitahuan di desktop dimatikan pada peramban Anda.'; $labels['desktopunsupported'] = 'Peramban Anda tidak mendukung pemberitahuan pada desktop'; - ?> diff --git a/plugins/newmail_notifier/localization/it_IT.inc b/plugins/newmail_notifier/localization/it_IT.inc index 8b894ee2f..8e3843b81 100644 --- a/plugins/newmail_notifier/localization/it_IT.inc +++ b/plugins/newmail_notifier/localization/it_IT.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'visualizza notifica nel browser per nuovi messaggi'; $labels['desktop'] = 'visualizza notifiche sul desktop per nuovi messaggi'; $labels['sound'] = 'riproduci il suono per nuovi messaggi'; @@ -25,5 +24,5 @@ $labels['body'] = 'hai ricevuto un nuovo messaggio'; $labels['testbody'] = 'notifica di prova'; $labels['desktopdisabled'] = 'le notifiche sul desktop sono disabilitate nel tuo browser'; $labels['desktopunsupported'] = 'il tuo browser non supporta le notifiche sul desktop'; - +$labels['desktoptimeout'] = 'Chiudi la notifica visualizzata sul desktop'; ?> diff --git a/plugins/newmail_notifier/localization/ja_JP.inc b/plugins/newmail_notifier/localization/ja_JP.inc index aa5fd7774..6efcb6985 100644 --- a/plugins/newmail_notifier/localization/ja_JP.inc +++ b/plugins/newmail_notifier/localization/ja_JP.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = '新しいメッセージの通知をブラウザーに表示'; $labels['desktop'] = '新しいメッセージの通知をデスクトップに表示'; $labels['sound'] = '新しいメッセージが届くと音を再生'; @@ -25,5 +24,5 @@ $labels['body'] = '新しいメッセージを受信しました。'; $labels['testbody'] = 'これはテストの通知です。'; $labels['desktopdisabled'] = 'ブラウザーでデスクトップ通知が無効になっています。'; $labels['desktopunsupported'] = 'ブラウザーがデスクトップ通知をサポートしていません。'; - +$labels['desktoptimeout'] = 'デスクトップ通知を閉じる'; ?> diff --git a/plugins/newmail_notifier/localization/km_KH.inc b/plugins/newmail_notifier/localization/km_KH.inc index e200ce820..fdad4b302 100644 --- a/plugins/newmail_notifier/localization/km_KH.inc +++ b/plugins/newmail_notifier/localization/km_KH.inc @@ -15,15 +15,9 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - -$labels['basic'] = 'Display browser notifications on new message'; -$labels['desktop'] = 'Display desktop notifications on new message'; $labels['sound'] = 'បន្លឹសម្កេងពេលមានសារថ្មី'; $labels['test'] = 'សាកល្បង'; $labels['title'] = 'មានសារថ្មី'; $labels['body'] = 'អ្នកបានទទួលសារថ្មី'; $labels['testbody'] = 'នេះជាការសាក្បងដំណឹង'; -$labels['desktopdisabled'] = 'Desktop notifications are disabled in your browser.'; -$labels['desktopunsupported'] = 'Your browser does not support desktop notifications.'; - ?> diff --git a/plugins/newmail_notifier/localization/ko_KR.inc b/plugins/newmail_notifier/localization/ko_KR.inc index 2176e4508..81abd55b9 100644 --- a/plugins/newmail_notifier/localization/ko_KR.inc +++ b/plugins/newmail_notifier/localization/ko_KR.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = '새로운 메시지가 도착 시에 브라우저의 알림에 표시'; $labels['desktop'] = '새로운 메시지가 도착 시에 데스크탑의 알림에 표시'; $labels['sound'] = '새로운 메시지가 도착 시에 소리 재생'; @@ -25,5 +24,4 @@ $labels['body'] = '새로운 메시지를 수신하였습니다.'; $labels['testbody'] = '이 것은 시험용 알림입니다.'; $labels['desktopdisabled'] = '당신의 브라우져에서는 데스크탑의 알림이 불가능하도록 되어있습니다.'; $labels['desktopunsupported'] = '당신의 브라우져에서는 데스크탑의 알림을 지원하지 않습니다.'; - ?> diff --git a/plugins/newmail_notifier/localization/lb_LU.inc b/plugins/newmail_notifier/localization/lb_LU.inc index c4b014819..8e6f5f603 100644 --- a/plugins/newmail_notifier/localization/lb_LU.inc +++ b/plugins/newmail_notifier/localization/lb_LU.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Browser-Notifikatioun bei neiem Message uweisen'; $labels['desktop'] = 'Desktop-Notifikatioun bei neiem Message uweisen'; $labels['sound'] = 'Dësen Toun bei neiem Message spillen'; @@ -25,5 +24,5 @@ $labels['body'] = 'Du hues en neie Message kritt.'; $labels['testbody'] = 'Dëst ass eng Test-Benoorichtegung.'; $labels['desktopdisabled'] = 'Desktop-Notifikatioune sinn an dengem Browser ausgeschalt.'; $labels['desktopunsupported'] = 'Däi Browser ënnerstëtzt keng Desktop-Notifikatiounen.'; - +$labels['desktoptimeout'] = 'Browser-Notifikatioun zoumaachen'; ?> diff --git a/plugins/newmail_notifier/localization/lt_LT.inc b/plugins/newmail_notifier/localization/lt_LT.inc index 956dca0d1..6db304f90 100644 --- a/plugins/newmail_notifier/localization/lt_LT.inc +++ b/plugins/newmail_notifier/localization/lt_LT.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Pranešti apie naujus laiškus naršyklėje'; $labels['desktop'] = 'Pranešti apie naujus laiškus sistemos pranešimu'; $labels['sound'] = 'Pranešti apie naujus laiškus garsu'; @@ -25,5 +24,4 @@ $labels['body'] = 'Jūs gavote naują laišką.'; $labels['testbody'] = 'Tai – bandomasis pranešimas.'; $labels['desktopdisabled'] = 'Jūsų naršyklėje sistemos pranešimai išjungti.'; $labels['desktopunsupported'] = 'Jūsų naršyklėje sistemos pranešimai nepalaikomi.'; - ?> diff --git a/plugins/newmail_notifier/localization/lv_LV.inc b/plugins/newmail_notifier/localization/lv_LV.inc index da9603cd5..60d951e5e 100644 --- a/plugins/newmail_notifier/localization/lv_LV.inc +++ b/plugins/newmail_notifier/localization/lv_LV.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Saņemot jaunu vēstuli, parādīt paziņojumu'; $labels['desktop'] = 'Saņemot jaunu vēstuli, parādīt darbavirsmas paziņojumu'; $labels['sound'] = 'Saņemot jaunu vēstuli, atskaņot skaņas signālu'; @@ -25,5 +24,4 @@ $labels['body'] = 'Jūs esat saņēmis jaunu vēstuli.'; $labels['testbody'] = 'Šis ir testa paziņojums.'; $labels['desktopdisabled'] = 'Darbavirsmas paziņojumi Jūsu pārlūkprogrammā ir atslēgti.'; $labels['desktopunsupported'] = 'Jūsu pārlūkprogramma neatbalsta darbavirsmas paziņojumus.'; - ?> diff --git a/plugins/newmail_notifier/localization/ml_IN.inc b/plugins/newmail_notifier/localization/ml_IN.inc index 7ef16775a..44ec26e69 100644 --- a/plugins/newmail_notifier/localization/ml_IN.inc +++ b/plugins/newmail_notifier/localization/ml_IN.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'ബ്രൌസര് അറിയിപ്പുകള് പുതിയ സന്ദേശത്തില് കാണിക്കുക'; $labels['desktop'] = 'ഡെസ്ക്ക്ടോപ്പ് അറിയിപ്പുകള് പുതിയ സന്ദേശത്തില് കാണിക്കുക'; $labels['sound'] = 'പുതിയ സന്ദേശത്തില് സബ്ദം കേള്പ്പിക്കുക'; @@ -25,5 +24,4 @@ $labels['body'] = 'താങ്കള്ക്ക് ഒരു പുതി $labels['testbody'] = 'ഇത് ഒരു പരീക്ഷണ അറിയിപ്പാണ്.'; $labels['desktopdisabled'] = 'താങ്കളുടെ ബ്രൌസറില് ഡെസ്ക്ക്ടോപ്പ് നോട്ടിഫിക്കേഷന് പ്രവര്ത്തനരഹിതമാണ്.'; $labels['desktopunsupported'] = 'താങ്കളുടെ ബ്രൌസ്സര് ഡെസ്ക്ടോപ്പ് അറിയിപ്പുകള് പിന്തുണയ്ക്കുന്നില്ല.'; - ?> diff --git a/plugins/newmail_notifier/localization/mr_IN.inc b/plugins/newmail_notifier/localization/mr_IN.inc index 8d3cf592d..14b453a1d 100644 --- a/plugins/newmail_notifier/localization/mr_IN.inc +++ b/plugins/newmail_notifier/localization/mr_IN.inc @@ -15,15 +15,9 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - -$labels['basic'] = 'Display browser notifications on new message'; -$labels['desktop'] = 'Display desktop notifications on new message'; $labels['sound'] = 'नवीन संदेश आल्यास नाद करा'; $labels['test'] = 'चाचणी'; $labels['title'] = 'नवीन ईमेल'; $labels['body'] = 'तुमच्यासाठी नवीन संदेश आला आहे'; $labels['testbody'] = 'हा एक चाचणी निर्देश आहे'; -$labels['desktopdisabled'] = 'Desktop notifications are disabled in your browser.'; -$labels['desktopunsupported'] = 'Your browser does not support desktop notifications.'; - ?> diff --git a/plugins/newmail_notifier/localization/nb_NO.inc b/plugins/newmail_notifier/localization/nb_NO.inc index 83adf6e86..7174da15f 100644 --- a/plugins/newmail_notifier/localization/nb_NO.inc +++ b/plugins/newmail_notifier/localization/nb_NO.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Vis varsel i nettleseren ved ny melding'; $labels['desktop'] = 'Vis varsel på skrivebordet ved ny melding'; $labels['sound'] = 'Spill av lyd ved ny melding'; @@ -25,5 +24,4 @@ $labels['body'] = 'Du har mottatt en ny melding'; $labels['testbody'] = 'Dette er et testvarsel.'; $labels['desktopdisabled'] = 'Skrivebordsvarsel er slått av i din nettleser.'; $labels['desktopunsupported'] = 'Din nettleser støtter ikke visning av varsel på skrivebordet.'; - ?> diff --git a/plugins/newmail_notifier/localization/nl_NL.inc b/plugins/newmail_notifier/localization/nl_NL.inc index 01f97e4ce..83901597f 100644 --- a/plugins/newmail_notifier/localization/nl_NL.inc +++ b/plugins/newmail_notifier/localization/nl_NL.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Toon melding in browser bij nieuw bericht'; $labels['desktop'] = 'Toon melding op bureaublad bij nieuw bericht'; $labels['sound'] = 'Geluid afspelen bij nieuw bericht'; @@ -25,5 +24,5 @@ $labels['body'] = 'U heeft een nieuw bericht ontvangen.'; $labels['testbody'] = 'Dit is een testmelding.'; $labels['desktopdisabled'] = 'Bureaubladmeldingen zijn uitgeschakeld in uw browser.'; $labels['desktopunsupported'] = 'Uw browser ondersteunt geen bureaubladmeldingen.'; - +$labels['desktoptimeout'] = 'Sluit bureaubladmelding'; ?> diff --git a/plugins/newmail_notifier/localization/nn_NO.inc b/plugins/newmail_notifier/localization/nn_NO.inc index 24ba91d18..4d42182b5 100644 --- a/plugins/newmail_notifier/localization/nn_NO.inc +++ b/plugins/newmail_notifier/localization/nn_NO.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Vis varsel i nettlesaren ved ny melding'; $labels['desktop'] = 'Vis varsel på skrivebordet ved ny melding'; $labels['sound'] = 'Spill av lyd ved ny melding'; @@ -25,5 +24,4 @@ $labels['body'] = 'Du har mottatt ei ny melding.'; $labels['testbody'] = 'Dette er eit testvarsel.'; $labels['desktopdisabled'] = 'Skrivebordsvarsel er slått av i din nettlesar.'; $labels['desktopunsupported'] = 'Din nettlesar støttar ikkje vising av varsel på skrivebordet.'; - ?> diff --git a/plugins/newmail_notifier/localization/pl_PL.inc b/plugins/newmail_notifier/localization/pl_PL.inc index b94204c45..5aa9f055c 100644 --- a/plugins/newmail_notifier/localization/pl_PL.inc +++ b/plugins/newmail_notifier/localization/pl_PL.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Wyświetlaj powiadomienia o nadejściu nowej wiadomości w przeglądarce'; $labels['desktop'] = 'Wyświetlaj powiadomienia o nadejściu nowej wiadomości na pulpicie'; $labels['sound'] = 'Odtwarzaj dźwięk o nadejściu nowej wiadomości'; @@ -25,5 +24,5 @@ $labels['body'] = 'Nadeszła nowa wiadomość.'; $labels['testbody'] = 'To jest testowe powiadomienie.'; $labels['desktopdisabled'] = 'Powiadomienia na pulpicie zostały zablokowane w twojej przeglądarce.'; $labels['desktopunsupported'] = 'Twoja przeglądarka nie obsługuje powiadomień na pulpicie.'; - +$labels['desktoptimeout'] = 'Zamknij powiadomienie pulpitu'; ?> diff --git a/plugins/newmail_notifier/localization/pt_BR.inc b/plugins/newmail_notifier/localization/pt_BR.inc index 5b772f464..6982e2193 100644 --- a/plugins/newmail_notifier/localization/pt_BR.inc +++ b/plugins/newmail_notifier/localization/pt_BR.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Exibir notificação quando uma nova mensagem chegar'; $labels['desktop'] = 'Exibir notificação no desktop quando uma nova mensagem chegar'; $labels['sound'] = 'Alerta sonoro quando uma nova mensagem chegar'; @@ -25,5 +24,5 @@ $labels['body'] = 'Você recebeu uma nova mensagem.'; $labels['testbody'] = 'Essa é uma notificação de teste.'; $labels['desktopdisabled'] = 'As notificações no desktop estão desabilitadas no seu navegador.'; $labels['desktopunsupported'] = 'Seu navegador não suporta notificações no desktop'; - +$labels['desktoptimeout'] = 'Fechar notificação'; ?> diff --git a/plugins/newmail_notifier/localization/pt_PT.inc b/plugins/newmail_notifier/localization/pt_PT.inc index 28a414be4..622fc1c92 100644 --- a/plugins/newmail_notifier/localization/pt_PT.inc +++ b/plugins/newmail_notifier/localization/pt_PT.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Mostrar notificação quando uma nova mensagem chegar'; $labels['desktop'] = 'Mostrar alerta no ambiente de trabalho de nova mensagem'; $labels['sound'] = 'Alerta sonoro para nova mensagem'; @@ -25,5 +24,5 @@ $labels['body'] = 'Você recebeu uma nova mensagem.'; $labels['testbody'] = 'Isto é uma notificação de teste.'; $labels['desktopdisabled'] = 'As notificações no ambiente de trabalho estão desactivadas no seu navegador.'; $labels['desktopunsupported'] = 'O seu navegador não suporta notificações no ambiente de trabalho'; - +$labels['desktoptimeout'] = 'Fechar notificação no ambiente de trabalho'; ?> diff --git a/plugins/newmail_notifier/localization/ro_RO.inc b/plugins/newmail_notifier/localization/ro_RO.inc index c78c7e081..b039dd2f4 100644 --- a/plugins/newmail_notifier/localization/ro_RO.inc +++ b/plugins/newmail_notifier/localization/ro_RO.inc @@ -15,15 +15,14 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Afişează notificări în browser la mesaj nou.'; $labels['desktop'] = 'Afişează notificări desktop la mesaj nou.'; $labels['sound'] = 'Redă un sunet la mesaj nou.'; -$labels['test'] = 'Test'; +$labels['test'] = 'Testează'; $labels['title'] = 'E-mail nou!'; $labels['body'] = 'Ai primit un mesaj nou.'; $labels['testbody'] = 'Aceasta este o notificare de test.'; $labels['desktopdisabled'] = 'Notificările desktop sunt dezactivate în browser.'; -$labels['desktopunsupported'] = 'Browser-ul nu suportă notificări desktop.'; - +$labels['desktopunsupported'] = 'Browser-ul dumneavoastră nu suportă notificări desktop.'; +$labels['desktoptimeout'] = 'Închide notificarea de birou'; ?> diff --git a/plugins/newmail_notifier/localization/ru_RU.inc b/plugins/newmail_notifier/localization/ru_RU.inc index a3da38b09..d7ae6a7ed 100644 --- a/plugins/newmail_notifier/localization/ru_RU.inc +++ b/plugins/newmail_notifier/localization/ru_RU.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Показывать в браузере уведомление о приходе нового сообщения'; $labels['desktop'] = 'Показывать на рабочем столе уведомление о приходе нового сообщения'; $labels['sound'] = 'Подавать звуковой сигнал о приходе нового сообщения'; @@ -25,5 +24,5 @@ $labels['body'] = 'Вы получили новое сообщение.'; $labels['testbody'] = 'Это тестовое уведомление.'; $labels['desktopdisabled'] = 'В Вашем браузере отключены уведомления на рабочем столе.'; $labels['desktopunsupported'] = 'Ваш браузер не поддерживает уведомления на рабочем столе.'; - +$labels['desktoptimeout'] = 'Закрыть уведомление на рабочем столе'; ?> diff --git a/plugins/newmail_notifier/localization/si_LK.inc b/plugins/newmail_notifier/localization/si_LK.inc index 2de2d810f..cc139aa48 100644 --- a/plugins/newmail_notifier/localization/si_LK.inc +++ b/plugins/newmail_notifier/localization/si_LK.inc @@ -15,15 +15,5 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - -$labels['basic'] = 'Display browser notifications on new message'; -$labels['desktop'] = 'Display desktop notifications on new message'; -$labels['sound'] = 'Play the sound on new message'; $labels['test'] = 'පිරික්සන්න'; -$labels['title'] = 'New Email!'; -$labels['body'] = 'You\'ve received a new message.'; -$labels['testbody'] = 'This is a test notification.'; -$labels['desktopdisabled'] = 'Desktop notifications are disabled in your browser.'; -$labels['desktopunsupported'] = 'Your browser does not support desktop notifications.'; - ?> diff --git a/plugins/newmail_notifier/localization/sk_SK.inc b/plugins/newmail_notifier/localization/sk_SK.inc index cda6cf197..b60447c36 100644 --- a/plugins/newmail_notifier/localization/sk_SK.inc +++ b/plugins/newmail_notifier/localization/sk_SK.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Zobraziť upozornenie v prehliadači pri novej správe'; $labels['desktop'] = 'Zobraziť upozornenie na ploche pri novej správe'; $labels['sound'] = 'Prehrať zvuk pri novej správe'; @@ -25,5 +24,5 @@ $labels['body'] = 'Máte novú správu.'; $labels['testbody'] = 'Toto je skúšobné upozornenie.'; $labels['desktopdisabled'] = 'Upozornenia na ploche sú vo vašom prehliadači vypnuté.'; $labels['desktopunsupported'] = 'Váč prehliadač nepodporuje upozornenia na ploche.'; - +$labels['desktoptimeout'] = 'Zatvoriť notifikáciu na ploche'; ?> diff --git a/plugins/newmail_notifier/localization/sl_SI.inc b/plugins/newmail_notifier/localization/sl_SI.inc index 49ae62048..32f36f7d9 100644 --- a/plugins/newmail_notifier/localization/sl_SI.inc +++ b/plugins/newmail_notifier/localization/sl_SI.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Prikaži obvestilo za nova sporočila'; $labels['desktop'] = 'Prikaži obvestila na namizju za vsa nova sporočila'; $labels['sound'] = 'Ob novem sporočilu predvajaj zvok'; @@ -25,5 +24,4 @@ $labels['body'] = 'Prejeli ste novo sporočilo.'; $labels['testbody'] = 'To je testno obvestilo.'; $labels['desktopdisabled'] = 'Obvestila na namizju so v vašem brskalniku onemogočena.'; $labels['desktopunsupported'] = 'Vaš brskalnik ne podpira izpis obvestil na namizju.'; - ?> diff --git a/plugins/newmail_notifier/localization/sr_CS.inc b/plugins/newmail_notifier/localization/sr_CS.inc index 55e342a27..bc587bf66 100644 --- a/plugins/newmail_notifier/localization/sr_CS.inc +++ b/plugins/newmail_notifier/localization/sr_CS.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Прикажи обавештења о новим порукама у прегледачу'; $labels['desktop'] = 'Прикажи обавештења о новим порукама у систему'; $labels['sound'] = 'Пусти звук по пријему поруке'; @@ -25,5 +24,4 @@ $labels['body'] = 'Примили сте нову поруку.'; $labels['testbody'] = 'Ово је пробно обавештење.'; $labels['desktopdisabled'] = 'Обавештења у систему су искључена у вашем прегледачу'; $labels['desktopunsupported'] = 'Ваш прегледач не подржава обавештења у систему.'; - ?> diff --git a/plugins/newmail_notifier/localization/sv_SE.inc b/plugins/newmail_notifier/localization/sv_SE.inc index 76ce72313..5e0c9fc29 100644 --- a/plugins/newmail_notifier/localization/sv_SE.inc +++ b/plugins/newmail_notifier/localization/sv_SE.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Avisera nytt meddelande i webbläsaren'; $labels['desktop'] = 'Avisera nytt meddelande på skrivbordet'; $labels['sound'] = 'Avisera nytt meddelande med ljudsignal'; @@ -25,5 +24,5 @@ $labels['body'] = 'Du har mottagit ett nytt meddelande.'; $labels['testbody'] = 'Denna avisering är ett prov.'; $labels['desktopdisabled'] = 'Avisering på skrivbordet är avstängt i webbläsaren.'; $labels['desktopunsupported'] = 'Avisering på skrivbordet stöds inte av webbläsaren.'; - +$labels['desktoptimeout'] = 'Stäng avisering på skrivbordet'; ?> diff --git a/plugins/newmail_notifier/localization/ti.inc b/plugins/newmail_notifier/localization/ti.inc new file mode 100644 index 000000000..17b8e7361 --- /dev/null +++ b/plugins/newmail_notifier/localization/ti.inc @@ -0,0 +1,27 @@ +<?php + +/* + +-----------------------------------------------------------------------+ + | plugins/newmail_notifier/localization/<lang>.inc | + | | + | Localization file of the Roundcube Webmail New Mail Notifier 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-newmail_notifier/ +*/ +$labels['basic'] = 'ሓዱሽ መል እኽቲ ጠቆምቲ አብ ጎስጓሲ ይርአ'; +$labels['desktop'] = 'ሓዱሽ መል እኽቲ ጠቆምቲ ኣብ ደስክቶፕ ይርአ'; +$labels['sound'] = 'ሓዱሽ መል እኽቲ ምስዝመጽእ ድምጺ ይሰማዕ'; +$labels['test'] = 'ፈተነ'; +$labels['title'] = 'ሓድሽ ኢደብዳበ!'; +$labels['body'] = 'ሓድሽ ኢደብዳበ በጺሑ አሎ::'; +$labels['testbody'] = 'እዚ ጥቆማ ንፈተን ዝተገብረ እዩ::'; +$labels['desktopdisabled'] = 'ናይ ደስክቶፕ ጠቆምቲ ተኸልኪሎማ አለዉ::'; +$labels['desktopunsupported'] = 'እዚ ጎስጓሲ ናይ ደስክቶፕ ጠቆምቲ ኣይተገጠመሉን::'; +?> diff --git a/plugins/newmail_notifier/localization/tr_TR.inc b/plugins/newmail_notifier/localization/tr_TR.inc index 77217b9b1..8c4e0c158 100644 --- a/plugins/newmail_notifier/localization/tr_TR.inc +++ b/plugins/newmail_notifier/localization/tr_TR.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Yeni mesajlarda web tarayıcı bildirimlerini göster'; $labels['desktop'] = 'Yeni mesajlarda masa üstü bildirimlerini göster'; $labels['sound'] = 'Yeni mesajlarda muzik çal'; @@ -25,5 +24,5 @@ $labels['body'] = 'Yeni bir mesaj aldınız'; $labels['testbody'] = 'Bu bir test bildirimidir.'; $labels['desktopdisabled'] = 'Web tarayıcınızda masa üstü bildirimi iptal edildi'; $labels['desktopunsupported'] = 'Web tarayıcınız masa üstü bildidrimleri desteklemiyor'; - +$labels['desktoptimeout'] = 'Masaüstü bildirimini kapat'; ?> diff --git a/plugins/newmail_notifier/localization/uk_UA.inc b/plugins/newmail_notifier/localization/uk_UA.inc index 68722c006..06fb8b964 100644 --- a/plugins/newmail_notifier/localization/uk_UA.inc +++ b/plugins/newmail_notifier/localization/uk_UA.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Показувати у браузері сповіщення про нові повідомлення'; $labels['desktop'] = 'Показувати на робочому столі сповіщення про нові повідомлення'; $labels['sound'] = 'Програвати звук при появленні нового повідомлення'; @@ -25,5 +24,4 @@ $labels['body'] = 'Ви отримали нове повідомлення.'; $labels['testbody'] = 'Це тестове сповіщення'; $labels['desktopdisabled'] = 'Повідомлення на робочому столі відключені у вашому браузері.'; $labels['desktopunsupported'] = 'Ваш браузер не підтримує повідомлення на робочому столі.'; - ?> diff --git a/plugins/newmail_notifier/localization/vi_VN.inc b/plugins/newmail_notifier/localization/vi_VN.inc index 9aa93a27a..e8ce68b69 100644 --- a/plugins/newmail_notifier/localization/vi_VN.inc +++ b/plugins/newmail_notifier/localization/vi_VN.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = 'Hiển thị thông báo trên trình duyệt là có thư mới'; $labels['desktop'] = 'Hiển thị thông báo trên màn hình là có thư mới'; $labels['sound'] = 'Mở tính năng âm thanh trên thư mới'; @@ -25,5 +24,4 @@ $labels['body'] = 'Bạn vừa nhận một thư mới'; $labels['testbody'] = 'Đây là thông báo kiểm tra'; $labels['desktopdisabled'] = 'Thông báo máy tính bị tắt trên trình duyệt của bạn'; $labels['desktopunsupported'] = 'Trình duyệt của bạn không hỗ trợ thông báo trên máy tính'; - ?> diff --git a/plugins/newmail_notifier/localization/zh_CN.inc b/plugins/newmail_notifier/localization/zh_CN.inc index 5bb9e846b..cc405773b 100644 --- a/plugins/newmail_notifier/localization/zh_CN.inc +++ b/plugins/newmail_notifier/localization/zh_CN.inc @@ -15,15 +15,13 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = '在浏览器中显示新邮件提醒'; $labels['desktop'] = '在桌面显示新邮件提醒'; -$labels['sound'] = '有新的邮件时播放声音'; +$labels['sound'] = '收到新邮件时播放声音'; $labels['test'] = '测试'; -$labels['title'] = '新邮件!'; +$labels['title'] = '您收到一封新邮件!'; $labels['body'] = '您收到一封新邮件。'; $labels['testbody'] = '这是一个提醒测试。'; $labels['desktopdisabled'] = '您的浏览器已禁止桌面提醒功能。'; $labels['desktopunsupported'] = '您的浏览器不支持桌面提醒功能。'; - ?> diff --git a/plugins/newmail_notifier/localization/zh_TW.inc b/plugins/newmail_notifier/localization/zh_TW.inc index 902eccd14..c6d6c8a8f 100644 --- a/plugins/newmail_notifier/localization/zh_TW.inc +++ b/plugins/newmail_notifier/localization/zh_TW.inc @@ -15,7 +15,6 @@ For translation see https://www.transifex.com/projects/p/roundcube-webmail/resource/plugin-newmail_notifier/ */ - $labels['basic'] = '當有新郵件顯示瀏覽器通知'; $labels['desktop'] = '當有新郵件顯示桌面通知'; $labels['sound'] = '當有新郵件播放音效'; @@ -25,5 +24,5 @@ $labels['body'] = '您有一封新郵件'; $labels['testbody'] = '這是測試通知'; $labels['desktopdisabled'] = '您的瀏覽器已停用桌面通知'; $labels['desktopunsupported'] = '您的瀏覽器不支援桌面通知功能'; - +$labels['desktoptimeout'] = '自動關閉桌面通知'; ?> diff --git a/plugins/newmail_notifier/newmail_notifier.js b/plugins/newmail_notifier/newmail_notifier.js index b00f33d10..2beacf650 100644 --- a/plugins/newmail_notifier/newmail_notifier.js +++ b/plugins/newmail_notifier/newmail_notifier.js @@ -71,7 +71,13 @@ function newmail_notifier_basic() // Sound notification function newmail_notifier_sound() { - var elem, src = 'plugins/newmail_notifier/sound.wav'; + var elem, src = 'plugins/newmail_notifier/sound', + plugin = navigator.mimeTypes ? navigator.mimeTypes['audio/mp3'] : {}; + + // Internet Explorer does not support wav files, + // support in other browsers depends on enabled plugins, + // so we use wav as a fallback + src += bw.ie || (plugin && plugin.enabledPlugin) ? '.mp3' : '.wav'; // HTML5 try { @@ -90,13 +96,11 @@ function newmail_notifier_sound() // - Require Chrome or Firefox latest version (22+) / 21.0 or older with a plugin function newmail_notifier_desktop(body) { + var timeout = rcmail.env.newmail_notifier_timeout || 10; -/** - * Fix: As of 17 June 2013, Chrome/Chromium does not implement Notification.permission correctly that - * it gives 'undefined' until an object has been created: - * https://code.google.com/p/chromium/issues/detail?id=163226 - * - */ + // As of 17 June 2013, Chrome/Chromium does not implement Notification.permission correctly that + // it gives 'undefined' until an object has been created: + // https://code.google.com/p/chromium/issues/detail?id=163226 try { if (Notification.permission == 'granted' || Notification.permission == undefined) { var popup = new Notification(rcmail.gettext('title', 'newmail_notifier'), { @@ -109,7 +113,7 @@ function newmail_notifier_desktop(body) popup.onclick = function() { this.close(); } - setTimeout(function() { popup.close(); }, 10000); // close after 10 seconds + setTimeout(function() { popup.close(); }, timeout * 1000); if (popup.permission == 'granted') return true; } } @@ -125,7 +129,7 @@ function newmail_notifier_desktop(body) this.cancel(); } popup.show(); - setTimeout(function() { popup.cancel(); }, 10000); // close after 10 seconds + setTimeout(function() { popup.cancel(); }, timeout * 1000); rcmail.newmail_popup = popup; return true; } diff --git a/plugins/newmail_notifier/newmail_notifier.php b/plugins/newmail_notifier/newmail_notifier.php index ca1c2ff67..20c542f58 100644 --- a/plugins/newmail_notifier/newmail_notifier.php +++ b/plugins/newmail_notifier/newmail_notifier.php @@ -123,6 +123,23 @@ class newmail_notifier extends rcube_plugin } } + $type = 'desktop_timeout'; + $key = 'newmail_notifier_' . $type; + if (!in_array($key, $dont_override)) { + $field_id = '_' . $key; + $select = new html_select(array('name' => $field_id, 'id' => $field_id)); + + foreach (array(5, 10, 15, 30, 45, 60) as $sec) { + $label = $this->rc->gettext(array('name' => 'afternseconds', 'vars' => array('n' => $sec))); + $select->add($label, $sec); + } + + $args['blocks']['new_message']['options'][$key] = array( + 'title' => html::label($field_id, rcube::Q($this->gettext('desktoptimeout'))), + 'content' => $select->show((int) $this->rc->config->get($key)) + ); + } + return $args; } @@ -148,6 +165,13 @@ class newmail_notifier extends rcube_plugin } } + $option = 'newmail_notifier_desktop_timeout'; + if (!in_array($option, $dont_override)) { + if ($value = (int) rcube_utils::get_input_value('_' . $option, rcube_utils::INPUT_POST)) { + $args['prefs'][$option] = $value; + } + } + return $args; } @@ -180,6 +204,7 @@ class newmail_notifier extends rcube_plugin if ($unseen->count()) { $this->notified = true; + $this->rc->output->set_env('newmail_notifier_timeout', $this->rc->config->get('newmail_notifier_desktop_timeout')); $this->rc->output->command('plugin.newmail_notifier', array( 'basic' => $this->opt['basic'], diff --git a/plugins/newmail_notifier/package.xml b/plugins/newmail_notifier/package.xml index b8ef34933..3d7277bb4 100644 --- a/plugins/newmail_notifier/package.xml +++ b/plugins/newmail_notifier/package.xml @@ -19,9 +19,9 @@ <email>alec@alec.pl</email> <active>yes</active> </lead> - <date>2013-03-16</date> + <date>2013-10-04</date> <version> - <release>0.5</release> + <release>0.7</release> <api>0.5</api> </version> <stability> diff --git a/plugins/newmail_notifier/sound.mp3 b/plugins/newmail_notifier/sound.mp3 Binary files differnew file mode 100644 index 000000000..3b494a94d --- /dev/null +++ b/plugins/newmail_notifier/sound.mp3 |