Official MailerLite Sign Up Forms - Version 1.2.1

Version Description

adding en_US locale language translation files

Download this release

Release Info

Developer mailerlite
Plugin Icon 128x128 Official MailerLite Sign Up Forms
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2 to 1.2.1

Files changed (83) hide show
  1. languages/mailerlite-en_US.mo +0 -0
  2. languages/mailerlite-en_US.po +465 -0
  3. mailerlite.php +2 -2
  4. readme.txt +5 -1
  5. trunk/assets/css/mailerlite.css +70 -0
  6. trunk/assets/css/mailerlite_forms.css +44 -0
  7. trunk/assets/image/header.png +0 -0
  8. trunk/assets/image/icon.png +0 -0
  9. trunk/assets/image/shortcode.png +0 -0
  10. trunk/assets/js/localization/jquery.validate/messages_ar.js +23 -0
  11. trunk/assets/js/localization/jquery.validate/messages_bg.js +23 -0
  12. trunk/assets/js/localization/jquery.validate/messages_ca.js +23 -0
  13. trunk/assets/js/localization/jquery.validate/messages_cs.js +23 -0
  14. trunk/assets/js/localization/jquery.validate/messages_da.js +20 -0
  15. trunk/assets/js/localization/jquery.validate/messages_de.js +20 -0
  16. trunk/assets/js/localization/jquery.validate/messages_el.js +23 -0
  17. trunk/assets/js/localization/jquery.validate/messages_es.js +23 -0
  18. trunk/assets/js/localization/jquery.validate/messages_eu.js +23 -0
  19. trunk/assets/js/localization/jquery.validate/messages_fa.js +23 -0
  20. trunk/assets/js/localization/jquery.validate/messages_fi.js +21 -0
  21. trunk/assets/js/localization/jquery.validate/messages_fr.js +23 -0
  22. trunk/assets/js/localization/jquery.validate/messages_he.js +23 -0
  23. trunk/assets/js/localization/jquery.validate/messages_hu.js +20 -0
  24. trunk/assets/js/localization/jquery.validate/messages_it.js +23 -0
  25. trunk/assets/js/localization/jquery.validate/messages_ja.js +23 -0
  26. trunk/assets/js/localization/jquery.validate/messages_kk.js +23 -0
  27. trunk/assets/js/localization/jquery.validate/messages_lt.js +23 -0
  28. trunk/assets/js/localization/jquery.validate/messages_lv.js +23 -0
  29. trunk/assets/js/localization/jquery.validate/messages_nl.js +23 -0
  30. trunk/assets/js/localization/jquery.validate/messages_no.js +23 -0
  31. trunk/assets/js/localization/jquery.validate/messages_pl.js +23 -0
  32. trunk/assets/js/localization/jquery.validate/messages_ro.js +23 -0
  33. trunk/assets/js/localization/jquery.validate/messages_ru.js +23 -0
  34. trunk/assets/js/localization/jquery.validate/messages_si.js +23 -0
  35. trunk/assets/js/localization/jquery.validate/messages_sk.js +20 -0
  36. trunk/assets/js/localization/jquery.validate/messages_sl.js +23 -0
  37. trunk/assets/js/localization/jquery.validate/messages_th.js +23 -0
  38. trunk/assets/js/localization/jquery.validate/messages_vi.js +23 -0
  39. trunk/assets/js/mailerlite_shortcode.js +28 -0
  40. trunk/include/mailerlite-admin.php +540 -0
  41. trunk/include/mailerlite-form.php +238 -0
  42. trunk/include/mailerlite-shortcode.php +110 -0
  43. trunk/include/mailerlite-widget.php +126 -0
  44. trunk/include/settings/languages.php +35 -0
  45. trunk/include/templates/admin/api_key.php +34 -0
  46. trunk/include/templates/admin/create.php +61 -0
  47. trunk/include/templates/admin/edit_custom.php +206 -0
  48. trunk/include/templates/admin/edit_embedded.php +96 -0
  49. trunk/include/templates/admin/header.php +9 -0
  50. trunk/include/templates/admin/main.php +74 -0
  51. trunk/include/templates/admin/settings.php +69 -0
  52. trunk/include/templates/admin/sidebar.php +13 -0
  53. trunk/include/templates/common/tiny_mce.php +40 -0
  54. trunk/include/templates/forms/custom_form.php +71 -0
  55. trunk/include/templates/forms/embedded_form.php +1 -0
  56. trunk/languages/mailerlite-en_US.mo +0 -0
  57. trunk/languages/mailerlite-en_US.po +465 -0
  58. trunk/languages/mailerlite-fi_FI.mo +0 -0
  59. trunk/languages/mailerlite-fi_FI.po +466 -0
  60. trunk/languages/mailerlite-it_IT.mo +0 -0
  61. trunk/languages/mailerlite-it_IT.po +466 -0
  62. trunk/languages/mailerlite-lt_LT.mo +0 -0
  63. trunk/languages/mailerlite-lt_LT.po +478 -0
  64. trunk/languages/mailerlite-ru_RU.mo +0 -0
  65. trunk/languages/mailerlite-ru_RU.po +466 -0
  66. trunk/languages/mailerlite-sv_SE.mo +0 -0
  67. trunk/languages/mailerlite-sv_SE.po +466 -0
  68. trunk/languages/mailerlite-uk_UA.mo +0 -0
  69. trunk/languages/mailerlite-uk_UA.po +466 -0
  70. trunk/libs/mailerlite_rest/ML_Campaigns.php +55 -0
  71. trunk/libs/mailerlite_rest/ML_Lists.php +40 -0
  72. trunk/libs/mailerlite_rest/ML_Subscribers.php +57 -0
  73. trunk/libs/mailerlite_rest/ML_Webforms.php +13 -0
  74. trunk/libs/mailerlite_rest/base/ML_Rest.php +59 -0
  75. trunk/libs/mailerlite_rest/base/ML_Rest_Base.php +234 -0
  76. trunk/mailerlite.php +127 -0
  77. trunk/readme.txt +322 -0
  78. trunk/screenshot-1.jpg +0 -0
  79. trunk/screenshot-2.jpg +0 -0
  80. trunk/screenshot-3.jpg +0 -0
  81. trunk/screenshot-4.jpg +0 -0
  82. trunk/screenshot-5.jpg +0 -0
  83. trunk/screenshot-6.jpg +0 -0
