From 984c552ef10de0bee25ce1ead876a5a76dcac4b9 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Tue, 29 Nov 2016 18:35:36 +0100 Subject: [PATCH] Export notification --- .idea/workspace.xml | 192 ++++++------------ js/plugin.contactimporter.js | 5 + js/ui/ContextMenu.js | 4 + .../LC_MESSAGES/plugin_contactimporter.mo | Bin 3134 -> 3299 bytes .../LC_MESSAGES/plugin_contactimporter.po | 30 ++- .../LC_MESSAGES/plugin_calendarimporter.mo | Bin 3045 -> 3209 bytes .../LC_MESSAGES/plugin_calendarimporter.po | 30 ++- 7 files changed, 108 insertions(+), 153 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 22d8872..a833e15 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,8 +2,9 @@ - - + + + @@ -24,108 +25,31 @@ + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -145,14 +69,14 @@ @@ -422,18 +346,18 @@ 1480428196914 - + - - - + + - + @@ -505,14 +429,6 @@ - - - - - - - - @@ -521,14 +437,6 @@ - - - - - - - - @@ -539,14 +447,6 @@ - - - - - - - - @@ -589,7 +489,7 @@ - + @@ -618,6 +518,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/js/plugin.contactimporter.js b/js/plugin.contactimporter.js index 998b951..2956920 100644 --- a/js/plugin.contactimporter.js +++ b/js/plugin.contactimporter.js @@ -88,6 +88,11 @@ Zarafa.plugins.contactimporter.ImportPlugin = Ext.extend(Zarafa.core.Plugin, { scope: this }); + // Notify user + // # TRANSLATORS: {0} will be replaced by the number of contacts that will be exported + container.getNotifier().notify('info', dgettext('plugin_contactimporter', 'Contact Export'), String.format(dgettext('plugin_contactimporter', 'Exporting {0} contacts. Please wait...'), recordIds.length)); + + // request attachment preperation container.getRequest().singleRequest( 'contactmodule', diff --git a/js/ui/ContextMenu.js b/js/ui/ContextMenu.js index 6383a2f..1700995 100644 --- a/js/ui/ContextMenu.js +++ b/js/ui/ContextMenu.js @@ -99,6 +99,10 @@ Zarafa.plugins.contactimporter.ui.ContextMenu = Ext.extend(Zarafa.hierarchy.ui.C scope: this }); + // Notify user + // # TRANSLATORS: {0} will be replaced by the number of contacts that will be exported + container.getNotifier().notify('info', dgettext('plugin_contactimporter', 'Contact Export'), String.format(dgettext('plugin_contactimporter', 'Exporting {0} contacts. Please wait...'), this.records.get('content_count'))); + // request attachment preperation container.getRequest().singleRequest( 'contactmodule', diff --git a/languages/de_DE.UTF-8/LC_MESSAGES/plugin_contactimporter.mo b/languages/de_DE.UTF-8/LC_MESSAGES/plugin_contactimporter.mo index f583b9064c11b3d5b65a11ad3e849f446424df0d..41f28a345b39775f257462a401d44f5548994934 100644 GIT binary patch delta 1065 zcmXxjO=uHA7{>8wHzuoXv|q7ljqO%rT1B@(sfr&+Ez(0h6r|onLflGdNhDpWAT}OE zL{JYw&|41`J>+CTZ{p43K|#cd2N4UN^yp30|1;gbWcD|^?7TDc?&MW^t*7?2Blge` zdubWkr6yyJW22c1@yIbIj*l^ci?|h^;dXq9E%**M;TLShZ}FS7;ocd zV`}CF9Zm2Wx8NJxh99s4zeoN?C3cy`#S|XKKGgeD(enUP+?P@LZs9I`fZg~UmFF$C zFuz%))60W3?7_d7#5AkY^BfM~C~84PR3+x|04|^=Xy8G7j~d_1OR7v8{-CNEWXHzg z!W1TnN#-}5bX3v-)POva!<@i&9K#`;id?|`+&{%}{D|Z>8MdqOS!}~RcHt=Y<9SpC z=23a?V@(4V>72p_YKK2jCH{w6n9EC=pc^%DKPur_?8I4ANpGUg#68@NOQ`WHs12;5 zk9t|-hFht>5|2d>CU7737x5(CMU`>|`I%2#sH8otN}$kAv`fVf8grOF-9({7tsjmp|@3pPBi+L?lbZFi?qZ-lCn-MB$5TA}Z)jj9Uz zW94W%YbmX64^3rP4ARoJ$EAM3=}mZNu3f2A!+OOzl3VYV%9p+C`5RubQVt8naL)H8 zXM@6A;9V`0Lf`k7pE&27*wJH$M(Tg!S=(98Chj!FgY`^H?#NJ-DX0cE)r3;bgn{p! RE`^~oRl}gHT%X-(=RZW)YQq2k delta 937 zcmY+?y-QnB7{~EP6OHk$zBj4X*2Xu)C<-Z5&<+YZigeLBcu55njUo}z!HkMJh|$3! z778jjh>{MaLveF1ol3!_w6%Xgad2qAzsq&-z{%&Fn|q#f&U2q1;m@JeRhfU+XifAQ z`l~Fn7;a|sLmTs%<)VWDoWLra!vb8z986;&?%^OF;ZwZ9b`1H=f;fPRH-!0SDH~?+ zfCq1|43nO#sDN)V50CLVo}u3V?LEK2O6EER0j&z3VI4liK2)4h)PX1Q5iVeu{cVdu z5f4thKR#j|^RK7_{YBk8k7Gx%1hqjAcA|q?zk}M~J^mt#r>Gn6a(Y78J1oXS)O#N= zm;LR6K`CBhGk(KX%w}~zwxbTPh+3G!65PNF+{Y()j=J#|RJ=c^_iynf21t)C)Q@ao zBg(%{6lb6f=206jqXHgdIbNbt_#O4_uQ7uEQ0pV?qJwv08@@)ZTSvt`@a9L@!u%6< z\n" "Language: de\n" @@ -70,7 +70,7 @@ msgstr "Kontakte werden hochgeladen und verarbeitet..." #: js/dialogs/ImportPanel.js:432 js/dialogs/ImportPanel.js:531 #: js/dialogs/ImportPanel.js:539 js/dialogs/ImportPanel.js:586 -#: js/plugin.contactimporter.js:164 +#: js/plugin.contactimporter.js:169 msgid "Error" msgstr "Fehler" @@ -104,32 +104,42 @@ msgstr "Importieren fehlgeschlagen: {0}" msgid "Export vCard" msgstr "vCard exportieren" -#: js/plugin.contactimporter.js:110 js/ui/ContextMenu.js:135 +#. TRANSLATORS: {0} will be replaced by the number of contacts that will be exported +#. TRANSLATORS: {0} will be replaced by the number of contacts that will be exported +#: js/plugin.contactimporter.js:93 js/ui/ContextMenu.js:104 +msgid "Contact Export" +msgstr "Kontaktexport" + +#: js/plugin.contactimporter.js:93 js/ui/ContextMenu.js:104 +msgid "Exporting {0} contacts. Please wait..." +msgstr "Exportiere {0} Kontakte. Bitte warten..." + +#: js/plugin.contactimporter.js:115 js/ui/ContextMenu.js:139 msgid "Warning" msgstr "Warnung" -#: js/plugin.contactimporter.js:139 +#: js/plugin.contactimporter.js:144 msgid "Import to Contacts" msgstr "In Kontakte importieren" -#: js/plugin.contactimporter.js:178 +#: js/plugin.contactimporter.js:183 msgid "Please wait" msgstr "Bitte warten" -#: js/plugin.contactimporter.js:179 +#: js/plugin.contactimporter.js:184 msgid "Loading attachment..." msgstr "Lade Anhang..." -#: js/plugin.contactimporter.js:180 +#: js/plugin.contactimporter.js:185 msgid "Initializing..." msgstr "Initialisierung..." #. TRANSLATORS: {0} will be replaced by the percentage value (0-100) -#: js/plugin.contactimporter.js:193 +#: js/plugin.contactimporter.js:198 msgid "{0}% loaded" msgstr "{0}% geladen" -#: js/plugin.contactimporter.js:305 +#: js/plugin.contactimporter.js:310 msgid "Contactimporter Plugin" msgstr "Kontakt Plugin" diff --git a/languages/en_US.UTF-8/LC_MESSAGES/plugin_calendarimporter.mo b/languages/en_US.UTF-8/LC_MESSAGES/plugin_calendarimporter.mo index 3753ba00697371b965bf363372a9b478df590215..b575d2edeab4832105ae0c4970f193de3cf33bea 100644 GIT binary patch delta 1034 zcma*mOGs2v9LMqhJeo&7vdK}$=akcwiy5H?l@uf}gg|uTMrhGPLINkk(v1#A1?IxV zMbMo~7ve&pw&6x_kue(~MM7yI5fS1}r0?%~gO(lU+|Rjp=AQFEzkBC<^-Q9$9}CVK zt%Y7sf8sOi#1%gW+CsoAgo_x)B`n8ftiq32f}imMe#KJ!hH3nX16Ua}OX4uL;ya9* z73>28E$|61;wE0gBF6B*^8__=!D~2&)wqV5XA4VM z-*y<(a^VmYc!p(ILshz-#;bT2RnTKp60b0WQ>X=2@D^^P?)UQ}B~yV%q*{-BWg)h$ z`^&JL^)1doQKnEgbRsoaFRIc$OydwL%4tku5f$Yz^08*Ns|7Nso#!|xnQm0!{hp6d z^S;D_qI}IjQO=@n*g#z`qN3bIKK7e~c6y46vWaRnQ9G*e9u7)u0F~r3R1$B!>kcZ( zRa8M=l)s`ly-D}e z^*EJKT-9BtD-N|A^cr`>!Fdp<4JYqSJkP%vbMk@q==pGD^r`bJS`{9DI5L*aX4m&3 c(SWlWx*zPgb35mphEnceJr#cM`_H@o03wHAP5=M^ delta 945 zcmY+?J4hT+7>410FS=f$(e=8~81FV&1&InNG+-b$Vh9!nQe-fKimn!GAt|<$6$^0; ztXe1*3Q+uddusUp(j{~TBAF#kIWgi(l zW#S7)G3mR2D!7h$xQpF*h`RpTpTENj&b0~(S|v7O16JW%RGm+#1yA5JoWmH;w`B%J zOnmqM_<;?apP?3XgW7o>%Z_6S>H)pji4N-iRn!Bv@gFH3AV15ndfmT?N^Tc*T^4hA zzWrvP6&|CayTE#ECoe@ego-Z3K?T#Ooi3x2*g!3G&o_&zcY>6%OH^{#sO#&vS@Z46 zU(xk2P{BbC+Sv#yy0550E^5VFsOa`FhQCldzw+n*qmnD&VlC(;YUh2Z>5Cp+~Kavu1y$*tZ1r0jsGdoAp`?M?Mkn!9jdMucK>Y z`u@DAHS|6r)XsS2Rzp`zT9{(fj@0xHo9Jb9Z?{-Ve@<6ZLJzH)fs(X-CowuUW&JbL yvrb|j6G>+@IWg`248`5k{OD0@_)RF>_4-whI~i&A21hHA#eka)b@>0^2JZnc4^u?| diff --git a/languages/en_US.UTF-8/LC_MESSAGES/plugin_calendarimporter.po b/languages/en_US.UTF-8/LC_MESSAGES/plugin_calendarimporter.po index b083f50..a7b0583 100644 --- a/languages/en_US.UTF-8/LC_MESSAGES/plugin_calendarimporter.po +++ b/languages/en_US.UTF-8/LC_MESSAGES/plugin_calendarimporter.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Plugin Contactimporter\n" -"POT-Creation-Date: 2016-11-29 15:47+0100\n" -"PO-Revision-Date: 2016-11-29 15:47+0100\n" +"POT-Creation-Date: 2016-11-29 18:34+0100\n" +"PO-Revision-Date: 2016-11-29 18:34+0100\n" "Last-Translator: \n" "Language-Team: Christoph Haas \n" "Language: en_US\n" @@ -70,7 +70,7 @@ msgstr "Uploading and parsing contacts..." #: js/dialogs/ImportPanel.js:432 js/dialogs/ImportPanel.js:531 #: js/dialogs/ImportPanel.js:539 js/dialogs/ImportPanel.js:586 -#: js/plugin.contactimporter.js:164 +#: js/plugin.contactimporter.js:169 msgid "Error" msgstr "Error" @@ -104,32 +104,42 @@ msgstr "Import failed: {0}" msgid "Export vCard" msgstr "Export vCard" -#: js/plugin.contactimporter.js:110 js/ui/ContextMenu.js:135 +#. TRANSLATORS: {0} will be replaced by the number of contacts that will be exported +#. TRANSLATORS: {0} will be replaced by the number of contacts that will be exported +#: js/plugin.contactimporter.js:93 js/ui/ContextMenu.js:104 +msgid "Contact Export" +msgstr "Contact Export" + +#: js/plugin.contactimporter.js:93 js/ui/ContextMenu.js:104 +msgid "Exporting {0} contacts. Please wait..." +msgstr "Exporting {0} contacts. Please wait..." + +#: js/plugin.contactimporter.js:115 js/ui/ContextMenu.js:139 msgid "Warning" msgstr "Warning" -#: js/plugin.contactimporter.js:139 +#: js/plugin.contactimporter.js:144 msgid "Import to Contacts" msgstr "Import to Contacts" -#: js/plugin.contactimporter.js:178 +#: js/plugin.contactimporter.js:183 msgid "Please wait" msgstr "Please wait" -#: js/plugin.contactimporter.js:179 +#: js/plugin.contactimporter.js:184 msgid "Loading attachment..." msgstr "Loading attachment..." -#: js/plugin.contactimporter.js:180 +#: js/plugin.contactimporter.js:185 msgid "Initializing..." msgstr "Initializing..." #. TRANSLATORS: {0} will be replaced by the percentage value (0-100) -#: js/plugin.contactimporter.js:193 +#: js/plugin.contactimporter.js:198 msgid "{0}% loaded" msgstr "{0}% loaded" -#: js/plugin.contactimporter.js:305 +#: js/plugin.contactimporter.js:310 msgid "Contactimporter Plugin" msgstr "Contactimporter Plugin"