Skip to content

Commit 6fa0144

Browse files
committed
Build v3.3.0
1 parent 10f5e09 commit 6fa0144

File tree

4 files changed

+55
-38
lines changed

4 files changed

+55
-38
lines changed

inc/Helpers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private static function is_import_file_info_format_correct( $import_file_info )
5555
/**
5656
* Download import files. Content .xml and widgets .wie|.json files.
5757
*
58-
* @since {VERSION} Add WPForms support.
58+
* @since 3.3.0 Add WPForms support.
5959
*
6060
* @param array $import_file_info array with import file details.
6161
*

inc/WPFormsImporter.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class WPFormsImporter {
1313
/**
1414
* The path to the import file.
1515
*
16-
* @since {VERSION}
16+
* @since 3.3.0
1717
*
1818
* @var string
1919
*/
@@ -22,7 +22,7 @@ class WPFormsImporter {
2222
/**
2323
* The OneClickDemoImport instance.
2424
*
25-
* @since {VERSION}
25+
* @since 3.3.0
2626
*
2727
* @var OneClickDemoImport
2828
*/
@@ -31,7 +31,7 @@ class WPFormsImporter {
3131
/**
3232
* Constructor.
3333
*
34-
* @since {VERSION}
34+
* @since 3.3.0
3535
*
3636
* @param string $import_file_path The path to the import file.
3737
*/
@@ -44,7 +44,7 @@ public function __construct( $import_file_path ) {
4444
/**
4545
* Import WPForms data.
4646
*
47-
* @since {VERSION}
47+
* @since 3.3.0
4848
*/
4949
public function import() {
5050

@@ -78,7 +78,7 @@ public function import() {
7878
/**
7979
* Log error message.
8080
*
81-
* @since {VERSION}
81+
* @since 3.3.0
8282
*
8383
* @param string $error_message The error message.
8484
*/

languages/one-click-demo-import.pot

+48-31
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
msgid ""
22
msgstr ""
3-
"Project-Id-Version: One Click Demo Import 3.2.0\n"
3+
"Project-Id-Version: One Click Demo Import 3.3.0\n"
44
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/one-click-demo-import\n"
55
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
66
"Language-Team: LANGUAGE <[email protected]>\n"
77
"MIME-Version: 1.0\n"
88
"Content-Type: text/plain; charset=UTF-8\n"
99
"Content-Transfer-Encoding: 8bit\n"
10-
"POT-Creation-Date: 2023-11-23T09:35:25+00:00\n"
10+
"POT-Creation-Date: 2024-10-10T11:46:51+00:00\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"X-Generator: WP-CLI 2.8.1\n"
1313
"X-Domain: one-click-demo-import\n"
1414

1515
#. Plugin Name of the plugin
16-
#: inc/Helpers.php:758
16+
#: inc/Helpers.php:781
1717
#: inc/ViewHelpers.php:19
1818
msgid "One Click Demo Import"
1919
msgstr ""
@@ -211,97 +211,97 @@ msgid "An error occurred while fetching file from: %1$s%2$s%3$s!%4$sReason: %5$s
211211
msgstr ""
212212

213213
#. translators: %1$s - br HTML tag, %2$s - file path
214-
#: inc/Helpers.php:199
215-
#: inc/Helpers.php:242
214+
#: inc/Helpers.php:222
215+
#: inc/Helpers.php:265
216216
msgid "An error occurred while writing file to your server! Tried to write a file to: %1$s%2$s."
217217
msgstr ""
218218

219219
#. translators: %1$s - br HTML tag, %2$s - file path
220-
#: inc/Helpers.php:276
220+
#: inc/Helpers.php:299
221221
msgid "An error occurred while reading a file from your server! Tried reading file from path: %1$s%2$s."
222222
msgstr ""
223223

224224
#. translators: %1$s and %2$s - strong HTML tags, %3$s - HTML link to a doc page.
225-
#: inc/Helpers.php:299
225+
#: inc/Helpers.php:322
226226
msgid "This WordPress page does not have %1$sdirect%2$s write file access. This plugin needs it in order to save the demo import xml file to the upload directory of your site. You can change this setting with these instructions: %3$s."
227227
msgstr ""
228228

229-
#: inc/Helpers.php:316
229+
#: inc/Helpers.php:339
230230
msgid "An error occurred while retrieving reading/writing permissions to your server (could not retrieve WP filesystem credentials)!"
231231
msgstr ""
232232

233-
#: inc/Helpers.php:324
233+
#: inc/Helpers.php:347
234234
msgid "Your WordPress login credentials don't allow to use WP_Filesystem!"
235235
msgstr ""
236236

237-
#: inc/Helpers.php:364
237+
#: inc/Helpers.php:387
238238
msgid "One Click Demo Import - "
239239
msgstr ""
240240

241241
#. translators: %1$s - opening div and paragraph HTML tags, %2$s - closing div and paragraph HTML tags.
242-
#: inc/Helpers.php:398
242+
#: inc/Helpers.php:421
243243
msgid "%1$sYour user role isn't high enough. You don't have permission to import demo data.%2$s"
244244
msgstr ""
245245

246-
#: inc/Helpers.php:442
246+
#: inc/Helpers.php:465
247247
msgid "No file provided."
248248
msgstr ""
249249

250250
#. translators: %s - the error message.
251-
#: inc/Helpers.php:471
251+
#: inc/Helpers.php:494
252252
msgid "Content file was not uploaded. Error: %s"
253253
msgstr ""
254254

255-
#: inc/Helpers.php:475
256-
#: inc/Helpers.php:492
257-
#: inc/Helpers.php:509
258-
#: inc/Helpers.php:520
259-
#: inc/Helpers.php:540
260-
#: inc/Helpers.php:548
255+
#: inc/Helpers.php:498
256+
#: inc/Helpers.php:515
257+
#: inc/Helpers.php:532
258+
#: inc/Helpers.php:543
259+
#: inc/Helpers.php:563
260+
#: inc/Helpers.php:571
261261
msgid "Upload files"
262262
msgstr ""
263263

264264
#. translators: %s - the error message.
265-
#: inc/Helpers.php:488
265+
#: inc/Helpers.php:511
266266
msgid "Widget file was not uploaded. Error: %s"
267267
msgstr ""
268268

269269
#. translators: %s - the error message.
270-
#: inc/Helpers.php:505
270+
#: inc/Helpers.php:528
271271
msgid "Customizer file was not uploaded. Error: %s"
272272
msgstr ""
273273

274-
#: inc/Helpers.php:518
274+
#: inc/Helpers.php:541
275275
msgid "Missing Redux option name! Please also enter the Redux option name!"
276276
msgstr ""
277277

278278
#. translators: %s - the error message.
279-
#: inc/Helpers.php:536
279+
#: inc/Helpers.php:559
280280
msgid "Redux file was not uploaded. Error: %s"
281281
msgstr ""
282282

283-
#: inc/Helpers.php:546
283+
#: inc/Helpers.php:569
284284
msgid "The import files were successfully uploaded!"
285285
msgstr ""
286286

287287
#. translators: %s - the max execution time.
288-
#: inc/Helpers.php:572
288+
#: inc/Helpers.php:595
289289
msgid "Initial max execution time = %s"
290290
msgstr ""
291291

292292
#. translators: %1$s - new line break, %2$s - the site URL, %3$s - the file path for content import, %4$s - the file path for widgets import, %5$s - the file path for widgets import, %6$s - the file path for redux import.
293-
#: inc/Helpers.php:576
293+
#: inc/Helpers.php:599
294294
msgid "Files info:%1$sSite URL = %2$s%1$sData file = %3$s%1$sWidget file = %4$s%1$sCustomizer file = %5$s%1$sRedux files:%1$s%6$s"
295295
msgstr ""
296296

297-
#: inc/Helpers.php:579
298-
#: inc/Helpers.php:580
299-
#: inc/Helpers.php:581
300-
#: inc/Helpers.php:582
297+
#: inc/Helpers.php:602
298+
#: inc/Helpers.php:603
299+
#: inc/Helpers.php:604
300+
#: inc/Helpers.php:605
301301
msgid "not defined!"
302302
msgstr ""
303303

304-
#: inc/Helpers.php:759
304+
#: inc/Helpers.php:782
305305
#: views/plugin-page.php:290
306306
msgid "Import Demo Data"
307307
msgstr ""
@@ -684,6 +684,23 @@ msgstr ""
684684
msgid "Executing action: %s ..."
685685
msgstr ""
686686

687+
#: inc/WPFormsImporter.php:53
688+
msgid "The WPForms plugin is not activated, so the WPForms import was skipped!"
689+
msgstr ""
690+
691+
#: inc/WPFormsImporter.php:60
692+
msgid "The WPForms plugin's version is not >= v1.8.6, so the WPForms import was skipped!"
693+
msgstr ""
694+
695+
#: inc/WPFormsImporter.php:72
696+
msgid "WPForms import finished successfully!"
697+
msgstr ""
698+
699+
#: inc/WPFormsImporter.php:74
700+
#: inc/WPFormsImporter.php:94
701+
msgid "Importing WPForms"
702+
msgstr ""
703+
687704
#. translators: %1$s - the PHP version, %2$s and %3$s - strong HTML tags, %4$s - br HTMl tag.
688705
#: one-click-demo-import.php:60
689706
msgid "The %2$sOne Click Demo Import%3$s plugin requires %2$sPHP 5.6+%3$s to run properly. Please contact your hosting company and ask them to update the PHP version of your site to at least PHP 7.4%4$s Your current version of PHP: %2$s%1$s%3$s"

one-click-demo-import.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Plugin Name: One Click Demo Import
55
Plugin URI: https://wordpress.org/plugins/one-click-demo-import/
66
Description: Import your content, widgets and theme settings with one click. Theme authors! Enable simple demo import for your theme demo data.
7-
Version: 3.2.1
7+
Version: 3.3.0
88
Requires at least: 5.5
99
Requires PHP: 5.6
1010
Author: OCDI

0 commit comments

Comments
 (0)