languages/mailerlite-en_US.mo ADDED
Binary file
languages/mailerlite-en_US.po ADDED
@@ -0,0 +1,465 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "MIME-Version: 1.0\n"
4
+ "Content-Type: text/plain; charset=UTF-8\n"
5
+ "Content-Transfer-Encoding: 8bit\n"
6
+ "X-Generator: Poedit 1.6.7\n"
7
+ "Project-Id-Version: MailerLite wordpress plugin\n"
8
+ "Language: en\n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: \n"
11
+ "Last-Translator: \n"
12
+ "Language-Team: \n"
13
+
14
+ # @ mailerlite
15
+ #: include/mailerlite-admin.php:133
16
+ msgid "Subscribe for newsletter!"
17
+ msgstr "Subscribe for newsletter!"
18
+
19
+ # @ mailerlite
20
+ #: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
21
+ msgid "Newsletter signup"
22
+ msgstr "Newsletter signup"
23
+
24
+ # @ mailerlite
25
+ #: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
26
+ msgid "Just simple MailerLite form!"
27
+ msgstr "Just simple MailerLite form!"
28
+
29
+ # @ mailerlite
30
+ # @ default
31
+ #: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
32
+ #: include/templates/admin/edit_custom.php:55
33
+ msgid "Subscribe"
34
+ msgstr "Subscribe"
35
+
36
+ # @ mailerlite
37
+ #: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
38
+ msgid "Email"
39
+ msgstr "Email"
40
+
41
+ # @ mailerlite
42
+ #: include/mailerlite-admin.php:198
43
+ msgid "Embedded webform"
44
+ msgstr "Embedded webform"
45
+
46
+ # @ mailerlite
47
+ #: include/mailerlite-admin.php:267
48
+ msgid "You not allowed to do that"
49
+ msgstr "You not allowed to do that"
50
+
51
+ # @ mailerlite
52
+ #: include/mailerlite-admin.php:277
53
+ msgid "Wrong MailerLite API key"
54
+ msgstr "Wrong MailerLite API key"
55
+
56
+ # @ mailerlite
57
+ #: include/mailerlite-admin.php:299
58
+ msgid "New custom signup form"
59
+ msgstr "New custom signup form"
60
+
61
+ # @ mailerlite
62
+ #: include/mailerlite-admin.php:310
63
+ msgid "New embedded signup form"
64
+ msgstr "New embedded signup form"
65
+
66
+ # @ mailerlite
67
+ #: include/mailerlite-widget.php:13
68
+ msgid "Mailerlite sign up form"
69
+ msgstr "Mailerlite sign up form"
70
+
71
+ # @ mailerlite
72
+ #: include/mailerlite-widget.php:14
73
+ msgid "MailerLite sign up form Widget"
74
+ msgstr "MailerLite sign up form Widget"
75
+
76
+ # @ mailerlite
77
+ #: include/mailerlite-widget.php:66
78
+ msgid "Select form:"
79
+ msgstr "Select form:"
80
+
81
+ # @ mailerlite
82
+ #: include/templates/admin/api_key.php:19
83
+ #: include/templates/admin/settings.php:19
84
+ msgid "Enter an API key"
85
+ msgstr "Enter an API key"
86
+
87
+ # @ mailerlite
88
+ #: include/templates/admin/api_key.php:20
89
+ #: include/templates/admin/settings.php:20
90
+ msgid "Don't know where to find it?"
91
+ msgstr "Don't know where to find it?"
92
+
93
+ # @ mailerlite
94
+ #: include/templates/admin/api_key.php:20
95
+ #: include/templates/admin/settings.php:20
96
+ msgid "Check it here!"
97
+ msgstr "Check it here!"
98
+
99
+ # @ mailerlite
100
+ #: include/templates/admin/api_key.php:25
101
+ #: include/templates/admin/settings.php:25
102
+ msgid "Save this key"
103
+ msgstr "Save this key"
104
+
105
+ # @ mailerlite
106
+ #: include/templates/admin/api_key.php:31
107
+ #: include/templates/admin/settings.php:31
108
+ msgid "Don't have an account?"
109
+ msgstr "Don't have an account?"
110
+
111
+ # @ mailerlite
112
+ #: include/templates/admin/api_key.php:32
113
+ #: include/templates/admin/settings.php:32
114
+ msgid "Register!"
115
+ msgstr "Register!"
116
+
117
+ # @ mailerlite
118
+ #: include/templates/admin/create.php:11
119
+ msgid "Form type"
120
+ msgstr "Form type"
121
+
122
+ # @ mailerlite
123
+ #: include/templates/admin/create.php:40
124
+ msgid "Webforms created using MailerLite"
125
+ msgstr "Forms created using MailerLite (Embed and button)"
126
+
127
+ # @ mailerlite
128
+ #: include/templates/admin/create.php:28
129
+ msgid "Create form"
130
+ msgstr "Create form"
131
+
132
+ # @ mailerlite
133
+ #: include/templates/admin/create.php:29
134
+ #: include/templates/admin/edit_custom.php:96
135
+ #: include/templates/admin/edit_embedded.php:42
136
+ msgid "Back"
137
+ msgstr "Back"
138
+
139
+ # @ mailerlite
140
+ #: include/templates/admin/edit_custom.php:21
141
+ #: include/templates/admin/edit_embedded.php:21
142
+ msgid "Tip:"
143
+ msgstr "Tip:"
144
+
145
+ # @ mailerlite
146
+ #: include/templates/admin/edit_custom.php:21
147
+ #: include/templates/admin/edit_embedded.php:21
148
+ msgid "This title won't be displayed in public!"
149
+ msgstr "This title won't be displayed in public!"
150
+
151
+ # @ mailerlite
152
+ # @ default
153
+ #: include/templates/admin/edit_custom.php:34
154
+ #: include/templates/admin/edit_custom.php:55
155
+ msgid "Example:"
156
+ msgstr "Example:"
157
+
158
+ # @ mailerlite
159
+ #: include/templates/admin/edit_custom.php:34
160
+ msgid "Newsletter signup!"
161
+ msgstr "Newsletter signup!"
162
+
163
+ # @ mailerlite
164
+ #: include/templates/admin/edit_embedded.php:15
165
+ msgid "Webform details"
166
+ msgstr "Webform details"
167
+
168
+ # @ mailerlite
169
+ #: include/templates/admin/edit_custom.php:33
170
+ #: include/templates/admin/edit_embedded.php:20
171
+ msgid "Form title"
172
+ msgstr "Form title"
173
+
174
+ # @ mailerlite
175
+ #: include/templates/admin/main.php:30
176
+ msgid "Are you sure you want to delete this form?"
177
+ msgstr "Are you sure you want to delete this form?"
178
+
179
+ # @ mailerlite
180
+ #: include/templates/admin/settings.php:10
181
+ msgid "Here you are able to change your API key!"
182
+ msgstr "Here you are able to change your API key!"
183
+
184
+ # @ mailerlite
185
+ #: include/templates/admin/sidebar.php:4
186
+ msgid "Need help?"
187
+ msgstr "Need help?"
188
+
189
+ # @ mailerlite
190
+ #: include/templates/admin/sidebar.php:6
191
+ msgid ""
192
+ "Have any questions? Stuck on something or found bug? Feel free to contact us!"
193
+ msgstr ""
194
+ "Have any questions? Stuck on something or found bug? Feel free to contact us!"
195
+
196
+ # @ mailerlite
197
+ #: include/templates/admin/api_key.php:10
198
+ msgid ""
199
+ "Hi there! You will be able to create awesome signup forms, but first we need "
200
+ "your MailerLite API key!"
201
+ msgstr ""
202
+ "Hi there! You will be able to create awesome signup forms, but first we need "
203
+ "your MailerLite API key!"
204
+
205
+ # @ mailerlite
206
+ #: include/templates/admin/create.php:17
207
+ msgid "Custom signup form"
208
+ msgstr "Custom signup form"
209
+
210
+ # @ mailerlite
211
+ #: include/templates/admin/main.php:14
212
+ msgid "ID"
213
+ msgstr "ID"
214
+
215
+ # @ mailerlite
216
+ #: include/templates/admin/main.php:16
217
+ msgid "Type"
218
+ msgstr "Type"
219
+
220
+ # @ mailerlite
221
+ #: include/templates/admin/main.php:17
222
+ msgid "Date"
223
+ msgstr "Date"
224
+
225
+ # @ mailerlite
226
+ #: include/templates/admin/main.php:33
227
+ msgid "Custom form"
228
+ msgstr "Custom form"
229
+
230
+ # @ mailerlite
231
+ #: include/templates/admin/main.php:33
232
+ msgid "Embedded form"
233
+ msgstr "Embedded form"
234
+
235
+ # @ mailerlite
236
+ #: include/templates/admin/main.php:42
237
+ msgid "There is no signup forms created yet!"
238
+ msgstr "There is no signup forms created yet!"
239
+
240
+ # @ mailerlite
241
+ #: include/templates/admin/main.php:43
242
+ msgid "Create signup form"
243
+ msgstr "Create signup form"
244
+
245
+ # @ mailerlite
246
+ #: include/templates/admin/edit_custom.php:7
247
+ #: include/templates/admin/edit_embedded.php:7
248
+ msgid "Form saved."
249
+ msgstr "Form saved."
250
+
251
+ # @ mailerlite
252
+ #: include/templates/admin/edit_custom.php:7
253
+ #: include/templates/admin/edit_embedded.php:7
254
+ msgid "Back to forms list"
255
+ msgstr "Back to forms list"
256
+
257
+ # @ mailerlite
258
+ #: include/templates/admin/edit_custom.php:15
259
+ msgid "Main information"
260
+ msgstr "Main information"
261
+
262
+ # @ default
263
+ #: include/templates/admin/edit_custom.php:20
264
+ msgid "Form name"
265
+ msgstr "Form name"
266
+
267
+ # @ mailerlite
268
+ #: include/templates/admin/edit_custom.php:28
269
+ msgid "Form details"
270
+ msgstr "Form details"
271
+
272
+ # @ mailerlite
273
+ #: include/templates/admin/edit_custom.php:37
274
+ msgid "Form description"
275
+ msgstr "Form description"
276
+
277
+ # @ mailerlite
278
+ #: include/templates/admin/edit_custom.php:54
279
+ msgid "Button title"
280
+ msgstr "Button title"
281
+
282
+ # @ mailerlite
283
+ #: include/templates/admin/edit_custom.php:62
284
+ msgid "Form fields and lists"
285
+ msgstr "Form fields and lists"
286
+
287
+ # @ mailerlite
288
+ #: include/templates/admin/edit_custom.php:67
289
+ msgid "Fields"
290
+ msgstr "Fields"
291
+
292
+ # @ mailerlite
293
+ #: include/templates/admin/edit_custom.php:80
294
+ msgid "Lists"
295
+ msgstr "Lists"
296
+
297
+ # @ mailerlite
298
+ #: include/templates/admin/edit_custom.php:95
299
+ #: include/templates/admin/edit_embedded.php:41
300
+ msgid "Save form"
301
+ msgstr "Save form"
302
+
303
+ # @ mailerlite
304
+ #: include/templates/admin/edit_embedded.php:24
305
+ msgid "Webform"
306
+ msgstr "Webform"
307
+
308
+ # @ mailerlite
309
+ #: include/templates/admin/main.php:15
310
+ msgid "Name"
311
+ msgstr "Name"
312
+
313
+ # @ mailerlite
314
+ #: include/templates/admin/main.php:29
315
+ msgid "Edit"
316
+ msgstr "Edit"
317
+
318
+ # @ mailerlite
319
+ #: include/templates/admin/main.php:30
320
+ msgid "Delete"
321
+ msgstr "Delete"
322
+
323
+ # @ mailerlite
324
+ #: include/mailerlite-admin.php:52
325
+ msgid "Forms"
326
+ msgstr "Forms"
327
+
328
+ # @ mailerlite
329
+ #: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
330
+ msgid "Signup forms"
331
+ msgstr "Signup forms"
332
+
333
+ # @ mailerlite
334
+ #: include/mailerlite-admin.php:53
335
+ msgid "Settings"
336
+ msgstr "Settings"
337
+
338
+ # @ mailerlite
339
+ #: include/templates/admin/main.php:5
340
+ msgid "Add New"
341
+ msgstr "Add New"
342
+
343
+ # @ mailerlite
344
+ #: include/mailerlite-form.php:75
345
+ msgid "Subscriber successfully saved"
346
+ msgstr "Subscriber successfully saved"
347
+
348
+ # @ mailerlite
349
+ #: include/mailerlite-form.php:79
350
+ msgid "Form not found"
351
+ msgstr "Form not found"
352
+
353
+ # @ mailerlite
354
+ #: include/mailerlite-form.php:84
355
+ msgid "Wrong data provided"
356
+ msgstr "Wrong data provided"
357
+
358
+ # @ mailerlite
359
+ #: include/templates/admin/create.php:5
360
+ msgid "Add signup form"
361
+ msgstr "Add signup form"
362
+
363
+ # @ mailerlite
364
+ #: include/templates/admin/edit_custom.php:5
365
+ msgid "Edit custom signup form"
366
+ msgstr "Edit custom signup form"
367
+
368
+ # @ mailerlite
369
+ #: include/templates/admin/edit_embedded.php:5
370
+ msgid "Edit webform"
371
+ msgstr "Edit webform"
372
+
373
+ # @ mailerlite
374
+ #: include/templates/admin/settings.php:5
375
+ msgid "Plugin settings"
376
+ msgstr "Plugin settings"
377
+
378
+ # @ mailerlite
379
+ #: include/templates/common/tiny_mce.php:13
380
+ msgid ""
381
+ "Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
382
+ "to your post!"
383
+ msgstr ""
384
+ "Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
385
+ "to your post!"
386
+
387
+ # @ mailerlite
388
+ #: include/templates/forms/custom_form.php:20
389
+ msgid "Please wait..."
390
+ msgstr "Please wait..."
391
+
392
+ # @ mailerlite
393
+ #: include/templates/forms/custom_form.php:28
394
+ msgid "Thank you for signup!"
395
+ msgstr "Thank you for signup!"
396
+
397
+ # @ mailerlite
398
+ #: include/templates/common/tiny_mce.php:24
399
+ msgid "Add Shortcode"
400
+ msgstr "Add Shortcode"
401
+
402
+ # @ mailerlite
403
+ #: include/mailerlite_admin.php:395
404
+ msgid "Send this error to info@mailerlite.com or our chat"
405
+ msgstr "Send this error to info@mailerlite.com or our chat"
406
+
407
+ # @ mailerlite
408
+ #: include/templates/admin/edit_custom.php:20
409
+ msgid "Please wait message"
410
+ msgstr "\"Please wait\" message"
411
+
412
+ # @ mailerlite
413
+ #: include/mailerlite/admin.php:150
414
+ msgid "Error happened"
415
+ msgstr "Error happened"
416
+
417
+ # @ mailerlite
418
+ #: include/mailerlite/admin.php:46
419
+ msgid "Explanation about forms"
420
+ msgstr "Please note, that you can add <b>Embed</b> or <b>Button</b> type forms only. <b>Popup</b> forms are shown automatically on your Wordpress site. You can switch off <b>Popup</b> forms in the <a href=\"admin.php?page=mailerlite_settings\">Settings</a>. You cannot include <b>Landing</b> page in your Wordpress page."
421
+
422
+ # @ mailerlite
423
+ #: include/templates/admin/main.php:8
424
+ msgid "MailerLite popup script is"
425
+ msgstr "MailerLite popup script is"
426
+
427
+ # @ mailerlite
428
+ #: include/templates/admin/main.php:8
429
+ msgid "enabled"
430
+ msgstr "enabled"
431
+
432
+ # @ mailerlite
433
+ #: include/templates/admin/main.php:8
434
+ msgid "disabled"
435
+ msgstr "disabled"
436
+
437
+ # @ mailerlite
438
+ #: include/templates/admin/settings.php:46
439
+ msgid "Enable"
440
+ msgstr "Enable"
441
+
442
+ # @ mailerlite
443
+ #: include/templates/admin/settings.php:46
444
+ msgid "Disable"
445
+ msgstr "Disable"
446
+
447
+ # @ mailerlite
448
+ #: include/templates/admin/main.php:9
449
+ msgid "Go to settings if you want to change it"
450
+ msgstr "Go to <a href=\"admin.php?page=mailerlite_settings\">Settings</a> if you want to change it"
451
+
452
+ # @ mailerlite
453
+ #: include/templates/admin/main.php:12
454
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
455
+ msgstr "Your popup forms will be displayed automatically while the popup script is enabled"
456
+
457
+ # @ mailerlite
458
+ #: include/templates/admin/main.php:14
459
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
460
+ msgstr "Your popup forms won\'t be displayed while the popup script is disabled"
461
+
462
+ # @ mailerlite
463
+ #: include/templates/admin/settings.php:34
464
+ msgid "Popup forms script"
465
+ msgstr "Popup forms script"
mailerlite.php CHANGED
@@ -3,7 +3,7 @@
3
  /**
4
  * Plugin Name: Official MailerLite Sign Up Forms
5
  * Description: Official MailerLite Sign Up Forms plugin for WordPress. Ability to embed MailerLite webforms and create custom ones just with few clicks.
6
- * Version: 1.2
7
  * Author: MailerGroup
8
  * Author URI: https://www.mailerlite.com
9
  * License: GPLv2 or later
@@ -27,7 +27,7 @@
27
  define('MAILERLITE_PLUGIN_DIR', plugin_dir_path(__FILE__));
28
  define('MAILERLITE_PLUGIN_URL', plugins_url('', __FILE__));
29
 
30
- define('MAILERLITE_VERSION', '1.2');
31
 
32
  define('MAILERLITE_PHP_VERSION', '5.0.1');
33
  define('MAILERLITE_WP_VERSION', '3.0.1');
3
  /**
4
  * Plugin Name: Official MailerLite Sign Up Forms
5
  * Description: Official MailerLite Sign Up Forms plugin for WordPress. Ability to embed MailerLite webforms and create custom ones just with few clicks.
6
+ * Version: 1.2
7
  * Author: MailerGroup
8
  * Author URI: https://www.mailerlite.com
9
  * License: GPLv2 or later
27
  define('MAILERLITE_PLUGIN_DIR', plugin_dir_path(__FILE__));
28
  define('MAILERLITE_PLUGIN_URL', plugins_url('', __FILE__));
29
 
30
+ define('MAILERLITE_VERSION', '1.2.1');
31
 
32
  define('MAILERLITE_PHP_VERSION', '5.0.1');
33
  define('MAILERLITE_WP_VERSION', '3.0.1');
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.mailerlite.com/
4
  Tags: mailerlite, newsletter, subscribe, form, webform
5
  Requires at least: 3.0.1
6
  Tested up to: 4.8
7
- Stable tag: 1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -127,6 +127,8 @@ Add your custom CSS rules to the end of your theme stylesheet, /wp-content/theme
127
 
128
  == Changelog ==
129
 
 
 
130
  = 1.2 =
131
  some small php notice errors fixed. More clear tooltips about embed forms. Popup script settings moved to settings page. Added en_US locale translations (the same as en_EN)
132
  = 1.1.25 =
@@ -222,6 +224,8 @@ translation errors for LT language, allowing only embed and button forms
222
 
223
  == Upgrade Notice ==
224
 
 
 
225
  = 1.2 =
226
  some small php notice errors fixed. More clear tooltips about embed forms. Popup script settings moved to settings page. Added en_US locale translations (the same as en_EN)
227
  = 1.1.25 =
4
  Tags: mailerlite, newsletter, subscribe, form, webform
5
  Requires at least: 3.0.1
6
  Tested up to: 4.8
7
+ Stable tag: 1.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
127
 
128
  == Changelog ==
129
 
130
+ = 1.2.1 =
131
+ adding en_US locale language translation files
132
  = 1.2 =
133
  some small php notice errors fixed. More clear tooltips about embed forms. Popup script settings moved to settings page. Added en_US locale translations (the same as en_EN)
134
  = 1.1.25 =
224
 
225
  == Upgrade Notice ==
226
 
227
+ = 1.2.1 =
228
+ adding en_US locale language translation files
229
  = 1.2 =
230
  some small php notice errors fixed. More clear tooltips about embed forms. Popup script settings moved to settings page. Added en_US locale translations (the same as en_EN)
231
  = 1.1.25 =
trunk/assets/css/mailerlite.css ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .mailerlite-activate {
2
+ background: #FFF;
3
+ max-width: 750px;
4
+ padding: 30px;
5
+ border-radius: 5px;
6
+ }
7
+
8
+ .mailerlite-activate .description-block {
9
+ float: left;
10
+ min-width: 235px;
11
+ }
12
+
13
+ .mailerlite-activate .description-block .title {
14
+ font-size: 16px;
15
+ font-weight: bold;
16
+ }
17
+
18
+ .mailerlite-activate .input-block {
19
+ float: left;
20
+ padding-top: 25px;
21
+ }
22
+
23
+ .mailerlite-activate .input-block .popups {
24
+ padding: 15px;
25
+ display: inline;
26
+ margin: 15px 15px 15px 30px;
27
+ }
28
+
29
+ .mailerlite-empty-list {
30
+ padding: 30px;
31
+ }
32
+
33
+ .mailerlite-text-center {
34
+ text-align: center;
35
+ }
36
+
37
+ .mailerlite-pull-right {
38
+ float: right;
39
+ }
40
+
41
+ .mailerlite-header {
42
+ height: 100px;
43
+ background: url('../image/header.png');
44
+ margin: 0px 0px 20px -20px;
45
+ }
46
+
47
+ .popup-description {
48
+ background: #ffffff;
49
+ margin: 10px 0px 10px 0px;
50
+ padding: 15px;
51
+ border: 1px solid #e1e1e1;
52
+ }
53
+
54
+ .popup-description p {
55
+ margin: 0px 0px 10px 0px;
56
+ }
57
+
58
+ .mailerlite-table th {
59
+ padding-left: 15px;
60
+ }
61
+
62
+ p.info {
63
+ background: #fcf8e3;
64
+ padding: 15px;
65
+ }
66
+
67
+ p.success {
68
+ background: #dff0d8;
69
+ padding: 15px;
70
+ }
trunk/assets/css/mailerlite_forms.css ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Global forms style */
2
+
3
+ .mailerlite-form {
4
+
5
+ }
6
+
7
+ .mailerlite-form .mailerlite-form-description {
8
+ margin-bottom: 10px;
9
+ }
10
+
11
+ .mailerlite-form .mailerlite-form-field {
12
+ margin-bottom: 10px;
13
+ }
14
+
15
+ .mailerlite-form .mailerlite-form-field label {
16
+ display: block;
17
+ }
18
+
19
+ .mailerlite-form .mailerlite-subscribe-button-container {
20
+ text-align: center;
21
+ }
22
+
23
+ .mailerlite-form input.error {
24
+ color: #ff0000;
25
+ border-color: #ff0000;
26
+ }
27
+
28
+ .mailerlite-form label.error {
29
+ color: #ff0000;
30
+ }
31
+
32
+ .mailerlite-form-response {
33
+ margin-top: 20px;
34
+ display: none;
35
+ text-align: center;
36
+ color: #00a154;
37
+ }
38
+
39
+ .mailerlite-form-loader {
40
+ display:none;
41
+ text-align: center;
42
+ font-weight: bold;
43
+ margin: 0 20px;
44
+ }
trunk/assets/image/header.png ADDED
Binary file
trunk/assets/image/icon.png ADDED
Binary file
trunk/assets/image/shortcode.png ADDED
Binary file
trunk/assets/js/localization/jquery.validate/messages_ar.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin into arabic.
3
+ * Locale: AR
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "هذا الحقل إلزامي",
7
+ remote: "يرجى تصحيح هذا الحقل للمتابعة",
8
+ email: "رجاء إدخال عنوان بريد إلكتروني صحيح",
9
+ url: "رجاء إدخال عنوان موقع إلكتروني صحيح",
10
+ date: "رجاء إدخال تاريخ صحيح",
11
+ dateISO: "رجاء إدخال تاريخ صحيح (ISO)",
12
+ number: "رجاء إدخال عدد بطريقة صحيحة",
13
+ digits: "رجاء إدخال أرقام فقط",
14
+ creditcard: "رجاء إدخال رقم بطاقة ائتمان صحيح",
15
+ equalTo: "رجاء إدخال نفس القيمة",
16
+ accept: "رجاء إدخال ملف بامتداد موافق عليه",
17
+ maxlength: jQuery.validator.format("الحد الأقصى لعدد الحروف هو {0}"),
18
+ minlength: jQuery.validator.format("الحد الأدنى لعدد الحروف هو {0}"),
19
+ rangelength: jQuery.validator.format("عدد الحروف يجب أن يكون بين {0} و {1}"),
20
+ range: jQuery.validator.format("رجاء إدخال عدد قيمته بين {0} و {1}"),
21
+ max: jQuery.validator.format("رجاء إدخال عدد أقل من أو يساوي (0}"),
22
+ min: jQuery.validator.format("رجاء إدخال عدد أكبر من أو يساوي (0}")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_bg.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: BG
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Полето е задължително.",
7
+ remote: "Моля, въведете правилната стойност.",
8
+ email: "Моля, въведете валиден email.",
9
+ url: "Моля, въведете валидно URL.",
10
+ date: "Моля, въведете валидна дата.",
11
+ dateISO: "Моля, въведете валидна дата (ISO).",
12
+ number: "Моля, въведете валиден номер.",
13
+ digits: "Моля, въведете само цифри",
14
+ creditcard: "Моля, въведете валиден номер на кредитна карта.",
15
+ equalTo: "Моля, въведете същата стойност отново.",
16
+ accept: "Моля, въведете стойност с валидно разширение.",
17
+ maxlength: $.validator.format("Моля, въведете повече от {0} символа."),
18
+ minlength: $.validator.format("Моля, въведете поне {0} символа."),
19
+ rangelength: $.validator.format("Моля, въведете стойност с дължина между {0} и {1} символа."),
20
+ range: $.validator.format("Моля, въведете стойност между {0} и {1}."),
21
+ max: $.validator.format("Моля, въведете стойност по-малка или равна на {0}."),
22
+ min: $.validator.format("Моля, въведете стойност по-голяма или равна на {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_ca.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: CA
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Aquest camp és obligatori.",
7
+ remote: "Si us plau, omple aquest camp.",
8
+ email: "Si us plau, escriu una adreça de correu-e vàlida",
9
+ url: "Si us plau, escriu una URL vàlida.",
10
+ date: "Si us plau, escriu una data vàlida.",
11
+ dateISO: "Si us plau, escriu una data (ISO) vàlida.",
12
+ number: "Si us plau, escriu un número enter vàlid.",
13
+ digits: "Si us plau, escriu només dígits.",
14
+ creditcard: "Si us plau, escriu un número de tarjeta vàlid.",
15
+ equalTo: "Si us plau, escriu el maateix valor de nou.",
16
+ accept: "Si us plau, escriu un valor amb una extensió acceptada.",
17
+ maxlength: jQuery.validator.format("Si us plau, no escriguis més de {0} caracters."),
18
+ minlength: jQuery.validator.format("Si us plau, no escriguis menys de {0} caracters."),
19
+ rangelength: jQuery.validator.format("Si us plau, escriu un valor entre {0} i {1} caracters."),
20
+ range: jQuery.validator.format("Si us plau, escriu un valor entre {0} i {1}."),
21
+ max: jQuery.validator.format("Si us plau, escriu un valor menor o igual a {0}."),
22
+ min: jQuery.validator.format("Si us plau, escriu un valor major o igual a {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_cs.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: CS
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Tento údaj je povinný.",
7
+ remote: "Prosím, opravte tento údaj.",
8
+ email: "Prosím, zadejte platný e-mail.",
9
+ url: "Prosím, zadejte platné URL.",
10
+ date: "Prosím, zadejte platné datum.",
11
+ dateISO: "Prosím, zadejte platné datum (ISO).",
12
+ number: "Prosím, zadejte číslo.",
13
+ digits: "Prosím, zadávejte pouze číslice.",
14
+ creditcard: "Prosím, zadejte číslo kreditní karty.",
15
+ equalTo: "Prosím, zadejte znovu stejnou hodnotu.",
16
+ accept: "Prosím, zadejte soubor se správnou příponou.",
17
+ maxlength: jQuery.validator.format("Prosím, zadejte nejvíce {0} znaků."),
18
+ minlength: jQuery.validator.format("Prosím, zadejte nejméně {0} znaků."),
19
+ rangelength: jQuery.validator.format("Prosím, zadejte od {0} do {1} znaků."),
20
+ range: jQuery.validator.format("Prosím, zadejte hodnotu od {0} do {1}."),
21
+ max: jQuery.validator.format("Prosím, zadejte hodnotu menší nebo rovnu {0}."),
22
+ min: jQuery.validator.format("Prosím, zadejte hodnotu větší nebo rovnu {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_da.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: DA
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Dette felt er påkrævet.",
7
+ maxlength: jQuery.validator.format("Indtast højst {0} tegn."),
8
+ minlength: jQuery.validator.format("Indtast mindst {0} tegn."),
9
+ rangelength: jQuery.validator.format("Indtast mindst {0} og højst {1} tegn."),
10
+ email: "Indtast en gyldig email-adresse.",
11
+ url: "Indtast en gyldig URL.",
12
+ date: "Indtast en gyldig dato.",
13
+ number: "Indtast et tal.",
14
+ digits: "Indtast kun cifre.",
15
+ equalTo: "Indtast den samme værdi igen.",
16
+ range: jQuery.validator.format("Angiv en værdi mellem {0} og {1}."),
17
+ max: jQuery.validator.format("Angiv en værdi der højst er {0}."),
18
+ min: jQuery.validator.format("Angiv en værdi der mindst er {0}."),
19
+ creditcard: "Indtast et gyldigt kreditkortnummer."
20
+ });
trunk/assets/js/localization/jquery.validate/messages_de.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: DE
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Dieses Feld ist ein Pflichtfeld.",
7
+ maxlength: jQuery.validator.format("Geben Sie bitte maximal {0} Zeichen ein."),
8
+ minlength: jQuery.validator.format("Geben Sie bitte mindestens {0} Zeichen ein."),
9
+ rangelength: jQuery.validator.format("Geben Sie bitte mindestens {0} und maximal {1} Zeichen ein."),
10
+ email: "Geben Sie bitte eine gültige E-Mail Adresse ein.",
11
+ url: "Geben Sie bitte eine gültige URL ein.",
12
+ date: "Bitte geben Sie ein gültiges Datum ein.",
13
+ number: "Geben Sie bitte eine Nummer ein.",
14
+ digits: "Geben Sie bitte nur Ziffern ein.",
15
+ equalTo: "Bitte denselben Wert wiederholen.",
16
+ range: jQuery.validator.format("Geben Sie bitten einen Wert zwischen {0} und {1}."),
17
+ max: jQuery.validator.format("Geben Sie bitte einen Wert kleiner oder gleich {0} ein."),
18
+ min: jQuery.validator.format("Geben Sie bitte einen Wert größer oder gleich {0} ein."),
19
+ creditcard: "Geben Sie bitte ein gültige Kreditkarten-Nummer ein."
20
+ });
trunk/assets/js/localization/jquery.validate/messages_el.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: EL
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Αυτό το πεδίο είναι υποχρεωτικό.",
7
+ remote: "Παρακαλώ διορθώστε αυτό το πεδίο.",
8
+ email: "Παρακαλώ εισάγετε μια έγκυρη διεύθυνση email.",
9
+ url: "Παρακαλώ εισάγετε ένα έγκυρο URL.",
10
+ date: "Παρακαλώ εισάγετε μια έγκυρη ημερομηνία.",
11
+ dateISO: "Παρακαλώ εισάγετε μια έγκυρη ημερομηνία (ISO).",
12
+ number: "Παρακαλώ εισάγετε έναν έγκυρο αριθμό.",
13
+ digits: "Παρακαλώ εισάγετε μόνο αριθμητικά ψηφία.",
14
+ creditcard: "Παρακαλώ εισάγετε έναν έγκυρο αριθμό πιστωτικής κάρτας.",
15
+ equalTo: "Παρακαλώ εισάγετε την ίδια τιμή ξανά.",
16
+ accept: "Παρακαλώ εισάγετε μια τιμή με έγκυρη επέκταση αρχείου.",
17
+ maxlength: jQuery.validator.format("Παρακαλώ εισάγετε μέχρι και {0} χαρακτήρες."),
18
+ minlength: jQuery.validator.format("Παρακαλώ εισάγετε τουλάχιστον {0} χαρακτήρες."),
19
+ rangelength: jQuery.validator.format("Παρακαλώ εισάγετε μια τιμή με μήκος μεταξύ {0} και {1} χαρακτήρων."),
20
+ range: jQuery.validator.format("Παρακαλώ εισάγετε μια τιμή μεταξύ {0} και {1}."),
21
+ max: jQuery.validator.format("Παρακαλώ εισάγετε μια τιμή μικρότερη ή ίση του {0}."),
22
+ min: jQuery.validator.format("Παρακαλώ εισάγετε μια τιμή μεγαλύτερη ή ίση του {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_es.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: ES
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Este campo es obligatorio.",
7
+ remote: "Por favor, rellena este campo.",
8
+ email: "Por favor, escribe una dirección de correo válida",
9
+ url: "Por favor, escribe una URL válida.",
10
+ date: "Por favor, escribe una fecha válida.",
11
+ dateISO: "Por favor, escribe una fecha (ISO) válida.",
12
+ number: "Por favor, escribe un número entero válido.",
13
+ digits: "Por favor, escribe sólo dígitos.",
14
+ creditcard: "Por favor, escribe un número de tarjeta válido.",
15
+ equalTo: "Por favor, escribe el mismo valor de nuevo.",
16
+ accept: "Por favor, escribe un valor con una extensión aceptada.",
17
+ maxlength: jQuery.validator.format("Por favor, no escribas más de {0} caracteres."),
18
+ minlength: jQuery.validator.format("Por favor, no escribas menos de {0} caracteres."),
19
+ rangelength: jQuery.validator.format("Por favor, escribe un valor entre {0} y {1} caracteres."),
20
+ range: jQuery.validator.format("Por favor, escribe un valor entre {0} y {1}."),
21
+ max: jQuery.validator.format("Por favor, escribe un valor menor o igual a {0}."),
22
+ min: jQuery.validator.format("Por favor, escribe un valor mayor o igual a {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_eu.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: EU (Basque)
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Eremu hau beharrezkoa da.",
7
+ remote: "Mesedez, bete eremu hau.",
8
+ email: "Mesedez, idatzi baliozko posta helbide bat.",
9
+ url: "Mesedez, idatzi baliozko URL bat.",
10
+ date: "Mesedez, idatzi baliozko data bat.",
11
+ dateISO: "Mesedez, idatzi baliozko (ISO) data bat.",
12
+ number: "Mesedez, idatzi baliozko zenbaki oso bat.",
13
+ digits: "Mesedez, idatzi digituak soilik.",
14
+ creditcard: "Mesedez, idatzi baliozko txartel zenbaki bat.",
15
+ equalTo: "Mesedez, idatzi berdina berriro ere.",
16
+ accept: "Mesedez, idatzi onartutako luzapena duen balio bat.",
17
+ maxlength: jQuery.validator.format("Mesedez, ez idatzi {0} karaktere baino gehiago."),
18
+ minlength: jQuery.validator.format("Mesedez, ez idatzi {0} karaktere baino gutxiago."),
19
+ rangelength: jQuery.validator.format("Mesedez, idatzi {0} eta {1} karaktere arteko balio bat."),
20
+ range: jQuery.validator.format("Mesedez, idatzi {0} eta {1} arteko balio bat."),
21
+ max: jQuery.validator.format("Mesedez, idatzi {0} edo txikiagoa den balio bat."),
22
+ min: jQuery.validator.format("Mesedez, idatzi {0} edo handiagoa den balio bat.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_fa.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: FA
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "تکمیل این فیلد اجباری است.",
7
+ remote: "لطفا این فیلد را تصحیح کنید.",
8
+ email: ".لطفا یک ایمیل صحیح وارد کنید",
9
+ url: "لطفا آدرس صحیح وارد کنید.",
10
+ date: "لطفا یک تاریخ صحیح وارد کنید",
11
+ dateISO: "لطفا تاریخ صحیح وارد کنید (ISO).",
12
+ number: "لطفا عدد صحیح وارد کنید.",
13
+ digits: "لطفا تنها رقم وارد کنید",
14
+ creditcard: "لطفا کریدیت کارت صحیح وارد کنید.",
15
+ equalTo: "لطفا مقدار برابری وارد کنید",
16
+ accept: "لطفا مقداری وارد کنید که ",
17
+ maxlength: jQuery.validator.format("لطفا بیشتر از {0} حرف وارد نکنید."),
18
+ minlength: jQuery.validator.format("لطفا کمتر از {0} حرف وارد نکنید."),
19
+ rangelength: jQuery.validator.format("لطفا مقداری بین {0} تا {1} حرف وارد کنید."),
20
+ range: jQuery.validator.format("لطفا مقداری بین {0} تا {1} حرف وارد کنید."),
21
+ max: jQuery.validator.format("لطفا مقداری کمتر از {0} حرف وارد کنید."),
22
+ min: jQuery.validator.format("لطفا مقداری بیشتر از {0} حرف وارد کنید.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_fi.js ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: FI
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "T&auml;m&auml; kentt&auml; on pakollinen.",
7
+ maxlength: jQuery.validator.format("Voit sy&ouml;tt&auml;&auml; enint&auml;&auml;n {0} merkki&auml;."),
8
+ minlength: jQuery.validator.format("V&auml;hint&auml;&auml;n {0} merkki&auml;."),
9
+ rangelength: jQuery.validator.format("Sy&ouml;t&auml; v&auml;hint&auml;&auml;n {0} ja enint&auml;&auml;n {1} merkki&auml;."),
10
+ email: "Sy&ouml;t&auml; oikea s&auml;hk&ouml;postiosoite.",
11
+ url: "Sy&ouml;t&auml; oikea URL osoite.",
12
+ date: "Sy&ouml;t&auml; oike p&auml;iv&auml;m&auml;&auml;r&auml;.",
13
+ dateISO: "Sy&ouml;t&auml; oike p&auml;iv&auml;m&auml;&auml;r&auml; (VVVV-MM-DD).",
14
+ number: "Sy&ouml;t&auml; numero.",
15
+ digits: "Sy&ouml;t&auml; pelk&auml;st&auml;&auml;n numeroita.",
16
+ equalTo: "Sy&ouml;t&auml; sama arvo uudestaan.",
17
+ range: jQuery.validator.format("Sy&ouml;t&auml; arvo {0} ja {1} v&auml;lilt&auml;."),
18
+ max: jQuery.validator.format("Sy&ouml;t&auml; arvo joka on yht&auml; suuri tai suurempi kuin {0}."),
19
+ min: jQuery.validator.format("Sy&ouml;t&auml; arvo joka on pienempi tai yht&auml; suuri kuin {0}."),
20
+ creditcard: "Sy&ouml;t&auml; voimassa oleva luottokorttinumero."
21
+ });
trunk/assets/js/localization/jquery.validate/messages_fr.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: FR
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Ce champ est requis.",
7
+ remote: "Veuillez remplir ce champ pour continuer.",
8
+ email: "Veuillez entrer une adresse email valide.",
9
+ url: "Veuillez entrer une URL valide.",
10
+ date: "Veuillez entrer une date valide.",
11
+ dateISO: "Veuillez entrer une date valide (ISO).",
12
+ number: "Veuillez entrer un nombre valide.",
13
+ digits: "Veuillez entrer (seulement) une valeur numérique.",
14
+ creditcard: "Veuillez entrer un numéro de carte de crédit valide.",
15
+ equalTo: "Veuillez entrer une nouvelle fois la même valeur.",
16
+ accept: "Veuillez entrer une valeur avec une extension valide.",
17
+ maxlength: jQuery.validator.format("Veuillez ne pas entrer plus de {0} caractères."),
18
+ minlength: jQuery.validator.format("Veuillez entrer au moins {0} caractères."),
19
+ rangelength: jQuery.validator.format("Veuillez entrer entre {0} et {1} caractères."),
20
+ range: jQuery.validator.format("Veuillez entrer une valeur entre {0} et {1}."),
21
+ max: jQuery.validator.format("Veuillez entrer une valeur inférieure ou égale à {0}."),
22
+ min: jQuery.validator.format("Veuillez entrer une valeur supérieure ou égale à {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_he.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: HE
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: ".השדה הזה הינו שדה חובה",
7
+ remote: "נא לתקן שדה זה.",
8
+ email: "נא למלא כתובת דוא\"ל חוקית",
9
+ url: "נא למלא כתובת אינטרנט חוקית.",
10
+ date: "נא למלא תאריך חוקי",
11
+ dateISO: "נא למלא תאריך חוקי (ISO).",
12
+ number: "נא למלא מספר.",
13
+ digits: ".נא למלא רק מספרים",
14
+ creditcard: "נא למלא מספר כרטיס אשראי חוקי.",
15
+ equalTo: "נא למלא את אותו ערך שוב.",
16
+ accept: "נא למלא ערך עם סיומת חוקית.",
17
+ maxlength: jQuery.validator.format(".נא לא למלא יותר מ- {0} תווים"),
18
+ minlength: jQuery.validator.format("נא למלא לפחות {0} תווים."),
19
+ rangelength: jQuery.validator.format("נא למלא ערך בין {0} ל- {1} תווים."),
20
+ range: jQuery.validator.format("נא למלא ערך בין {0} ל- {1}."),
21
+ max: jQuery.validator.format("נא למלא ערך קטן או שווה ל- {0}."),
22
+ min: jQuery.validator.format("נא למלא ערך גדול או שווה ל- {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_hu.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: HU
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Kötelező megadni.",
7
+ maxlength: jQuery.validator.format("Legfeljebb {0} karakter hosszú legyen."),
8
+ minlength: jQuery.validator.format("Legalább {0} karakter hosszú legyen."),
9
+ rangelength: jQuery.validator.format("Legalább {0} és legfeljebb {1} karakter hosszú legyen."),
10
+ email: "Érvényes e-mail címnek kell lennie.",
11
+ url: "Érvényes URL-nek kell lennie.",
12
+ date: "Dátumnak kell lennie.",
13
+ number: "Számnak kell lennie.",
14
+ digits: "Csak számjegyek lehetnek.",
15
+ equalTo: "Meg kell egyeznie a két értéknek.",
16
+ range: jQuery.validator.format("{0} és {1} közé kell esnie."),
17
+ max: jQuery.validator.format("Nem lehet nagyobb, mint {0}."),
18
+ min: jQuery.validator.format("Nem lehet kisebb, mint {0}."),
19
+ creditcard: "Érvényes hitelkártyaszámnak kell lennie."
20
+ });
trunk/assets/js/localization/jquery.validate/messages_it.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: IT
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Campo obbligatorio.",
7
+ remote: "Controlla questo campo.",
8
+ email: "Inserisci un indirizzo email valido.",
9
+ url: "Inserisci un indirizzo web valido.",
10
+ date: "Inserisci una data valida.",
11
+ dateISO: "Inserisci una data valida (ISO).",
12
+ number: "Inserisci un numero valido.",
13
+ digits: "Inserisci solo numeri.",
14
+ creditcard: "Inserisci un numero di carta di credito valido.",
15
+ equalTo: "Il valore non corrisponde.",
16
+ accept: "Inserisci un valore con un&apos;estensione valida.",
17
+ maxlength: jQuery.validator.format("Non inserire pi&ugrave; di {0} caratteri."),
18
+ minlength: jQuery.validator.format("Inserisci almeno {0} caratteri."),
19
+ rangelength: jQuery.validator.format("Inserisci un valore compreso tra {0} e {1} caratteri."),
20
+ range: jQuery.validator.format("Inserisci un valore compreso tra {0} e {1}."),
21
+ max: jQuery.validator.format("Inserisci un valore minore o uguale a {0}."),
22
+ min: jQuery.validator.format("Inserisci un valore maggiore o uguale a {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_ja.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: JA (Japanese)
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "このフィールドは必須です。",
7
+ remote: "このフィールドを修正してください。",
8
+ email: "有効なEメールアドレスを入力してください。",
9
+ url: "有効なURLを入力してください。",
10
+ date: "有効な日付を入力してください。",
11
+ dateISO: "有効な日付(ISO)を入力してください。",
12
+ number: "有効な数字を入力してください。",
13
+ digits: "数字のみを入力してください。",
14
+ creditcard: "有効なクレジットカード番号を入力してください。",
15
+ equalTo: "同じ値をもう一度入力してください。",
16
+ accept: "有効な拡張子を含む値を入力してください。",
17
+ maxlength: jQuery.validator.format("{0} 文字以内で入力してください。"),
18
+ minlength: jQuery.validator.format("{0} 文字以上で入力してください。"),
19
+ rangelength: jQuery.validator.format("{0} 文字から {1} 文字までの値を入力してください。"),
20
+ range: jQuery.validator.format("{0} から {1} までの値を入力してください。"),
21
+ max: jQuery.validator.format("{0} 以下の値を入力してください。"),
22
+ min: jQuery.validator.format("{1} 以上の値を入力してください。")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_kk.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: KK
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Бұл өрісті міндетті түрде толтырыңыз.",
7
+ remote: "Дұрыс мағына енгізуіңізді сұраймыз.",
8
+ email: "Нақты электронды поштаңызды енгізуіңізді сұраймыз.",
9
+ url: "Нақты URL-ды енгізуіңізді сұраймыз.",
10
+ date: "Нақты URL-ды енгізуіңізді сұраймыз.",
11
+ dateISO: "Нақты ISO форматымен сәйкес датасын енгізуіңізді сұраймыз.",
12
+ number: "Күнді енгізуіңізді сұраймыз.",
13
+ digits: "Тек қана сандарды енгізуіңізді сұраймыз.",
14
+ creditcard: "Несие картасының нөмірін дұрыс енгізуіңізді сұраймыз.",
15
+ equalTo: "Осы мәнді қайта енгізуіңізді сұраймыз.",
16
+ accept: "Файлдың кеңейтуін дұрыс таңдаңыз.",
17
+ maxlength: jQuery.validator.format("Ұзындығы {0} символдан көр болмасын."),
18
+ minlength: jQuery.validator.format("Ұзындығы {0} символдан аз болмасын."),
19
+ rangelength: jQuery.validator.format("Ұзындығы {0}-{1} дейін мән енгізуіңізді сұраймыз."),
20
+ range: jQuery.validator.format("Пожалуйста, введите число от {0} до {1}. - {0} - {1} санын енгізуіңізді сұраймыз."),
21
+ max: jQuery.validator.format("{0} аз немесе тең санын енгізуіңіді сұраймыз."),
22
+ min: jQuery.validator.format("{0} көп немесе тең санын енгізуіңізді сұраймыз.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_lt.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin in lithuanian.
3
+ * Locale: LT
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Šis laukas yra privalomas.",
7
+ remote: "Prašau pataisyti šį lauką.",
8
+ email: "Prašau įvesti teisingą elektroninio pašto adresą.",
9
+ url: "Prašau įvesti teisingą URL.",
10
+ date: "Prašau įvesti teisingą datą.",
11
+ dateISO: "Prašau įvesti teisingą datą (ISO).",
12
+ number: "Prašau įvesti teisingą skaičių.",
13
+ digits: "Prašau naudoti tik skaitmenis.",
14
+ creditcard: "Prašau įvesti teisingą kreditinės kortelės numerį.",
15
+ equalTo: "Prašau įvestį tą pačią reikšmę dar kartą.",
16
+ accept: "Prašau įvesti reikšmę su teisingu plėtiniu.",
17
+ maxlength: jQuery.validator.format("Prašau įvesti ne daugiau kaip {0} simbolių."),
18
+ minlength: jQuery.validator.format("Prašau įvesti bent {0} simbolius."),
19
+ rangelength: jQuery.validator.format("Prašau įvesti reikšmes, kurių ilgis nuo {0} iki {1} simbolių."),
20
+ range: jQuery.validator.format("Prašau įvesti reikšmę intervale nuo {0} iki {1}."),
21
+ max: jQuery.validator.format("Prašau įvesti reikšmę mažesnę arba lygią {0}."),
22
+ min: jQuery.validator.format("Prašau įvesti reikšmę didesnę arba lygią {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_lv.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: LV
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Šis lauks ir obligāts.",
7
+ remote: "Lūdzu, pārbaudiet šo lauku.",
8
+ email: "Lūdzu, ievadiet derīgu e-pasta adresi.",
9
+ url: "Lūdzu, ievadiet derīgu URL adresi.",
10
+ date: "Lūdzu, ievadiet derīgu datumu.",
11
+ dateISO: "Lūdzu, ievadiet derīgu datumu (ISO).",
12
+ number: "Lūdzu, ievadiet derīgu numuru.",
13
+ digits: "Lūdzu, ievadiet tikai ciparus.",
14
+ creditcard: "Lūdzu, ievadiet derīgu kredītkartes numuru.",
15
+ equalTo: "Lūdzu, ievadiet to pašu vēlreiz.",
16
+ accept: "Lūdzu, ievadiet vērtību ar derīgu paplašinājumu.",
17
+ maxlength: jQuery.validator.format("Lūdzu, ievadiet ne vairāk kā {0} rakstzīmes."),
18
+ minlength: jQuery.validator.format("Lūdzu, ievadiet vismaz {0} rakstzīmes."),
19
+ rangelength: jQuery.validator.format("Lūdzu ievadiet {0} līdz {1} rakstzīmes."),
20
+ range: jQuery.validator.format("Lūdzu, ievadiet skaitli no {0} līdz {1}."),
21
+ max: jQuery.validator.format("Lūdzu, ievadiet skaitli, kurš ir mazāks vai vienāds ar {0}."),
22
+ min: jQuery.validator.format("Lūdzu, ievadiet skaitli, kurš ir lielāks vai vienāds ar {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_nl.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: NL
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Dit is een verplicht veld.",
7
+ remote: "Controleer dit veld.",
8
+ email: "Vul hier een geldig e-mailadres in.",
9
+ url: "Vul hier een geldige URL in.",
10
+ date: "Vul hier een geldige datum in.",
11
+ dateISO: "Vul hier een geldige datum in (ISO-formaat).",
12
+ number: "Vul hier een geldig getal in.",
13
+ digits: "Vul hier alleen getallen in.",
14
+ creditcard: "Vul hier een geldig creditcardnummer in.",
15
+ equalTo: "Vul hier dezelfde waarde in.",
16
+ accept: "Vul hier een waarde in met een geldige extensie.",
17
+ maxlength: jQuery.validator.format("Vul hier maximaal {0} tekens in."),
18
+ minlength: jQuery.validator.format("Vul hier minimaal {0} tekens in."),
19
+ rangelength: jQuery.validator.format("Vul hier een waarde in van minimaal {0} en maximaal {1} tekens."),
20
+ range: jQuery.validator.format("Vul hier een waarde in van minimaal {0} en maximaal {1}."),
21
+ max: jQuery.validator.format("Vul hier een waarde in kleiner dan of gelijk aan {0}."),
22
+ min: jQuery.validator.format("Vul hier een waarde in groter dan of gelijk aan {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_no.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: NO (Norwegian)
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Dette feltet er obligatorisk.",
7
+ maxlength: jQuery.validator.format("Maksimalt {0} tegn."),
8
+ minlength: jQuery.validator.format("Minimum {0} tegn."),
9
+ rangelength: jQuery.validator.format("Angi minimum {0} og maksimum {1} tegn."),
10
+ email: "Oppgi en gyldig epostadresse.",
11
+ url: "Angi en gyldig URL.",
12
+ date: "Angi en gyldig dato.",
13
+ dateISO: "Angi en gyldig dato (&ARING;&ARING;&ARING;&ARING;-MM-DD).",
14
+ dateSE: "Angi en gyldig dato.",
15
+ number: "Angi et gyldig nummer.",
16
+ numberSE: "Angi et gyldig nummer.",
17
+ digits: "Skriv kun tall.",
18
+ equalTo: "Skriv samme verdi igjen.",
19
+ range: jQuery.validator.format("Angi en verdi mellom {0} og {1}."),
20
+ max: jQuery.validator.format("Angi en verdi som er mindre eller lik {0}."),
21
+ min: jQuery.validator.format("Angi en verdi som er st&oslash;rre eller lik {0}."),
22
+ creditcard: "Angi et gyldig kredittkortnummer."
23
+ });
trunk/assets/js/localization/jquery.validate/messages_pl.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: PL
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "To pole jest wymagane.",
7
+ remote: "Proszę o wypełnienie tego pola.",
8
+ email: "Proszę o podanie prawidłowego adresu email.",
9
+ url: "Proszę o podanie prawidłowego URL.",
10
+ date: "Proszę o podanie prawidłowej daty.",
11
+ dateISO: "Proszę o podanie prawidłowej daty (ISO).",
12
+ number: "Proszę o podanie prawidłowej liczby.",
13
+ digits: "Proszę o podanie samych cyfr.",
14
+ creditcard: "Proszę o podanie prawidłowej karty kredytowej.",
15
+ equalTo: "Proszę o podanie tej samej wartości ponownie.",
16
+ accept: "Proszę o podanie wartości z prawidłowym rozszerzeniem.",
17
+ maxlength: jQuery.validator.format("Proszę o podanie nie więcej niż {0} znaków."),
18
+ minlength: jQuery.validator.format("Proszę o podanie przynajmniej {0} znaków."),
19
+ rangelength: jQuery.validator.format("Proszę o podanie wartości o długości od {0} do {1} znaków."),
20
+ range: jQuery.validator.format("Proszę o podanie wartości z przedziału od {0} do {1}."),
21
+ max: jQuery.validator.format("Proszę o podanie wartości mniejszej bądź równej {0}."),
22
+ min: jQuery.validator.format("Proszę o podanie wartości większej bądź równej {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_ro.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: RO
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Acest câmp este obligatoriu.",
7
+ remote: "Te rugăm să completezi acest câmp.",
8
+ email: "Te rugăm să introduci o adresă de email validă",
9
+ url: "Te rugăm sa introduci o adresă URL validă.",
10
+ date: "Te rugăm să introduci o dată corectă.",
11
+ dateISO: "Te rugăm să introduci o dată (ISO) corectă.",
12
+ number: "Te rugăm să introduci un număr întreg valid.",
13
+ digits: "Te rugăm să introduci doar cifre.",
14
+ creditcard: "Te rugăm să introduci un numar de carte de credit valid.",
15
+ equalTo: "Te rugăm să reintroduci valoarea.",
16
+ accept: "Te rugăm să introduci o valoare cu o extensie validă.",
17
+ maxlength: jQuery.validator.format("Te rugăm să nu introduci mai mult de {0} caractere."),
18
+ minlength: jQuery.validator.format("Te rugăm să introduci cel puțin {0} caractere."),
19
+ rangelength: jQuery.validator.format("Te rugăm să introduci o valoare între {0} și {1} caractere."),
20
+ range: jQuery.validator.format("Te rugăm să introduci o valoare între {0} și {1}."),
21
+ max: jQuery.validator.format("Te rugăm să introduci o valoare egal sau mai mică decât {0}."),
22
+ min: jQuery.validator.format("Te rugăm să introduci o valoare egal sau mai mare decât {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_ru.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: RU
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Это поле необходимо заполнить.",
7
+ remote: "Пожалуйста, введите правильное значение.",
8
+ email: "Пожалуйста, введите корректный адрес электронной почты.",
9
+ url: "Пожалуйста, введите корректный URL.",
10
+ date: "Пожалуйста, введите корректную дату.",
11
+ dateISO: "Пожалуйста, введите корректную дату в формате ISO.",
12
+ number: "Пожалуйста, введите число.",
13
+ digits: "Пожалуйста, вводите только цифры.",
14
+ creditcard: "Пожалуйста, введите правильный номер кредитной карты.",
15
+ equalTo: "Пожалуйста, введите такое же значение ещё раз.",
16
+ accept: "Пожалуйста, выберите файл с правильным расширением.",
17
+ maxlength: jQuery.validator.format("Пожалуйста, введите не больше {0} символов."),
18
+ minlength: jQuery.validator.format("Пожалуйста, введите не меньше {0} символов."),
19
+ rangelength: jQuery.validator.format("Пожалуйста, введите значение длиной от {0} до {1} символов."),
20
+ range: jQuery.validator.format("Пожалуйста, введите число от {0} до {1}."),
21
+ max: jQuery.validator.format("Пожалуйста, введите число, меньшее или равное {0}."),
22
+ min: jQuery.validator.format("Пожалуйста, введите число, большее или равное {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_si.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: SI (Slovenian)
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "To polje je obvezno.",
7
+ remote: "Vpis v tem polju ni v pravi obliki.",
8
+ email: "Prosimo, vnesite pravi email naslov.",
9
+ url: "Prosimo, vnesite pravi URL.",
10
+ date: "Prosimo, vnesite pravi datum.",
11
+ dateISO: "Prosimo, vnesite pravi datum (ISO).",
12
+ number: "Prosimo, vnesite pravo številko.",
13
+ digits: "Prosimo, vnesite samo številke.",
14
+ creditcard: "Prosimo, vnesite pravo številko kreditne kartice.",
15
+ equalTo: "Prosimo, ponovno vnesite enako vsebino.",
16
+ accept: "Prosimo, vnesite vsebino z pravo končnico.",
17
+ maxlength: jQuery.validator.format("Prosimo, da ne vnašate več kot {0} znakov."),
18
+ minlength: jQuery.validator.format("Prosimo, vnesite vsaj {0} znakov."),
19
+ rangelength: jQuery.validator.format("Prosimo, vnesite od {0} do {1} znakov."),
20
+ range: jQuery.validator.format("Prosimo, vnesite vrednost med {0} in {1}."),
21
+ max: jQuery.validator.format("Prosimo, vnesite vrednost manjšo ali enako {0}."),
22
+ min: jQuery.validator.format("Prosimo, vnesite vrednost večjo ali enako {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_sk.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: SK
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Povinné zadať.",
7
+ maxlength: jQuery.validator.format("Maximálne {0} znakov."),
8
+ minlength: jQuery.validator.format("Minimálne {0} znakov."),
9
+ rangelength: jQuery.validator.format("Minimálne {0} a Maximálne {0} znakov."),
10
+ email: "E-mailová adresa musí byť platná.",
11
+ url: "URL musí byť platný.",
12
+ date: "Musí byť dátum.",
13
+ number: "Musí byť číslo.",
14
+ digits: "Môže obsahovať iba číslice.",
15
+ equalTo: "Dva hodnoty sa musia rovnať.",
16
+ range: jQuery.validator.format("Musí byť medzi {0} a {1}."),
17
+ max: jQuery.validator.format("Nemôže byť viac ako{0}."),
18
+ min: jQuery.validator.format("Nemôže byť menej ako{0}."),
19
+ creditcard: "Číslo platobnej karty musí byť platné."
20
+ });
trunk/assets/js/localization/jquery.validate/messages_sl.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Language: SL
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "To polje je obvezno.",
7
+ remote: "Prosimo popravite to polje.",
8
+ email: "Prosimo vnesite veljaven email naslov.",
9
+ url: "Prosimo vnesite veljaven URL naslov.",
10
+ date: "Prosimo vnesite veljaven datum.",
11
+ dateISO: "Prosimo vnesite veljaven ISO datum.",
12
+ number: "Prosimo vnesite veljavno število.",
13
+ digits: "Prosimo vnesite samo števila.",
14
+ creditcard: "Prosimo vnesite veljavno številko kreditne kartice.",
15
+ equalTo: "Prosimo ponovno vnesite vrednost.",
16
+ accept: "Prosimo vnesite vrednost z veljavno končnico.",
17
+ maxlength: jQuery.validator.format("Prosimo vnesite največ {0} znakov."),
18
+ minlength: jQuery.validator.format("Prosimo vnesite najmanj {0} znakov."),
19
+ rangelength: jQuery.validator.format("Prosimo vnesite najmanj {0} in največ {1} znakov."),
20
+ range: jQuery.validator.format("Prosimo vnesite vrednost med {0} in {1}."),
21
+ max: jQuery.validator.format("Prosimo vnesite vrednost manjše ali enako {0}."),
22
+ min: jQuery.validator.format("Prosimo vnesite vrednost večje ali enako {0}.")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_th.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: TH (Thai)
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "โปรดระบุ",
7
+ remote: "โปรดแก้ไขให้ถูกต้อง",
8
+ email: "โปรดระบุที่อยู่อีเมล์ที่ถูกต้อง",
9
+ url: "โปรดระบุ URL ที่ถูกต้อง",
10
+ date: "โปรดระบุวันที่ ที่ถูกต้อง",
11
+ dateISO: "โปรดระบุวันที่ ที่ถูกต้อง (ระบบ ISO).",
12
+ number: "โปรดระบุทศนิยมที่ถูกต้อง",
13
+ digits: "โปรดระบุจำนวนเต็มที่ถูกต้อง",
14
+ creditcard: "โปรดระบุรหัสบัตรเครดิตที่ถูกต้อง",
15
+ equalTo: "โปรดระบุค่าเดิมอีกครั้ง",
16
+ accept: "โปรดระบุค่าที่มีส่วนขยายที่ถูกต้อง",
17
+ maxlength: jQuery.validator.format("โปรดอย่าระบุค่าที่ยาวกว่า {0} อักขระ"),
18
+ minlength: jQuery.validator.format("โปรดอย่าระบุค่าที่สั้นกว่า {0} อักขระ"),
19
+ rangelength: jQuery.validator.format("โปรดอย่าระบุค่าความยาวระหว่าง {0} ถึง {1} อักขระ"),
20
+ range: jQuery.validator.format("โปรดระบุค่าระหว่าง {0} และ {1}"),
21
+ max: jQuery.validator.format("โปรดระบุค่าน้อยกว่าหรือเท่ากับ {0}"),
22
+ min: jQuery.validator.format("โปรดระบุค่ามากกว่าหรือเท่ากับ {0}")
23
+ });
trunk/assets/js/localization/jquery.validate/messages_vi.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Translated default messages for the jQuery validation plugin.
3
+ * Locale: VI (Vietnamese)
4
+ */
5
+ jQuery.extend(jQuery.validator.messages, {
6
+ required: "Hãy nhập.",
7
+ remote: "Hãy sửa cho đúng.",
8
+ email: "Hãy nhập email.",
9
+ url: "Hãy nhập URL.",
10
+ date: "Hãy nhập ngày.",
11
+ dateISO: "Hãy nhập ngày (ISO).",
12
+ number: "Hãy nhập số.",
13
+ digits: "Hãy nhập chữ số.",
14
+ creditcard: "Hãy nhập số thẻ tín dụng.",
15
+ equalTo: "Hãy nhập thêm lần nữa.",
16
+ accept: "Phần mở rộng không đúng.",
17
+ maxlength: jQuery.validator.format("Hãy nhập từ {0} kí tự trở xuống."),
18
+ minlength: jQuery.validator.format("Hãy nhập từ {0} kí tự trở lên."),
19
+ rangelength: jQuery.validator.format("Hãy nhập từ {0} đến {1} kí tự."),
20
+ range: jQuery.validator.format("Hãy nhập từ {0} đến {1}."),
21
+ max: jQuery.validator.format("Hãy nhập từ {0} trở xuống."),
22
+ min: jQuery.validator.format("Hãy nhập từ {1} trở lên.")
23
+ });
trunk/assets/js/mailerlite_shortcode.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function() {
2
+ tinymce.create('tinymce.plugins.mailerlite_shortcode', {
3
+ init : function(ed, url) {
4
+ ed.addCommand('mailerlite_shortcode_popup', function() {
5
+ ed.windowManager.open({
6
+ file: ajaxurl + '?action=mailerlite_tinymce_window',
7
+ width : 400 + ed.getLang('example.delta_width', 0),
8
+ height : 400 + ed.getLang('example.delta_height', 0),
9
+ inline : 1
10
+ }, {
11
+ plugin_url : url
12
+ }
13
+ );
14
+ }
15
+ );
16
+ ed.addButton('mailerlite_shortcode', {
17
+ title : 'Add a MailerLite sign-up form',
18
+ image : url+'/../image/shortcode.png',
19
+ cmd : 'mailerlite_shortcode_popup'
20
+ }
21
+ );
22
+ },
23
+ createControl : function(n, ml) {
24
+ return null;
25
+ }
26
+ });
27
+ tinymce.PluginManager.add('mailerlite_shortcode', tinymce.plugins.mailerlite_shortcode);
28
+ })();
trunk/include/mailerlite-admin.php ADDED
@@ -0,0 +1,540 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php defined('ABSPATH') or die("No direct access allowed!");
2
+
3
+ require_once MAILERLITE_PLUGIN_DIR . "libs/mailerlite_rest/ML_Lists.php";
4
+ require_once MAILERLITE_PLUGIN_DIR . "libs/mailerlite_rest/ML_Webforms.php";
5
+
6
+ class MailerLite_Admin
7
+ {
8
+
9
+ private static $initiated = false;
10
+ private static $api_key = false;
11
+
12
+ /**
13
+ * Initialization method
14
+ */
15
+ public static function init()
16
+ {
17
+
18
+ global $mailerlite_error;
19
+
20
+ $mailerlite_error = false;
21
+
22
+ self::$api_key = get_option('mailerlite_api_key');
23
+
24
+ $account_id = get_option('account_id');
25
+ $account_subdomain = get_option('account_subdomain');
26
+
27
+ if (self::$api_key && (!$account_id || !$account_subdomain)) {
28
+ self::update_account_info();
29
+ }
30
+
31
+ if (!self::$initiated) {
32
+ self::init_hooks();
33
+ }
34
+
35
+ if (isset($_POST['action'])
36
+ && $_POST['action'] == 'enter-mailerlite-key'
37
+ ) {
38
+ self::set_api_key();
39
+ }
40
+
41
+ if (isset($_POST['action'])
42
+ && $_POST['action'] == 'enter-popup-forms'
43
+ ) {
44
+ self::set_popups();
45
+ }
46
+ }
47
+
48
+ /**
49
+ * Adds admin stuff
50
+ */
51
+ private static function init_hooks()
52
+ {
53
+
54
+ self::$initiated = true;
55
+
56
+ add_action(
57
+ 'admin_init',
58
+ array('MailerLite_Admin', 'mailerlite_admin_init_setting')
59
+ );
60
+ add_action(
61
+ 'admin_menu', array(
62
+ 'MailerLite_Admin',
63
+ 'mailerlite_admin_generate_menu_link'
64
+ )
65
+ );
66
+
67
+ wp_register_style(
68
+ 'mailerlite.css',
69
+ MAILERLITE_PLUGIN_URL . '/assets/css/mailerlite.css', array(),
70
+ MAILERLITE_VERSION
71
+ );
72
+ wp_enqueue_style('mailerlite.css');
73
+ }
74
+
75
+ /**
76
+ * Generates admin menu links
77
+ */
78
+ public static function mailerlite_admin_generate_menu_link()
79
+ {
80
+
81
+ add_menu_page(
82
+ 'MailerLite', 'MailerLite', 'manage_options', 'mailerlite_main',
83
+ null, MAILERLITE_PLUGIN_URL . '/assets/image/icon.png'
84
+ );
85
+
86
+ add_submenu_page(
87
+ 'mailerlite_main', __('Forms', 'mailerlite'),
88
+ __('Signup forms', 'mailerlite'), 'manage_options',
89
+ 'mailerlite_main', array('MailerLite_Admin', 'mailerlite_main')
90
+ );
91
+ add_submenu_page(
92
+ 'mailerlite_main', __('Settings', 'mailerlite'),
93
+ __('Settings', 'mailerlite'), 'manage_options',
94
+ 'mailerlite_settings',
95
+ array('MailerLite_Admin', 'mailerlite_settings')
96
+ );
97
+ }
98
+
99
+ public static function mailerlite_admin_init_setting()
100
+ {
101
+
102
+ }
103
+
104
+ /**
105
+ * Checks if there is API key set
106
+ */
107
+ private static function mailerlite_api_key_require()
108
+ {
109
+ global $mailerlite_error;
110
+
111
+ if (self::$api_key == false) {
112
+ include(MAILERLITE_PLUGIN_DIR
113
+ . 'include/templates/admin/api_key.php');
114
+ exit;
115
+ }
116
+
117
+ }
118
+
119
+ /**
120
+ * Create, edit, list pages method
121
+ */
122
+ public static function mailerlite_main()
123
+ {
124
+
125
+
126
+ global $fields, $lists, $form, $forms_data, $webforms, $mailerlite_error, $result, $wpdb;
127
+
128
+ //Check for api key
129
+ self::mailerlite_api_key_require();
130
+
131
+ $api_key = self::$api_key;
132
+ $result = '';
133
+
134
+ //Create new signup form view
135
+ if (isset($_GET['view']) && $_GET['view'] == 'create') {
136
+ if (isset($_POST['create_signup_form'])) {
137
+ self::create_new_form($_POST);
138
+ wp_redirect(
139
+ 'admin.php?page=mailerlite_main&view=edit&id='
140
+ . $wpdb->insert_id
141
+ );
142
+ } else {
143
+ if (isset($_GET['noheader'])) {
144
+ require_once(ABSPATH . 'wp-admin/admin-header.php');
145
+ }
146
+ }
147
+
148
+ $ML_Webforms = new ML_Webforms($api_key);
149
+ $webforms = $ML_Webforms->getAll();
150
+
151
+ $webforms = json_decode($webforms);
152
+
153
+ if (!empty($webforms->error) && !empty($webforms->error->message)) {
154
+ $mailerlite_error = '<u>'.__('Error happened', 'mailerlite').'</u>: '.$webforms->error->message;
155
+ }
156
+
157
+ if ($ML_Webforms->hasCurlError()) {
158
+ $mailerlite_error = '<u>'.__('Send this error to info@mailerlite.com or our chat', 'mailerlite').'</u>: '.$ML_Webforms->getResponseBody();
159
+
160
+ }
161
+
162
+ include(MAILERLITE_PLUGIN_DIR
163
+ . 'include/templates/admin/create.php');
164
+
165
+
166
+ } //Edit signup form view
167
+ else if (isset($_GET['view']) && isset($_GET['id'])
168
+ && $_GET['view'] == 'edit'
169
+ && absint($_GET['id'])
170
+ ) {
171
+ $_POST = array_map( 'stripslashes_deep', $_POST);
172
+
173
+ $form_id = absint($_GET['id']);
174
+
175
+ $form = $wpdb->get_row(
176
+ "SELECT * FROM " . $wpdb->base_prefix
177
+ . "mailerlite_forms WHERE id = " . $form_id
178
+ );
179
+
180
+ if (isset($form->data)) {
181
+ $form->data = unserialize($form->data);
182
+
183
+ if ($form->type == 1) {
184
+ add_filter(
185
+ 'wp_default_editor',
186
+ create_function('', 'return "tinymce";')
187
+ );
188
+
189
+ $ML_Lists = new ML_Lists($api_key);
190
+ $lists = $ML_Lists->getAll();
191
+
192
+ if ($ML_Lists->hasCurlError()) {
193
+ $mailerlite_error = '<u>'.__('Send this error to info@mailerlite.com or our chat', 'mailerlite').'</u>: '.$ML_Lists->getResponseBody();
194
+
195
+ }
196
+
197
+ $lists = json_decode($lists);
198
+ if (empty($lists->Results)) $lists->Results = array();
199
+
200
+ if (isset($lists->Results[0])) $fields = $ML_Lists->setId($lists->Results[0]->id)
201
+ ->getFields();
202
+ else $fields = $ML_Lists->getFields();
203
+
204
+ if ($ML_Lists->hasCurlError()) {
205
+ $mailerlite_error = '<u>'.__('Send this error to info@mailerlite.com or our chat', 'mailerlite').'</u>: '.$ML_Lists->getResponseBody();
206
+
207
+ }
208
+
209
+ $fields = json_decode($fields);
210
+
211
+ if (empty($fields->Fields)) $fields->Fields = array();
212
+
213
+ if (isset($_POST['save_custom_signup_form'])) {
214
+ $form_name = isset($_POST['form_name'])
215
+ && $_POST['form_name'] != ''
216
+ ? sanitize_text_field($_POST['form_name'])
217
+ : __(
218
+ 'Subscribe for newsletter!', 'mailerlite'
219
+ );
220
+ $form_title = isset($_POST['form_title'])
221
+ && $_POST['form_title'] != ''
222
+ ? sanitize_text_field($_POST['form_title'])
223
+ : __(
224
+ 'Newsletter signup', 'mailerlite'
225
+ );
226
+ $form_description = isset($_POST['form_description'])
227
+ ? $_POST['form_description']
228
+ : __(
229
+ 'Just simple MailerLite form!', 'mailerlite'
230
+ );
231
+ $success_message = isset($_POST['success_message'])
232
+ ? $_POST['success_message']
233
+ : '<span style="color: rgb(51, 153, 102);">' . __(
234
+ 'Thank you for sign up!', 'mailerlite'
235
+ ) . '</span>';
236
+ $button_name = isset($_POST['button_name'])
237
+ && $_POST['button_name'] != ''
238
+ ? sanitize_text_field($_POST['button_name'])
239
+ : __(
240
+ 'Subscribe', 'mailerlite'
241
+ );
242
+ $please_wait = isset($_POST['please_wait'])
243
+ && $_POST['please_wait'] != ''
244
+ ? sanitize_text_field($_POST['please_wait'])
245
+ : '';
246
+
247
+ $language = isset($_POST['language'])
248
+ && $_POST['language'] != ''
249
+ ? sanitize_text_field($_POST['language'])
250
+ : '';
251
+
252
+ $selected_fields = isset($_POST['form_selected_field'])
253
+ && is_array(
254
+ $_POST['form_selected_field']
255
+ ) ? $_POST['form_selected_field'] : array();
256
+ $field_titles = isset($_POST['form_field'])
257
+ && is_array(
258
+ $_POST['form_field']
259
+ ) ? $_POST['form_field'] : array();
260
+
261
+ if (!isset($field_titles['email'])
262
+ || $field_titles['email'] == ''
263
+ ) {
264
+ $field_titles['email'] = __('Email', 'mailerlite');
265
+ }
266
+
267
+ $form_lists = isset($_POST['form_lists'])
268
+ && is_array(
269
+ $_POST['form_lists']
270
+ ) ? $_POST['form_lists'] : array();
271
+
272
+ $prepared_fields = array();
273
+
274
+ //Force to use email
275
+ $prepared_fields['email'] = $field_titles['email'];
276
+
277
+ foreach ($selected_fields as $field) {
278
+ if (isset($field_titles[$field])) {
279
+ $prepared_fields[$field]
280
+ = $field_titles[$field];
281
+ }
282
+ }
283
+
284
+ $form_data = array(
285
+ 'title' => $form_title,
286
+ 'description' => wpautop($form_description, true),
287
+ 'success_message' => wpautop($success_message, true),
288
+ 'button' => $button_name,
289
+ 'please_wait' => $please_wait,
290
+ 'language' => $language,
291
+ 'lists' => $form_lists,
292
+ 'fields' => $prepared_fields
293
+ );
294
+
295
+ $wpdb->update(
296
+ $wpdb->base_prefix . 'mailerlite_forms',
297
+ array(
298
+ 'name' => $form_name,
299
+ 'data' => serialize($form_data)
300
+ ),
301
+ array('id' => $form_id),
302
+ array(),
303
+ array('%d')
304
+ );
305
+
306
+ $form->data = $form_data;
307
+ $form->name = $form_name;
308
+
309
+ $result = 'success';
310
+ }
311
+
312
+ include(MAILERLITE_PLUGIN_DIR
313
+ . 'include/settings/languages.php');
314
+
315
+ include(MAILERLITE_PLUGIN_DIR
316
+ . 'include/templates/admin/edit_custom.php');
317
+ } else if ($form->type == 2) {
318
+ $ML_Webforms = new ML_Webforms($api_key);
319
+ $webforms = $ML_Webforms->getAll();
320
+ $webforms = json_decode($webforms);
321
+
322
+ if (!empty($webforms->error) && !empty($webforms->error->message)) {
323
+ $mailerlite_error = '<u>'.__('Error happened', 'mailerlite').'</u>: '.$webforms->error->message;
324
+ }
325
+
326
+ if ($ML_Webforms->hasCurlError()) {
327
+ $mailerlite_error = '<u>'.__('Send this error to info@mailerlite.com or our chat', 'mailerlite').'</u>: '.$ML_Webforms->getResponseBody();
328
+
329
+ }
330
+
331
+ if (empty($webforms->Results)) $webforms->Results = array();
332
+
333
+ $parsed_webforms = array();
334
+
335
+ foreach ($webforms->Results as $webform) {
336
+ $parsed_webforms[$webform->id] = $webform->code;
337
+ }
338
+
339
+ if (isset($_POST['save_embedded_signup_form'])) {
340
+ $form_name = isset($_POST['form_name'])
341
+ && $_POST['form_name'] != ''
342
+ ? sanitize_text_field($_POST['form_name'])
343
+ : __(
344
+ 'Embedded webform', 'mailerlite'
345
+ );
346
+ $form_webform_id = isset($_POST['form_webform_id'])
347
+ && isset($parsed_webforms[$_POST['form_webform_id']])
348
+ ? $_POST['form_webform_id'] : 0;
349
+
350
+ $form_data = array(
351
+ 'id' => $form_webform_id,
352
+ 'code' => $parsed_webforms[$form_webform_id]
353
+ );
354
+
355
+ $wpdb->update(
356
+ $wpdb->base_prefix . 'mailerlite_forms',
357
+ array(
358
+ 'name' => $form_name,
359
+ 'data' => serialize($form_data)
360
+ ),
361
+ array('id' => $form_id),
362
+ array(),
363
+ array('%d')
364
+ );
365
+
366
+ $form->data = $form_data;
367
+ $form->name = $form_name;
368
+
369
+ $result = 'success';
370
+ }
371
+
372
+ include(MAILERLITE_PLUGIN_DIR
373
+ . 'include/templates/admin/edit_embedded.php');
374
+ }
375
+ } else {
376
+ $forms_data = $wpdb->get_results(
377
+ "SELECT * FROM " . $wpdb->base_prefix
378
+ . "mailerlite_forms ORDER BY time DESC"
379
+ );
380
+
381
+ include(MAILERLITE_PLUGIN_DIR
382
+ . 'include/templates/admin/main.php');
383
+ }
384
+ } //Delete signup form view
385
+ else if (isset($_GET['view']) && isset($_GET['id'])
386
+ && $_GET['view'] == 'delete'
387
+ && absint($_GET['id'])
388
+ ) {
389
+ $wpdb->delete(
390
+ $wpdb->base_prefix . 'mailerlite_forms', array('id' => $_GET['id'])
391
+ );
392
+ wp_redirect('admin.php?page=mailerlite_main');
393
+ } //Signup forms list
394
+ else {
395
+ $forms_data = $wpdb->get_results(
396
+ "SELECT * FROM " . $wpdb->base_prefix
397
+ . "mailerlite_forms ORDER BY time DESC"
398
+ );
399
+
400
+ include(MAILERLITE_PLUGIN_DIR . 'include/templates/admin/main.php');
401
+ }
402
+ }
403
+
404
+ /**
405
+ * Settings page method
406
+ */
407
+ public static function mailerlite_settings()
408
+ {
409
+ global $api_key, $mailerlite_error;
410
+
411
+ self::mailerlite_api_key_require();
412
+
413
+ $api_key = self::$api_key;
414
+
415
+ include(MAILERLITE_PLUGIN_DIR . 'include/templates/admin/settings.php');
416
+ }
417
+
418
+ /**
419
+ * Checks and sets API key
420
+ */
421
+ private static function set_api_key()
422
+ {
423
+ global $mailerlite_error;
424
+
425
+ if (function_exists('current_user_can')
426
+ && !current_user_can(
427
+ 'manage_options'
428
+ )
429
+ ) {
430
+ die(__('You not allowed to do that', 'mailerlite'));
431
+ }
432
+
433
+ $key = preg_replace('/[^a-z0-9]/i', '', $_POST['mailerlite_key']);
434
+
435
+ $ML_Lists = new ML_Lists($key);
436
+ $ML_Lists->getAll();
437
+ $response = $ML_Lists->getResponseInfo();
438
+
439
+ if ($response['http_code'] == 401) {
440
+ $mailerlite_error = __('Wrong MailerLite API key', 'mailerlite');
441
+ } elseif ($ML_Lists->hasCurlError()) {
442
+ $mailerlite_error = '<u>'.__('Send this error to info@mailerlite.com or our chat', 'mailerlite').'</u>: '.$ML_Lists->getResponseBody();
443
+
444
+ } else {
445
+ update_option('mailerlite_api_key', $key);
446
+ update_option('mailerlite_enabled', true);
447
+ self::$api_key = $key;
448
+
449
+ self::update_account_info();
450
+ }
451
+ }
452
+
453
+ /**
454
+ * Checks and sets popup tracker setting
455
+ */
456
+ private static function set_popups()
457
+ {
458
+ global $mailerlite_error;
459
+
460
+ if (function_exists('current_user_can')
461
+ && !current_user_can(
462
+ 'manage_options'
463
+ )
464
+ ) {
465
+ die(__('You not allowed to do that', 'mailerlite'));
466
+ }
467
+
468
+ update_option('mailerlite_popups_disabled', !get_option('mailerlite_popups_disabled'));
469
+ }
470
+
471
+ public static function update_account_info() {
472
+ // request to mailerlite api
473
+ $ch = curl_init();
474
+
475
+ curl_setopt_array($ch, array(
476
+ CURLOPT_URL => 'https://api.mailerlite.com/api/v2',
477
+ CURLOPT_RETURNTRANSFER => true,
478
+ CURLOPT_TIMEOUT => 30,
479
+ CURLOPT_HTTPHEADER => array(
480
+ 'X-MailerLite-ApiKey: ' . self::$api_key
481
+ )
482
+ ));
483
+
484
+ $output = curl_exec($ch);
485
+ curl_close($ch);
486
+
487
+ $response = json_decode($output);
488
+
489
+ if (!empty($response->account)) {
490
+ update_option('account_id', $response->account->id);
491
+ update_option('account_subdomain', $response->account->subdomain);
492
+ update_option('mailerlite_popups_disabled', false);
493
+ }
494
+ }
495
+
496
+ /**
497
+ * Create new signup form
498
+ *
499
+ * @param $data
500
+ */
501
+ private static function create_new_form($data)
502
+ {
503
+ global $wpdb;
504
+
505
+ $form_type = in_array($data['form_type'], array(1, 2))
506
+ ? $data['form_type'] : 1;
507
+
508
+ if ($form_type == 1) {
509
+ $form_name = __('New custom signup form', 'mailerlite');
510
+ $form_data = array(
511
+ 'title' => __('Newsletter signup', 'mailerlite'),
512
+ 'description' => __(
513
+ 'Just simple MailerLite form!', 'mailerlite'
514
+ ),
515
+ 'success_message' => '<span style="color: rgb(51, 153, 102);">' . __(
516
+ 'Thank you for sign up!', 'mailerlite'
517
+ ) . '</span>',
518
+ 'button' => __('Subscribe', 'mailerlite'),
519
+ 'lists' => array(),
520
+ 'fields' => array('email' => __('Email', 'mailerlite'))
521
+ );
522
+ } else {
523
+ $form_name = __('New embedded signup form', 'mailerlite');
524
+ $form_data = array(
525
+ 'id' => 0,
526
+ 'code' => 0
527
+ );
528
+ }
529
+
530
+ $wpdb->insert(
531
+ $wpdb->base_prefix . 'mailerlite_forms',
532
+ array(
533
+ 'name' => $form_name,
534
+ 'time' => date('Y-m-d h:i:s'),
535
+ 'type' => $form_type,
536
+ 'data' => serialize($form_data)
537
+ )
538
+ );
539
+ }
540
+ }
trunk/include/mailerlite-form.php ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once MAILERLITE_PLUGIN_DIR . "libs/mailerlite_rest/ML_Subscribers.php";
4
+
5
+ class MailerLite_Form
6
+ {
7
+ public $form_id;
8
+ public $form_type;
9
+ public $form_name;
10
+ public $form_data;
11
+
12
+ /**
13
+ *
14
+ * Sets form data for class
15
+ */
16
+ public static function init()
17
+ {
18
+ add_action(
19
+ 'wp_enqueue_scripts',
20
+ array('MailerLite_Form', 'add_jquery_validation_libraries')
21
+ );
22
+ }
23
+
24
+ /**
25
+ * Generates form by type
26
+ *
27
+ * @param $form_id
28
+ * @param $form_type
29
+ * @param $form_name
30
+ * @param $form_data
31
+ */
32
+ public function generate_form($form_id, $form_type, $form_name, $form_data)
33
+ {
34
+ global $mailerlite_error;
35
+
36
+ $this->form_id = $form_id;
37
+ $this->form_type = $form_type;
38
+ $this->form_name = $form_name;
39
+ $this->form_data = $form_data;
40
+
41
+ if ($this->form_type == 1) {
42
+ $this->generate_custom_form();
43
+ } else {
44
+ $this->generate_embedded_form();
45
+ }
46
+ }
47
+
48
+ /**
49
+ * Saves form data
50
+ */
51
+ public static function save_form_data()
52
+ {
53
+ global $wpdb, $mailerlite_error;
54
+
55
+ $form_id = isset($_POST['form_id']) ? absint($_POST['form_id']) : 0;
56
+ $form_fields = isset($_POST['form_fields']) ? $_POST['form_fields']
57
+ : array();
58
+
59
+ $api_key = get_option('mailerlite_api_key');
60
+
61
+ if ($form_id > 0 && isset($form_fields['email'])) {
62
+ $form = $wpdb->get_row(
63
+ "SELECT * FROM " . $wpdb->base_prefix
64
+ . "mailerlite_forms WHERE id = " . $form_id
65
+ );
66
+
67
+ if (isset($form->data)) {
68
+
69
+ $form->data = unserialize($form->data);
70
+
71
+ $ML_Subscribers = new ML_Subscribers($api_key);
72
+
73
+ $form_email = $form_fields['email'];
74
+ unset($form_fields['email']);
75
+
76
+ $fields = array();
77
+
78
+ foreach ($form_fields as $field => $value) {
79
+ $fields[] = array('name' => $field, 'value' => $value);
80
+ }
81
+
82
+ $subscriber = array(
83
+ 'email' => $form_email,
84
+ 'fields' => $fields
85
+ );
86
+
87
+ foreach ($form->data['lists'] as $list) {
88
+ $ML_Subscribers->setId($list)->add($subscriber, 1);
89
+ }
90
+
91
+ echo json_encode(
92
+ array('status' => 'success', 'message' => __(
93
+ 'Subscriber successfully saved', 'mailerlite'
94
+ ))
95
+ );
96
+ } else {
97
+ echo json_encode(
98
+ array('status' => 'error',
99
+ 'message' => __('Form not found', 'mailerlite'))
100
+ );
101
+ }
102
+ } else {
103
+ echo json_encode(
104
+ array('status' => 'error',
105
+ 'message' => __('Wrong data provided', 'mailerlite'))
106
+ );
107
+ }
108
+
109
+ exit;
110
+ }
111
+
112
+ /**
113
+ * Method to generate custom form
114
+ */
115
+ private function generate_custom_form()
116
+ {
117
+ global $form_id, $form_name, $form_data;
118
+
119
+ $form_id = $this->form_id;
120
+ $form_name = $this->form_name;
121
+ $form_data = $this->form_data;
122
+
123
+ include(MAILERLITE_PLUGIN_DIR
124
+ . 'include/templates/forms/custom_form.php');
125
+
126
+ }
127
+
128
+ /**
129
+ * Method to generate embedded form
130
+ */
131
+ private function generate_embedded_form()
132
+ {
133
+ global $form_data;
134
+
135
+ $form_data = $this->form_data;
136
+
137
+ include(MAILERLITE_PLUGIN_DIR
138
+ . 'include/templates/forms/embedded_form.php');
139
+ }
140
+
141
+ /**
142
+ * Register jQuery validation library
143
+ */
144
+ public static function add_jquery_validation_libraries()
145
+ {
146
+
147
+ if (!wp_script_is('jquery') && !wp_script_is('google-hosted-jquery')) {
148
+ wp_register_script(
149
+ 'google-hosted-jquery',
150
+ '//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js',
151
+ false
152
+ );
153
+ wp_enqueue_script('google-hosted-jquery');
154
+ }
155
+
156
+ if (!wp_script_is('jquery-validation-plugin')
157
+ && wp_script_is(
158
+ 'jquery'
159
+ )
160
+ ) {
161
+ wp_register_script(
162
+ 'jquery-validation-plugin',
163
+ 'https://static.mailerlite.com/js/jquery.validate.min.js',
164
+ array('jquery')
165
+ );
166
+ } else if (!wp_script_is('jquery-validation-plugin')
167
+ && wp_script_is(
168
+ 'google-hosted-jquery'
169
+ )
170
+ ) {
171
+ wp_register_script(
172
+ 'jquery-validation-plugin',
173
+ 'https://static.mailerlite.com/js/jquery.validate.min.js',
174
+ array('google-hosted-jquery')
175
+ );
176
+ }
177
+
178
+ wp_enqueue_script('jquery-validation-plugin');
179
+
180
+ }
181
+ }
182
+
183
+ add_action(
184
+ 'wp_ajax_nopriv_mailerlite_subscribe_form',
185
+ array('MailerLite_Form', 'save_form_data')
186
+ );
187
+ add_action(
188
+ 'wp_ajax_mailerlite_subscribe_form',
189
+ array('MailerLite_Form', 'save_form_data')
190
+ );
191
+
192
+
193
+ /**
194
+ * Loads MailerLite form
195
+ *
196
+ * @param $form_id
197
+ */
198
+ function load_mailerlite_form($form_id)
199
+ {
200
+ global $wpdb;
201
+
202
+ $form = $wpdb->get_row(
203
+ "SELECT * FROM " . $wpdb->base_prefix . "mailerlite_forms WHERE id = "
204
+ . $form_id
205
+ );
206
+
207
+ if (isset($form->data)) {
208
+ $form_data = unserialize($form->data);
209
+
210
+ $MailerLite_form = new Mailerlite_Form();
211
+ $MailerLite_form->generate_form(
212
+ $form_id, $form->type, $form->name, $form_data
213
+ );
214
+ }
215
+ }
216
+
217
+ function mailerlite_universal() { ?>
218
+ <!-- MailerLite Universal -->
219
+ <script>
220
+ (function(m,a,i,l,e,r){m['MailerLiteObject']=e;function f(){
221
+ var c={a:arguments,q:[]};var r=this.push(c);return "number"!=typeof r?r:f.bind(c.q);}
222
+ f.q=f.q||[];m[e]=m[e]||f.bind(f.q);m[e].q=m[e].q||f.q;r=a.createElement(i);
223
+ var _=a.getElementsByTagName(i)[0];r.async=1;r.src=l+'?'+(~~(new Date().getTime()/10000000));
224
+ _.parentNode.insertBefore(r,_);})(window, document, 'script', 'https://static.mailerlite.com/js/universal.js', 'ml');
225
+
226
+ var ml_account = ml('accounts', '<?php echo get_option('account_id'); ?>', '<?php echo get_option('account_subdomain'); ?>', 'load');
227
+ </script>
228
+ <!-- End MailerLite Universal -->
229
+ <?php }
230
+
231
+ $mailerlite_api_key = get_option('mailerlite_api_key');
232
+ $account_id = get_option('account_id');
233
+ $account_subdomain = get_option('account_subdomain');
234
+ $mailerlite_popups_disabled = get_option('mailerlite_popups_disabled');
235
+
236
+ if (!$mailerlite_popups_disabled && $mailerlite_api_key && $account_id && $account_subdomain) {
237
+ add_action('wp_head', 'mailerlite_universal');
238
+ }
trunk/include/mailerlite-shortcode.php ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class MailerLite_Shortcode
4
+ {
5
+
6
+ /**
7
+ * WordPress' init() hook
8
+ */
9
+ public static function init()
10
+ {
11
+
12
+ add_shortcode(
13
+ 'mailerlite_form', array('MailerLite_Shortcode',
14
+ 'mailerlite_generate_shortcode')
15
+ );
16
+
17
+ add_action(
18
+ 'wp_ajax_nopriv_mailerlite_tinymce_window',
19
+ array('MailerLite_Shortcode', 'mailerlite_tinymce_window')
20
+ );
21
+ add_action(
22
+ 'wp_ajax_mailerlite_tinymce_window',
23
+ array('MailerLite_Shortcode', 'mailerlite_tinymce_window')
24
+ );
25
+
26
+ if (get_user_option('rich_editing')) {
27
+ add_filter(
28
+ 'mce_buttons', array('MailerLite_Shortcode',
29
+ 'mailerlite_register_button')
30
+ );
31
+ add_filter(
32
+ 'mce_external_plugins', array('MailerLite_Shortcode',
33
+ 'mailerlite_add_tinymce_plugin')
34
+ );
35
+ }
36
+
37
+ }
38
+
39
+ /**
40
+ * Add tinymce button to toolbar
41
+ *
42
+ * @param $buttons
43
+ * @return mixed
44
+ */
45
+ public static function mailerlite_register_button($buttons)
46
+ {
47
+
48
+ array_push($buttons, "mailerlite_shortcode");
49
+
50
+ return $buttons;
51
+
52
+ }
53
+
54
+ /**
55
+ * Register tinymce plugin
56
+ *
57
+ * @param $plugin_array
58
+ * @return mixed
59
+ */
60
+ public static function mailerlite_add_tinymce_plugin($plugin_array)
61
+ {
62
+ $plugin_array['mailerlite_shortcode']
63
+ = MAILERLITE_PLUGIN_URL . '/assets/js/mailerlite_shortcode.js';
64
+
65
+ return $plugin_array;
66
+ }
67
+
68
+ /**
69
+ * Returns selection of forms
70
+ */
71
+ public static function mailerlite_tinymce_window()
72
+ {
73
+ global $wpdb, $forms;
74
+
75
+ if (!current_user_can('edit_posts')) {
76
+ return;
77
+ }
78
+
79
+ $forms = $wpdb->get_results(
80
+ "SELECT * FROM " . $wpdb->base_prefix . "mailerlite_forms"
81
+ );
82
+
83
+ include(MAILERLITE_PLUGIN_DIR
84
+ . 'include/templates/common/tiny_mce.php');
85
+
86
+ exit;
87
+ }
88
+
89
+ /**
90
+ *
91
+ * Converts shortcode into html
92
+ *
93
+ * @param $attributes
94
+ *
95
+ * @return string
96
+ */
97
+ public static function mailerlite_generate_shortcode($attributes)
98
+ {
99
+ $form_attributes = shortcode_atts(
100
+ array(
101
+ 'form_id' => '1'
102
+ ), $attributes
103
+ );
104
+
105
+ ob_start();
106
+ load_mailerlite_form($form_attributes['form_id']);
107
+
108
+ return ob_get_clean();
109
+ }
110
+ }
trunk/include/mailerlite-widget.php ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once MAILERLITE_PLUGIN_DIR . "include/mailerlite-form.php";
4
+
5
+ class MailerLite_Widget extends WP_Widget
6
+ {
7
+
8
+ /**
9
+ * Sets up the widgets name etc
10
+ */
11
+ public function __construct()
12
+ {
13
+ parent::__construct(
14
+ 'mailerlite_widget', // Base ID
15
+ __('Mailerlite sign up form', 'mailerlite'), // Name
16
+ array('description' => __(
17
+ 'MailerLite sign up form Widget', 'mailerlite'
18
+ ),) // Args
19
+ );
20
+ }
21
+
22
+ /**
23
+ * Front-end display of widget.
24
+ *
25
+ * @see WP_Widget::widget()
26
+ *
27
+ * @param array $args Widget arguments.
28
+ * @param array $instance Saved values from database.
29
+ */
30
+ public function widget($args, $instance)
31
+ {
32
+ global $wpdb;
33
+
34
+ $form_id = isset($instance['mailerlite_form_id'])
35
+ && intval(
36
+ $instance['mailerlite_form_id']
37
+ ) ? $instance['mailerlite_form_id'] : 0;
38
+ $form = $wpdb->get_row(
39
+ "SELECT * FROM " . $wpdb->base_prefix . "mailerlite_forms WHERE id = "
40
+ . $form_id
41
+ );
42
+
43
+ if (isset($form->data)) {
44
+ $form_data = unserialize($form->data);
45
+
46
+ echo $args['before_widget'];
47
+
48
+ $MailerLite_form = new Mailerlite_Form();
49
+ $MailerLite_form->generate_form(
50
+ $form_id, $form->type, $form->name, $form_data
51
+ );
52
+
53
+ echo $args['after_widget'];
54
+ }
55
+ }
56
+
57
+ /**
58
+ * Back-end widget form.
59
+ *
60
+ * @see WP_Widget::form()
61
+ *
62
+ * @param array $instance Previously saved values from database.
63
+ *
64
+ * @return void
65
+ */
66
+ public function form($instance)
67
+ {
68
+ global $wpdb;
69
+
70
+ $forms_data = $wpdb->get_results(
71
+ "SELECT * FROM " . $wpdb->base_prefix
72
+ . "mailerlite_forms ORDER BY time DESC"
73
+ );
74
+
75
+ if (isset($instance['mailerlite_form_id'])) {
76
+ $id = $instance['mailerlite_form_id'];
77
+ } else {
78
+ $id = 0;
79
+ }
80
+ ?>
81
+ <p>
82
+ <label for="<?php echo $this->get_field_id(
83
+ 'mailerlite_form_id'
84
+ ); ?>"><?php echo __('Select form:', 'mailerlite'); ?></label>
85
+ <select class="widefat" id="<?php echo $this->get_field_id(
86
+ 'mailerlite_form_id'
87
+ ); ?>" name="<?php echo $this->get_field_name(
88
+ 'mailerlite_form_id'
89
+ ); ?>">
90
+ <?php foreach ($forms_data as $form): ?>
91
+ <option value="<?php echo $form->id; ?>"<?php echo
92
+ $form->id == $id ? ' selected="selected"'
93
+ : ''; ?>><?php echo $form->name; ?></option>
94
+ <?php endforeach; ?>
95
+ </select>
96
+ </p>
97
+ <?php
98
+ }
99
+
100
+ /**
101
+ * Sanitize widget form values as they are saved.
102
+ *
103
+ * @see WP_Widget::update()
104
+ *
105
+ * @param array $new_instance Values just sent to be saved.
106
+ * @param array $old_instance Previously saved values from database.
107
+ *
108
+ * @return array Updated safe values to be saved.
109
+ */
110
+ public function update($new_instance, $old_instance)
111
+ {
112
+ $instance = array();
113
+ $instance['mailerlite_form_id']
114
+ = (!empty($new_instance['mailerlite_form_id']))
115
+ ? strip_tags($new_instance['mailerlite_form_id']) : '';
116
+
117
+ return $instance;
118
+ }
119
+ }
120
+
121
+ function register_mailerlite_widget()
122
+ {
123
+ register_widget('Mailerlite_Widget');
124
+ }
125
+
126
+ add_action('widgets_init', 'register_mailerlite_widget');
trunk/include/settings/languages.php ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $languages = array(
4
+ '' => '-Default (English)-',
5
+ 'ar' => 'Arabic',
6
+ 'bg' => 'Bulgarian',
7
+ 'ca' => 'Catalan',
8
+ 'cs' => 'Czech',
9
+ 'da' => 'Danish',
10
+ 'de' => 'German',
11
+ 'el' => 'Greek',
12
+ 'es' => 'Spanish',
13
+ 'eu' => 'Basque',
14
+ 'fa' => 'Farsi',
15
+ 'fi' => 'Finnish',
16
+ 'fr' => 'French',
17
+ 'he' => 'Hebrew',
18
+ 'hu' => 'Hungarian',
19
+ 'it' => 'Italian',
20
+ 'ja' => 'Japanese',
21
+ 'kk' => 'Kazakh',
22
+ 'lt' => 'Lietuvių',
23
+ 'lv' => 'Latvian',
24
+ 'nl' => 'Dutch',
25
+ 'no' => 'Norwegian',
26
+ 'pl' => 'Polish',
27
+ 'ro' => 'Romanian',
28
+ 'ru' => 'Russian',
29
+ 'si' => 'Sinhala',
30
+ 'sk' => 'Slovak',
31
+ 'sl' => 'Slovenian',
32
+ 'th' => 'Thai',
33
+ 'vi' => 'Vietnamese',
34
+
35
+ );
trunk/include/templates/admin/api_key.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php defined('ABSPATH') or die("No direct access allowed!"); ?>
2
+ <?php include("header.php"); ?>
3
+ <div class="wrap columns-2 dd-wrap">
4
+ <div id="poststuff" class="metabox-holder has-right-sidebar">
5
+ <?php include("sidebar.php"); ?>
6
+ <div id="post-body">
7
+ <div id="post-body-content">
8
+ <p><?php echo __('Hi there! You will be able to create awesome signup forms, but first we need your MailerLite API key!', 'mailerlite'); ?></p>
9
+
10
+ <div class="mailerlite-activate">
11
+ <div class="description-block">
12
+ <p class="title"><?php echo __('Enter an API key', 'mailerlite'); ?></p>
13
+
14
+ <p><?php echo __("Don't know where to find it?", 'mailerlite'); ?> <a
15
+ href="https://kb.mailerlite.com/does-mailerlite-offer-an-api/"
16
+ target="_blank"><?php echo __('Check it here!', 'mailerlite'); ?></a></p>
17
+ </div>
18
+ <div class="input-block">
19
+ <form action="" method="post" id="enter-mailerlite-key">
20
+ <input type="text" name="mailerlite_key" class="regular-text" placeholder="API-key"/>
21
+ <input type="submit" name="submit" id="submit" class="button button-primary"
22
+ value="<?php echo __('Save this key', 'mailerlite'); ?>">
23
+ <input type="hidden" name="action" value="enter-mailerlite-key">
24
+ </form>
25
+ </div>
26
+ <div class="clear"></div>
27
+ </div>
28
+ <p><strong><?php echo __("Don't have an account?", 'mailerlite'); ?></strong></p>
29
+ <a href="https://www.mailerlite.com/signup" target="_blank"
30
+ class="button button-secondary"><?php echo __('Register!', 'mailerlite'); ?></a>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ </div>
trunk/include/templates/admin/create.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php defined('ABSPATH') or die("No direct access allowed!"); ?>
2
+ <?php include_once('header.php'); ?>
3
+
4
+ <div class="wrap columns-2 dd-wrap">
5
+ <h2><?php echo __('Create new signup form', 'mailerlite'); ?></h2>
6
+
7
+ <div id="poststuff" class="metabox-holder has-right-sidebar">
8
+ <?php include("sidebar.php"); ?>
9
+ <div id="post-body">
10
+ <div id="post-body-content">
11
+ <div class="stuffbox">
12
+ <h3><span><?php echo __('Form type', 'mailerlite'); ?></span></h3>
13
+
14
+ <form action="<?php echo admin_url('admin.php?page=mailerlite_main&view=create&noheader=true'); ?>"
15
+ method="post">
16
+ <div class="inside">
17
+ <p>
18
+ <label for="form_type_custom" class="selectit">
19
+ <input id="form_type_custom" type="radio" name="form_type" value="1" onclick="jQuery('#expl').addClass('hidden')"
20
+ checked="checked">
21
+ <?php echo __('Custom signup form', 'mailerlite'); ?>
22
+ </label>
23
+ </p>
24
+
25
+ <p>
26
+ <?php
27
+ $embed_button_webforms = array();
28
+
29
+ if (isset($webforms->Results) && is_array($webforms->Results))
30
+ foreach ($webforms->Results as $webform) {
31
+ if (!in_array($webform->type, array('embed', 'button'))) { continue; }
32
+
33
+ $embed_button_webforms[] = $webform;
34
+ }
35
+ ?>
36
+
37
+ <label for="form_type_webform" class="selectit">
38
+ <input id="form_type_webform" type="radio" name="form_type" onclick="jQuery('#expl').removeClass('hidden')"
39
+ value="2"<?php echo count($embed_button_webforms) == 0 ? ' disabled="disabled"' : ''; ?>>
40
+ <?php echo __('Webforms created using MailerLite', 'mailerlite'); ?>
41
+ </label>
42
+ </p>
43
+
44
+ <p id="expl" class="hidden info">
45
+ <?php echo __('Explanation about forms', 'mailerlite'); ?>
46
+ </p>
47
+
48
+ <div class="submit">
49
+ <input class="button-primary mailerlite-pull-right"
50
+ value="<?php echo __('Create form', 'mailerlite'); ?>" name="create_signup_form"
51
+ type="submit">
52
+ <a class="button-secondary"
53
+ href="<?php echo admin_url('admin.php?page=mailerlite_main'); ?>"><?php echo __('Back', 'mailerlite'); ?></a>
54
+ </div>
55
+ </div>
56
+ </form>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </div>
trunk/include/templates/admin/edit_custom.php ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php defined('ABSPATH') or die("No direct access allowed!"); ?>
2
+ <?php include_once('header.php'); ?>
3
+
4
+ <div class="wrap columns-2 dd-wrap">
5
+ <h2><?php _e('Edit custom signup form', 'mailerlite'); ?></h2>
6
+ <?php if (isset($result) && $result == 'success'): ?>
7
+ <div id="message" class="updated below-h2"><p><?php _e('Form saved.', 'mailerlite'); ?> <a
8
+ href="<?php echo admin_url('admin.php?page=mailerlite_main'); ?>"><?php _e('Back to forms list', 'mailerlite'); ?></a>
9
+ </p></div>
10
+ <?php endif; ?>
11
+ <div id="poststuff" class="metabox-holder has-right-sidebar">
12
+ <?php include("sidebar.php"); ?>
13
+ <div id="post-body">
14
+ <div id="post-body-content">
15
+ <form
16
+ action="<?php echo admin_url('admin.php?page=mailerlite_main&view=edit&id=' . (isset($_GET['id']) ? $_GET['id'] : 0)); ?>"
17
+ method="post">
18
+ <div class="postbox">
19
+ <h3><span><?php _e('Main information', 'mailerlite'); ?></span></h3>
20
+
21
+ <div class="inside">
22
+ <table class="form-table">
23
+ <tbody>
24
+ <tr>
25
+ <th><label for="form_name"><?php _e('Form name', 'mailerlite'); ?></label></th>
26
+ <td><input type="text" name="form_name" size="30" maxlength="255"
27
+ value="<?php echo $form->name; ?>" id="form_name"> <span
28
+ class="description"><strong><?php echo __('Tip:', 'mailerlite'); ?></strong> <?php echo __("This title won't be displayed in public!", 'mailerlite'); ?></span>
29
+ </td>
30
+ </tr>
31
+ </tbody>
32
+ </table>
33
+ </div>
34
+ </div>
35
+ <div class="postbox">
36
+ <h3><span><?php _e('Form details', 'mailerlite'); ?></span></h3>
37
+
38
+ <div class="inside">
39
+ <table class="form-table">
40
+ <tbody>
41
+ <tr>
42
+ <th><label for="form_title"><?php _e('Form title', 'mailerlite'); ?></label>
43
+ </th>
44
+ <td><input type="text" name="form_title" size="30" maxlength="255"
45
+ value="<?php echo $form->data['title']; ?>" id="form_title"> <span
46
+ class="description"><strong><?php echo __('Example:', 'mailerlite'); ?></strong> <?php echo __("Newsletter signup!", 'mailerlite'); ?></span>
47
+ </td>
48
+ </tr>
49
+ <tr>
50
+ <th><label
51
+ for="form_description"><?php _e('Form description', 'mailerlite'); ?></label>
52
+ </th>
53
+ <td>
54
+ <?php
55
+ $settings = array(
56
+ 'media_buttons' => false,
57
+ 'textarea_rows' => 4,
58
+ 'tinymce' => array(
59
+ 'toolbar1' => 'bold,italic,underline,bullist,numlist,link,unlink,forecolor,alignleft,aligncenter,alignright,undo,redo',
60
+ 'toolbar2' => ''
61
+ )
62
+ );
63
+
64
+ wp_editor(stripslashes($form->data['description']), 'form_description', $settings);
65
+ ?>
66
+ </td>
67
+ </tr>
68
+ <tr>
69
+ <th><label
70
+ for="success_message"><?php _e('Success message', 'mailerlite'); ?></label>
71
+ </th>
72
+ <td>
73
+ <?php
74
+ $settings = array(
75
+ 'media_buttons' => false,
76
+ 'textarea_rows' => 4,
77
+ 'tinymce' => array(
78
+ 'toolbar1' => 'bold,italic,underline,bullist,numlist,link,unlink,forecolor,alignleft,aligncenter,alignright,undo,redo',
79
+ 'toolbar2' => ''
80
+ )
81
+ );
82
+
83
+ wp_editor(stripslashes($form->data['success_message']), 'success_message', $settings);
84
+ ?>
85
+ </td>
86
+ </tr>
87
+ <tr>
88
+ <th><label for="button_name"><?php _e('Button title', 'mailerlite'); ?></label>
89
+ </th>
90
+ <td><input type="text" name="button_name" size="30" maxlength="255"
91
+ value="<?php echo $form->data['button']; ?>" id="button_name"> <span
92
+ class="description"><strong><?php _e('Example:'); ?></strong> <?php _e('Subscribe'); ?></span>
93
+ </td>
94
+ </tr>
95
+
96
+ <tr>
97
+ <th><label for="button_name"><?php _e('Please wait message', 'mailerlite'); ?></label>
98
+ </th>
99
+ <td><input type="text" name="please_wait" size="30" maxlength="255"
100
+ value="<?php if (isset($form->data['please_wait'])) echo $form->data['please_wait']; ?>" id="please_wait_name"> <span
101
+ class="description"><strong><?php _e('Example:'); ?></strong> <?php _e('Please wait...'); ?></span>
102
+ </td>
103
+ </tr>
104
+
105
+ <tr>
106
+ <th><label for="language"><?php _e('Validation messages', 'mailerlite'); ?></label>
107
+ </th>
108
+ <td>
109
+ <select id="language" name="language">
110
+ <?php foreach ($languages as $langKey => $langName): ?>
111
+ <option data-code="<?php echo $langKey; ?>"
112
+ value="<?php echo $langKey; ?>"<?php echo $langKey == (isset($form->data['language'])?$form->data['language']:'') ? ' selected="selected"' : ''; ?>><?php echo $langName; ?></option>
113
+ <?php endforeach; ?>
114
+ </select>
115
+
116
+ </td>
117
+ </tr>
118
+ </tbody>
119
+ </table>
120
+ </div>
121
+ </div>
122
+ <div class="postbox">
123
+ <h3><span><?php _e('Form fields and lists', 'mailerlite'); ?></span></h3>
124
+
125
+ <div class="inside">
126
+ <table class="form-table">
127
+ <tr>
128
+ <td style="vertical-align: top;">
129
+ <h2><?php _e('Fields', 'mailerlite'); ?></h2>
130
+ <table class="form-table">
131
+ <tbody>
132
+ <?php foreach ($fields->Fields as $field): ?>
133
+ <tr>
134
+ <th style="width:1%;"><input type="checkbox"
135
+ class="input_control"
136
+ name="form_selected_field[]"
137
+ value="<?php echo $field->field; ?>"<?php echo $field->field == 'email' || array_key_exists($field->field, $form->data['fields']) ? ' checked="checked"' : '';
138
+ echo $field->field == 'email' ? ' disabled="disabled"' : ''; ?>>
139
+ </th>
140
+ <td><input type="text" id="field_<?php echo $field->field; ?>"
141
+ name="form_field[<?php echo $field->field; ?>]"
142
+ size="30" maxlength="255"
143
+ value="<?php echo array_key_exists($field->field, $form->data['fields']) ? $form->data['fields'][$field->field] : $field->title; ?>"<?php echo $field->field == 'email' || array_key_exists($field->field, $form->data['fields']) ? '' : ' disabled="disabled"'; ?>>
144
+ </td>
145
+ </tr>
146
+ <?php endforeach; ?>
147
+ </tbody>
148
+ </table>
149
+ </td>
150
+ <td style="vertical-align: top;">
151
+ <h2><?php _e('Lists', 'mailerlite'); ?></h2>
152
+ <table class="form-table">
153
+ <tbody>
154
+ <?php foreach ($lists->Results as $list): ?>
155
+ <tr>
156
+ <th style="width:1%;"><input id="list_<?php echo $list->id; ?>"
157
+ type="checkbox"
158
+ class="input_control"
159
+ name="form_lists[]"
160
+ value="<?php echo $list->id; ?>"<?php echo in_array($list->id, $form->data['lists']) ? ' checked="checked"' : ''; ?>>
161
+ </th>
162
+ <td><label
163
+ for="list_<?php echo $list->id; ?>"><?php echo $list->name; ?></label>
164
+ </td>
165
+ </tr>
166
+ <?php endforeach; ?>
167
+ </tbody>
168
+ </table>
169
+ </td>
170
+ </tr>
171
+ </table>
172
+ <div class="submit">
173
+ <input class="button-primary mailerlite-pull-right"
174
+ value="<?php _e('Save form', 'mailerlite'); ?>"
175
+ name="save_custom_signup_form" type="submit">
176
+ <a class="button-secondary"
177
+ href="<?php echo admin_url('admin.php?page=mailerlite_main'); ?>"><?php echo __('Back', 'mailerlite'); ?></a>
178
+ </div>
179
+ </div>
180
+ </div>
181
+ </form>
182
+ </div>
183
+ </div>
184
+ </div>
185
+ </div>
186
+
187
+ <script type="text/javascript">
188
+ jQuery(document).ready(function ($) {
189
+ $(".wp-editor-tabs").remove();
190
+
191
+ var checkbox_class = $('.input_control');
192
+
193
+ checkbox_class.click(function () {
194
+ var input = $('input#field_' + $(this).attr('value'));
195
+
196
+ if ($(this).prop('checked') == false) {
197
+ input.attr('disabled', true);
198
+ }
199
+ else {
200
+ input.attr('disabled', false);
201
+ }
202
+ });
203
+ });
204
+ </script>
205
+
206
+ <?php /**/
trunk/include/templates/admin/edit_embedded.php ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php defined('ABSPATH') or die("No direct access allowed!"); ?>
2
+ <?php include_once('header.php'); ?>
3
+
4
+ <div class="wrap columns-2 dd-wrap">
5
+ <h2><?php echo __('Edit webform', 'mailerlite'); ?></h2>
6
+ <?php if (isset($result) && $result == 'success'): ?>
7
+ <div id="message" class="updated below-h2"><p><?php _e('Form saved.', 'mailerlite'); ?> <a
8
+ href="<?php echo admin_url('admin.php?page=mailerlite_main'); ?>"><?php _e('Back to forms list', 'mailerlite'); ?></a>
9
+ </p></div>
10
+ <?php endif; ?>
11
+ <div id="poststuff" class="metabox-holder has-right-sidebar">
12
+ <?php include("sidebar.php"); ?>
13
+ <div id="post-body">
14
+ <div id="post-body-content">
15
+ <form
16
+ action="<?php echo admin_url('admin.php?page=mailerlite_main&view=edit&id=' . (isset($_GET['id']) ? $_GET['id'] : 0)); ?>"
17
+ method="post">
18
+ <div class="postbox">
19
+ <h3><span><?php echo __('Webform details', 'mailerlite'); ?></span></h3>
20
+
21
+ <div class="inside">
22
+ <table class="form-table mailerlite-table">
23
+ <tbody>
24
+ <tr>
25
+ <th><label for="form_name"><?php echo __('Form title', 'mailerlite'); ?></label>
26
+ </th>
27
+ <td><input type="text" name="form_name" size="30" maxlength="255"
28
+ value="<?php echo $form->name; ?>" id="form_name"> <span
29
+ class="description"><strong><?php echo __('Tip:', 'mailerlite'); ?></strong> <?php echo __("This title won't be displayed in public!", 'mailerlite'); ?></span>
30
+ </td>
31
+ </tr>
32
+ <tr>
33
+ <th><label for="form_webform_id"><?php _e('Webform', 'mailerlite'); ?></label></th>
34
+ <td>
35
+ <select id="form_webform_id" name="form_webform_id">
36
+ <?php foreach ($webforms->Results as $webform): ?>
37
+ <?php if (!in_array($webform->type, array('embed', 'button'))) { continue; } ?>
38
+ <option data-code="<?php echo $webform->code; ?>"
39
+ value="<?php echo $webform->id; ?>"<?php echo $webform->id == $form->data['id'] ? ' selected="selected"' : ''; ?>><?php echo $webform->name; ?> (<?php echo $webform->type;?>)</option>
40
+ <?php endforeach; ?>
41
+ </select>
42
+ </td>
43
+ </tr>
44
+
45
+ <tr>
46
+ <td colspan="2">
47
+ <p class="info">
48
+ <?php echo __('Explanation about forms', 'mailerlite'); ?>
49
+ </p>
50
+ </td>
51
+ </tr>
52
+
53
+ <tr>
54
+ <td colspan="2">
55
+ <div id="webform_example">​</div>
56
+ ​​​​​​​
57
+ </td>
58
+ </tr>
59
+ </tbody>
60
+ </table>
61
+ <div class="submit">
62
+ <input class="button-primary mailerlite-pull-right"
63
+ value="<?php _e('Save form', 'mailerlite'); ?>" name="save_embedded_signup_form"
64
+ type="submit">
65
+ <a class="button-secondary"
66
+ href="<?php echo admin_url('admin.php?page=mailerlite_main'); ?>"><?php echo __('Back', 'mailerlite'); ?></a>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ </form>
71
+ </div>
72
+ </div>
73
+ </div>
74
+ </div>
75
+
76
+ <script type="text/javascript">
77
+ jQuery(window).load(function () {
78
+ var select = jQuery("#form_webform_id");
79
+ loadIframe(select.children("option:selected").attr('data-code'));
80
+ select.change(function () {
81
+ loadIframe(jQuery("option:selected", this).attr('data-code'));
82
+ });
83
+ });
84
+
85
+ function loadIframe(code) {
86
+ if (!code) {
87
+ return;
88
+ }
89
+
90
+ jQuery('#webform_example').html(jQuery('<iframe></iframe>', {
91
+ id: 'webform_example_iframe',
92
+ src: "https://app.mailerlite.com/webforms/submit/" + code + "/",
93
+ style: 'width:100%;height:350px;'
94
+ }));
95
+ }
96
+ </script>
trunk/include/templates/admin/header.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php defined('ABSPATH') or die("No direct access allowed!"); ?>
2
+ <div class="mailerlite-header"></div>
3
+
4
+ <?php if ($mailerlite_error): ?>
5
+ <div class="error">
6
+ <p><?php echo $mailerlite_error; ?></p>
7
+ </div>
8
+
9
+ <?php endif; ?>
trunk/include/templates/admin/main.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php defined('ABSPATH') or die("No direct access allowed!"); ?>
2
+ <?php include_once('header.php'); ?>
3
+
4
+ <div class="wrap columns-2 dd-wrap">
5
+ <h2>Popup forms</h2>
6
+ <div class="popup-description">
7
+ <p class="<?php if (!get_option('mailerlite_popups_disabled')) : ?>success<?php else: ?>info<?php endif; ?>">
8
+ <strong><?php echo __('MailerLite popup script is', 'mailerlite')?> <?php if (!get_option('mailerlite_popups_disabled', 'mailerlite')) : ?><?php echo __('enabled', 'mailerlite')?><?php else: ?><?php echo __('disabled', 'mailerlite')?><?php endif; ?>.</strong>
9
+ <?php echo __('Go to settings if you want to change it', 'mailerlite'); ?>.
10
+ <br/>
11
+ <?php if (!get_option('mailerlite_popups_disabled')): ?>
12
+ <strong><?php echo _e('Your popup forms will be displayed automatically while the popup script is enabled', 'mailerlite');?></strong>
13
+ <?php else: ?>
14
+ <strong><?php echo __('Your popup forms wont be displayed while the popup script is disabled', 'mailerlite');?></strong>
15
+ <?php endif; ?>
16
+ </p>
17
+ </div>
18
+ </div>
19
+
20
+ <div class="wrap columns-2 dd-wrap">
21
+ <h2><?php echo __('Signup forms', 'mailerlite'); ?> <a
22
+ href="<?php echo admin_url('admin.php?page=mailerlite_main&view=create'); ?>"
23
+ class="add-new-h2"><?php _e('Add New', 'mailerlite'); ?></a></h2>
24
+
25
+ <div id="poststuff" class="metabox-holder has-right-sidebar">
26
+ <?php include("sidebar.php"); ?>
27
+ <div id="post-body">
28
+ <div id="post-body-content">
29
+ <?php if (!empty($forms_data)): ?>
30
+ <table class="wp-list-table widefat fixed forms">
31
+ <thead>
32
+ <tr>
33
+ <th class="column-posts num"><?php _e('ID', 'mailerlite'); ?></th>
34
+ <th><?php _e('Name', 'mailerlite'); ?></th>
35
+ <th class="column-author"><?php _e('Type', 'mailerlite'); ?></th>
36
+ <th class="column-date"><?php _e('Date', 'mailerlite'); ?></th>
37
+ </tr>
38
+ </thead>
39
+ <tbody id="the-list">
40
+ <?php $i = 1; ?>
41
+ <?php foreach ($forms_data as $form): ?>
42
+ <?php $i++; ?>
43
+ <tr<?php echo $i % 2 == 0 ? ' class="alternate"' : ''; ?>>
44
+ <td class="column-posts num"><?php echo $form->id; ?></td>
45
+ <td>
46
+ <strong><a class="row-title"
47
+ href="<?php echo admin_url('admin.php?page=mailerlite_main&view=edit&id=' . $form->id); ?>"><?php echo $form->name; ?></a></strong>
48
+
49
+ <div class="row-actions">
50
+ <span class="edit"><a
51
+ href="<?php echo admin_url('admin.php?page=mailerlite_main&view=edit&id=' . $form->id); ?>"><?php _e('Edit', 'mailerlite'); ?></a> | </span>
52
+ <span class="trash"><a
53
+ onclick="return confirm('<?php _e("Are you sure you want to delete this form?", 'mailerlite'); ?>')"
54
+ href="<?php echo admin_url('admin.php?page=mailerlite_main&view=delete&noheader=true&id=' . $form->id); ?>"><?php _e('Delete', 'mailerlite'); ?></a></span>
55
+ </div>
56
+ </td>
57
+ <td><?php echo $form->type == 1 ? __('Custom form', 'mailerlite') : __('Embedded form', 'mailerlite'); ?></td>
58
+ <td><?php echo $form->time; ?></td>
59
+ </tr>
60
+ <?php endforeach; ?>
61
+ </tbody>
62
+ </table>
63
+ <?php else: ?>
64
+ <div class="postbox mailerlite-empty-list">
65
+ <div class="inside mailerlite-text-center">
66
+ <a href="<?php echo admin_url('admin.php?page=mailerlite_main&view=create'); ?>"
67
+ class="button-large button-primary"><?php _e('Add signup form', 'mailerlite'); ?></a>
68
+ </div>
69
+ </div>
70
+ <?php endif; ?>
71
+ </div>
72
+ </div>
73
+ </div>
74
+ </div>
trunk/include/templates/admin/settings.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php defined('ABSPATH') or die("No direct access allowed!"); ?>
2
+ <?php include_once('header.php'); ?>
3
+
4
+ <div class="wrap columns-2 dd-wrap">
5
+ <h2><?php echo __('Plugin settings', 'mailerlite'); ?></h2>
6
+
7
+ <div id="poststuff" class="metabox-holder has-right-sidebar">
8
+ <?php include("sidebar.php"); ?>
9
+ <div id="post-body">
10
+ <div id="post-body-content">
11
+
12
+ <div class="mailerlite-activate">
13
+ <div class="description-block">
14
+ <p class="title"><?php echo __('Enter an API key', 'mailerlite'); ?></p>
15
+
16
+ <p><?php echo __("Don't know where to find it?", 'mailerlite'); ?> <a
17
+ href="https://kb.mailerlite.com/does-mailerlite-offer-an-api/"
18
+ target="_blank"><?php echo __("Check it here!", 'mailerlite'); ?></a></p>
19
+ </div>
20
+ <div class="input-block">
21
+ <form action="" method="post" id="enter-mailerlite-key">
22
+ <input type="text" name="mailerlite_key" class="regular-text" placeholder="API-key"
23
+ value="<?php echo $api_key; ?>"/>
24
+ <input type="submit" name="submit" id="submit" class="button button-primary"
25
+ value="<?php echo __('Save this key', 'mailerlite'); ?>">
26
+ <input type="hidden" name="action" value="enter-mailerlite-key">
27
+ </form>
28
+ </div>
29
+ <div class="clear"></div>
30
+ </div>
31
+
32
+ <div class="mailerlite-activate">
33
+ <div class="description-block">
34
+ <p class="title"><?php echo __('Popup forms script', 'mailerlite'); ?></p>
35
+ </div>
36
+
37
+ <div class="input-block">
38
+ <form action="" method="post" id="mailerlite-popups">
39
+
40
+ <p class="<?php if (get_option('mailerlite_popups_disabled')) : ?>info<?php else: ?>success<?php endif; ?> popups">
41
+ <?php if (!get_option('mailerlite_popups_disabled')) : ?> <?php echo __('enabled', 'mailerlite'); ?><?php else: ?><?php echo __('disabled', 'mailerlite');?><?php endif; ?>
42
+ </p>
43
+
44
+ <input type="submit" name="submit" id="submit" class="button button-primary"
45
+ value="<?php if (!get_option('mailerlite_popups_disabled')) : ?><?php echo __('Disable', 'mailerlite'); ?><?php else: ?><?php echo __('Enable', 'mailerlite');?><?php endif; ?>">
46
+ <input type="hidden" name="action" value="enter-popup-forms">
47
+ </form>
48
+ </div>
49
+ <div class="clear"></div>
50
+
51
+ <div class="input-block">
52
+ <?php if (!get_option('mailerlite_popups_disabled')): ?>
53
+ <?php echo __('Your popup forms will be displayed automatically while the popup script is enabled', 'mailerlite');?>
54
+ <?php else: ?>
55
+ <?php echo __('Your popup forms wont be displayed while the popup script is disabled', 'mailerlite');?>
56
+ <?php endif; ?>
57
+ </div>
58
+ <div class="clear"></div>
59
+
60
+ </div>
61
+
62
+
63
+ <p><strong><?php echo __("Don't have an account?", 'mailerlite'); ?></strong></p>
64
+ <a href="https://www.mailerlite.com/signup" target="_blank"
65
+ class="button button-secondary"><?php echo __('Register!', 'mailerlite'); ?></a>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </div>
trunk/include/templates/admin/sidebar.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="side-info-column" class="inner-sidebar">
2
+
3
+ <div class="postbox">
4
+ <h3><?php echo _e('Need help?', 'mailerlite'); ?></h3>
5
+
6
+ <div class="inside">
7
+ <p><?php echo _e('Have any questions? Stuck on something or found bug? Feel free to contact us!', 'mailerlite'); ?></p>
8
+
9
+ <p><a href="mailto:info@mailerlite.com">info@mailerlite.com</a></p>
10
+ </div>
11
+ </div>
12
+
13
+ </div>
trunk/include/templates/common/tiny_mce.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <html>
2
+ <head>
3
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
4
+ <script type="text/javascript"
5
+ src="<?php echo site_url() . '/wp-includes/js/tinymce/tiny_mce_popup.js'; ?>"></script>
6
+ </head>
7
+
8
+ <body>
9
+
10
+ <h2>Add form</h2>
11
+
12
+ <form id="mailerlite_tinymce_form" action="" method="post">
13
+
14
+ <p><?php _e('Select form from list below, and hit "Add Shortcode" to add the shortcode to your post!', 'mailerlite'); ?></p>
15
+
16
+ <p>
17
+ <label for="mailerlite_form_id">Form</label><br/>
18
+ <select class="widefat" id="mailerlite_form_id" name="mailerlite_form_id">
19
+ <?php foreach ($forms as $form): ?>
20
+ <option value="<?php echo $form->id; ?>"><?php echo $form->name; ?></option>
21
+ <?php endforeach; ?>
22
+ </select>
23
+ </p>
24
+
25
+ <input type="button" name="<?php _e('Add Shortcode', 'mailerlite'); ?>" value="Add Shortcode">
26
+
27
+ </form>
28
+ <script type="text/javascript">
29
+ jQuery(document).ready(function () {
30
+ jQuery('form#mailerlite_tinymce_form input:button').click(function () {
31
+ var form_id = jQuery('form#mailerlite_tinymce_form #mailerlite_form_id').val();
32
+ var shortcode = '[mailerlite_form form_id=' + form_id + ']';
33
+ tinyMCEPopup.execCommand("mceInsertContent", false, shortcode);
34
+ tinyMCEPopup.close();
35
+ return false;
36
+ });
37
+ });
38
+ </script>
39
+ </body>
40
+ </html>
trunk/include/templates/forms/custom_form.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php $unique_id = uniqid(); ?>
2
+
3
+ <div id="mailerlite-form_<?php echo $form_id; ?>" data-temp-id="<?php echo $unique_id; ?>">
4
+ <div class="mailerlite-form">
5
+ <form action="" method="post">
6
+ <div class="mailerlite-form-title"><h3><?php echo $form_data['title']; ?></h3></div>
7
+ <div class="mailerlite-form-description"><?php echo stripslashes($form_data['description']); ?></div>
8
+ <div class="mailerlite-form-inputs">
9
+ <?php foreach ($form_data['fields'] as $field => $title): ?>
10
+ <?php if ($field == 'email') {
11
+ $input_type = 'email';
12
+ } else {
13
+ $input_type = 'text';
14
+ } ?>
15
+ <div class="mailerlite-form-field">
16
+ <label for="mailerlite-<?php echo $form_id; ?>-field-<?php echo $field; ?>"><?php echo $title; ?></label>
17
+ <input id="mailerlite-<?php echo $form_id; ?>-field-<?php echo $field; ?>" type="<?php echo $input_type; ?>" required="required" name="form_fields[<?php echo $field; ?>]"/>
18
+ </div>
19
+ <?php endforeach; ?>
20
+ <div class="mailerlite-form-loader"><?php if (!empty($form_data['please_wait'])) echo $form_data['please_wait']; else _e('Please wait...', 'mailerlite'); ?></div>
21
+ <div class="mailerlite-subscribe-button-container">
22
+ <input class="mailerlite-subscribe-submit" type="submit"
23
+ value="<?php echo $form_data['button']; ?>"/>
24
+ </div>
25
+ <input type="hidden" name="form_id" value="<?php echo $form_id; ?>"/>
26
+ <input type="hidden" name="action" value="mailerlite_subscribe_form"/>
27
+ </div>
28
+ <div class="mailerlite-form-response">
29
+ <?php if (!empty($form_data['success_message'])) { ?>
30
+ <h4><?php echo $form_data['success_message'] ?></h4>
31
+ <?php } else { ?>
32
+ <h4><?php _e('Thank you for signing up!', 'mailerlite'); ?></h4>
33
+ <?php } ?>
34
+ </div>
35
+ </form>
36
+ </div>
37
+ </div>
38
+
39
+ <?php if (!empty($form_data['language'])):?>
40
+ <script type='text/javascript' src='<?php echo MAILERLITE_PLUGIN_URL?>/assets/js/localization/jquery.validate/messages_<?php echo strtolower($form_data['language'])?>.js'></script>
41
+ <?php endif; ?>
42
+
43
+ <script type="text/javascript">
44
+ (function() {
45
+ var jQuery = window.jQueryWP || window.jQuery;
46
+
47
+ jQuery(document).ready(function () {
48
+ var form_container = jQuery("#mailerlite-form_<?php echo $form_id; ?>[data-temp-id=<?php echo $unique_id; ?>] form");
49
+ form_container.submit(function (e) {
50
+ e.preventDefault();
51
+ }).validate({
52
+ submitHandler: function (form) {
53
+
54
+ jQuery(this.submitButton).prop('disabled', true);
55
+
56
+ form_container.find('.mailerlite-subscribe-button-container').fadeOut(function () {
57
+ form_container.find('.mailerlite-form-loader').fadeIn()
58
+ });
59
+
60
+ var data = jQuery(form).serialize();
61
+
62
+ jQuery.post('<?php echo admin_url( 'admin-ajax.php' ); ?>', data, function (response) {
63
+ form_container.find('.mailerlite-form-inputs').fadeOut(function () {
64
+ form_container.find('.mailerlite-form-response').fadeIn()
65
+ });
66
+ });
67
+ }
68
+ });
69
+ });
70
+ })();
71
+ </script>
trunk/include/templates/forms/embedded_form.php ADDED
@@ -0,0 +1 @@
 
1
+ <script type="text/javascript" src="//app.mailerlite.com/data/webforms/<?php echo $form_data['id']; ?>/<?php echo $form_data['code']; ?>.js?v=<?php echo time(); ?>"></script>
trunk/languages/mailerlite-en_US.mo ADDED
Binary file
trunk/languages/mailerlite-en_US.po ADDED
@@ -0,0 +1,465 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "MIME-Version: 1.0\n"
4
+ "Content-Type: text/plain; charset=UTF-8\n"
5
+ "Content-Transfer-Encoding: 8bit\n"
6
+ "X-Generator: Poedit 1.6.7\n"
7
+ "Project-Id-Version: MailerLite wordpress plugin\n"
8
+ "Language: en\n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: \n"
11
+ "Last-Translator: \n"
12
+ "Language-Team: \n"
13
+
14
+ # @ mailerlite
15
+ #: include/mailerlite-admin.php:133
16
+ msgid "Subscribe for newsletter!"
17
+ msgstr "Subscribe for newsletter!"
18
+
19
+ # @ mailerlite
20
+ #: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
21
+ msgid "Newsletter signup"
22
+ msgstr "Newsletter signup"
23
+
24
+ # @ mailerlite
25
+ #: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
26
+ msgid "Just simple MailerLite form!"
27
+ msgstr "Just simple MailerLite form!"
28
+
29
+ # @ mailerlite
30
+ # @ default
31
+ #: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
32
+ #: include/templates/admin/edit_custom.php:55
33
+ msgid "Subscribe"
34
+ msgstr "Subscribe"
35
+
36
+ # @ mailerlite
37
+ #: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
38
+ msgid "Email"
39
+ msgstr "Email"
40
+
41
+ # @ mailerlite
42
+ #: include/mailerlite-admin.php:198
43
+ msgid "Embedded webform"
44
+ msgstr "Embedded webform"
45
+
46
+ # @ mailerlite
47
+ #: include/mailerlite-admin.php:267
48
+ msgid "You not allowed to do that"
49
+ msgstr "You not allowed to do that"
50
+
51
+ # @ mailerlite
52
+ #: include/mailerlite-admin.php:277
53
+ msgid "Wrong MailerLite API key"
54
+ msgstr "Wrong MailerLite API key"
55
+
56
+ # @ mailerlite
57
+ #: include/mailerlite-admin.php:299
58
+ msgid "New custom signup form"
59
+ msgstr "New custom signup form"
60
+
61
+ # @ mailerlite
62
+ #: include/mailerlite-admin.php:310
63
+ msgid "New embedded signup form"
64
+ msgstr "New embedded signup form"
65
+
66
+ # @ mailerlite
67
+ #: include/mailerlite-widget.php:13
68
+ msgid "Mailerlite sign up form"
69
+ msgstr "Mailerlite sign up form"
70
+
71
+ # @ mailerlite
72
+ #: include/mailerlite-widget.php:14
73
+ msgid "MailerLite sign up form Widget"
74
+ msgstr "MailerLite sign up form Widget"
75
+
76
+ # @ mailerlite
77
+ #: include/mailerlite-widget.php:66
78
+ msgid "Select form:"
79
+ msgstr "Select form:"
80
+
81
+ # @ mailerlite
82
+ #: include/templates/admin/api_key.php:19
83
+ #: include/templates/admin/settings.php:19
84
+ msgid "Enter an API key"
85
+ msgstr "Enter an API key"
86
+
87
+ # @ mailerlite
88
+ #: include/templates/admin/api_key.php:20
89
+ #: include/templates/admin/settings.php:20
90
+ msgid "Don't know where to find it?"
91
+ msgstr "Don't know where to find it?"
92
+
93
+ # @ mailerlite
94
+ #: include/templates/admin/api_key.php:20
95
+ #: include/templates/admin/settings.php:20
96
+ msgid "Check it here!"
97
+ msgstr "Check it here!"
98
+
99
+ # @ mailerlite
100
+ #: include/templates/admin/api_key.php:25
101
+ #: include/templates/admin/settings.php:25
102
+ msgid "Save this key"
103
+ msgstr "Save this key"
104
+
105
+ # @ mailerlite
106
+ #: include/templates/admin/api_key.php:31
107
+ #: include/templates/admin/settings.php:31
108
+ msgid "Don't have an account?"
109
+ msgstr "Don't have an account?"
110
+
111
+ # @ mailerlite
112
+ #: include/templates/admin/api_key.php:32
113
+ #: include/templates/admin/settings.php:32
114
+ msgid "Register!"
115
+ msgstr "Register!"
116
+
117
+ # @ mailerlite
118
+ #: include/templates/admin/create.php:11
119
+ msgid "Form type"
120
+ msgstr "Form type"
121
+
122
+ # @ mailerlite
123
+ #: include/templates/admin/create.php:40
124
+ msgid "Webforms created using MailerLite"
125
+ msgstr "Forms created using MailerLite (Embed and button)"
126
+
127
+ # @ mailerlite
128
+ #: include/templates/admin/create.php:28
129
+ msgid "Create form"
130
+ msgstr "Create form"
131
+
132
+ # @ mailerlite
133
+ #: include/templates/admin/create.php:29
134
+ #: include/templates/admin/edit_custom.php:96
135
+ #: include/templates/admin/edit_embedded.php:42
136
+ msgid "Back"
137
+ msgstr "Back"
138
+
139
+ # @ mailerlite
140
+ #: include/templates/admin/edit_custom.php:21
141
+ #: include/templates/admin/edit_embedded.php:21
142
+ msgid "Tip:"
143
+ msgstr "Tip:"
144
+
145
+ # @ mailerlite
146
+ #: include/templates/admin/edit_custom.php:21
147
+ #: include/templates/admin/edit_embedded.php:21
148
+ msgid "This title won't be displayed in public!"
149
+ msgstr "This title won't be displayed in public!"
150
+
151
+ # @ mailerlite
152
+ # @ default
153
+ #: include/templates/admin/edit_custom.php:34
154
+ #: include/templates/admin/edit_custom.php:55
155
+ msgid "Example:"
156
+ msgstr "Example:"
157
+
158
+ # @ mailerlite
159
+ #: include/templates/admin/edit_custom.php:34
160
+ msgid "Newsletter signup!"
161
+ msgstr "Newsletter signup!"
162
+
163
+ # @ mailerlite
164
+ #: include/templates/admin/edit_embedded.php:15
165
+ msgid "Webform details"
166
+ msgstr "Webform details"
167
+
168
+ # @ mailerlite
169
+ #: include/templates/admin/edit_custom.php:33
170
+ #: include/templates/admin/edit_embedded.php:20
171
+ msgid "Form title"
172
+ msgstr "Form title"
173
+
174
+ # @ mailerlite
175
+ #: include/templates/admin/main.php:30
176
+ msgid "Are you sure you want to delete this form?"
177
+ msgstr "Are you sure you want to delete this form?"
178
+
179
+ # @ mailerlite
180
+ #: include/templates/admin/settings.php:10
181
+ msgid "Here you are able to change your API key!"
182
+ msgstr "Here you are able to change your API key!"
183
+
184
+ # @ mailerlite
185
+ #: include/templates/admin/sidebar.php:4
186
+ msgid "Need help?"
187
+ msgstr "Need help?"
188
+
189
+ # @ mailerlite
190
+ #: include/templates/admin/sidebar.php:6
191
+ msgid ""
192
+ "Have any questions? Stuck on something or found bug? Feel free to contact us!"
193
+ msgstr ""
194
+ "Have any questions? Stuck on something or found bug? Feel free to contact us!"
195
+
196
+ # @ mailerlite
197
+ #: include/templates/admin/api_key.php:10
198
+ msgid ""
199
+ "Hi there! You will be able to create awesome signup forms, but first we need "
200
+ "your MailerLite API key!"
201
+ msgstr ""
202
+ "Hi there! You will be able to create awesome signup forms, but first we need "
203
+ "your MailerLite API key!"
204
+
205
+ # @ mailerlite
206
+ #: include/templates/admin/create.php:17
207
+ msgid "Custom signup form"
208
+ msgstr "Custom signup form"
209
+
210
+ # @ mailerlite
211
+ #: include/templates/admin/main.php:14
212
+ msgid "ID"
213
+ msgstr "ID"
214
+
215
+ # @ mailerlite
216
+ #: include/templates/admin/main.php:16
217
+ msgid "Type"
218
+ msgstr "Type"
219
+
220
+ # @ mailerlite
221
+ #: include/templates/admin/main.php:17
222
+ msgid "Date"
223
+ msgstr "Date"
224
+
225
+ # @ mailerlite
226
+ #: include/templates/admin/main.php:33
227
+ msgid "Custom form"
228
+ msgstr "Custom form"
229
+
230
+ # @ mailerlite
231
+ #: include/templates/admin/main.php:33
232
+ msgid "Embedded form"
233
+ msgstr "Embedded form"
234
+
235
+ # @ mailerlite
236
+ #: include/templates/admin/main.php:42
237
+ msgid "There is no signup forms created yet!"
238
+ msgstr "There is no signup forms created yet!"
239
+
240
+ # @ mailerlite
241
+ #: include/templates/admin/main.php:43
242
+ msgid "Create signup form"
243
+ msgstr "Create signup form"
244
+
245
+ # @ mailerlite
246
+ #: include/templates/admin/edit_custom.php:7
247
+ #: include/templates/admin/edit_embedded.php:7
248
+ msgid "Form saved."
249
+ msgstr "Form saved."
250
+
251
+ # @ mailerlite
252
+ #: include/templates/admin/edit_custom.php:7
253
+ #: include/templates/admin/edit_embedded.php:7
254
+ msgid "Back to forms list"
255
+ msgstr "Back to forms list"
256
+
257
+ # @ mailerlite
258
+ #: include/templates/admin/edit_custom.php:15
259
+ msgid "Main information"
260
+ msgstr "Main information"
261
+
262
+ # @ default
263
+ #: include/templates/admin/edit_custom.php:20
264
+ msgid "Form name"
265
+ msgstr "Form name"
266
+
267
+ # @ mailerlite
268
+ #: include/templates/admin/edit_custom.php:28
269
+ msgid "Form details"
270
+ msgstr "Form details"
271
+
272
+ # @ mailerlite
273
+ #: include/templates/admin/edit_custom.php:37
274
+ msgid "Form description"
275
+ msgstr "Form description"
276
+
277
+ # @ mailerlite
278
+ #: include/templates/admin/edit_custom.php:54
279
+ msgid "Button title"
280
+ msgstr "Button title"
281
+
282
+ # @ mailerlite
283
+ #: include/templates/admin/edit_custom.php:62
284
+ msgid "Form fields and lists"
285
+ msgstr "Form fields and lists"
286
+
287
+ # @ mailerlite
288
+ #: include/templates/admin/edit_custom.php:67
289
+ msgid "Fields"
290
+ msgstr "Fields"
291
+
292
+ # @ mailerlite
293
+ #: include/templates/admin/edit_custom.php:80
294
+ msgid "Lists"
295
+ msgstr "Lists"
296
+
297
+ # @ mailerlite
298
+ #: include/templates/admin/edit_custom.php:95
299
+ #: include/templates/admin/edit_embedded.php:41
300
+ msgid "Save form"
301
+ msgstr "Save form"
302
+
303
+ # @ mailerlite
304
+ #: include/templates/admin/edit_embedded.php:24
305
+ msgid "Webform"
306
+ msgstr "Webform"
307
+
308
+ # @ mailerlite
309
+ #: include/templates/admin/main.php:15
310
+ msgid "Name"
311
+ msgstr "Name"
312
+
313
+ # @ mailerlite
314
+ #: include/templates/admin/main.php:29
315
+ msgid "Edit"
316
+ msgstr "Edit"
317
+
318
+ # @ mailerlite
319
+ #: include/templates/admin/main.php:30
320
+ msgid "Delete"
321
+ msgstr "Delete"
322
+
323
+ # @ mailerlite
324
+ #: include/mailerlite-admin.php:52
325
+ msgid "Forms"
326
+ msgstr "Forms"
327
+
328
+ # @ mailerlite
329
+ #: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
330
+ msgid "Signup forms"
331
+ msgstr "Signup forms"
332
+
333
+ # @ mailerlite
334
+ #: include/mailerlite-admin.php:53
335
+ msgid "Settings"
336
+ msgstr "Settings"
337
+
338
+ # @ mailerlite
339
+ #: include/templates/admin/main.php:5
340
+ msgid "Add New"
341
+ msgstr "Add New"
342
+
343
+ # @ mailerlite
344
+ #: include/mailerlite-form.php:75
345
+ msgid "Subscriber successfully saved"
346
+ msgstr "Subscriber successfully saved"
347
+
348
+ # @ mailerlite
349
+ #: include/mailerlite-form.php:79
350
+ msgid "Form not found"
351
+ msgstr "Form not found"
352
+
353
+ # @ mailerlite
354
+ #: include/mailerlite-form.php:84
355
+ msgid "Wrong data provided"
356
+ msgstr "Wrong data provided"
357
+
358
+ # @ mailerlite
359
+ #: include/templates/admin/create.php:5
360
+ msgid "Add signup form"
361
+ msgstr "Add signup form"
362
+
363
+ # @ mailerlite
364
+ #: include/templates/admin/edit_custom.php:5
365
+ msgid "Edit custom signup form"
366
+ msgstr "Edit custom signup form"
367
+
368
+ # @ mailerlite
369
+ #: include/templates/admin/edit_embedded.php:5
370
+ msgid "Edit webform"
371
+ msgstr "Edit webform"
372
+
373
+ # @ mailerlite
374
+ #: include/templates/admin/settings.php:5
375
+ msgid "Plugin settings"
376
+ msgstr "Plugin settings"
377
+
378
+ # @ mailerlite
379
+ #: include/templates/common/tiny_mce.php:13
380
+ msgid ""
381
+ "Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
382
+ "to your post!"
383
+ msgstr ""
384
+ "Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
385
+ "to your post!"
386
+
387
+ # @ mailerlite
388
+ #: include/templates/forms/custom_form.php:20
389
+ msgid "Please wait..."
390
+ msgstr "Please wait..."
391
+
392
+ # @ mailerlite
393
+ #: include/templates/forms/custom_form.php:28
394
+ msgid "Thank you for signup!"
395
+ msgstr "Thank you for signup!"
396
+
397
+ # @ mailerlite
398
+ #: include/templates/common/tiny_mce.php:24
399
+ msgid "Add Shortcode"
400
+ msgstr "Add Shortcode"
401
+
402
+ # @ mailerlite
403
+ #: include/mailerlite_admin.php:395
404
+ msgid "Send this error to info@mailerlite.com or our chat"
405
+ msgstr "Send this error to info@mailerlite.com or our chat"
406
+
407
+ # @ mailerlite
408
+ #: include/templates/admin/edit_custom.php:20
409
+ msgid "Please wait message"
410
+ msgstr "\"Please wait\" message"
411
+
412
+ # @ mailerlite
413
+ #: include/mailerlite/admin.php:150
414
+ msgid "Error happened"
415
+ msgstr "Error happened"
416
+
417
+ # @ mailerlite
418
+ #: include/mailerlite/admin.php:46
419
+ msgid "Explanation about forms"
420
+ msgstr "Please note, that you can add <b>Embed</b> or <b>Button</b> type forms only. <b>Popup</b> forms are shown automatically on your Wordpress site. You can switch off <b>Popup</b> forms in the <a href=\"admin.php?page=mailerlite_settings\">Settings</a>. You cannot include <b>Landing</b> page in your Wordpress page."
421
+
422
+ # @ mailerlite
423
+ #: include/templates/admin/main.php:8
424
+ msgid "MailerLite popup script is"
425
+ msgstr "MailerLite popup script is"
426
+
427
+ # @ mailerlite
428
+ #: include/templates/admin/main.php:8
429
+ msgid "enabled"
430
+ msgstr "enabled"
431
+
432
+ # @ mailerlite
433
+ #: include/templates/admin/main.php:8
434
+ msgid "disabled"
435
+ msgstr "disabled"
436
+
437
+ # @ mailerlite
438
+ #: include/templates/admin/settings.php:46
439
+ msgid "Enable"
440
+ msgstr "Enable"
441
+
442
+ # @ mailerlite
443
+ #: include/templates/admin/settings.php:46
444
+ msgid "Disable"
445
+ msgstr "Disable"
446
+
447
+ # @ mailerlite
448
+ #: include/templates/admin/main.php:9
449
+ msgid "Go to settings if you want to change it"
450
+ msgstr "Go to <a href=\"admin.php?page=mailerlite_settings\">Settings</a> if you want to change it"
451
+
452
+ # @ mailerlite
453
+ #: include/templates/admin/main.php:12
454
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
455
+ msgstr "Your popup forms will be displayed automatically while the popup script is enabled"
456
+
457
+ # @ mailerlite
458
+ #: include/templates/admin/main.php:14
459
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
460
+ msgstr "Your popup forms won\'t be displayed while the popup script is disabled"
461
+
462
+ # @ mailerlite
463
+ #: include/templates/admin/settings.php:34
464
+ msgid "Popup forms script"
465
+ msgstr "Popup forms script"
trunk/languages/mailerlite-fi_FI.mo ADDED
Binary file
trunk/languages/mailerlite-fi_FI.po ADDED
@@ -0,0 +1,466 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "MIME-Version: 1.0\n"
4
+ "Content-Type: text/plain; charset=UTF-8\n"
5
+ "Content-Transfer-Encoding: 8bit\n"
6
+ "X-Generator: Poedit 1.6.7\n"
7
+ "Project-Id-Version: MailerLite wordpress plugin\n"
8
+ "Language: fi\n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: \n"
11
+ "Last-Translator: \n"
12
+ "Language-Team: \n"
13
+
14
+ #. mailerlite
15
+ #: include/mailerlite-admin.php:52
16
+ msgid "Forms"
17
+ msgstr "Lomakkeet"
18
+
19
+ #. mailerlite
20
+ #: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
21
+ msgid "Signup forms"
22
+ msgstr "Tilauslomake"
23
+
24
+ #. mailerlite
25
+ #: include/mailerlite-admin.php:53
26
+ msgid "Settings"
27
+ msgstr "Asetukset"
28
+
29
+ #. mailerlite
30
+ #: include/mailerlite-admin.php:133
31
+ msgid "Subscribe for newsletter!"
32
+ msgstr "Tilaa uutiskirje"
33
+
34
+ #. mailerlite
35
+ #: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
36
+ msgid "Newsletter signup"
37
+ msgstr "Uutiskirjeen tilaus"
38
+
39
+ #. mailerlite
40
+ #: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
41
+ msgid "Just simple MailerLite form!"
42
+ msgstr "Helppo MailerLite lomake!"
43
+
44
+ #. mailerlite
45
+ #. default
46
+ #: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
47
+ #: include/templates/admin/edit_custom.php:55
48
+ msgid "Subscribe"
49
+ msgstr "Tilaa"
50
+
51
+ #. mailerlite
52
+ #: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
53
+ msgid "Email"
54
+ msgstr "Sähköposti"
55
+
56
+ #. mailerlite
57
+ #: include/mailerlite-admin.php:198
58
+ msgid "Embedded webform"
59
+ msgstr "Upotettu nettilomake"
60
+
61
+ #. mailerlite
62
+ #: include/mailerlite-admin.php:267
63
+ msgid "You not allowed to do that"
64
+ msgstr "Sinulla ei ole lupaa tehdä noin"
65
+
66
+ #. mailerlite
67
+ #: include/mailerlite-admin.php:277
68
+ msgid "Wrong MailerLite API key"
69
+ msgstr "Väärä MailerLIte API-avain"
70
+
71
+ #. mailerlite
72
+ #: include/mailerlite-admin.php:299
73
+ msgid "New custom signup form"
74
+ msgstr "Uusi rekisteröintilomake"
75
+
76
+ #. mailerlite
77
+ #: include/mailerlite-admin.php:310
78
+ msgid "New embedded signup form"
79
+ msgstr "Uusi upotettu rekisteröintilomake"
80
+
81
+ #. mailerlite
82
+ #: include/mailerlite-form.php:75
83
+ msgid "Subscriber successfully saved"
84
+ msgstr "Tilaaja tallennettu onnistuneesti"
85
+
86
+ #. mailerlite
87
+ #: include/mailerlite-form.php:79
88
+ msgid "Form not found"
89
+ msgstr "Lomaketta ei löydy"
90
+
91
+ #. mailerlite
92
+ #: include/mailerlite-form.php:84
93
+ msgid "Wrong data provided"
94
+ msgstr "Väärä tieto syötetty"
95
+
96
+ #. mailerlite
97
+ #: include/mailerlite-widget.php:13
98
+ msgid "Mailerlite sign up form"
99
+ msgstr "MailerLiten rekisteröintilomake"
100
+
101
+ #. mailerlite
102
+ #: include/mailerlite-widget.php:14
103
+ msgid "MailerLite sign up form Widget"
104
+ msgstr "MailerLiten rekisteröintilomake Widgetiltä"
105
+
106
+ #. mailerlite
107
+ #: include/mailerlite-widget.php:66
108
+ msgid "Select form:"
109
+ msgstr "Valitse lomake"
110
+
111
+ #. mailerlite
112
+ #: include/templates/admin/api_key.php:8
113
+ msgid ""
114
+ "Hi there! You will be able to create awesome signup forms, but first we need "
115
+ "your MailerLite API key!"
116
+ msgstr ""
117
+ "Hei siellä! Voit nyt luoda hienoja tilauslomakkeita, mutta ensin tarvitsemme "
118
+ "sinun MailerLite API-avaimesi!"
119
+
120
+ #. mailerlite
121
+ #: include/templates/admin/api_key.php:17
122
+ #: include/templates/admin/settings.php:19
123
+ msgid "Enter an API key"
124
+ msgstr "Syötä API-avain"
125
+
126
+ #. mailerlite
127
+ #: include/templates/admin/api_key.php:18
128
+ #: include/templates/admin/settings.php:20
129
+ msgid "Don't know where to find it?"
130
+ msgstr "Etkö tiedä mistä löytäisit sen?"
131
+
132
+ #. mailerlite
133
+ #: include/templates/admin/api_key.php:18
134
+ #: include/templates/admin/settings.php:20
135
+ msgid "Check it here!"
136
+ msgstr "Katso tästä!"
137
+
138
+ #. mailerlite
139
+ #: include/templates/admin/api_key.php:23
140
+ #: include/templates/admin/settings.php:25
141
+ msgid "Save this key"
142
+ msgstr "Tallenna tämä avain"
143
+
144
+ #. mailerlite
145
+ #: include/templates/admin/api_key.php:29
146
+ #: include/templates/admin/settings.php:31
147
+ msgid "Don't have an account?"
148
+ msgstr "Eikö sinulla ole tiliä?"
149
+
150
+ #. mailerlite
151
+ #: include/templates/admin/api_key.php:30
152
+ #: include/templates/admin/settings.php:32
153
+ msgid "Register!"
154
+ msgstr "Rekisteröidy!"
155
+
156
+ #. mailerlite
157
+ #: include/templates/admin/create.php:5
158
+ msgid "Create new signup form"
159
+ msgstr "Luo uusi rekisteröintilomake"
160
+
161
+ #. mailerlite
162
+ #: include/templates/admin/create.php:11
163
+ msgid "Form type"
164
+ msgstr "Lomaketyyppi"
165
+
166
+ #. mailerlite
167
+ #: include/templates/admin/create.php:17
168
+ msgid "Custom signup form"
169
+ msgstr "Mukautettu tilauslomake"
170
+
171
+ #. mailerlite
172
+ #: include/templates/admin/create.php:23
173
+ msgid "Webforms created using MailerLite"
174
+ msgstr "MailerLitellä tehtyjä tilauslomakkeita"
175
+
176
+ #. mailerlite
177
+ #: include/templates/admin/create.php:28
178
+ msgid "Create form"
179
+ msgstr "Luo lomake"
180
+
181
+ #. mailerlite
182
+ #: include/templates/admin/create.php:29
183
+ #: include/templates/admin/edit_custom.php:96
184
+ #: include/templates/admin/edit_embedded.php:42
185
+ msgid "Back"
186
+ msgstr "Takaisin"
187
+
188
+ #. mailerlite
189
+ #: include/templates/admin/edit_custom.php:5
190
+ msgid "Edit custom signup form"
191
+ msgstr "Editoi mukautettua lomaketta"
192
+
193
+ #. mailerlite
194
+ #: include/templates/admin/edit_custom.php:7
195
+ #: include/templates/admin/edit_embedded.php:7
196
+ msgid "Form saved."
197
+ msgstr "Lomake tallennettu"
198
+
199
+ #. mailerlite
200
+ #: include/templates/admin/edit_custom.php:7
201
+ #: include/templates/admin/edit_embedded.php:7
202
+ msgid "Back to forms list"
203
+ msgstr "Takaisin lomakelistaan"
204
+
205
+ #. mailerlite
206
+ #: include/templates/admin/edit_custom.php:15
207
+ msgid "Main information"
208
+ msgstr "Tärkeää tietoa"
209
+
210
+ #. default
211
+ #: include/templates/admin/edit_custom.php:20
212
+ msgid "Form name"
213
+ msgstr "Lomakkeen nimi"
214
+
215
+ #. mailerlite
216
+ #: include/templates/admin/edit_custom.php:21
217
+ #: include/templates/admin/edit_embedded.php:21
218
+ msgid "Tip:"
219
+ msgstr "Vinkki:"
220
+
221
+ #. mailerlite
222
+ #: include/templates/admin/edit_custom.php:21
223
+ #: include/templates/admin/edit_embedded.php:21
224
+ msgid "This title won't be displayed in public!"
225
+ msgstr "Tätä nimeä ei näytetä julkisesti!"
226
+
227
+ #. mailerlite
228
+ #: include/templates/admin/edit_custom.php:28
229
+ msgid "Form details"
230
+ msgstr "Lomakkeen tiedot"
231
+
232
+ #. mailerlite
233
+ #: include/templates/admin/edit_custom.php:33
234
+ #: include/templates/admin/edit_embedded.php:20
235
+ msgid "Form title"
236
+ msgstr "Lomakkeen otsikko"
237
+
238
+ #. mailerlite
239
+ #. default
240
+ #: include/templates/admin/edit_custom.php:34
241
+ #: include/templates/admin/edit_custom.php:55
242
+ msgid "Example:"
243
+ msgstr "Esimerkki:"
244
+
245
+ #. mailerlite
246
+ #: include/templates/admin/edit_custom.php:34
247
+ msgid "Newsletter signup!"
248
+ msgstr "Uutiskirjeen tilaus!"
249
+
250
+ #. mailerlite
251
+ #: include/templates/admin/edit_custom.php:37
252
+ msgid "Form description"
253
+ msgstr "Lomakkeen kuvaus"
254
+
255
+ #. mailerlite
256
+ #: include/templates/admin/edit_custom.php:54
257
+ msgid "Button title"
258
+ msgstr "Painikkeen otsikko"
259
+
260
+ #. mailerlite
261
+ #: include/templates/admin/edit_custom.php:62
262
+ msgid "Form fields and lists"
263
+ msgstr "Lomakkeen kentät ja listat"
264
+
265
+ #. mailerlite
266
+ #: include/templates/admin/edit_custom.php:67
267
+ msgid "Fields"
268
+ msgstr "Kentät"
269
+
270
+ #. mailerlite
271
+ #: include/templates/admin/edit_custom.php:80
272
+ msgid "Lists"
273
+ msgstr "Listat"
274
+
275
+ #. mailerlite
276
+ #: include/templates/admin/edit_custom.php:95
277
+ #: include/templates/admin/edit_embedded.php:41
278
+ msgid "Save form"
279
+ msgstr "Tallenna lomake"
280
+
281
+ #. mailerlite
282
+ #: include/templates/admin/edit_embedded.php:5
283
+ msgid "Edit webform"
284
+ msgstr "Editoi nettilomaketta"
285
+
286
+ #. mailerlite
287
+ #: include/templates/admin/edit_embedded.php:15
288
+ msgid "Webform details"
289
+ msgstr "Nettilomakkeen yksityiskohdat"
290
+
291
+ #. mailerlite
292
+ #: include/templates/admin/edit_embedded.php:24
293
+ msgid "Webform"
294
+ msgstr "Nettilomake"
295
+
296
+ #. mailerlite
297
+ #: include/templates/admin/main.php:5
298
+ msgid "Add New"
299
+ msgstr "Lisää uusi"
300
+
301
+ #. mailerlite
302
+ #: include/templates/admin/main.php:14
303
+ msgid "ID"
304
+ msgstr "ID"
305
+
306
+ #. mailerlite
307
+ #: include/templates/admin/main.php:15
308
+ msgid "Name"
309
+ msgstr "Nimi"
310
+
311
+ #. mailerlite
312
+ #: include/templates/admin/main.php:16
313
+ msgid "Type"
314
+ msgstr "Tyyppi"
315
+
316
+ #. mailerlite
317
+ #: include/templates/admin/main.php:17
318
+ msgid "Date"
319
+ msgstr "Päivä"
320
+
321
+ #. mailerlite
322
+ #: include/templates/admin/main.php:29
323
+ msgid "Edit"
324
+ msgstr "Editoi"
325
+
326
+ #. mailerlite
327
+ #: include/templates/admin/main.php:30
328
+ msgid "Are you sure you want to delete this form?"
329
+ msgstr "Haluatko varmasti poistaa tämän lomakkeen?"
330
+
331
+ #. mailerlite
332
+ #: include/templates/admin/main.php:30
333
+ msgid "Delete"
334
+ msgstr "Poista"
335
+
336
+ #. mailerlite
337
+ #: include/templates/admin/main.php:33
338
+ msgid "Custom form"
339
+ msgstr "Mukautettu lomake"
340
+
341
+ #. mailerlite
342
+ #: include/templates/admin/main.php:33
343
+ msgid "Embedded form"
344
+ msgstr "Upotettu lomake"
345
+
346
+ #. mailerlite
347
+ #: include/templates/admin/main.php:42
348
+ msgid "There is no signup forms created yet!"
349
+ msgstr "Tilauslomake puuttuu vielä!"
350
+
351
+ #. mailerlite
352
+ #: include/templates/admin/main.php:43
353
+ msgid "Add signup form"
354
+ msgstr "Luo tilauslomake"
355
+
356
+ #. mailerlite
357
+ #: include/templates/admin/settings.php:5
358
+ msgid "Plugin settings"
359
+ msgstr "Liitännäisen asetukset"
360
+
361
+ #. mailerlite
362
+ #: include/templates/admin/settings.php:10
363
+ msgid "Here you are able to change your API key!"
364
+ msgstr "Tässä voit muuttaa API-avaintasi!"
365
+
366
+ #. mailerlite
367
+ #: include/templates/admin/sidebar.php:4
368
+ msgid "Need help?"
369
+ msgstr "Tarvitsetko apua?"
370
+
371
+ #. mailerlite
372
+ #: include/templates/admin/sidebar.php:6
373
+ msgid ""
374
+ "Have any questions? Stuck on something or found bug? Feel free to contact us!"
375
+ msgstr ""
376
+ "Onko sinulla kysymyksiä? Oletko jumissa tai löysitkö bugin? Ole hyvä ja ole "
377
+ "meihin yhteydessä!"
378
+
379
+ #. mailerlite
380
+ #: include/templates/common/tiny_mce.php:13
381
+ msgid ""
382
+ "Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
383
+ "to your post!"
384
+ msgstr ""
385
+ "Valitse lomake allaolevasta listasta ja klikkaa \"Lisää Shortkoodi\" "
386
+ "lisätäksesi lyhenteen artikkeliisi."
387
+
388
+ #. mailerlite
389
+ #: include/templates/common/tiny_mce.php:24
390
+ msgid "Add Shortcode"
391
+ msgstr "Lisää Shortkoodi"
392
+
393
+ #. mailerlite
394
+ #: include/templates/forms/custom_form.php:19
395
+ msgid "Please wait..."
396
+ msgstr "Ole hyvä ja odota..."
397
+
398
+ #. mailerlite
399
+ #: include/templates/forms/custom_form.php:27
400
+ msgid "Thank you for signup!"
401
+ msgstr "Kiitos tilauksestasi!"
402
+
403
+ # @ mailerlite
404
+ #: include/mailerlite_admin.php:395
405
+ msgid "Send this error to info@mailerlite.com or our chat"
406
+ msgstr "Lähetä tämä virhe info@mailerlite.com tai meidän chat"
407
+
408
+ # @ mailerlite
409
+ #: include/templates/admin/edit_custom.php:20
410
+ msgid "Please wait message"
411
+ msgstr "\"Ole hyvä ja odota\" viesti"
412
+
413
+ # @ mailerlite
414
+ #: include/mailerlite/admin.php:150
415
+ msgid "Error happened"
416
+ msgstr "Virhe tapahtui"
417
+
418
+ # @ mailerlite
419
+ #: include/mailerlite/admin.php:46
420
+ msgid "Explanation about forms"
421
+ msgstr "Huomaa, että voit lisätä <b>Embed</b> tai <b>Button</b> tyyppi muodostaa vain. <b>Popup</b> muodot näkyvät automaattisesti Wordpress sivuston. Voit sammuttaa <b>Popup</b> lomakkeet <a href=\"admin.php?page=mailerlite_settings\">Asetuksissa</a>. Et voi sisällyttää sivua <b>Landing</b> sivu sinun Wordpress sivullesi."
422
+
423
+ # @ mailerlite
424
+ #: include/templates/admin/main.php:8
425
+ msgid "MailerLite popup script is"
426
+ msgstr "MailerLite seurantakoodi on"
427
+
428
+ # @ mailerlite
429
+ #: include/templates/admin/main.php:8
430
+ msgid "enabled"
431
+ msgstr "käytössä"
432
+
433
+ # @ mailerlite
434
+ #: include/templates/admin/main.php:8
435
+ msgid "disabled"
436
+ msgstr "vammaiset"
437
+
438
+ # @ mailerlite
439
+ #: include/templates/admin/settings.php:46
440
+ msgid "Enable"
441
+ msgstr "Mahdollistaa"
442
+
443
+ # @ mailerlite
444
+ #: include/templates/admin/settings.php:46
445
+ msgid "Disable"
446
+ msgstr "Vammauttaa"
447
+
448
+ # @ mailerlite
449
+ #: include/templates/admin/main.php:9
450
+ msgid "Go to settings if you want to change it"
451
+ msgstr "Siirry <a href=\"admin.php?page=mailerlite_settings\">asetuksiin</a>, jos haluat muuttaa sen"
452
+
453
+ # @ mailerlite
454
+ #: include/templates/admin/main.php:12
455
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
456
+ msgstr "Popup lomakkeet näkyvät automaattisesti, kun seurantakoodi on käytössä"
457
+
458
+ # @ mailerlite
459
+ #: include/templates/admin/main.php:14
460
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
461
+ msgstr "Popup lomakkeet eivät tule näkyviin, kun seurantakoodi on poistettu käytöstä"
462
+
463
+ # @ mailerlite
464
+ #: include/templates/admin/settings.php:34
465
+ msgid "Popup forms script"
466
+ msgstr "Popup-lomakkeiden seurantakoodi"
trunk/languages/mailerlite-it_IT.mo ADDED
Binary file
trunk/languages/mailerlite-it_IT.po ADDED
@@ -0,0 +1,466 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "MIME-Version: 1.0\n"
4
+ "Content-Type: text/plain; charset=UTF-8\n"
5
+ "Content-Transfer-Encoding: 8bit\n"
6
+ "X-Generator: Poedit 1.6.7\n"
7
+ "Project-Id-Version: MailerLite wordpress plugin\n"
8
+ "Language: it\n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: \n"
11
+ "Last-Translator: \n"
12
+ "Language-Team: \n"
13
+
14
+ #. mailerlite
15
+ #: include/mailerlite-admin.php:52
16
+ msgid "Forms"
17
+ msgstr "Moduli"
18
+
19
+ #. mailerlite
20
+ #: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
21
+ msgid "Signup forms"
22
+ msgstr "Form d'iscrizione"
23
+
24
+ #. mailerlite
25
+ #: include/mailerlite-admin.php:53
26
+ msgid "Settings"
27
+ msgstr "Impostazioni"
28
+
29
+ #. mailerlite
30
+ #: include/mailerlite-admin.php:133
31
+ msgid "Subscribe for newsletter!"
32
+ msgstr "Iscriviti alla newsletter!"
33
+
34
+ #. mailerlite
35
+ #: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
36
+ msgid "Newsletter signup"
37
+ msgstr "Iscrizione alla newsletter"
38
+
39
+ #. mailerlite
40
+ #: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
41
+ msgid "Just simple MailerLite form!"
42
+ msgstr "Un semplice form MailerLite!"
43
+
44
+ #. mailerlite
45
+ #. default
46
+ #: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
47
+ #: include/templates/admin/edit_custom.php:55
48
+ msgid "Subscribe"
49
+ msgstr "Iscriviti"
50
+
51
+ #. mailerlite
52
+ #: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
53
+ msgid "Email"
54
+ msgstr "Email"
55
+
56
+ #. mailerlite
57
+ #: include/mailerlite-admin.php:198
58
+ msgid "Embedded webform"
59
+ msgstr "Form incorporato"
60
+
61
+ #. mailerlite
62
+ #: include/mailerlite-admin.php:267
63
+ msgid "You not allowed to do that"
64
+ msgstr "Non puoi fare questo"
65
+
66
+ #. mailerlite
67
+ #: include/mailerlite-admin.php:277
68
+ msgid "Wrong MailerLite API key"
69
+ msgstr "API key di MailerLite errata"
70
+
71
+ #. mailerlite
72
+ #: include/mailerlite-admin.php:299
73
+ msgid "New custom signup form"
74
+ msgstr "Nuovo form d'iscrizione personalizzato"
75
+
76
+ #. mailerlite
77
+ #: include/mailerlite-admin.php:310
78
+ msgid "New embedded signup form"
79
+ msgstr "Nuovo form d'iscrizione incorporato"
80
+
81
+ #. mailerlite
82
+ #: include/mailerlite-form.php:75
83
+ msgid "Subscriber successfully saved"
84
+ msgstr "Il destinatario è stato salvato"
85
+
86
+ #. mailerlite
87
+ #: include/mailerlite-form.php:79
88
+ msgid "Form not found"
89
+ msgstr "Form non trovato"
90
+
91
+ #. mailerlite
92
+ #: include/mailerlite-form.php:84
93
+ msgid "Wrong data provided"
94
+ msgstr "Dati forniti sono errati"
95
+
96
+ #. mailerlite
97
+ #: include/mailerlite-widget.php:13
98
+ msgid "Mailerlite sign up form"
99
+ msgstr "Form d'iscrizione MailerLite"
100
+
101
+ #. mailerlite
102
+ #: include/mailerlite-widget.php:14
103
+ msgid "MailerLite sign up form Widget"
104
+ msgstr "Widget per form d'iscrizione MailerLite"
105
+
106
+ #. mailerlite
107
+ #: include/mailerlite-widget.php:66
108
+ msgid "Select form:"
109
+ msgstr "Scegli il form:"
110
+
111
+ #. mailerlite
112
+ #: include/templates/admin/api_key.php:8
113
+ msgid ""
114
+ "Hi there! You will be able to create awesome signup forms, but first we need "
115
+ "your MailerLite API key!"
116
+ msgstr ""
117
+ "Ciao! Potrai creare form d'iscrizione fantastici, ma prim devi fornire la "
118
+ "tua API key MailerLite!"
119
+
120
+ #. mailerlite
121
+ #: include/templates/admin/api_key.php:17
122
+ #: include/templates/admin/settings.php:19
123
+ msgid "Enter an API key"
124
+ msgstr "Inserisci API key"
125
+
126
+ #. mailerlite
127
+ #: include/templates/admin/api_key.php:18
128
+ #: include/templates/admin/settings.php:20
129
+ msgid "Don't know where to find it?"
130
+ msgstr "Non sai dove si trova?"
131
+
132
+ #. mailerlite
133
+ #: include/templates/admin/api_key.php:18
134
+ #: include/templates/admin/settings.php:20
135
+ msgid "Check it here!"
136
+ msgstr "Clicca qui!"
137
+
138
+ #. mailerlite
139
+ #: include/templates/admin/api_key.php:23
140
+ #: include/templates/admin/settings.php:25
141
+ msgid "Save this key"
142
+ msgstr "Salva questa key"
143
+
144
+ #. mailerlite
145
+ #: include/templates/admin/api_key.php:29
146
+ #: include/templates/admin/settings.php:31
147
+ msgid "Don't have an account?"
148
+ msgstr "Non hai un account?"
149
+
150
+ #. mailerlite
151
+ #: include/templates/admin/api_key.php:30
152
+ #: include/templates/admin/settings.php:32
153
+ msgid "Register!"
154
+ msgstr "Registrati!"
155
+
156
+ #. mailerlite
157
+ #: include/templates/admin/create.php:5
158
+ msgid "Create new signup form"
159
+ msgstr "Crea un nuovo form d'iscrizione"
160
+
161
+ #. mailerlite
162
+ #: include/templates/admin/create.php:11
163
+ msgid "Form type"
164
+ msgstr "Tipo di form"
165
+
166
+ #. mailerlite
167
+ #: include/templates/admin/create.php:17
168
+ msgid "Custom signup form"
169
+ msgstr "Forma d'iscrizione"
170
+
171
+ #. mailerlite
172
+ #: include/templates/admin/create.php:23
173
+ msgid "Webforms created using MailerLite"
174
+ msgstr "Form d'iscrizione creati usando MailerLite"
175
+
176
+ #. mailerlite
177
+ #: include/templates/admin/create.php:28
178
+ msgid "Create form"
179
+ msgstr "Crea un form"
180
+
181
+ #. mailerlite
182
+ #: include/templates/admin/create.php:29
183
+ #: include/templates/admin/edit_custom.php:96
184
+ #: include/templates/admin/edit_embedded.php:42
185
+ msgid "Back"
186
+ msgstr "Indietro"
187
+
188
+ #. mailerlite
189
+ #: include/templates/admin/edit_custom.php:5
190
+ msgid "Edit custom signup form"
191
+ msgstr "Modifica form d'iscrizione personalizzati"
192
+
193
+ #. mailerlite
194
+ #: include/templates/admin/edit_custom.php:7
195
+ #: include/templates/admin/edit_embedded.php:7
196
+ msgid "Form saved."
197
+ msgstr "Form salvato."
198
+
199
+ #. mailerlite
200
+ #: include/templates/admin/edit_custom.php:7
201
+ #: include/templates/admin/edit_embedded.php:7
202
+ msgid "Back to forms list"
203
+ msgstr "Torna alla lista dei moduli"
204
+
205
+ #. mailerlite
206
+ #: include/templates/admin/edit_custom.php:15
207
+ msgid "Main information"
208
+ msgstr "Informazioni principali"
209
+
210
+ #. default
211
+ #: include/templates/admin/edit_custom.php:20
212
+ msgid "Form name"
213
+ msgstr "Nome del form"
214
+
215
+ #. mailerlite
216
+ #: include/templates/admin/edit_custom.php:21
217
+ #: include/templates/admin/edit_embedded.php:21
218
+ msgid "Tip:"
219
+ msgstr "Consiglio:"
220
+
221
+ #. mailerlite
222
+ #: include/templates/admin/edit_custom.php:21
223
+ #: include/templates/admin/edit_embedded.php:21
224
+ msgid "This title won't be displayed in public!"
225
+ msgstr "Questo titolo non sarà visualizzato al pubblico!"
226
+
227
+ #. mailerlite
228
+ #: include/templates/admin/edit_custom.php:28
229
+ msgid "Form details"
230
+ msgstr "Dettagli del form"
231
+
232
+ #. mailerlite
233
+ #: include/templates/admin/edit_custom.php:33
234
+ #: include/templates/admin/edit_embedded.php:20
235
+ msgid "Form title"
236
+ msgstr "Titolo del form"
237
+
238
+ #. mailerlite
239
+ #. default
240
+ #: include/templates/admin/edit_custom.php:34
241
+ #: include/templates/admin/edit_custom.php:55
242
+ msgid "Example:"
243
+ msgstr "Esempi:"
244
+
245
+ #. mailerlite
246
+ #: include/templates/admin/edit_custom.php:34
247
+ msgid "Newsletter signup!"
248
+ msgstr "Iscrizione alla newsletter!"
249
+
250
+ #. mailerlite
251
+ #: include/templates/admin/edit_custom.php:37
252
+ msgid "Form description"
253
+ msgstr "Descrizione del form"
254
+
255
+ #. mailerlite
256
+ #: include/templates/admin/edit_custom.php:54
257
+ msgid "Button title"
258
+ msgstr "Nome del pulsante"
259
+
260
+ #. mailerlite
261
+ #: include/templates/admin/edit_custom.php:62
262
+ msgid "Form fields and lists"
263
+ msgstr "Campi del form e liste"
264
+
265
+ #. mailerlite
266
+ #: include/templates/admin/edit_custom.php:67
267
+ msgid "Fields"
268
+ msgstr "Campi"
269
+
270
+ #. mailerlite
271
+ #: include/templates/admin/edit_custom.php:80
272
+ msgid "Lists"
273
+ msgstr "Liste"
274
+
275
+ #. mailerlite
276
+ #: include/templates/admin/edit_custom.php:95
277
+ #: include/templates/admin/edit_embedded.php:41
278
+ msgid "Save form"
279
+ msgstr "Salva form"
280
+
281
+ #. mailerlite
282
+ #: include/templates/admin/edit_embedded.php:5
283
+ msgid "Edit webform"
284
+ msgstr "Modifica webform"
285
+
286
+ #. mailerlite
287
+ #: include/templates/admin/edit_embedded.php:15
288
+ msgid "Webform details"
289
+ msgstr "Dettagli webform"
290
+
291
+ #. mailerlite
292
+ #: include/templates/admin/edit_embedded.php:24
293
+ msgid "Webform"
294
+ msgstr "Webform"
295
+
296
+ #. mailerlite
297
+ #: include/templates/admin/main.php:5
298
+ msgid "Add New"
299
+ msgstr "Aggiungi nuovo"
300
+
301
+ #. mailerlite
302
+ #: include/templates/admin/main.php:14
303
+ msgid "ID"
304
+ msgstr "ID"
305
+
306
+ #. mailerlite
307
+ #: include/templates/admin/main.php:15
308
+ msgid "Name"
309
+ msgstr "Nome"
310
+
311
+ #. mailerlite
312
+ #: include/templates/admin/main.php:16
313
+ msgid "Type"
314
+ msgstr "Tipo"
315
+
316
+ #. mailerlite
317
+ #: include/templates/admin/main.php:17
318
+ msgid "Date"
319
+ msgstr "Data"
320
+
321
+ #. mailerlite
322
+ #: include/templates/admin/main.php:29
323
+ msgid "Edit"
324
+ msgstr "Modifica"
325
+
326
+ #. mailerlite
327
+ #: include/templates/admin/main.php:30
328
+ msgid "Are you sure you want to delete this form?"
329
+ msgstr "Vuoi davvero eliminare questo form?"
330
+
331
+ #. mailerlite
332
+ #: include/templates/admin/main.php:30
333
+ msgid "Delete"
334
+ msgstr "Elimina"
335
+
336
+ #. mailerlite
337
+ #: include/templates/admin/main.php:33
338
+ msgid "Custom form"
339
+ msgstr "Form personalizzato"
340
+
341
+ #. mailerlite
342
+ #: include/templates/admin/main.php:33
343
+ msgid "Embedded form"
344
+ msgstr "Form incorporato"
345
+
346
+ #. mailerlite
347
+ #: include/templates/admin/main.php:42
348
+ msgid "There is no signup forms created yet!"
349
+ msgstr "Non ci sono form d'iscrizione!"
350
+
351
+ #. mailerlite
352
+ #: include/templates/admin/main.php:43
353
+ msgid "Add signup form"
354
+ msgstr "Crea form d'iscrizione"
355
+
356
+ #. mailerlite
357
+ #: include/templates/admin/settings.php:5
358
+ msgid "Plugin settings"
359
+ msgstr "Impostazioni plugin"
360
+
361
+ #. mailerlite
362
+ #: include/templates/admin/settings.php:10
363
+ msgid "Here you are able to change your API key!"
364
+ msgstr "Qui puoi cambiare la tua API key!"
365
+
366
+ #. mailerlite
367
+ #: include/templates/admin/sidebar.php:4
368
+ msgid "Need help?"
369
+ msgstr "Serve aiuto?"
370
+
371
+ #. mailerlite
372
+ #: include/templates/admin/sidebar.php:6
373
+ msgid ""
374
+ "Have any questions? Stuck on something or found bug? Feel free to contact us!"
375
+ msgstr ""
376
+ "Hai delle domande? Ti sei bloccato s o hai trovato un bug? Non esitare a "
377
+ "contattarci!"
378
+
379
+ #. mailerlite
380
+ #: include/templates/common/tiny_mce.php:13
381
+ msgid ""
382
+ "Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
383
+ "to your post!"
384
+ msgstr ""
385
+ "Scegli il form dalla lista e clicca \"Aggiungi Shortcode\" per aggiungere il "
386
+ "shortcode ai tuoi post!"
387
+
388
+ #. mailerlite
389
+ #: include/templates/common/tiny_mce.php:24
390
+ msgid "Add Shortcode"
391
+ msgstr "Aggiungi Shortcode"
392
+
393
+ #. mailerlite
394
+ #: include/templates/forms/custom_form.php:19
395
+ msgid "Please wait..."
396
+ msgstr "Aspetta..."
397
+
398
+ #. mailerlite
399
+ #: include/templates/forms/custom_form.php:27
400
+ msgid "Thank you for signup!"
401
+ msgstr "Grazie per la tua iscrizione!"
402
+
403
+ # @ mailerlite
404
+ #: include/mailerlite_admin.php:395
405
+ msgid "Send this error to info@mailerlite.com or our chat"
406
+ msgstr "Invia questo errore di info@mailerlite.com o la nostra chat"
407
+
408
+ # @ mailerlite
409
+ #: include/templates/admin/edit_custom.php:20
410
+ msgid "Please wait message"
411
+ msgstr "\"Aspetta\" nota"
412
+
413
+ # @ mailerlite
414
+ #: include/mailerlite/admin.php:150
415
+ msgid "Error happened"
416
+ msgstr "Errore è accaduto"
417
+
418
+ # @ mailerlite
419
+ #: include/mailerlite/admin.php:46
420
+ msgid "Explanation about forms"
421
+ msgstr "Si prega di notare che è possibile aggiungere <b>Embed</b> o <b>Button</b> solo i tipi di forme. <b>Popup</b> forme vengono visualizzate automaticamente sul tuo sito Wordpress. Si può spegnere <b>Popup</b> forme nelle <a href=\"admin.php?page=mailerlite_settings\">impostazioni</a>. Non puoi includere la pagina <b>Landing</b> nella tua pagina di Wordpress."
422
+
423
+ # @ mailerlite
424
+ #: include/templates/admin/main.php:8
425
+ msgid "MailerLite popup script is"
426
+ msgstr "MailerLite lo script di monitoraggio è"
427
+
428
+ # @ mailerlite
429
+ #: include/templates/admin/main.php:8
430
+ msgid "enabled"
431
+ msgstr "abilitato"
432
+
433
+ # @ mailerlite
434
+ #: include/templates/admin/main.php:8
435
+ msgid "disabled"
436
+ msgstr "disabilitato"
437
+
438
+ # @ mailerlite
439
+ #: include/templates/admin/settings.php:46
440
+ msgid "Enable"
441
+ msgstr "Abilitare"
442
+
443
+ # @ mailerlite
444
+ #: include/templates/admin/settings.php:46
445
+ msgid "Disable"
446
+ msgstr "Disattivare"
447
+
448
+ # @ mailerlite
449
+ #: include/templates/admin/main.php:9
450
+ msgid "Go to settings if you want to change it"
451
+ msgstr "Passare alle <a href=\"admin.php?page=mailerlite_settings\">impostazioni</a> se si desidera modificarlo"
452
+
453
+ # @ mailerlite
454
+ #: include/templates/admin/main.php:12
455
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
456
+ msgstr "I tuoi moduli popup verranno visualizzati automaticamente mentre lo script di monitoraggio è abilitato"
457
+
458
+ # @ mailerlite
459
+ #: include/templates/admin/main.php:14
460
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
461
+ msgstr "I moduli popup non verranno visualizzati mentre lo script di monitoraggio è disabilitato"
462
+
463
+ # @ mailerlite
464
+ #: include/templates/admin/settings.php:34
465
+ msgid "Popup forms script"
466
+ msgstr "Formato di popup script"
trunk/languages/mailerlite-lt_LT.mo ADDED
Binary file
trunk/languages/mailerlite-lt_LT.po ADDED
@@ -0,0 +1,478 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Official MailerLite sign up forms v1.0\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2014-08-11 11:25+0200\n"
7
+ "Last-Translator: admin <ignas@mailerlite.com>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n"
13
+ "%100<10 || n%100>=20) ? 1 : 2;\n"
14
+ "X-Generator: Poedit 1.6.7\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
17
+ "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "Language: lt_LT\n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+
22
+ # @ mailerlite
23
+ #: include/mailerlite-admin.php:133
24
+ msgid "Subscribe for newsletter!"
25
+ msgstr "Užsisakyti naujienlaiškį!"
26
+
27
+ # @ mailerlite
28
+ #: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
29
+ msgid "Newsletter signup"
30
+ msgstr "Naujienlaiškio prenumerata."
31
+
32
+ # @ mailerlite
33
+ #: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
34
+ msgid "Just simple MailerLite form!"
35
+ msgstr "Tai pavyzdinė MailerLite prenumeratos forma!"
36
+
37
+ # @ mailerlite
38
+ # @ default
39
+ #: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
40
+ #: include/templates/admin/edit_custom.php:55
41
+ msgid "Subscribe"
42
+ msgstr "Prenumeruoti"
43
+
44
+ # @ mailerlite
45
+ #: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
46
+ msgid "Email"
47
+ msgstr "El. paštas"
48
+
49
+ # @ mailerlite
50
+ #: include/mailerlite-admin.php:198
51
+ msgid "Embedded webform"
52
+ msgstr "Sugeneruota forma"
53
+
54
+ # @ mailerlite
55
+ #: include/mailerlite-admin.php:267
56
+ msgid "You not allowed to do that"
57
+ msgstr "Šis veiksmas draudžiamas"
58
+
59
+ # @ mailerlite
60
+ #: include/mailerlite-admin.php:277
61
+ msgid "Wrong MailerLite API key"
62
+ msgstr "Neteisingas MailerLite API raktas"
63
+
64
+ # @ mailerlite
65
+ #: include/mailerlite-admin.php:299
66
+ msgid "New custom signup form"
67
+ msgstr "Nauja naujienlaiškio forma"
68
+
69
+ # @ mailerlite
70
+ #: include/mailerlite-admin.php:310
71
+ msgid "New embedded signup form"
72
+ msgstr "Nauja integruojama naujienlaiškio forma"
73
+
74
+ # @ mailerlite
75
+ #: include/mailerlite-widget.php:13
76
+ msgid "Mailerlite sign up form"
77
+ msgstr "Mailerlite naujienlaiškio forma"
78
+
79
+ # @ mailerlite
80
+ #: include/mailerlite-widget.php:14
81
+ msgid "MailerLite sign up form Widget"
82
+ msgstr "MailerLite naujienlaiškio formos skydelis"
83
+
84
+ # @ mailerlite
85
+ #: include/mailerlite-widget.php:66
86
+ msgid "Select form:"
87
+ msgstr "Pasirinkite formą:"
88
+
89
+ # @ mailerlite
90
+ #: include/templates/admin/api_key.php:19
91
+ #: include/templates/admin/settings.php:19
92
+ msgid "Enter an API key"
93
+ msgstr "Įvesti API raktą"
94
+
95
+ # @ mailerlite
96
+ #: include/templates/admin/api_key.php:20
97
+ #: include/templates/admin/settings.php:20
98
+ msgid "Don't know where to find it?"
99
+ msgstr "Nežinote kur jį rasti?"
100
+
101
+ # @ mailerlite
102
+ #: include/templates/admin/api_key.php:20
103
+ #: include/templates/admin/settings.php:20
104
+ msgid "Check it here!"
105
+ msgstr "Pažiūrėkite!"
106
+
107
+ # @ mailerlite
108
+ #: include/templates/admin/api_key.php:25
109
+ #: include/templates/admin/settings.php:25
110
+ msgid "Save this key"
111
+ msgstr "Išsaugoti raktą"
112
+
113
+ # @ mailerlite
114
+ #: include/templates/admin/api_key.php:31
115
+ #: include/templates/admin/settings.php:31
116
+ msgid "Don't have an account?"
117
+ msgstr "Neturite paskyros?"
118
+
119
+ # @ mailerlite
120
+ #: include/templates/admin/api_key.php:32
121
+ #: include/templates/admin/settings.php:32
122
+ msgid "Register!"
123
+ msgstr "Užsiregistruokite!"
124
+
125
+ # @ mailerlite
126
+ #: include/templates/admin/create.php:11
127
+ msgid "Form type"
128
+ msgstr "Formos tipas"
129
+
130
+ # @ mailerlite
131
+ #: include/templates/admin/create.php:23
132
+ msgid "Webforms created using MailerLite"
133
+ msgstr "Formos sukurtos naudojantis MailerLite (embed ir button)"
134
+
135
+ # @ mailerlite
136
+ #: include/templates/admin/create.php:28
137
+ msgid "Create form"
138
+ msgstr "Sukurti formą"
139
+
140
+ # @ mailerlite
141
+ #: include/templates/admin/create.php:29
142
+ #: include/templates/admin/edit_custom.php:96
143
+ #: include/templates/admin/edit_embedded.php:42
144
+ msgid "Back"
145
+ msgstr "Atgal"
146
+
147
+ # @ mailerlite
148
+ #: include/templates/admin/edit_custom.php:21
149
+ #: include/templates/admin/edit_embedded.php:21
150
+ msgid "Tip:"
151
+ msgstr "Pastaba:"
152
+
153
+ # @ mailerlite
154
+ #: include/templates/admin/edit_custom.php:21
155
+ #: include/templates/admin/edit_embedded.php:21
156
+ msgid "This title won't be displayed in public!"
157
+ msgstr "Šio pavadinimo niekas nematys"
158
+
159
+ # @ mailerlite
160
+ # @ default
161
+ #: include/templates/admin/edit_custom.php:34
162
+ #: include/templates/admin/edit_custom.php:55
163
+ msgid "Example:"
164
+ msgstr "Pavyzdys:"
165
+
166
+ # @ mailerlite
167
+ #: include/templates/admin/edit_custom.php:34
168
+ msgid "Newsletter signup!"
169
+ msgstr "Naujienlaiškio prenumerata!"
170
+
171
+ # @ mailerlite
172
+ #: include/templates/admin/edit_embedded.php:15
173
+ msgid "Webform details"
174
+ msgstr "Formos informacija"
175
+
176
+ # @ mailerlite
177
+ #: include/templates/admin/edit_custom.php:33
178
+ #: include/templates/admin/edit_embedded.php:20
179
+ msgid "Form title"
180
+ msgstr "Formos pavadinimas"
181
+
182
+ # @ mailerlite
183
+ #: include/templates/admin/main.php:30
184
+ msgid "Are you sure you want to delete this form?"
185
+ msgstr "Ar tikrai norite ištrinti šią formą?"
186
+
187
+ # @ mailerlite
188
+ #: include/templates/admin/settings.php:10
189
+ msgid "Here you are able to change your API key!"
190
+ msgstr "Čia jūs galite pasikeisti API raktą!"
191
+
192
+ # @ mailerlite
193
+ #: include/templates/admin/sidebar.php:4
194
+ msgid "Need help?"
195
+ msgstr "Reikia pagalbos?"
196
+
197
+ # @ mailerlite
198
+ #: include/templates/admin/sidebar.php:6
199
+ msgid ""
200
+ "Have any questions? Stuck on something or found bug? Feel free to contact us!"
201
+ msgstr ""
202
+ "Turite klausimų? Kažko nesuprantate ar radote klaidą? Susisiekite su mumis!"
203
+
204
+ # @ mailerlite
205
+ #: include/templates/admin/api_key.php:10
206
+ msgid ""
207
+ "Hi there! You will be able to create awesome signup forms, but first we need "
208
+ "your MailerLite API key!"
209
+ msgstr ""
210
+ "Sveiki! Čia galėsite susikurti nuostabias naujienlaiškių prenumeratos "
211
+ "formas, bet prieš tai turite įvesti MailerLite API raktą!"
212
+
213
+ # @ mailerlite
214
+ #: include/templates/admin/create.php:17
215
+ msgid "Custom signup form"
216
+ msgstr "Pritaikyta prenumeratos forma"
217
+
218
+ # @ mailerlite
219
+ #: include/templates/admin/main.php:14
220
+ msgid "ID"
221
+ msgstr "ID"
222
+
223
+ # @ mailerlite
224
+ #: include/templates/admin/main.php:16
225
+ msgid "Type"
226
+ msgstr "Tipas"
227
+
228
+ # @ mailerlite
229
+ #: include/templates/admin/main.php:17
230
+ msgid "Date"
231
+ msgstr "Data"
232
+
233
+ # @ mailerlite
234
+ #: include/templates/admin/main.php:33
235
+ msgid "Custom form"
236
+ msgstr "Pritaikyta forma"
237
+
238
+ # @ mailerlite
239
+ #: include/templates/admin/main.php:33
240
+ msgid "Embedded form"
241
+ msgstr "Integruojama forma"
242
+
243
+ # @ mailerlite
244
+ #: include/templates/admin/main.php:42
245
+ msgid "There is no signup forms created yet!"
246
+ msgstr "Nėra sukurtų prenumeratos formų!"
247
+
248
+ # @ mailerlite
249
+ #: include/templates/admin/main.php:43
250
+ msgid "Create signup form"
251
+ msgstr "Sukurti prenumeratos formą"
252
+
253
+ # @ mailerlite
254
+ #: include/templates/admin/edit_custom.php:7
255
+ #: include/templates/admin/edit_embedded.php:7
256
+ msgid "Form saved."
257
+ msgstr "Forma išsaugota."
258
+
259
+ # @ mailerlite
260
+ #: include/templates/admin/edit_custom.php:7
261
+ #: include/templates/admin/edit_embedded.php:7
262
+ msgid "Back to forms list"
263
+ msgstr "Grįžti į formų sąrašą"
264
+
265
+ # @ mailerlite
266
+ #: include/templates/admin/edit_custom.php:15
267
+ msgid "Main information"
268
+ msgstr "Pagrindinė informacija"
269
+
270
+ # @ default
271
+ #: include/templates/admin/edit_custom.php:20
272
+ msgid "Form name"
273
+ msgstr "Formos pavadinimas"
274
+
275
+ # @ mailerlite
276
+ #: include/templates/admin/edit_custom.php:28
277
+ msgid "Form details"
278
+ msgstr "Formos detalės"
279
+
280
+ # @ mailerlite
281
+ #: include/templates/admin/edit_custom.php:37
282
+ msgid "Form description"
283
+ msgstr "Formos aprašymas"
284
+
285
+ # @ mailerlite
286
+ #: include/templates/admin/edit_custom.php:54
287
+ msgid "Button title"
288
+ msgstr "Mygtuko antraštė"
289
+
290
+ # @ mailerlite
291
+ #: include/templates/admin/edit_custom.php:62
292
+ msgid "Form fields and lists"
293
+ msgstr "Formos laukeliai ir sąrašai"
294
+
295
+ # @ mailerlite
296
+ #: include/templates/admin/edit_custom.php:67
297
+ msgid "Fields"
298
+ msgstr "Laukeliai"
299
+
300
+ # @ mailerlite
301
+ #: include/templates/admin/edit_custom.php:80
302
+ msgid "Lists"
303
+ msgstr "Sąrašai"
304
+
305
+ # @ mailerlite
306
+ #: include/templates/admin/edit_custom.php:95
307
+ #: include/templates/admin/edit_embedded.php:41
308
+ msgid "Save form"
309
+ msgstr "Išsaugoti formą"
310
+
311
+ # @ mailerlite
312
+ #: include/templates/admin/edit_embedded.php:24
313
+ msgid "Webform"
314
+ msgstr "Forma"
315
+
316
+ # @ mailerlite
317
+ #: include/templates/admin/main.php:15
318
+ msgid "Name"
319
+ msgstr "Pavadinimas"
320
+
321
+ # @ mailerlite
322
+ #: include/templates/admin/main.php:29
323
+ msgid "Edit"
324
+ msgstr "Redaguoti"
325
+
326
+ # @ mailerlite
327
+ #: include/templates/admin/main.php:30
328
+ msgid "Delete"
329
+ msgstr "Ištrinti"
330
+
331
+ # @ mailerlite
332
+ #: include/mailerlite-admin.php:52
333
+ msgid "Forms"
334
+ msgstr "Formos"
335
+
336
+ # @ mailerlite
337
+ #: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
338
+ msgid "Signup forms"
339
+ msgstr "Prenumeratos formos"
340
+
341
+ # @ mailerlite
342
+ #: include/mailerlite-admin.php:53
343
+ msgid "Settings"
344
+ msgstr "Nustatymai"
345
+
346
+ # @ mailerlite
347
+ #: include/templates/admin/main.php:5
348
+ msgid "Add New"
349
+ msgstr "Pridėti naują"
350
+
351
+ # @ mailerlite
352
+ #: include/mailerlite-form.php:75
353
+ msgid "Subscriber successfully saved"
354
+ msgstr "Sėkmingai užprenumruota."
355
+
356
+ # @ mailerlite
357
+ #: include/mailerlite-form.php:79
358
+ msgid "Form not found"
359
+ msgstr "Forma nerasta"
360
+
361
+ # @ mailerlite
362
+ #: include/mailerlite-form.php:84
363
+ msgid "Wrong data provided"
364
+ msgstr "Neteisinga informacija"
365
+
366
+ # @ mailerlite
367
+ #: include/templates/admin/create.php:5
368
+ msgid "Add signup form"
369
+ msgstr "Sukurti naują prenumeratos formą"
370
+
371
+ # @ mailerlite
372
+ #: include/templates/admin/edit_custom.php:5
373
+ msgid "Edit custom signup form"
374
+ msgstr "Redaguoti pritaikomą prenumeratos formą"
375
+
376
+ # @ mailerlite
377
+ #: include/templates/admin/edit_embedded.php:5
378
+ msgid "Edit webform"
379
+ msgstr "Redaguoti integruojamą formą"
380
+
381
+ # @ mailerlite
382
+ #: include/templates/admin/settings.php:5
383
+ msgid "Plugin settings"
384
+ msgstr "Įskiepio nustatymai"
385
+
386
+ # @ mailerlite
387
+ #: include/templates/common/tiny_mce.php:13
388
+ msgid ""
389
+ "Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
390
+ "to your post!"
391
+ msgstr ""
392
+ "Pasirinkite formą iš žemiau esančio sąrašo ir paspauskite \"Pridėti trumpinį"
393
+ "\"."
394
+
395
+ # @ mailerlite
396
+ #: include/templates/forms/custom_form.php:20
397
+ msgid "Please wait..."
398
+ msgstr "Palaukite..."
399
+
400
+ # @ mailerlite
401
+ #: include/templates/forms/custom_form.php:28
402
+ msgid "Thank you for signup!"
403
+ msgstr "Dėkojame už prenumeratą!"
404
+
405
+ # @ mailerlite
406
+ #: include/templates/common/tiny_mce.php:24
407
+ msgid "Add Shortcode"
408
+ msgstr "Pridėti trumpinį"
409
+
410
+ # @ mailerlite
411
+ #: include/mailerlite_admin.php:395
412
+ msgid "Send this error to info@mailerlite.com or our chat"
413
+ msgstr "Atsiųskite šį klaidos pranešimą info@mailerlite.com arba per chat"
414
+
415
+ # @ mailerlite
416
+ #: include/templates/admin/edit_custom.php:20
417
+ msgid "Please wait message"
418
+ msgstr "\"Palaukite\" žinutė"
419
+
420
+ # @ mailerlite
421
+ #: include/mailerlite/admin.php:150
422
+ msgid "Error happened"
423
+ msgstr "Įvyko klaida"
424
+
425
+ # @ mailerlite
426
+ #: include/mailerlite/admin.php:150
427
+ msgid "Error happened"
428
+ msgstr "Įvyko klaida"
429
+
430
+ # @ mailerlite
431
+ #: include/mailerlite/admin.php:46
432
+ msgid "Explanation about forms"
433
+ msgstr "Atkreipiame dėmesį, kad galima pasirinkti tik <b>Embed</b> arba <b>Button</b> formas. <b>Popup</b> formos yra rodomos automatiškai jūsų Wordpress puslapyje. Galite išjungti <b>Popup</b> formas <a href=\"admin.php?page=mailerlite_settings\">Nustatymuose</a>. Negalite įterpti <b>Landing</b> tipo formos savo Wordpress puslapyje."
434
+
435
+ # @ mailerlite
436
+ #: include/templates/admin/main.php:8
437
+ msgid "MailerLite tracking script is"
438
+ msgstr "MailerLite popup skriptas yra"
439
+
440
+ # @ mailerlite
441
+ #: include/templates/admin/main.php:8
442
+ msgid "enabled"
443
+ msgstr "įjungtas"
444
+
445
+ # @ mailerlite
446
+ #: include/templates/admin/main.php:8
447
+ msgid "disabled"
448
+ msgstr "išjungtas"
449
+
450
+ # @ mailerlite
451
+ #: include/templates/admin/settings.php:46
452
+ msgid "Enable"
453
+ msgstr "Įjungti"
454
+
455
+ # @ mailerlite
456
+ #: include/templates/admin/settings.php:46
457
+ msgid "Disable"
458
+ msgstr "Išjungti"
459
+
460
+ # @ mailerlite
461
+ #: include/templates/admin/main.php:9
462
+ msgid "Go to settings if you want to change it"
463
+ msgstr "Eikite į <a href=\"admin.php?page=mailerlite_settings\">Nustatymus</a> jei norite pakeisti"
464
+
465
+ # @ mailerlite
466
+ #: include/templates/admin/main.php:12
467
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
468
+ msgstr "Jūsų popup formos bus rodomos automatiškai, kai skriptas yra įjungtas"
469
+
470
+ # @ mailerlite
471
+ #: include/templates/admin/main.php:14
472
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
473
+ msgstr "Jūsų popup formos bus nerodomos, kai skriptas yra išjungtas"
474
+
475
+ # @ mailerlite
476
+ #: include/templates/admin/settings.php:35
477
+ msgid "Popup forms script"
478
+ msgstr "Popup formų skriptas"
trunk/languages/mailerlite-ru_RU.mo ADDED
Binary file
trunk/languages/mailerlite-ru_RU.po ADDED
@@ -0,0 +1,466 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "MIME-Version: 1.0\n"
4
+ "Content-Type: text/plain; charset=UTF-8\n"
5
+ "Content-Transfer-Encoding: 8bit\n"
6
+ "X-Generator: Poedit 1.6.7\n"
7
+ "Project-Id-Version: MailerLite wordpress plugin\n"
8
+ "Language: ru\n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: \n"
11
+ "Last-Translator: \n"
12
+ "Language-Team: \n"
13
+
14
+ #. mailerlite
15
+ #: include/mailerlite-admin.php:52
16
+ msgid "Forms"
17
+ msgstr "Формы"
18
+
19
+ #. mailerlite
20
+ #: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
21
+ msgid "Signup forms"
22
+ msgstr "Формы подписки"
23
+
24
+ #. mailerlite
25
+ #: include/mailerlite-admin.php:53
26
+ msgid "Settings"
27
+ msgstr "Настройки"
28
+
29
+ #. mailerlite
30
+ #: include/mailerlite-admin.php:133
31
+ msgid "Subscribe for newsletter!"
32
+ msgstr "Подпишитесь на новости!"
33
+
34
+ #. mailerlite
35
+ #: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
36
+ msgid "Newsletter signup"
37
+ msgstr "Подписка на новости"
38
+
39
+ #. mailerlite
40
+ #: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
41
+ msgid "Just simple MailerLite form!"
42
+ msgstr "Простая форма подписки MailerLite!"
43
+
44
+ #. mailerlite
45
+ #. default
46
+ #: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
47
+ #: include/templates/admin/edit_custom.php:55
48
+ msgid "Subscribe"
49
+ msgstr "Подписаться"
50
+
51
+ #. mailerlite
52
+ #: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
53
+ msgid "Email"
54
+ msgstr "Email"
55
+
56
+ #. mailerlite
57
+ #: include/mailerlite-admin.php:198
58
+ msgid "Embedded webform"
59
+ msgstr "Встроенная веб-форма"
60
+
61
+ #. mailerlite
62
+ #: include/mailerlite-admin.php:267
63
+ msgid "You not allowed to do that"
64
+ msgstr "Запрещенное действие"
65
+
66
+ #. mailerlite
67
+ #: include/mailerlite-admin.php:277
68
+ msgid "Wrong MailerLite API key"
69
+ msgstr "Некорректный MailerLite API ключ"
70
+
71
+ #. mailerlite
72
+ #: include/mailerlite-admin.php:299
73
+ msgid "New custom signup form"
74
+ msgstr "Новая пользовательская форма подписки"
75
+
76
+ #. mailerlite
77
+ #: include/mailerlite-admin.php:310
78
+ msgid "New embedded signup form"
79
+ msgstr "Новая встроенная веб-форма"
80
+
81
+ #. mailerlite
82
+ #: include/mailerlite-form.php:75
83
+ msgid "Subscriber successfully saved"
84
+ msgstr "Информация успешно сохранена"
85
+
86
+ #. mailerlite
87
+ #: include/mailerlite-form.php:79
88
+ msgid "Form not found"
89
+ msgstr "Форма не найдена"
90
+
91
+ #. mailerlite
92
+ #: include/mailerlite-form.php:84
93
+ msgid "Wrong data provided"
94
+ msgstr "Предоставлены некорректные данные"
95
+
96
+ #. mailerlite
97
+ #: include/mailerlite-widget.php:13
98
+ msgid "Mailerlite sign up form"
99
+ msgstr "Форма подписки Mailerlite"
100
+
101
+ #. mailerlite
102
+ #: include/mailerlite-widget.php:14
103
+ msgid "MailerLite sign up form Widget"
104
+ msgstr "Виджет формы подписки Mailerlite"
105
+
106
+ #. mailerlite
107
+ #: include/mailerlite-widget.php:66
108
+ msgid "Select form:"
109
+ msgstr "Выберите форму:"
110
+
111
+ #. mailerlite
112
+ #: include/templates/admin/api_key.php:8
113
+ msgid ""
114
+ "Hi there! You will be able to create awesome signup forms, but first we need "
115
+ "your MailerLite API key!"
116
+ msgstr ""
117
+ "Приветствуем! Вы сможете создавать красивые формы подписки, но сначала "
118
+ "просим предоставить ваш ​​MailerLite API ключ!"
119
+
120
+ #. mailerlite
121
+ #: include/templates/admin/api_key.php:17
122
+ #: include/templates/admin/settings.php:19
123
+ msgid "Enter an API key"
124
+ msgstr "Введите ключ API"
125
+
126
+ #. mailerlite
127
+ #: include/templates/admin/api_key.php:18
128
+ #: include/templates/admin/settings.php:20
129
+ msgid "Don't know where to find it?"
130
+ msgstr "Не знаете, где его найти?"
131
+
132
+ #. mailerlite
133
+ #: include/templates/admin/api_key.php:18
134
+ #: include/templates/admin/settings.php:20
135
+ msgid "Check it here!"
136
+ msgstr "Проверьте здесь!"
137
+
138
+ #. mailerlite
139
+ #: include/templates/admin/api_key.php:23
140
+ #: include/templates/admin/settings.php:25
141
+ msgid "Save this key"
142
+ msgstr "Сохранить ключ"
143
+
144
+ #. mailerlite
145
+ #: include/templates/admin/api_key.php:29
146
+ #: include/templates/admin/settings.php:31
147
+ msgid "Don't have an account?"
148
+ msgstr "У вас нет аккаунта?"
149
+
150
+ #. mailerlite
151
+ #: include/templates/admin/api_key.php:30
152
+ #: include/templates/admin/settings.php:32
153
+ msgid "Register!"
154
+ msgstr "Зарегистрироваться!"
155
+
156
+ #. mailerlite
157
+ #: include/templates/admin/create.php:5
158
+ msgid "Create new signup form"
159
+ msgstr "Создать новую форму подписки"
160
+
161
+ #. mailerlite
162
+ #: include/templates/admin/create.php:11
163
+ msgid "Form type"
164
+ msgstr "Тип формы"
165
+
166
+ #. mailerlite
167
+ #: include/templates/admin/create.php:17
168
+ msgid "Add signup form"
169
+ msgstr "Пользовательская форма подписки"
170
+
171
+ #. mailerlite
172
+ #: include/templates/admin/create.php:23
173
+ msgid "Webforms created using MailerLite"
174
+ msgstr "Веб-формы, созданные с помощью MailerLite"
175
+
176
+ #. mailerlite
177
+ #: include/templates/admin/create.php:28
178
+ msgid "Create form"
179
+ msgstr "Создать форму"
180
+
181
+ #. mailerlite
182
+ #: include/templates/admin/create.php:29
183
+ #: include/templates/admin/edit_custom.php:96
184
+ #: include/templates/admin/edit_embedded.php:42
185
+ msgid "Back"
186
+ msgstr "Назад"
187
+
188
+ #. mailerlite
189
+ #: include/templates/admin/edit_custom.php:5
190
+ msgid "Edit custom signup form"
191
+ msgstr "Редактировать пользовательскую форму подписки"
192
+
193
+ #. mailerlite
194
+ #: include/templates/admin/edit_custom.php:7
195
+ #: include/templates/admin/edit_embedded.php:7
196
+ msgid "Form saved."
197
+ msgstr "Форма сохранена."
198
+
199
+ #. mailerlite
200
+ #: include/templates/admin/edit_custom.php:7
201
+ #: include/templates/admin/edit_embedded.php:7
202
+ msgid "Back to forms list"
203
+ msgstr "Вернуться к списку форм"
204
+
205
+ #. mailerlite
206
+ #: include/templates/admin/edit_custom.php:15
207
+ msgid "Main information"
208
+ msgstr "Основная информация"
209
+
210
+ #. default
211
+ #: include/templates/admin/edit_custom.php:20
212
+ msgid "Form name"
213
+ msgstr "Название формы"
214
+
215
+ #. mailerlite
216
+ #: include/templates/admin/edit_custom.php:21
217
+ #: include/templates/admin/edit_embedded.php:21
218
+ msgid "Tip:"
219
+ msgstr "Подсказка:"
220
+
221
+ #. mailerlite
222
+ #: include/templates/admin/edit_custom.php:21
223
+ #: include/templates/admin/edit_embedded.php:21
224
+ msgid "This title won't be displayed in public!"
225
+ msgstr "Это название не будет отображаться публично!"
226
+
227
+ #. mailerlite
228
+ #: include/templates/admin/edit_custom.php:28
229
+ msgid "Form details"
230
+ msgstr "Детали формы"
231
+
232
+ #. mailerlite
233
+ #: include/templates/admin/edit_custom.php:33
234
+ #: include/templates/admin/edit_embedded.php:20
235
+ msgid "Form title"
236
+ msgstr "Название формы"
237
+
238
+ #. mailerlite
239
+ #. default
240
+ #: include/templates/admin/edit_custom.php:34
241
+ #: include/templates/admin/edit_custom.php:55
242
+ msgid "Example:"
243
+ msgstr "Пример:"
244
+
245
+ #. mailerlite
246
+ #: include/templates/admin/edit_custom.php:34
247
+ msgid "Newsletter signup!"
248
+ msgstr "Подписка на рассылку!"
249
+
250
+ #. mailerlite
251
+ #: include/templates/admin/edit_custom.php:37
252
+ msgid "Form description"
253
+ msgstr "Описание формы"
254
+
255
+ #. mailerlite
256
+ #: include/templates/admin/edit_custom.php:54
257
+ msgid "Button title"
258
+ msgstr "Название кнопки"
259
+
260
+ #. mailerlite
261
+ #: include/templates/admin/edit_custom.php:62
262
+ msgid "Form fields and lists"
263
+ msgstr "Поля формы и списки"
264
+
265
+ #. mailerlite
266
+ #: include/templates/admin/edit_custom.php:67
267
+ msgid "Fields"
268
+ msgstr "Поля"
269
+
270
+ #. mailerlite
271
+ #: include/templates/admin/edit_custom.php:80
272
+ msgid "Lists"
273
+ msgstr "Списки"
274
+
275
+ #. mailerlite
276
+ #: include/templates/admin/edit_custom.php:95
277
+ #: include/templates/admin/edit_embedded.php:41
278
+ msgid "Save form"
279
+ msgstr "Сохранить форму"
280
+
281
+ #. mailerlite
282
+ #: include/templates/admin/edit_embedded.php:5
283
+ msgid "Edit webform"
284
+ msgstr "Редактировать веб-форму"
285
+
286
+ #. mailerlite
287
+ #: include/templates/admin/edit_embedded.php:15
288
+ msgid "Webform details"
289
+ msgstr "Детали веб-формы"
290
+
291
+ #. mailerlite
292
+ #: include/templates/admin/edit_embedded.php:24
293
+ msgid "Webform"
294
+ msgstr "Веб-форма"
295
+
296
+ #. mailerlite
297
+ #: include/templates/admin/main.php:5
298
+ msgid "Add New"
299
+ msgstr "Добавить новую"
300
+
301
+ #. mailerlite
302
+ #: include/templates/admin/main.php:14
303
+ msgid "ID"
304
+ msgstr "ID"
305
+
306
+ #. mailerlite
307
+ #: include/templates/admin/main.php:15
308
+ msgid "Name"
309
+ msgstr "Наименование"
310
+
311
+ #. mailerlite
312
+ #: include/templates/admin/main.php:16
313
+ msgid "Type"
314
+ msgstr "Тип"
315
+
316
+ #. mailerlite
317
+ #: include/templates/admin/main.php:17
318
+ msgid "Date"
319
+ msgstr "Дата"
320
+
321
+ #. mailerlite
322
+ #: include/templates/admin/main.php:29
323
+ msgid "Edit"
324
+ msgstr "Редактировать"
325
+
326
+ #. mailerlite
327
+ #: include/templates/admin/main.php:30
328
+ msgid "Are you sure you want to delete this form?"
329
+ msgstr "Вы уверены, что хотите удалить эту форму?"
330
+
331
+ #. mailerlite
332
+ #: include/templates/admin/main.php:30
333
+ msgid "Delete"
334
+ msgstr "Удалить"
335
+
336
+ #. mailerlite
337
+ #: include/templates/admin/main.php:33
338
+ msgid "Custom form"
339
+ msgstr "Пользовательская форма"
340
+
341
+ #. mailerlite
342
+ #: include/templates/admin/main.php:33
343
+ msgid "Embedded form"
344
+ msgstr "Встроенная форма"
345
+
346
+ #. mailerlite
347
+ #: include/templates/admin/main.php:42
348
+ msgid "There is no signup forms created yet!"
349
+ msgstr "Нет созданных форм подписки!"
350
+
351
+ #. mailerlite
352
+ #: include/templates/admin/main.php:43
353
+ msgid "Create signup form"
354
+ msgstr "Создать форму подписки"
355
+
356
+ #. mailerlite
357
+ #: include/templates/admin/settings.php:5
358
+ msgid "Plugin settings"
359
+ msgstr "Настройки плагина"
360
+
361
+ #. mailerlite
362
+ #: include/templates/admin/settings.php:10
363
+ msgid "Here you are able to change your API key!"
364
+ msgstr "Здесь вы можете изменить свой ключ API!"
365
+
366
+ #. mailerlite
367
+ #: include/templates/admin/sidebar.php:4
368
+ msgid "Need help?"
369
+ msgstr "Нужна помощь?"
370
+
371
+ #. mailerlite
372
+ #: include/templates/admin/sidebar.php:6
373
+ msgid ""
374
+ "Have any questions? Stuck on something or found bug? Feel free to contact us!"
375
+ msgstr ""
376
+ "Есть вопросы? Застряли на каком-то моменте или нашли ошибку? Не стесняйтесь "
377
+ "обратиться к нам!"
378
+
379
+ #. mailerlite
380
+ #: include/templates/common/tiny_mce.php:13
381
+ msgid ""
382
+ "Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
383
+ "to your post!"
384
+ msgstr ""
385
+ "Выберите форму из списка и нажмите \"Добавить короткий код\" для его "
386
+ "добавления в свой пост!"
387
+
388
+ #. mailerlite
389
+ #: include/templates/common/tiny_mce.php:24
390
+ msgid "Add Shortcode"
391
+ msgstr "Добавить короткий код"
392
+
393
+ #. mailerlite
394
+ #: include/templates/forms/custom_form.php:19
395
+ msgid "Please wait..."
396
+ msgstr "Пожалуйста, подождите..."
397
+
398
+ #. mailerlite
399
+ #: include/templates/forms/custom_form.php:27
400
+ msgid "Thank you for signup!"
401
+ msgstr "Спасибо за подписку!"
402
+
403
+ # @ mailerlite
404
+ #: include/mailerlite_admin.php:395
405
+ msgid "Send this error to info@mailerlite.com or our chat"
406
+ msgstr "Отправьте эту ошибку на info@mailerlite.com или чат на нашем сайте."
407
+
408
+ # @ mailerlite
409
+ #: include/templates/admin/edit_custom.php:20
410
+ msgid "Please wait message"
411
+ msgstr "\"Пожалуйста, подождите\" записка"
412
+
413
+ # @ mailerlite
414
+ #: include/mailerlite/admin.php:150
415
+ msgid "Error happened"
416
+ msgstr "Произошла ошибка"
417
+
418
+ # @ mailerlite
419
+ #: include/mailerlite/admin.php:46
420
+ msgid "Explanation about forms"
421
+ msgstr "Заметьте, пожалуйста, что возможно добавить только <b>Встраиваемые</b> формы и <b>Кнопки</b>. Всплывающие <b>Popup</b> формы на вашем сайте WordPress показываются автоматически. Отключить <b>Popup</b> формы можно в <a href=\"admin.php?page=mailerlite_settings\">настройках</a>. Добавлять <b>Посадочные страницы</b> на WordPress нельзя."
422
+
423
+ # @ mailerlite
424
+ #: include/templates/admin/main.php:8
425
+ msgid "MailerLite popup script is"
426
+ msgstr "MailerLite cценарий отслеживания"
427
+
428
+ # @ mailerlite
429
+ #: include/templates/admin/main.php:8
430
+ msgid "enabled"
431
+ msgstr "включен"
432
+
433
+ # @ mailerlite
434
+ #: include/templates/admin/main.php:8
435
+ msgid "disabled"
436
+ msgstr "отключен"
437
+
438
+ # @ mailerlite
439
+ #: include/templates/admin/settings.php:46
440
+ msgid "Enable"
441
+ msgstr "включить"
442
+
443
+ # @ mailerlite
444
+ #: include/templates/admin/settings.php:46
445
+ msgid "Disable"
446
+ msgstr "отключать"
447
+
448
+ # @ mailerlite
449
+ #: include/templates/admin/main.php:9
450
+ msgid "Go to settings if you want to change it"
451
+ msgstr "Перейдите в <a href=\"admin.php?page=mailerlite_settings\">настройки</a>, если вы хотите изменить его"
452
+
453
+ # @ mailerlite
454
+ #: include/templates/admin/main.php:12
455
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
456
+ msgstr "Ваши popup формы будут отображаться автоматически, когда скрипт включен"
457
+
458
+ # @ mailerlite
459
+ #: include/templates/admin/main.php:14
460
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
461
+ msgstr "Ваши всплывающие Popup формы не будут отображаться, пока скрипт отключен"
462
+
463
+ # @ mailerlite
464
+ #: include/templates/admin/settings.php:34
465
+ msgid "Popup forms script"
466
+ msgstr "Скрипт Popup форм"
trunk/languages/mailerlite-sv_SE.mo ADDED
Binary file
trunk/languages/mailerlite-sv_SE.po ADDED
@@ -0,0 +1,466 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "MIME-Version: 1.0\n"
4
+ "Content-Type: text/plain; charset=UTF-8\n"
5
+ "Content-Transfer-Encoding: 8bit\n"
6
+ "X-Generator: Poedit 1.6.7\n"
7
+ "Project-Id-Version: MailerLite wordpress plugin\n"
8
+ "Language: sv\n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: \n"
11
+ "Last-Translator: \n"
12
+ "Language-Team: \n"
13
+
14
+ #. mailerlite
15
+ #: include/mailerlite-admin.php:52
16
+ msgid "Forms"
17
+ msgstr "Formulär"
18
+
19
+ #. mailerlite
20
+ #: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
21
+ msgid "Signup forms"
22
+ msgstr "Prenumerationsformulär"
23
+
24
+ #. mailerlite
25
+ #: include/mailerlite-admin.php:53
26
+ msgid "Settings"
27
+ msgstr "Inställningar"
28
+
29
+ #. mailerlite
30
+ #: include/mailerlite-admin.php:133
31
+ msgid "Subscribe for newsletter!"
32
+ msgstr "Prenumerera på nyhetsbrev!"
33
+
34
+ #. mailerlite
35
+ #: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
36
+ msgid "Newsletter signup"
37
+ msgstr "Prenumeration på nyhetsbrev "
38
+
39
+ #. mailerlite
40
+ #: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
41
+ msgid "Just simple MailerLite form!"
42
+ msgstr "Enkelt Mailerlite formulär"
43
+
44
+ #. mailerlite
45
+ #. default
46
+ #: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
47
+ #: include/templates/admin/edit_custom.php:55
48
+ msgid "Subscribe"
49
+ msgstr "Prenumerera "
50
+
51
+ #. mailerlite
52
+ #: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
53
+ msgid "Email"
54
+ msgstr "Epost"
55
+
56
+ #. mailerlite
57
+ #: include/mailerlite-admin.php:198
58
+ msgid "Embedded webform"
59
+ msgstr "Inbäddat webbformulär"
60
+
61
+ #. mailerlite
62
+ #: include/mailerlite-admin.php:267
63
+ msgid "You not allowed to do that"
64
+ msgstr "Detta är inte tillåtet "
65
+
66
+ #. mailerlite
67
+ #: include/mailerlite-admin.php:277
68
+ msgid "Wrong MailerLite API key"
69
+ msgstr "Felaktig MailerLite API nyckel"
70
+
71
+ #. mailerlite
72
+ #: include/mailerlite-admin.php:299
73
+ msgid "New custom signup form"
74
+ msgstr "Nytt anpassat registreringsformulär"
75
+
76
+ #. mailerlite
77
+ #: include/mailerlite-admin.php:310
78
+ msgid "New embedded signup form"
79
+ msgstr "Nytt inbäddat registreringsformulär"
80
+
81
+ #. mailerlite
82
+ #: include/mailerlite-form.php:75
83
+ msgid "Subscriber successfully saved"
84
+ msgstr "Prenumerant har sparats"
85
+
86
+ #. mailerlite
87
+ #: include/mailerlite-form.php:79
88
+ msgid "Form not found"
89
+ msgstr "Formuläret hittades inte"
90
+
91
+ #. mailerlite
92
+ #: include/mailerlite-form.php:84
93
+ msgid "Wrong data provided"
94
+ msgstr "Felaktiga uppgifter har lämnats"
95
+
96
+ #. mailerlite
97
+ #: include/mailerlite-widget.php:13
98
+ msgid "Mailerlite sign up form"
99
+ msgstr "Mailerlite registreringsformulär"
100
+
101
+ #. mailerlite
102
+ #: include/mailerlite-widget.php:14
103
+ msgid "MailerLite sign up form Widget"
104
+ msgstr "Mailerlite registreringsformulär Widget"
105
+
106
+ #. mailerlite
107
+ #: include/mailerlite-widget.php:66
108
+ msgid "Select form:"
109
+ msgstr "Välj formulär:"
110
+
111
+ #. mailerlite
112
+ #: include/templates/admin/api_key.php:8
113
+ msgid ""
114
+ "Hi there! You will be able to create awesome signup forms, but first we need "
115
+ "your MailerLite API key!"
116
+ msgstr ""
117
+ "Hej där! Du kommer att kunna skapa fantastiska registreringsformulär, men "
118
+ "först behöver vi din MailerLite API-nyckel!"
119
+
120
+ #. mailerlite
121
+ #: include/templates/admin/api_key.php:17
122
+ #: include/templates/admin/settings.php:19
123
+ msgid "Enter an API key"
124
+ msgstr "Ange en API nyckel"
125
+
126
+ #. mailerlite
127
+ #: include/templates/admin/api_key.php:18
128
+ #: include/templates/admin/settings.php:20
129
+ msgid "Don't know where to find it?"
130
+ msgstr "Vet du inte var den finns?"
131
+
132
+ #. mailerlite
133
+ #: include/templates/admin/api_key.php:18
134
+ #: include/templates/admin/settings.php:20
135
+ msgid "Check it here!"
136
+ msgstr "Kolla här!"
137
+
138
+ #. mailerlite
139
+ #: include/templates/admin/api_key.php:23
140
+ #: include/templates/admin/settings.php:25
141
+ msgid "Save this key"
142
+ msgstr "Spara den här nyckeln"
143
+
144
+ #. mailerlite
145
+ #: include/templates/admin/api_key.php:29
146
+ #: include/templates/admin/settings.php:31
147
+ msgid "Don't have an account?"
148
+ msgstr "Har du inget konto?"
149
+
150
+ #. mailerlite
151
+ #: include/templates/admin/api_key.php:30
152
+ #: include/templates/admin/settings.php:32
153
+ msgid "Register!"
154
+ msgstr "Registrera!"
155
+
156
+ #. mailerlite
157
+ #: include/templates/admin/create.php:5
158
+ msgid "Create new signup form"
159
+ msgstr "Skapa ett nytt registreringsformulär"
160
+
161
+ #. mailerlite
162
+ #: include/templates/admin/create.php:11
163
+ msgid "Form type"
164
+ msgstr "Typ av formulär"
165
+
166
+ #. mailerlite
167
+ #: include/templates/admin/create.php:17
168
+ msgid "Custom signup form"
169
+ msgstr "Anpassat registreringsformulär"
170
+
171
+ #. mailerlite
172
+ #: include/templates/admin/create.php:23
173
+ msgid "Webforms created using MailerLite"
174
+ msgstr "Webbformulär som skapats med MailerLite"
175
+
176
+ #. mailerlite
177
+ #: include/templates/admin/create.php:28
178
+ msgid "Create form"
179
+ msgstr "Skapa formulär"
180
+
181
+ #. mailerlite
182
+ #: include/templates/admin/create.php:29
183
+ #: include/templates/admin/edit_custom.php:96
184
+ #: include/templates/admin/edit_embedded.php:42
185
+ msgid "Back"
186
+ msgstr "Tillbaka"
187
+
188
+ #. mailerlite
189
+ #: include/templates/admin/edit_custom.php:5
190
+ msgid "Edit custom signup form"
191
+ msgstr "Redigera anpassat registreringsformulär"
192
+
193
+ #. mailerlite
194
+ #: include/templates/admin/edit_custom.php:7
195
+ #: include/templates/admin/edit_embedded.php:7
196
+ msgid "Form saved."
197
+ msgstr "Formuläret är sparat."
198
+
199
+ #. mailerlite
200
+ #: include/templates/admin/edit_custom.php:7
201
+ #: include/templates/admin/edit_embedded.php:7
202
+ msgid "Back to forms list"
203
+ msgstr "Tillbaka till lista över formulär"
204
+
205
+ #. mailerlite
206
+ #: include/templates/admin/edit_custom.php:15
207
+ msgid "Main information"
208
+ msgstr "Huvudinformation"
209
+
210
+ #. default
211
+ #: include/templates/admin/edit_custom.php:20
212
+ msgid "Form name"
213
+ msgstr "Formulärets namn"
214
+
215
+ #. mailerlite
216
+ #: include/templates/admin/edit_custom.php:21
217
+ #: include/templates/admin/edit_embedded.php:21
218
+ msgid "Tip:"
219
+ msgstr "Tips:"
220
+
221
+ #. mailerlite
222
+ #: include/templates/admin/edit_custom.php:21
223
+ #: include/templates/admin/edit_embedded.php:21
224
+ msgid "This title won't be displayed in public!"
225
+ msgstr "Den här rubriken kommer inte att visas offentligt!"
226
+
227
+ #. mailerlite
228
+ #: include/templates/admin/edit_custom.php:28
229
+ msgid "Form details"
230
+ msgstr "Formulärets detaljer"
231
+
232
+ #. mailerlite
233
+ #: include/templates/admin/edit_custom.php:33
234
+ #: include/templates/admin/edit_embedded.php:20
235
+ msgid "Form title"
236
+ msgstr "Formulärets rubrik"
237
+
238
+ #. mailerlite
239
+ #. default
240
+ #: include/templates/admin/edit_custom.php:34
241
+ #: include/templates/admin/edit_custom.php:55
242
+ msgid "Example:"
243
+ msgstr "Exempel:"
244
+
245
+ #. mailerlite
246
+ #: include/templates/admin/edit_custom.php:34
247
+ msgid "Newsletter signup!"
248
+ msgstr "Prenumeration av nyhetsbrev!"
249
+
250
+ #. mailerlite
251
+ #: include/templates/admin/edit_custom.php:37
252
+ msgid "Form description"
253
+ msgstr "Beskrivning av formulär"
254
+
255
+ #. mailerlite
256
+ #: include/templates/admin/edit_custom.php:54
257
+ msgid "Button title"
258
+ msgstr "Knappens rubrik"
259
+
260
+ #. mailerlite
261
+ #: include/templates/admin/edit_custom.php:62
262
+ msgid "Form fields and lists"
263
+ msgstr "Formulärfält och listor"
264
+
265
+ #. mailerlite
266
+ #: include/templates/admin/edit_custom.php:67
267
+ msgid "Fields"
268
+ msgstr "Fält"
269
+
270
+ #. mailerlite
271
+ #: include/templates/admin/edit_custom.php:80
272
+ msgid "Lists"
273
+ msgstr "Listor"
274
+
275
+ #. mailerlite
276
+ #: include/templates/admin/edit_custom.php:95
277
+ #: include/templates/admin/edit_embedded.php:41
278
+ msgid "Save form"
279
+ msgstr "Spara formulär"
280
+
281
+ #. mailerlite
282
+ #: include/templates/admin/edit_embedded.php:5
283
+ msgid "Edit webform"
284
+ msgstr "Redigera webb-formulär"
285
+
286
+ #. mailerlite
287
+ #: include/templates/admin/edit_embedded.php:15
288
+ msgid "Webform details"
289
+ msgstr "Webb-formulärets detaljer"
290
+
291
+ #. mailerlite
292
+ #: include/templates/admin/edit_embedded.php:24
293
+ msgid "Webform"
294
+ msgstr "Webb-formulär"
295
+
296
+ #. mailerlite
297
+ #: include/templates/admin/main.php:5
298
+ msgid "Add New"
299
+ msgstr "Lägg till nytt"
300
+
301
+ #. mailerlite
302
+ #: include/templates/admin/main.php:14
303
+ msgid "ID"
304
+ msgstr "ID"
305
+
306
+ #. mailerlite
307
+ #: include/templates/admin/main.php:15
308
+ msgid "Name"
309
+ msgstr "Namn"
310
+
311
+ #. mailerlite
312
+ #: include/templates/admin/main.php:16
313
+ msgid "Type"
314
+ msgstr "Typ"
315
+
316
+ #. mailerlite
317
+ #: include/templates/admin/main.php:17
318
+ msgid "Date"
319
+ msgstr "Datum"
320
+
321
+ #. mailerlite
322
+ #: include/templates/admin/main.php:29
323
+ msgid "Edit"
324
+ msgstr "Redigera"
325
+
326
+ #. mailerlite
327
+ #: include/templates/admin/main.php:30
328
+ msgid "Are you sure you want to delete this form?"
329
+ msgstr "Är du säker på att du vill radera det här formuläret?"
330
+
331
+ #. mailerlite
332
+ #: include/templates/admin/main.php:30
333
+ msgid "Delete"
334
+ msgstr "Radera"
335
+
336
+ #. mailerlite
337
+ #: include/templates/admin/main.php:33
338
+ msgid "Custom form"
339
+ msgstr "Anpassat formulär"
340
+
341
+ #. mailerlite
342
+ #: include/templates/admin/main.php:33
343
+ msgid "Embedded form"
344
+ msgstr "Inbäddat formulär"
345
+
346
+ #. mailerlite
347
+ #: include/templates/admin/main.php:42
348
+ msgid "There is no signup forms created yet!"
349
+ msgstr "Det finns inget registreringsformulär skapat ännu"
350
+
351
+ #. mailerlite
352
+ #: include/templates/admin/main.php:43
353
+ msgid "Create signup form"
354
+ msgstr "Skapa registreringsformulär "
355
+
356
+ #. mailerlite
357
+ #: include/templates/admin/settings.php:5
358
+ msgid "Plugin settings"
359
+ msgstr "Inställningar för Plugin"
360
+
361
+ #. mailerlite
362
+ #: include/templates/admin/settings.php:10
363
+ msgid "Here you are able to change your API key!"
364
+ msgstr "Här kan du ändra din API nyckel"
365
+
366
+ #. mailerlite
367
+ #: include/templates/admin/sidebar.php:4
368
+ msgid "Need help?"
369
+ msgstr "Behöver du hjälp?"
370
+
371
+ #. mailerlite
372
+ #: include/templates/admin/sidebar.php:6
373
+ msgid ""
374
+ "Have any questions? Stuck on something or found bug? Feel free to contact us!"
375
+ msgstr ""
376
+ "Har du några frågor? Fastnat på något eller hittat en bugg? Tveka inte att "
377
+ "kontakta oss!"
378
+
379
+ #. mailerlite
380
+ #: include/templates/common/tiny_mce.php:13
381
+ msgid ""
382
+ "Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
383
+ "to your post!"
384
+ msgstr ""
385
+ "Välj formuläret från listan nedan, och tryck på \"Lägg till shortkod \" för "
386
+ "att lägga in shortkoden i ditt inlägg!"
387
+
388
+ #. mailerlite
389
+ #: include/templates/common/tiny_mce.php:24
390
+ msgid "Add Shortcode"
391
+ msgstr "Lägg till shortkod"
392
+
393
+ #. mailerlite
394
+ #: include/templates/forms/custom_form.php:19
395
+ msgid "Please wait..."
396
+ msgstr "Vänligen vänta..."
397
+
398
+ #. mailerlite
399
+ #: include/templates/forms/custom_form.php:27
400
+ msgid "Thank you for signup!"
401
+ msgstr "Tack för din prenumeration!"
402
+
403
+ # @ mailerlite
404
+ #: include/mailerlite_admin.php:395
405
+ msgid "Send this error to info@mailerlite.com or our chat"
406
+ msgstr "Skicka detta fel att info@mailerlite.com eller vår chatt"
407
+
408
+ # @ mailerlite
409
+ #: include/templates/admin/edit_custom.php:20
410
+ msgid "Please wait message"
411
+ msgstr "\"Vänligen vänta\" meddelande"
412
+
413
+ # @ mailerlite
414
+ #: include/mailerlite/admin.php:150
415
+ msgid "Error happened"
416
+ msgstr "Fel har hänt"
417
+
418
+ # @ mailerlite
419
+ #: include/mailerlite/admin.php:46
420
+ msgid "Explanation about forms"
421
+ msgstr "Observera att du kan lägga till <b>Embed</b> eller <b>Button</b> bara skriva formulär. <b>Popup</b> formulär visas automatiskt på din Wordpress-webbplats. Du kan stänga av <b>Popup</b> formulär i <a href=\"admin.php?page=mailerlite_settings\">Inställningar</a>. Du kan inte inkludera sidan <b>Landing</b> på din Wordpress-sida."
422
+
423
+ # @ mailerlite
424
+ #: include/templates/admin/main.php:8
425
+ msgid "MailerLite popup script is"
426
+ msgstr "MailerLite spårningsskriptet är"
427
+
428
+ # @ mailerlite
429
+ #: include/templates/admin/main.php:8
430
+ msgid "enabled"
431
+ msgstr "aktiverad"
432
+
433
+ # @ mailerlite
434
+ #: include/templates/admin/main.php:8
435
+ msgid "disabled"
436
+ msgstr "inaktiverad"
437
+
438
+ # @ mailerlite
439
+ #: include/templates/admin/settings.php:46
440
+ msgid "Enable"
441
+ msgstr "Gör det möjligt"
442
+
443
+ # @ mailerlite
444
+ #: include/templates/admin/settings.php:46
445
+ msgid "Disable"
446
+ msgstr "inaktivera"
447
+
448
+ # @ mailerlite
449
+ #: include/templates/admin/main.php:9
450
+ msgid "Go to settings if you want to change it"
451
+ msgstr "Gå till <a href=\"admin.php?page=mailerlite_settings\">inställningar</a> om du vill ändra det"
452
+
453
+ # @ mailerlite
454
+ #: include/templates/admin/main.php:12
455
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
456
+ msgstr "Dina popup-formulär visas automatiskt medan spårningsskriptet är aktiverat"
457
+
458
+ # @ mailerlite
459
+ #: include/templates/admin/main.php:14
460
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
461
+ msgstr "Dina popup-formulär visas inte när spårningsskriptet är inaktiverat"
462
+
463
+ # @ mailerlite
464
+ #: include/templates/admin/settings.php:34
465
+ msgid "Popup forms script"
466
+ msgstr "Popup former bildar spårningsskript"
trunk/languages/mailerlite-uk_UA.mo ADDED
Binary file
trunk/languages/mailerlite-uk_UA.po ADDED
@@ -0,0 +1,466 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "MIME-Version: 1.0\n"
4
+ "Content-Type: text/plain; charset=UTF-8\n"
5
+ "Content-Transfer-Encoding: 8bit\n"
6
+ "X-Generator: Poedit 1.6.7\n"
7
+ "Project-Id-Version: MailerLite wordpress plugin\n"
8
+ "Language: uk\n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: \n"
11
+ "Last-Translator: \n"
12
+ "Language-Team: \n"
13
+
14
+ #. mailerlite
15
+ #: include/mailerlite-admin.php:52
16
+ msgid "Forms"
17
+ msgstr "Форми"
18
+
19
+ #. mailerlite
20
+ #: include/mailerlite-admin.php:52 include/templates/admin/main.php:5
21
+ msgid "Signup forms"
22
+ msgstr "Форми підписки"
23
+
24
+ #. mailerlite
25
+ #: include/mailerlite-admin.php:53
26
+ msgid "Settings"
27
+ msgstr "Налаштування"
28
+
29
+ #. mailerlite
30
+ #: include/mailerlite-admin.php:133
31
+ msgid "Subscribe for newsletter!"
32
+ msgstr "Підпишіться на новини!"
33
+
34
+ #. mailerlite
35
+ #: include/mailerlite-admin.php:134 include/mailerlite-admin.php:301
36
+ msgid "Newsletter signup"
37
+ msgstr "Підписка на новини"
38
+
39
+ #. mailerlite
40
+ #: include/mailerlite-admin.php:135 include/mailerlite-admin.php:302
41
+ msgid "Just simple MailerLite form!"
42
+ msgstr "Проста форма підписки MailerLite!"
43
+
44
+ #. mailerlite
45
+ #. default
46
+ #: include/mailerlite-admin.php:136 include/mailerlite-admin.php:303
47
+ #: include/templates/admin/edit_custom.php:55
48
+ msgid "Subscribe"
49
+ msgstr "Підписатися"
50
+
51
+ #. mailerlite
52
+ #: include/mailerlite-admin.php:142 include/mailerlite-admin.php:305
53
+ msgid "Email"
54
+ msgstr "Email"
55
+
56
+ #. mailerlite
57
+ #: include/mailerlite-admin.php:198
58
+ msgid "Embedded webform"
59
+ msgstr "Вбудована веб-форма"
60
+
61
+ #. mailerlite
62
+ #: include/mailerlite-admin.php:267
63
+ msgid "You not allowed to do that"
64
+ msgstr "Заборонена дія"
65
+
66
+ #. mailerlite
67
+ #: include/mailerlite-admin.php:277
68
+ msgid "Wrong MailerLite API key"
69
+ msgstr "Некоректний MailerLite API ключ"
70
+
71
+ #. mailerlite
72
+ #: include/mailerlite-admin.php:299
73
+ msgid "New custom signup form"
74
+ msgstr "Нова форма підписки користувача"
75
+
76
+ #. mailerlite
77
+ #: include/mailerlite-admin.php:310
78
+ msgid "New embedded signup form"
79
+ msgstr "Нова вбудована веб-форма"
80
+
81
+ #. mailerlite
82
+ #: include/mailerlite-form.php:75
83
+ msgid "Subscriber successfully saved"
84
+ msgstr "Інформація успішно збережена"
85
+
86
+ #. mailerlite
87
+ #: include/mailerlite-form.php:79
88
+ msgid "Form not found"
89
+ msgstr "Форма не знайдена"
90
+
91
+ #. mailerlite
92
+ #: include/mailerlite-form.php:84
93
+ msgid "Wrong data provided"
94
+ msgstr "Надані некоректні дані"
95
+
96
+ #. mailerlite
97
+ #: include/mailerlite-widget.php:13
98
+ msgid "Mailerlite sign up form"
99
+ msgstr "Форма підписки Mailerlite"
100
+
101
+ #. mailerlite
102
+ #: include/mailerlite-widget.php:14
103
+ msgid "MailerLite sign up form Widget"
104
+ msgstr "Віджет форми підписки Mailerlite"
105
+
106
+ #. mailerlite
107
+ #: include/mailerlite-widget.php:66
108
+ msgid "Select form:"
109
+ msgstr "Виберіть форму:"
110
+
111
+ #. mailerlite
112
+ #: include/templates/admin/api_key.php:8
113
+ msgid ""
114
+ "Hi there! You will be able to create awesome signup forms, but first we need "
115
+ "your MailerLite API key!"
116
+ msgstr ""
117
+ "Вітаємо! Ви зможете створювати красиві форми підписки, але спочатку просимо "
118
+ "надати ваш MailerLite API ключ!"
119
+
120
+ #. mailerlite
121
+ #: include/templates/admin/api_key.php:17
122
+ #: include/templates/admin/settings.php:19
123
+ msgid "Enter an API key"
124
+ msgstr "Введіть ключ API"
125
+
126
+ #. mailerlite
127
+ #: include/templates/admin/api_key.php:18
128
+ #: include/templates/admin/settings.php:20
129
+ msgid "Don't know where to find it?"
130
+ msgstr "Не знаєте, де його знайти?"
131
+
132
+ #. mailerlite
133
+ #: include/templates/admin/api_key.php:18
134
+ #: include/templates/admin/settings.php:20
135
+ msgid "Check it here!"
136
+ msgstr "Перевірте тут!"
137
+
138
+ #. mailerlite
139
+ #: include/templates/admin/api_key.php:23
140
+ #: include/templates/admin/settings.php:25
141
+ msgid "Save this key"
142
+ msgstr "Зберегти ключ"
143
+
144
+ #. mailerlite
145
+ #: include/templates/admin/api_key.php:29
146
+ #: include/templates/admin/settings.php:31
147
+ msgid "Don't have an account?"
148
+ msgstr "У вас немає аккаунта?"
149
+
150
+ #. mailerlite
151
+ #: include/templates/admin/api_key.php:30
152
+ #: include/templates/admin/settings.php:32
153
+ msgid "Register!"
154
+ msgstr "Зареєструватися!"
155
+
156
+ #. mailerlite
157
+ #: include/templates/admin/create.php:5
158
+ msgid "Create new signup form"
159
+ msgstr "Створити нову форму підписки"
160
+
161
+ #. mailerlite
162
+ #: include/templates/admin/create.php:11
163
+ msgid "Form type"
164
+ msgstr "Тип форми"
165
+
166
+ #. mailerlite
167
+ #: include/templates/admin/create.php:17
168
+ msgid "Custom signup form"
169
+ msgstr "Форма підписки користувача"
170
+
171
+ #. mailerlite
172
+ #: include/templates/admin/create.php:23
173
+ msgid "Webforms created using MailerLite"
174
+ msgstr "Веб-форми, створені за допомогою MailerLite"
175
+
176
+ #. mailerlite
177
+ #: include/templates/admin/create.php:28
178
+ msgid "Create form"
179
+ msgstr "Створити форму"
180
+
181
+ #. mailerlite
182
+ #: include/templates/admin/create.php:29
183
+ #: include/templates/admin/edit_custom.php:96
184
+ #: include/templates/admin/edit_embedded.php:42
185
+ msgid "Back"
186
+ msgstr "Назад"
187
+
188
+ #. mailerlite
189
+ #: include/templates/admin/edit_custom.php:5
190
+ msgid "Edit custom signup form"
191
+ msgstr "Редагувати форму підписки користувача"
192
+
193
+ #. mailerlite
194
+ #: include/templates/admin/edit_custom.php:7
195
+ #: include/templates/admin/edit_embedded.php:7
196
+ msgid "Form saved."
197
+ msgstr "Форма збережена."
198
+
199
+ #. mailerlite
200
+ #: include/templates/admin/edit_custom.php:7
201
+ #: include/templates/admin/edit_embedded.php:7
202
+ msgid "Back to forms list"
203
+ msgstr "Повернутися до списку форм"
204
+
205
+ #. mailerlite
206
+ #: include/templates/admin/edit_custom.php:15
207
+ msgid "Main information"
208
+ msgstr "Основна інформація"
209
+
210
+ #. default
211
+ #: include/templates/admin/edit_custom.php:20
212
+ msgid "Form name"
213
+ msgstr "Назва форми"
214
+
215
+ #. mailerlite
216
+ #: include/templates/admin/edit_custom.php:21
217
+ #: include/templates/admin/edit_embedded.php:21
218
+ msgid "Tip:"
219
+ msgstr "Підказка:"
220
+
221
+ #. mailerlite
222
+ #: include/templates/admin/edit_custom.php:21
223
+ #: include/templates/admin/edit_embedded.php:21
224
+ msgid "This title won't be displayed in public!"
225
+ msgstr "Ця назва не буде відображатися публічно!"
226
+
227
+ #. mailerlite
228
+ #: include/templates/admin/edit_custom.php:28
229
+ msgid "Form details"
230
+ msgstr "Деталі форми"
231
+
232
+ #. mailerlite
233
+ #: include/templates/admin/edit_custom.php:33
234
+ #: include/templates/admin/edit_embedded.php:20
235
+ msgid "Form title"
236
+ msgstr "Назва форми"
237
+
238
+ #. mailerlite
239
+ #. default
240
+ #: include/templates/admin/edit_custom.php:34
241
+ #: include/templates/admin/edit_custom.php:55
242
+ msgid "Example:"
243
+ msgstr "Приклад"
244
+
245
+ #. mailerlite
246
+ #: include/templates/admin/edit_custom.php:34
247
+ msgid "Newsletter signup!"
248
+ msgstr "Підписка на розсилку!"
249
+
250
+ #. mailerlite
251
+ #: include/templates/admin/edit_custom.php:37
252
+ msgid "Form description"
253
+ msgstr "Опис форми"
254
+
255
+ #. mailerlite
256
+ #: include/templates/admin/edit_custom.php:54
257
+ msgid "Button title"
258
+ msgstr "Назва кнопки"
259
+
260
+ #. mailerlite
261
+ #: include/templates/admin/edit_custom.php:62
262
+ msgid "Form fields and lists"
263
+ msgstr "Поля форми і списки"
264
+
265
+ #. mailerlite
266
+ #: include/templates/admin/edit_custom.php:67
267
+ msgid "Fields"
268
+ msgstr "Поля"
269
+
270
+ #. mailerlite
271
+ #: include/templates/admin/edit_custom.php:80
272
+ msgid "Lists"
273
+ msgstr "Списки"
274
+
275
+ #. mailerlite
276
+ #: include/templates/admin/edit_custom.php:95
277
+ #: include/templates/admin/edit_embedded.php:41
278
+ msgid "Save form"
279
+ msgstr "Зберегти форму"
280
+
281
+ #. mailerlite
282
+ #: include/templates/admin/edit_embedded.php:5
283
+ msgid "Edit webform"
284
+ msgstr "Редагувати веб-форму"
285
+
286
+ #. mailerlite
287
+ #: include/templates/admin/edit_embedded.php:15
288
+ msgid "Webform details"
289
+ msgstr "Деталі веб-форми"
290
+
291
+ #. mailerlite
292
+ #: include/templates/admin/edit_embedded.php:24
293
+ msgid "Webform"
294
+ msgstr "Веб-форма"
295
+
296
+ #. mailerlite
297
+ #: include/templates/admin/main.php:5
298
+ msgid "Add New"
299
+ msgstr "Додати нову"
300
+
301
+ #. mailerlite
302
+ #: include/templates/admin/main.php:14
303
+ msgid "ID"
304
+ msgstr "ID"
305
+
306
+ #. mailerlite
307
+ #: include/templates/admin/main.php:15
308
+ msgid "Name"
309
+ msgstr "Назва"
310
+
311
+ #. mailerlite
312
+ #: include/templates/admin/main.php:16
313
+ msgid "Type"
314
+ msgstr "Тип"
315
+
316
+ #. mailerlite
317
+ #: include/templates/admin/main.php:17
318
+ msgid "Date"
319
+ msgstr "Дата"
320
+
321
+ #. mailerlite
322
+ #: include/templates/admin/main.php:29
323
+ msgid "Edit"
324
+ msgstr "Редагувати"
325
+
326
+ #. mailerlite
327
+ #: include/templates/admin/main.php:30
328
+ msgid "Are you sure you want to delete this form?"
329
+ msgstr "Ви впевнені, що хочете видалити цю форму?"
330
+
331
+ #. mailerlite
332
+ #: include/templates/admin/main.php:30
333
+ msgid "Delete"
334
+ msgstr "Видалити"
335
+
336
+ #. mailerlite
337
+ #: include/templates/admin/main.php:33
338
+ msgid "Custom form"
339
+ msgstr "Форма користувача"
340
+
341
+ #. mailerlite
342
+ #: include/templates/admin/main.php:33
343
+ msgid "Embedded form"
344
+ msgstr "Вбудована форма"
345
+
346
+ #. mailerlite
347
+ #: include/templates/admin/main.php:42
348
+ msgid "There is no signup forms created yet!"
349
+ msgstr "Немає створених форм підписки!"
350
+
351
+ #. mailerlite
352
+ #: include/templates/admin/main.php:43
353
+ msgid "Add signup form"
354
+ msgstr "Створити форму підписки"
355
+
356
+ #. mailerlite
357
+ #: include/templates/admin/settings.php:5
358
+ msgid "Plugin settings"
359
+ msgstr "Налаштування плагіна"
360
+
361
+ #. mailerlite
362
+ #: include/templates/admin/settings.php:10
363
+ msgid "Here you are able to change your API key!"
364
+ msgstr "Тут ви можете змінити свій ключ API!"
365
+
366
+ #. mailerlite
367
+ #: include/templates/admin/sidebar.php:4
368
+ msgid "Need help?"
369
+ msgstr "Потрібна допомога?"
370
+
371
+ #. mailerlite
372
+ #: include/templates/admin/sidebar.php:6
373
+ msgid ""
374
+ "Have any questions? Stuck on something or found bug? Feel free to contact us!"
375
+ msgstr ""
376
+ "З'явилися питання? Застрягли на якомусь моменті або знайшли помилку? Не "
377
+ "соромтеся звернутися до нас!"
378
+
379
+ #. mailerlite
380
+ #: include/templates/common/tiny_mce.php:13
381
+ msgid ""
382
+ "Select form from list below, and hit \"Add Shortcode\" to add the shortcode "
383
+ "to your post!"
384
+ msgstr ""
385
+ "Виберіть форму зі списку і натисніть «Додати короткий код\", щоб додати його "
386
+ "до свого посту!"
387
+
388
+ #. mailerlite
389
+ #: include/templates/common/tiny_mce.php:24
390
+ msgid "Add Shortcode"
391
+ msgstr "Додати короткий код"
392
+
393
+ #. mailerlite
394
+ #: include/templates/forms/custom_form.php:19
395
+ msgid "Please wait..."
396
+ msgstr "Будь ласка, зачекайте..."
397
+
398
+ #. mailerlite
399
+ #: include/templates/forms/custom_form.php:27
400
+ msgid "Thank you for signup!"
401
+ msgstr "Дякуємо за підписку!"
402
+
403
+ # @ mailerlite
404
+ #: include/mailerlite_admin.php:395
405
+ msgid "Send this error to info@mailerlite.com or our chat"
406
+ msgstr "Відправте цю помилку на info@mailerlite.com або зв'яжіться з нами через онлайн"
407
+
408
+ # @ mailerlite
409
+ #: include/templates/admin/edit_custom.php:20
410
+ msgid "Please wait message"
411
+ msgstr "\"Будь ласка\" повідомлення"
412
+
413
+ # @ mailerlite
414
+ #: include/mailerlite/admin.php:150
415
+ msgid "Error happened"
416
+ msgstr "Сталася помилка"
417
+
418
+ # @ mailerlite
419
+ #: include/mailerlite/admin.php:46
420
+ msgid "Explanation about forms"
421
+ msgstr "Заметьте, пожалуйста, что возможно добавить только <b>Встраиваемые</b> формы и <b>Кнопки</b>. Всплывающие <b>Popup</b> формы на вашем сайте WordPress показываются автоматически. Отключить <b>Popup</b> формы можно в <a href=\"admin.php?page=mailerlite_settings\">настройках</a>. Добавлять <b>Посадочные страницы</b> на WordPress нельзя."
422
+
423
+ # @ mailerlite
424
+ #: include/templates/admin/main.php:8
425
+ msgid "MailerLite popup script is"
426
+ msgstr "MailerLite cценарий отслеживания"
427
+
428
+ # @ mailerlite
429
+ #: include/templates/admin/main.php:8
430
+ msgid "enabled"
431
+ msgstr "включений"
432
+
433
+ # @ mailerlite
434
+ #: include/templates/admin/main.php:8
435
+ msgid "disabled"
436
+ msgstr "Вимкнено"
437
+
438
+ # @ mailerlite
439
+ #: include/templates/admin/settings.php:46
440
+ msgid "Enable"
441
+ msgstr "Увімкнути"
442
+
443
+ # @ mailerlite
444
+ #: include/templates/admin/settings.php:46
445
+ msgid "Disable"
446
+ msgstr "Відключити"
447
+
448
+ # @ mailerlite
449
+ #: include/templates/admin/main.php:9
450
+ msgid "Go to settings if you want to change it"
451
+ msgstr "Перейдіть до <a href=\"admin.php?page=mailerlite_settings\">налаштувань</a>, якщо хочете його змінити"
452
+
453
+ # @ mailerlite
454
+ #: include/templates/admin/main.php:12
455
+ msgid "Your popup forms will be displayed automatically while the popup script is enabled"
456
+ msgstr "Ваші Popup спливаючі форми відображатимуться автоматично під час активації сценарію"
457
+
458
+ # @ mailerlite
459
+ #: include/templates/admin/main.php:14
460
+ msgid "Your popup forms wont be displayed while the popup script is disabled"
461
+ msgstr "Ваші Popup спливаючі форми не відображатимуться під час відключення сценарію"
462
+
463
+ # @ mailerlite
464
+ #: include/templates/admin/settings.php:34
465
+ msgid "Popup forms script"
466
+ msgstr "Спливаючі Popup форми скрипт"
trunk/libs/mailerlite_rest/ML_Campaigns.php ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once dirname(__FILE__) . '/base/ML_Rest.php';
4
+
5
+ class ML_Campaigns extends ML_Rest
6
+ {
7
+ function __construct($api_key)
8
+ {
9
+ $this->name = 'campaigns';
10
+
11
+ parent::__construct($api_key);
12
+ }
13
+
14
+ function getRecipients()
15
+ {
16
+ $this->path .= 'recipients/';
17
+
18
+ return $this->execute('GET');
19
+ }
20
+
21
+ function getOpens()
22
+ {
23
+ $this->path .= 'opens/';
24
+
25
+ return $this->execute('GET');
26
+ }
27
+
28
+ function getClicks()
29
+ {
30
+ $this->path .= 'clicks/';
31
+
32
+ return $this->execute('GET');
33
+ }
34
+
35
+ function getUnsubscribes()
36
+ {
37
+ $this->path .= 'unsubscribes/';
38
+
39
+ return $this->execute('GET');
40
+ }
41
+
42
+ function getBounces()
43
+ {
44
+ $this->path .= 'bounces/';
45
+
46
+ return $this->execute('GET');
47
+ }
48
+
49
+ function getJunk()
50
+ {
51
+ $this->path .= 'junks/';
52
+
53
+ return $this->execute('GET');
54
+ }
55
+ }
trunk/libs/mailerlite_rest/ML_Lists.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once dirname(__FILE__) . '/base/ML_Rest.php';
4
+
5
+ class ML_Lists extends ML_Rest
6
+ {
7
+ function __construct($api_key)
8
+ {
9
+ $this->name = 'lists';
10
+
11
+ parent::__construct($api_key);
12
+ }
13
+
14
+ function getActive()
15
+ {
16
+ $this->path .= 'active/';
17
+
18
+ return $this->execute('GET');
19
+ }
20
+
21
+ function getUnsubscribed()
22
+ {
23
+ $this->path .= 'unsubscribed/';
24
+
25
+ return $this->execute('GET');
26
+ }
27
+
28
+ function getBounced()
29
+ {
30
+ $this->path .= 'bounced/';
31
+
32
+ return $this->execute('GET');
33
+ }
34
+
35
+ function getFields()
36
+ {
37
+ $this->path .= 'fields/';
38
+ return $this->execute('GET');
39
+ }
40
+ }
trunk/libs/mailerlite_rest/ML_Subscribers.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once dirname(__FILE__) . '/base/ML_Rest.php';
4
+
5
+ class ML_Subscribers extends ML_Rest
6
+ {
7
+ public function __construct($api_key)
8
+ {
9
+ $this->name = 'subscribers';
10
+
11
+ parent::__construct($api_key);
12
+ }
13
+
14
+ function add($subscriber = null, $resubscribe = 0)
15
+ {
16
+ $subscriber['resubscribe'] = $resubscribe;
17
+
18
+ return $this->execute('POST', $subscriber);
19
+ }
20
+
21
+ function addAll($subscribers, $resubscribe = 0)
22
+ {
23
+ $data['resubscribe'] = $resubscribe;
24
+
25
+ $data['subscribers'] = $subscribers;
26
+
27
+ $this->path .= 'import/';
28
+
29
+ return $this->execute('POST', $data);
30
+ }
31
+
32
+ function get($email = null, $history = 0)
33
+ {
34
+ $this->setId(null);
35
+
36
+ $this->path .= '?email=' . urlencode($email);
37
+
38
+ if ($history)
39
+ $this->path .= '&history=1';
40
+
41
+ return $this->execute('GET');
42
+ }
43
+
44
+ function remove($email = null)
45
+ {
46
+ $this->path .= '?email=' . urlencode($email);
47
+
48
+ return $this->execute('DELETE');
49
+ }
50
+
51
+ function unsubscribe($email)
52
+ {
53
+ $this->path .= 'unsubscribe/?email=' . urlencode($email);
54
+
55
+ return $this->execute('POST');
56
+ }
57
+ }
trunk/libs/mailerlite_rest/ML_Webforms.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once dirname(__FILE__) . '/base/ML_Rest.php';
4
+
5
+ class ML_Webforms extends ML_Rest
6
+ {
7
+ function __construct($api_key)
8
+ {
9
+ $this->name = 'webforms';
10
+
11
+ parent::__construct($api_key);
12
+ }
13
+ }
trunk/libs/mailerlite_rest/base/ML_Rest.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once dirname(__FILE__) . '/ML_Rest_Base.php';
4
+
5
+ class ML_Rest extends ML_Rest_Base
6
+ {
7
+ var $name = '';
8
+
9
+ var $id = null;
10
+
11
+ function __construct($api_key)
12
+ {
13
+ parent::__construct();
14
+
15
+ $this->apiKey = $api_key;
16
+
17
+ $this->path = $this->url . $this->name . '/';
18
+ }
19
+
20
+ function setId($id)
21
+ {
22
+ $this->id = $id;
23
+
24
+ if ($this->id)
25
+ $this->path = $this->url . $this->name . '/' . $id . '/';
26
+ else
27
+ $this->path = $this->url . $this->name . '/';
28
+
29
+ return $this;
30
+ }
31
+
32
+ function getAll()
33
+ {
34
+ return $this->execute('GET');
35
+ }
36
+
37
+ function get($data = null)
38
+ {
39
+ if (!$this->id)
40
+ throw new InvalidArgumentException('ID is not set.');
41
+
42
+ return $this->execute('GET');
43
+ }
44
+
45
+ function add($data = null)
46
+ {
47
+ return $this->execute('POST', $data);
48
+ }
49
+
50
+ function put($data = null)
51
+ {
52
+ return $this->execute('PUT', $data);
53
+ }
54
+
55
+ function remove($data = null)
56
+ {
57
+ return $this->execute('DELETE');
58
+ }
59
+ }
trunk/libs/mailerlite_rest/base/ML_Rest_Base.php ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class ML_Rest_Base
4
+ {
5
+ protected $url;
6
+ protected $verb;
7
+ protected $requestBody;
8
+ protected $requestLength;
9
+ protected $username;
10
+ protected $password;
11
+ protected $acceptType;
12
+ protected $responseBody;
13
+ protected $responseInfo;
14
+
15
+ protected $apiKey = '';
16
+ protected $path = '';
17
+
18
+ private $curlError = false;
19
+
20
+ public function __construct($url = 'https://app.mailerlite.com/api/v1/', $verb = 'GET')
21
+ {
22
+ $this->url = $url;
23
+ $this->verb = $verb;
24
+ $this->requestLength = 0;
25
+ $this->username = null;
26
+ $this->password = null;
27
+ $this->acceptType = 'application/json';
28
+ $this->responseBody = null;
29
+ $this->responseInfo = null;
30
+ }
31
+
32
+ public function flush()
33
+ {
34
+ $this->requestBody = null;
35
+ $this->requestLength = 0;
36
+ $this->verb = 'GET';
37
+ $this->responseBody = null;
38
+ $this->responseInfo = null;
39
+ }
40
+
41
+ public function execute($method = null, $data = null)
42
+ {
43
+ $ch = curl_init();
44
+ $this->setAuth($ch);
45
+
46
+ if ($method)
47
+ $this->verb = $method;
48
+
49
+ $this->requestBody = $data;
50
+
51
+ $this->buildPostBody();
52
+
53
+ try {
54
+ switch (strtoupper($this->verb)) {
55
+ case 'GET':
56
+ $this->executeGet($ch);
57
+ break;
58
+ case 'POST':
59
+ $this->executePost($ch);
60
+ break;
61
+ case 'PUT':
62
+ $this->executePut($ch);
63
+ break;
64
+ case 'DELETE':
65
+ $this->executeDelete($ch);
66
+ break;
67
+ default:
68
+ throw new InvalidArgumentException('Current verb (' . $this->verb . ') is an invalid REST verb.');
69
+ }
70
+ } catch (InvalidArgumentException $e) {
71
+ curl_close($ch);
72
+ throw $e;
73
+ } catch (Exception $e) {
74
+ curl_close($ch);
75
+ throw $e;
76
+ }
77
+
78
+ return $this->responseBody;
79
+ }
80
+
81
+ public function buildPostBody()
82
+ {
83
+ $data = $this->requestBody;
84
+
85
+ $data['apiKey'] = $this->apiKey;
86
+
87
+ if (!is_array($data)) {
88
+ throw new InvalidArgumentException('Invalid data input for postBody. Array expected');
89
+ }
90
+
91
+ $data = http_build_query($data, '', '&');
92
+ $this->requestBody = $data;
93
+ }
94
+
95
+ protected function executeGet($ch)
96
+ {
97
+ $this->path .= (strpos($this->path, '?') === false ? '?' : '&') . $this->requestBody;
98
+
99
+ $this->doExecute($ch);
100
+ }
101
+
102
+ protected function executePost($ch)
103
+ {
104
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $this->requestBody);
105
+ curl_setopt($ch, CURLOPT_POST, 1);
106
+
107
+ $this->doExecute($ch);
108
+ }
109
+
110
+ protected function executePut($ch)
111
+ {
112
+ $this->requestLength = strlen($this->requestBody);
113
+
114
+ $fh = fopen('php://memory', 'rw');
115
+ fwrite($fh, $this->requestBody);
116
+ rewind($fh);
117
+
118
+ curl_setopt($ch, CURLOPT_INFILE, $fh);
119
+ curl_setopt($ch, CURLOPT_INFILESIZE, $this->requestLength);
120
+ curl_setopt($ch, CURLOPT_PUT, true);
121
+
122
+ $this->doExecute($ch);
123
+
124
+ fclose($fh);
125
+ }
126
+
127
+ protected function executeDelete($ch)
128
+ {
129
+ $this->path .= (strpos($this->path, '?') === false ? '?' : '&') . $this->requestBody;
130
+
131
+ curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
132
+
133
+ $this->doExecute($ch);
134
+ }
135
+
136
+ protected function doExecute(&$curlHandle)
137
+ {
138
+ $this->setCurlOpts($curlHandle);
139
+ $this->responseBody = curl_exec($curlHandle);
140
+
141
+ if ($this->responseBody === false) {
142
+ $this->responseBody = 'CURL errno: '.curl_errno($curlHandle).', CURL error: '.curl_error($curlHandle);
143
+ $this->curlError = true;
144
+ }
145
+
146
+ $this->responseInfo = curl_getinfo($curlHandle);
147
+
148
+ curl_close($curlHandle);
149
+ }
150
+
151
+ protected function setCurlOpts(&$curlHandle)
152
+ {
153
+ curl_setopt($curlHandle, CURLOPT_TIMEOUT, 30);
154
+ curl_setopt($curlHandle, CURLOPT_URL, $this->path);
155
+ curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
156
+ curl_setopt($curlHandle, CURLOPT_HTTPHEADER, array('Accept: ' . $this->acceptType));
157
+
158
+ curl_setopt($curlHandle, CURLOPT_SSL_VERIFYHOST, false);
159
+ curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER, false);
160
+ }
161
+
162
+ public function hasCurlError()
163
+ {
164
+ return $this->curlError;
165
+ }
166
+
167
+ protected function setAuth(&$curlHandle)
168
+ {
169
+ if ($this->username !== null && $this->password !== null) {
170
+ curl_setopt($curlHandle, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
171
+ curl_setopt($curlHandle, CURLOPT_USERPWD, $this->username . ':' . $this->password);
172
+ }
173
+ }
174
+
175
+ public function getAcceptType()
176
+ {
177
+ return $this->acceptType;
178
+ }
179
+
180
+ public function setAcceptType($acceptType)
181
+ {
182
+ $this->acceptType = $acceptType;
183
+ }
184
+
185
+ public function getPassword()
186
+ {
187
+ return $this->password;
188
+ }
189
+
190
+ public function setPassword($password)
191
+ {
192
+ $this->password = $password;
193
+ }
194
+
195
+ public function getResponseBody()
196
+ {
197
+ return $this->responseBody;
198
+ }
199
+
200
+ public function getResponseInfo()
201
+ {
202
+ return $this->responseInfo;
203
+ }
204
+
205
+ public function getUrl()
206
+ {
207
+ return $this->url;
208
+ }
209
+
210
+ public function setUrl($url)
211
+ {
212
+ $this->url = $url;
213
+ }
214
+
215
+ public function getUsername()
216
+ {
217
+ return $this->username;
218
+ }
219
+
220
+ public function setUsername($username)
221
+ {
222
+ $this->username = $username;
223
+ }
224
+
225
+ public function getVerb()
226
+ {
227
+ return $this->verb;
228
+ }
229
+
230
+ public function setVerb($verb)
231
+ {
232
+ $this->verb = $verb;
233
+ }
234
+ }
trunk/mailerlite.php ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Plugin Name: Official MailerLite Sign Up Forms
5
+ * Description: Official MailerLite Sign Up Forms plugin for WordPress. Ability to embed MailerLite webforms and create custom ones just with few clicks.
6
+ * Version: 1.2.1
7
+ * Author: MailerGroup
8
+ * Author URI: https://www.mailerlite.com
9
+ * License: GPLv2 or later
10
+ *
11
+ * This program is free software; you can redistribute it and/or
12
+ * modify it under the terms of the GNU General Public License
13
+ * as published by the Free Software Foundation; either version 2
14
+ * of the License, or (at your option) any later version.
15
+ *
16
+ * This program is distributed in the hope that it will be useful,
17
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
+ * GNU General Public License for more details.
20
+ *
21
+ * You should have received a copy of the GNU General Public License
22
+ * along with this program; if not, write to the Free Software
23
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
24
+ * USA.
25
+ */
26
+
27
+ define('MAILERLITE_PLUGIN_DIR', plugin_dir_path(__FILE__));
28
+ define('MAILERLITE_PLUGIN_URL', plugins_url('', __FILE__));
29
+
30
+ define('MAILERLITE_VERSION', '1.2.1');
31
+
32
+ define('MAILERLITE_PHP_VERSION', '5.0.1');
33
+ define('MAILERLITE_WP_VERSION', '3.0.1');
34
+
35
+ function mailerlite_load_plugin_textdomain()
36
+ {
37
+
38
+ $domain = 'mailerlite';
39
+ load_plugin_textdomain(
40
+ $domain, false, basename(dirname(__FILE__)) . '/languages/'
41
+ );
42
+
43
+ }
44
+
45
+ add_action('init', 'mailerlite_load_plugin_textdomain');
46
+
47
+ function mailerlite_install()
48
+ {
49
+ global $wp_version;
50
+ global $wpdb;
51
+
52
+ $message = '';
53
+
54
+ if ( version_compare( PHP_VERSION, MAILERLITE_PHP_VERSION, '<' ) )
55
+ {
56
+ $message = '<p> The <strong>MailerLite</strong> plugin requires PHP version '.MAILERLITE_PHP_VERSION.' or greater.</p>';
57
+ }
58
+
59
+ if (version_compare( $wp_version, MAILERLITE_WP_VERSION, '<' ))
60
+ {
61
+ $message = '<p> The <strong>MailerLite</strong> plugin requires WordPress version '.MAILERLITE_WP_VERSION.' or greater.</p>';
62
+ }
63
+
64
+ if (!function_exists('curl_version'))
65
+ {
66
+ $message = '<p> The <strong>MailerLite</strong> plugin requires <strong>php-curl</strong> library. Please visit <a target="_blank" href="http://php.net/curl">php.net/curl</a></p>';
67
+ }
68
+
69
+ if ($message)
70
+ {
71
+ deactivate_plugins( basename( __FILE__ ) );
72
+ wp_die($message, 'Plugin Activation Error', array('response' => 200, 'back_link' => TRUE));
73
+ }
74
+
75
+ $table_name = $wpdb->base_prefix . "mailerlite_forms";
76
+
77
+ //$charset_collate = $wpdb->get_charset_collate();
78
+
79
+ require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
80
+
81
+ $charset_collate = ' CHARACTER SET utf8 COLLATE utf8_bin';
82
+
83
+ $sql = "CREATE TABLE IF NOT EXISTS " . $table_name . " (
84
+ id mediumint(9) NOT NULL AUTO_INCREMENT,
85
+ time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
86
+ name tinytext NOT NULL,
87
+ type tinyint(1) default '1' NOT NULL,
88
+ data text NOT NULL,
89
+ PRIMARY KEY (id)
90
+ ) DEFAULT ".$charset_collate. ";";
91
+ dbDelta($sql);
92
+
93
+ $sql = "ALTER TABLE " . $table_name . " " . $charset_collate . ";";
94
+ $wpdb->query($sql);
95
+
96
+ $sql = "ALTER TABLE " . $table_name . " CHANGE `name` `name` TINYTEXT " . $charset_collate . ";";
97
+ $wpdb->query($sql);
98
+
99
+ $sql = "ALTER TABLE " . $table_name . " CHANGE `data` `data` TEXT " . $charset_collate . ";";
100
+ $wpdb->query($sql);
101
+ }
102
+
103
+ register_activation_hook(__FILE__, 'mailerlite_install');
104
+
105
+ function register_mailerlite_styles()
106
+ {
107
+ wp_register_style(
108
+ 'mailerlite_forms.css', MAILERLITE_PLUGIN_URL
109
+ . '/assets/css/mailerlite_forms.css', array(),
110
+ MAILERLITE_VERSION
111
+ );
112
+ wp_enqueue_style('mailerlite_forms.css');
113
+ }
114
+
115
+ add_action('wp_enqueue_scripts', 'register_mailerlite_styles');
116
+
117
+ if (is_admin()) {
118
+ require_once(MAILERLITE_PLUGIN_DIR . 'include/mailerlite-admin.php');
119
+ add_action('init', array('MailerLite_Admin', 'init'));
120
+ }
121
+
122
+
123
+ require_once(MAILERLITE_PLUGIN_DIR . 'include/mailerlite-widget.php');
124
+ require_once(MAILERLITE_PLUGIN_DIR . 'include/mailerlite-shortcode.php');
125
+
126
+ add_action('init', array('MailerLite_Shortcode', 'init'));
127
+ add_action('init', array('MailerLite_Form', 'init'));
trunk/readme.txt ADDED
@@ -0,0 +1,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Plugin Name ===
2
+ Contributors: mailerlite
3
+ Donate link: https://www.mailerlite.com/
4
+ Tags: mailerlite, newsletter, subscribe, form, webform
5
+ Requires at least: 3.0.1
6
+ Tested up to: 4.8
7
+ Stable tag: 1.2.1
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ Add newsletter sign up forms to your WordPress site. Subscribers will be saved directly to your MailerLite account. Super easy to set up!
12
+
13
+ == Description ==
14
+
15
+ = Official MailerLite WordPress plugin =
16
+
17
+ The Official MailerLite Sign Up Form plugin makes it easy to grow your newsletter subscriber list. Use the plugin to add newsletter sign up form to your Wordpress blog or website and automatically integrate it with your MailerLite account.
18
+
19
+ If you don't have MailerLite account yet, [you can signup for a FREE trial here](https://www.mailerlite.com/).
20
+
21
+ Once you activate the plugin, you'll be able to select and add any of webforms you have in your MailerLite account or create a new webform. Place the webform in the sidebar using widget or put it enywhere in your post with a shortcode.
22
+
23
+ Setup is fast and easy! You just need to enter your MailerLite account API code and you're all set.
24
+
25
+ Plugin features:
26
+
27
+ * Add webforms from your MailerLite account to your Wordpress blog or website
28
+ * Create new webforms
29
+ * Save subscribers automatically to your MailerLite account
30
+ * Place webforms using widget or shortcode
31
+ * Double opt-in signup
32
+ * Setup welcome emails in your MailerLite account
33
+
34
+ == Installation ==
35
+
36
+ = Method 1 =
37
+
38
+ 1. Login to your WordPress admin panel.
39
+ 2. Open Plugins in the left sidebar, click Add New, and search for MailerLite plugin.
40
+ 3. Install the plugin and activate it.
41
+
42
+ = Method 2 =
43
+
44
+ 1. Download the MailerLite plugin.
45
+ 2. Unzip the downloaded file and upload to your /wp-content/plugins/ folder.
46
+ 3. Activate the plugin in Wordpress admin panel.
47
+
48
+ = Setup =
49
+
50
+ 1. After successful installation you will see MailerLite icon on the left sidebar. Click it.
51
+ 2. Enter your MailerLite account API key. You can find it in your MailerLite account by clicking "Developer API" link in the bottom of the page.
52
+ 3. Click "Add New Signup Form" .
53
+ 4. Choose "Webforms created using MailerLite" if you wan't to use a sign up form that you already created in your MailerLite account or "Custom sign up form" if you want to create it now.
54
+ 5. If you want to include sign up form in the sidebar of your blog or website, go to Appearance > Widgets and drag "MailerLite sign up form" to the sidebar. Choose which signup form to display.
55
+ 6. If you want to include sign up form inside your post or page, use shortcodes. You will see MailerLite icon in your content editor, click it and choose which form to display. It will put a shortcode (for example [mailerlite_form form_id=1]) and your visitors will see signup form in that place.
56
+
57
+
58
+ == Frequently Asked Questions ==
59
+
60
+ = Requirements =
61
+
62
+ * Requires PHP5 and CURL.
63
+
64
+ = What is the plugin license? =
65
+
66
+ * This plugin is released under a GPL license.
67
+
68
+ = What is MailerLite? =
69
+ MailerLite is easy to use web-based email marketing software. It can help you create and send email newsletters, manage subscribers, track and analyze results.
70
+
71
+ = Do I need a MailerLite account to use this plugin? =
72
+ Yes, you can easily register at www.mailerlite.com
73
+
74
+ = How to display a form in posts or pages? =
75
+ Use shortcode with form id which you created [mailerlite_form form_id=1].
76
+
77
+ = How to display a form in widget areas like a sidebar? =
78
+ Just add "Mailerlite sign up form widget" and select form you have created
79
+
80
+ = How to display a form in my template files? =
81
+
82
+ Use the load_mailerlite_form($id) function.
83
+
84
+ `
85
+ <?php
86
+ if( function_exists( 'load_mailerlite_form' ) ) {
87
+ load_mailerlite_form(0);
88
+ }
89
+ `
90
+
91
+ = How can I style the sign-up form? =
92
+
93
+ You can use CSS rules to style the sign-up form, use the following CSS selectors to target the various form elements.
94
+
95
+ Every form can be different, because element ID of form is:
96
+
97
+ `#mailerlite-form_(your_form_id)`
98
+
99
+ Elements of form can be styled.
100
+
101
+ `
102
+ .mailerlite-form .mailerlite-form-title {} /* the form title */
103
+ .mailerlite-form .mailerlite-form-description {} /* the form description */
104
+ .mailerlite-form .mailerlite-form-field label {} /* the form input label */
105
+ .mailerlite-form .mailerlite-form-field input {} /* the form inputs */
106
+ .mailerlite-form .mailerlite-form-loader {} /* the form loading text */
107
+ .mailerlite-form .mailerlite-subscribe-button-container {} /* the form button container */
108
+ .mailerlite-form .mailerlite-subscribe-button-container .mailerlite-subscribe-submit {} /* the form submit button */
109
+ .mailerlite-form .mailerlite-form-response {} /* the form response message */
110
+ `
111
+
112
+ Add your custom CSS rules to the end of your theme stylesheet, /wp-content/themes/your-theme-name/style.css. Do not add them to the plugin stylesheet as they will be automatically overwritten on the next plugin update.
113
+
114
+ = Where can I find my MailerLite API key? =
115
+
116
+ [Check it here!](https://kb.mailerlite.com/does-mailerlite-offer-an-api/ "Check it here!")
117
+
118
+ == Screenshots ==
119
+
120
+ 1. screenshot-1.jpg
121
+ 2. screenshot-2.jpg
122
+ 3. screenshot-3.jpg
123
+ 4. screenshot-4.jpg
124
+ 5. screenshot-5.jpg
125
+ 6. screenshot-6.jpg
126
+
127
+
128
+ == Changelog ==
129
+
130
+ = 1.2.1 =
131
+ adding en_US locale language translation files
132
+ = 1.2 =
133
+ some small php notice errors fixed. More clear tooltips about embed forms. Popup script settings moved to settings page. Added en_US locale translations (the same as en_EN)
134
+ = 1.1.25 =
135
+ short php open tag fix
136
+ = 1.1.24 =
137
+ bigger curl timeout for API call, temporary
138
+ = 1.1.23 =
139
+ fixed translations, added english .po/.mo files, added "please wait" message translate option to custom forms
140
+ = 1.1.22 =
141
+ updated jquery validation script URL to use static.mailerlite.com
142
+ = 1.1.21 =
143
+ small bugfixes
144
+ = 1.1.20 =
145
+ curl error showing, empty embed form bugfix, other bugfixes
146
+ = 1.1.19 =
147
+ translation fixes
148
+ = 1.1.18 =
149
+ mistype fix for old versions
150
+ = 1.1.17 =
151
+ translation errors for LT language, allowing only embed and button forms
152
+ = 1.1.16 =
153
+ * providing support for older PHP versions
154
+ = 1.1.15 =
155
+ * file_get_contents changed to cURL
156
+ = 1.1.14 =
157
+ * custom thank you message added
158
+ = 1.1.13 =
159
+ * tested with 4.6 version
160
+ = 1.1.12 =
161
+ * multisite support
162
+ = 1.1.11 =
163
+ * post escaped with stripslashes_deep
164
+ = 1.1.10 =
165
+ * mistype - signing up
166
+ = 1.1.9 =
167
+ * fixed app static script url
168
+ = 1.1.8 =
169
+ * fixed old syntax constructors in API classes
170
+ = 1.1.7 =
171
+ * option to activate popup form
172
+ = 1.1.6 =
173
+ * popup webforms added
174
+ = 1.1.5 =
175
+ * php notice fix
176
+ = 1.1.4 =
177
+ * fixed jquery bug
178
+ = 1.1.3 =
179
+ * some problem with version number
180
+ = 1.1.2 =
181
+ * wordpress issue bug fix
182
+ = 1.1.1 =
183
+ * updated readme and version constants
184
+ = 1.1 =
185
+ * tested with up to 4.5.1 wordpress. version. Added list of languages for validation messages. Fixed mistype "sign up"
186
+ = 1.0.18 =
187
+ * added php,wordpress and curl version checks before activation
188
+ = 1.0.17 =
189
+ * fix db queries for update
190
+ = 1.0.16 =
191
+ * links to https, db update charset
192
+ = 1.0.15 =
193
+ * Updated links to knowledge base about api key, changed db charset for table - utf8_bin
194
+ = 1.0.14 =
195
+ * Removed new lines for some cases
196
+ = 1.0.13 =
197
+ * Empty form description allowed
198
+ = 1.0.12 =
199
+ * Fix mistype in curl method
200
+ = 1.0.11 =
201
+ * Version fix
202
+ = 1.0.10 =
203
+ * Some code refactor, array fixes for PHP older than 5.4
204
+ = 1.0.9 =
205
+ * Curl safe mode fix
206
+ = 1.0.8 =
207
+ * Fix shortcode popup
208
+ = 1.0.7 =
209
+ * Fix shortcode
210
+ = 1.0.6 =
211
+ * Fix embedded form cache
212
+ = 1.0.5 =
213
+ * Fix for WP 4.0
214
+ = 1.0.4 =
215
+ * Subscribe button update
216
+ = 1.0.3 =
217
+ * jQuery load update
218
+ = 1.0.2 =
219
+ * Small changes
220
+ = 1.0.1 =
221
+ * Added translations
222
+ = 1.0 =
223
+ * First release
224
+
225
+ == Upgrade Notice ==
226
+
227
+ = 1.2.1 =
228
+ adding en_US locale language translation files
229
+ = 1.2 =
230
+ some small php notice errors fixed. More clear tooltips about embed forms. Popup script settings moved to settings page. Added en_US locale translations (the same as en_EN)
231
+ = 1.1.25 =
232
+ short php open tag fix
233
+ = 1.1.24 =
234
+ bigger curl timeout for API call, temporary
235
+ = 1.1.23 =
236
+ fixed translations, added english .po/.mo files, added "please wait" message translate option to custom forms
237
+ = 1.1.22 =
238
+ updated jquery validation script URL to use static.mailerlite.com
239
+ = 1.1.21 =
240
+ small bugfixes
241
+ = 1.1.20 =
242
+ curl error showing, empty embed form bugfix, other bugfixes
243
+ = 1.1.19 =
244
+ translation fixes
245
+ = 1.1.18 =
246
+ mistype fix for old versions
247
+ = 1.1.17 =
248
+ translation errors for LT language, allowing only embed and button forms
249
+ = 1.1.16 =
250
+ * providing support for older PHP versions
251
+ = 1.1.15 =
252
+ * file_get_contents changed to cURL
253
+ = 1.1.14 =
254
+ * custom thank you message added
255
+ = 1.1.13 =
256
+ * tested with 4.6 version
257
+ = 1.1.12 =
258
+ * multisite support
259
+ = 1.1.11 =
260
+ * post escaped with stripslashes_deep
261
+ = 1.1.10 =
262
+ * mistype - signing up
263
+ = 1.1.9 =
264
+ * fixed app static script url
265
+ = 1.1.8 =
266
+ * fixed old syntax constructors in API classes
267
+ = 1.1.7 =
268
+ * option to activate popup form
269
+ = 1.1.6 =
270
+ * popup webforms added
271
+ = 1.1.5 =
272
+ * php notice fix
273
+ = 1.1.4 =
274
+ * fixed jquery bug
275
+ = 1.1.3 =
276
+ * problem with number
277
+ = 1.1.2 =
278
+ * wordpress issue bug fix
279
+ = 1.1.1 =
280
+ * updated readme and version constants
281
+ = 1.1 =
282
+ * tested with up to 4.5.1 wordpress. version. Added list of languages for validation messages. Fixed mistype "sign up"
283
+ = 1.0.18 =
284
+ * added php,wordpress and curl version checks before activation
285
+ = 1.0.17 =
286
+ * fix db queries for update
287
+ = 1.0.16 =
288
+ * links to https, db update charset
289
+ = 1.0.15 =
290
+ * Updated links to knowledge base about api key, changed db charset for table - utf8_bin
291
+ = 1.0.14 =
292
+ * Removed new lines for some cases
293
+ = 1.0.13 =
294
+ * Empty form description allowed
295
+ = 1.0.12 =
296
+ * Fix mistype in curl method
297
+ = 1.0.11 =
298
+ * Version fix
299
+ = 1.0.10 =
300
+ * Some code refactor, array fixes for PHP older than 5.4
301
+ = 1.0.9 =
302
+ * Curl safe mode fix
303
+ = 1.0.8 =
304
+ * Fix shortcode popup
305
+ = 1.0.7 =
306
+ * Fix shortcode
307
+ = 1.0.6 =
308
+ * Fix embedded form cache
309
+ = 1.0.5 =
310
+ * Fix for WP 4.0
311
+ = 1.0.4 =
312
+ * Subscribe button update
313
+ = 1.0.3 =
314
+ * jQuery load update
315
+ = 1.0.2 =
316
+ * Small changes
317
+ = 1.0.1 =
318
+ * Added translations
319
+ = 1.0 =
320
+ * First release
321
+
322
+ == Arbitrary section ==
trunk/screenshot-1.jpg ADDED
Binary file
trunk/screenshot-2.jpg ADDED
Binary file
trunk/screenshot-3.jpg ADDED
Binary file
trunk/screenshot-4.jpg ADDED
Binary file
trunk/screenshot-5.jpg ADDED
Binary file
trunk/screenshot-6.jpg ADDED
Binary file