From 183a67c9afe70bd994a88196b45778ba0a4feb01 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor?= <yesszus@gmail.com>
Date: Sun, 2 Apr 2017 10:27:12 +0200
Subject: [PATCH 1/9] Update English_admin.php

---
 e107_plugins/import/languages/English_admin.php | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/e107_plugins/import/languages/English_admin.php b/e107_plugins/import/languages/English_admin.php
index 1b1686d79..5babdc70f 100644
--- a/e107_plugins/import/languages/English_admin.php
+++ b/e107_plugins/import/languages/English_admin.php
@@ -75,7 +75,6 @@ define("LAN_CONVERT_45","Cannot read import code file");
 define("LAN_CONVERT_46","Error: --ERRNUM-- while writing to --DB-- database, line ");
 define("LAN_CONVERT_47","Batch --BLOCK-- import completed. --LINES-- read, --USERS-- added, --ERRORS-- errors");
 define("LAN_CONVERT_48","Forum posts");
-
 define("LAN_CONVERT_49","Drupal");
 define("LAN_CONVERT_50","Basic import");
 define("LAN_CONVERT_51","The version of targeted Drupal.");
@@ -84,3 +83,19 @@ define("LAN_CONVERT_53","The base URL of Drupal website (e.g., http://mydrupalsi
 define("LAN_CONVERT_54","Drupal Base URL");
 define("LAN_CONVERT_55","The base URL path (i.e., directory) of the Drupal installation (e.g., /drupal/).");
 define("LAN_CONVERT_56","Drupal Base Path");
+define("LAN_CONVERT_57", "No error");
+define("LAN_CONVERT_58", "Can\'t change main admin data");
+define("LAN_CONVERT_59", "invalid field passed");
+define("LAN_CONVERT_60", "Mandatory field not set");
+define("LAN_CONVERT_61", "User already exists");
+define("LAN_CONVERT_62", "Invalid characters in user or login name");
+define("LAN_CONVERT_63", "Error saving extended user fields");
+define("LAN_CONVERT_64", "Select");
+define("LAN_CONVERT_65", "Pages");
+define("LAN_CONVERT_66", "Page Chapters");
+define("LAN_CONVERT_67", "Links");
+define("LAN_CONVERT_68", "Media");
+define("LAN_CONVERT_69", "Forum");
+define("LAN_CONVERT_70", "Forum Topics/Threads");
+define("LAN_CONVERT_71", "Forum Posts");
+define("LAN_CONVERT_72", "Forum Track");

From f3c8b8ca6ec81d8c7f8438640a5d388ad6090a72 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor?= <yesszus@gmail.com>
Date: Sun, 2 Apr 2017 10:31:59 +0200
Subject: [PATCH 2/9] Update English_admin.php

---
 e107_plugins/import/languages/English_admin.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/e107_plugins/import/languages/English_admin.php b/e107_plugins/import/languages/English_admin.php
index 5babdc70f..3a8c8bd76 100644
--- a/e107_plugins/import/languages/English_admin.php
+++ b/e107_plugins/import/languages/English_admin.php
@@ -99,3 +99,5 @@ define("LAN_CONVERT_69", "Forum");
 define("LAN_CONVERT_70", "Forum Topics/Threads");
 define("LAN_CONVERT_71", "Forum Posts");
 define("LAN_CONVERT_72", "Forum Track");
+define("LAN_CONVERT_73", "Userclasses");
+define("LAN_CONVERT_74", "News Categories");

From a1f9670cd8362e9ec6baa253f217a66e09d59e99 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor?= <yesszus@gmail.com>
Date: Sun, 2 Apr 2017 10:36:17 +0200
Subject: [PATCH 3/9] Update admin_import.php

---
 e107_plugins/import/admin_import.php | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/e107_plugins/import/admin_import.php b/e107_plugins/import/admin_import.php
index 4f6deabb9..1244c47fb 100644
--- a/e107_plugins/import/admin_import.php
+++ b/e107_plugins/import/admin_import.php
@@ -94,19 +94,19 @@ class import_main_ui extends e_admin_ui
 	// Definitions of available areas to import
 	protected $importTables = array(
 		'users' 		=> array('message' => LAN_CONVERT_25, 			'classfile' => 'import_user_class.php', 'classname' => 'user_import'),
-		'userclass' 	=> array('message' => "Userclasses", 			'nolist'=>true, 'classfile' => 'import_user_class.php', 'classname' => 'userclass_import'),
+		'userclass' 	=> array('message' => LAN_CONVERT_73, 			'nolist'=>true, 'classfile' => 'import_user_class.php', 'classname' => 'userclass_import'),
 
 		'news' 			=> array('message' => LAN_CONVERT_28,			'classfile' => 'import_news_class.php', 'classname' => 'news_import'),
-		'newscategory' 	=> array('message' => "News Categories",		'nolist'=>true, 'classfile' => 'import_news_class.php', 'classname' => 'newscategory_import'),
+		'newscategory' 	=> array('message' => LAN_CONVERT_74,		'nolist'=>true, 'classfile' => 'import_news_class.php', 'classname' => 'newscategory_import'),
 
-		'page' 			=> array('message' => "Pages",				    'classfile' => 'import_page_class.php', 'classname' => 'page_import'),
-		'pagechapter' 	=> array('message' => "Page Chapters",			'nolist'=>true, 'classfile' => 'import_page_class.php', 'classname' => 'pagechapter_import'),
-		'links' 		=> array('message' => "Links", 					'classfile' => 'import_links_class.php', 'classname' => 'links_import'),	
-		'media' 		=> array('message' => "Media", 					'classfile' => 'import_media_class.php', 'classname' => 'media_import'),
-		'forum' 		=> array('message' => "Forum", 					'classfile' => 'import_forum_class.php', 'classname' => 'forum_import'),
-		'forumthread' 	=> array('message' => "Forum Topics/Threads", 	'classfile' => 'import_forum_class.php', 'classname' => 'forumthread_import', 'nolist'=>true),
-		'forumpost' 	=> array('message' => "Forum Posts", 			'classfile' => 'import_forum_class.php', 'classname' => 'forumpost_import', 'nolist'=>true),
-		'forumtrack' 	=> array('message' => "Forum Track", 			'classfile' => 'import_forum_class.php', 'classname' => 'forumtrack_import', 'nolist'=>true),
+		'page' 			=> array('message' => LAN_CONVERT_65,				    'classfile' => 'import_page_class.php', 'classname' => 'page_import'),
+		'pagechapter' 	=> array('message' => LAN_CONVERT_66,			'nolist'=>true, 'classfile' => 'import_page_class.php', 'classname' => 'pagechapter_import'),
+		'links' 		=> array('message' => LAN_CONVERT_67, 					'classfile' => 'import_links_class.php', 'classname' => 'links_import'),	
+		'media' 		=> array('message' => LAN_CONVERT_68, 					'classfile' => 'import_media_class.php', 'classname' => 'media_import'),
+		'forum' 		=> array('message' => LAN_CONVERT_69, 					'classfile' => 'import_forum_class.php', 'classname' => 'forum_import'),
+		'forumthread' 	=> array('message' => LAN_CONVERT_70, 	'classfile' => 'import_forum_class.php', 'classname' => 'forumthread_import', 'nolist'=>true),
+		'forumpost' 	=> array('message' => LAN_CONVERT_71, 			'classfile' => 'import_forum_class.php', 'classname' => 'forumpost_import', 'nolist'=>true),
+		'forumtrack' 	=> array('message' => LAN_CONVERT_72, 			'classfile' => 'import_forum_class.php', 'classname' => 'forumtrack_import', 'nolist'=>true),
 		//	'comments' 		=> array('message'=> LAN_COMMENTS),
 
 	//	'polls' 		=> array('message' => LAN_CONVERT_27)
@@ -310,7 +310,7 @@ class import_main_ui extends e_admin_ui
 		             $text .= "
 					 	<td class='center middle'>";
 						
-						$text .= $frm->admin_button('type', $k, 'other',"Select");
+						$text .= $frm->admin_button('type', $k, 'other',LAN_CONVERT_64);
 					// 	$text .= $frm->admin_button('import_type', $k, 'other',"Select");
 						
 						$text .= "
@@ -1686,4 +1686,4 @@ function headerjs()
 
 
 
-?>
\ No newline at end of file
+?>

From e4cd7cf09cf359858e1427319ac93c820377fe1c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor?= <yesszus@gmail.com>
Date: Sun, 2 Apr 2017 10:38:03 +0200
Subject: [PATCH 4/9] Update import_user_class.php

---
 e107_plugins/import/import_user_class.php | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/e107_plugins/import/import_user_class.php b/e107_plugins/import/import_user_class.php
index 1df81ab3d..5eb76ade5 100644
--- a/e107_plugins/import/import_user_class.php
+++ b/e107_plugins/import/import_user_class.php
@@ -238,13 +238,13 @@ class user_import
 	function getErrorText($errnum)    // these errors are presumptuous and misleading. especially '4' .
 	{
 		$errorTexts = array(
-	    	0 => 'No error', 
-	    	1 => 'Can\'t change main admin data', 
-	    	2 => 'invalid field passed',
-			3 => 'Mandatory field not set', 
-			4 => 'User already exists', 
-			5 => 'Invalid characters in user or login name',
-			6 => 'Error saving extended user fields'
+	    	0 => LAN_CONVERT_57, 
++	    	1 => LAN_CONVERT_58, 
++	    	2 => LAN_CONVERT_59,
++			3 => LAN_CONVERT_60, 
++			4 => LAN_CONVERT_61, 
++			5 => LAN_CONVERT_62,
++			6 => LAN_CONVERT_63
 		);
 		
 		if (isset($errorTexts[$errnum])) return $errorTexts[$errnum];
@@ -360,4 +360,4 @@ class userclass_import
 
 
 
-?>
\ No newline at end of file
+?>

From 85c18b03b395720d2001a0dd81b147b33ddc7ab8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor?= <yesszus@gmail.com>
Date: Sun, 2 Apr 2017 10:41:55 +0200
Subject: [PATCH 5/9] Update import_forum_class.php

---
 e107_plugins/import/import_forum_class.php | 58 +++++++++++-----------
 1 file changed, 29 insertions(+), 29 deletions(-)

diff --git a/e107_plugins/import/import_forum_class.php b/e107_plugins/import/import_forum_class.php
index 16110ece8..9d5180fee 100644
--- a/e107_plugins/import/import_forum_class.php
+++ b/e107_plugins/import/import_forum_class.php
@@ -93,13 +93,13 @@ class forum_import
 	function getErrorText($errnum)    // these errors are presumptuous and misleading. especially '4' .
 	{
 		$errorTexts = array(
-	    	0 => 'No error', 
-	    	1 => 'Can\'t change main admin data', 
-	    	2 => 'invalid field passed',
-			3 => 'Mandatory field not set', 
-			4 => 'Entry already exists', 
-			5 => 'Invalid characters in user or login name',
-			6 => 'Error saving extended user fields'
+	    	0 => LAN_CONVERT_57, 
+	    	1 => LAN_CONVERT_58, 
+	    	2 => LAN_CONVERT_59,
+			3 => LAN_CONVERT_60, 
+			4 => LAN_CONVERT_61, 
+			5 => LAN_CONVERT_62,
+			6 => LAN_CONVERT_63
 		);
 			
 		if (isset($errorTexts[$errnum])) return $errorTexts[$errnum];
@@ -197,13 +197,13 @@ class forumthread_import
 	function getErrorText($errnum)    // these errors are presumptuous and misleading. especially '4' .
 	{
 		$errorTexts = array(
-	    	0 => 'No error', 
-	    	1 => 'Can\'t change main admin data', 
-	    	2 => 'invalid field passed',
-			3 => 'Mandatory field not set', 
-			4 => 'Entry already exists', 
-			5 => 'Invalid characters in user or login name',
-			6 => 'Error saving extended user fields'
+	    	0 => LAN_CONVERT_57, 
+	    	1 => LAN_CONVERT_58, 
+	    	2 => LAN_CONVERT_59,
+			3 => LAN_CONVERT_60, 
+			4 => LAN_CONVERT_61, 
+			5 => LAN_CONVERT_62,
+			6 => LAN_CONVERT_63
 		);
 			
 		if (isset($errorTexts[$errnum])) return $errorTexts[$errnum];
@@ -307,13 +307,13 @@ class forumpost_import
 	function getErrorText($errnum)    // these errors are presumptuous and misleading. especially '4' .
 	{
 		$errorTexts = array(
-	    	0 => 'No error', 
-	    	1 => 'Can\'t change main admin data', 
-	    	2 => 'invalid field passed',
-			3 => 'Mandatory field not set', 
-			4 => 'Entry already exists', 
-			5 => 'Invalid characters in user or login name',
-			6 => 'Error saving extended user fields'
+	    	0 => LAN_CONVERT_57, 
+	    	1 => LAN_CONVERT_58, 
+	    	2 => LAN_CONVERT_59,
+			3 => LAN_CONVERT_60, 
+			4 => LAN_CONVERT_61, 
+			5 => LAN_CONVERT_62,
+			6 => LAN_CONVERT_63
 		);
 			
 		if (isset($errorTexts[$errnum])) return $errorTexts[$errnum];
@@ -402,13 +402,13 @@ class forumtrack_import
 	function getErrorText($errnum)    // these errors are presumptuous and misleading. especially '4' .
 	{
 		$errorTexts = array(
-	    	0 => 'No error', 
-	    	1 => 'Can\'t change main admin data', 
-	    	2 => 'invalid field passed',
-			3 => 'Mandatory field not set', 
-			4 => 'Entry already exists', 
-			5 => 'Invalid characters in user or login name',
-			6 => 'Error saving extended user fields'
+	    	0 => LAN_CONVERT_57, 
+	    	1 => LAN_CONVERT_58, 
+	    	2 => LAN_CONVERT_59,
+			3 => LAN_CONVERT_60, 
+			4 => LAN_CONVERT_61, 
+			5 => LAN_CONVERT_62,
+			6 => LAN_CONVERT_63
 		);
 			
 		if (isset($errorTexts[$errnum])) return $errorTexts[$errnum];
@@ -423,4 +423,4 @@ class forumtrack_import
 
 
 
-?>
\ No newline at end of file
+?>

From aeff020e2c59eb2be2591ad027b8bb1573e3dea7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor?= <yesszus@gmail.com>
Date: Sun, 2 Apr 2017 10:43:33 +0200
Subject: [PATCH 6/9] Update import_user_class.php

---
 e107_plugins/import/import_user_class.php | 26 +++++++++++------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/e107_plugins/import/import_user_class.php b/e107_plugins/import/import_user_class.php
index 5eb76ade5..a62da6351 100644
--- a/e107_plugins/import/import_user_class.php
+++ b/e107_plugins/import/import_user_class.php
@@ -239,12 +239,12 @@ class user_import
 	{
 		$errorTexts = array(
 	    	0 => LAN_CONVERT_57, 
-+	    	1 => LAN_CONVERT_58, 
-+	    	2 => LAN_CONVERT_59,
-+			3 => LAN_CONVERT_60, 
-+			4 => LAN_CONVERT_61, 
-+			5 => LAN_CONVERT_62,
-+			6 => LAN_CONVERT_63
+	    	1 => LAN_CONVERT_58, 
+	    	2 => LAN_CONVERT_59,
+			3 => LAN_CONVERT_60, 
+			4 => LAN_CONVERT_61, 
+			5 => LAN_CONVERT_62,
+			6 => LAN_CONVERT_63
 		);
 		
 		if (isset($errorTexts[$errnum])) return $errorTexts[$errnum];
@@ -339,13 +339,13 @@ class userclass_import
 	function getErrorText($errnum)    // these errors are presumptuous and misleading. especially '4' .
 	{
 		$errorTexts = array(
-	    	0 => 'No error',
-	    	1 => 'Can\'t change main admin data',
-	    	2 => 'invalid field passed',
-			3 => 'Mandatory field not set',
-			4 => 'Entry already exists',
-			5 => 'Invalid characters in user or login name',
-			6 => 'Error saving extended user fields'
+	    	0 => LAN_CONVERT_57, 
+	    	1 => LAN_CONVERT_58, 
+	    	2 => LAN_CONVERT_59,
+			3 => LAN_CONVERT_60, 
+			4 => LAN_CONVERT_61, 
+			5 => LAN_CONVERT_62,
+			6 => LAN_CONVERT_63
 		);
 
 		if (isset($errorTexts[$errnum])) return $errorTexts[$errnum];

From e97551bd01a1afc98c36ed9b0963fac01021d92c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor?= <yesszus@gmail.com>
Date: Sun, 2 Apr 2017 10:44:28 +0200
Subject: [PATCH 7/9] Update import_links_class.php

---
 e107_plugins/import/import_links_class.php | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/e107_plugins/import/import_links_class.php b/e107_plugins/import/import_links_class.php
index 020f32b52..bd907de16 100644
--- a/e107_plugins/import/import_links_class.php
+++ b/e107_plugins/import/import_links_class.php
@@ -107,13 +107,13 @@ class links_import
 	function getErrorText($errnum)    // these errors are presumptuous and misleading. especially '4' .
 	{
 		$errorTexts = array(
-	    	0 => 'No error', 
-	    	1 => 'Can\'t change main admin data', 
-	    	2 => 'invalid field passed',
-			3 => 'Mandatory field not set', 
-			4 => 'Entry already exists', 
-			5 => 'Invalid characters in user or login name',
-			6 => 'Error saving extended user fields'
+	    	0 => LAN_CONVERT_57, 
+	    	1 => LAN_CONVERT_58, 
+	    	2 => LAN_CONVERT_59,
+			3 => LAN_CONVERT_60, 
+			4 => LAN_CONVERT_61, 
+			5 => LAN_CONVERT_62,
+			6 => LAN_CONVERT_63
 		);
 			
 		if (isset($errorTexts[$errnum])) return $errorTexts[$errnum];
@@ -127,4 +127,4 @@ class links_import
 }
 
 
-?>
\ No newline at end of file
+?>

From f2c02e7642bc3ec6ed8312ab5aaf076bc59b6ecc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor?= <yesszus@gmail.com>
Date: Sun, 2 Apr 2017 10:45:06 +0200
Subject: [PATCH 8/9] Update import_news_class.php

---
 e107_plugins/import/import_news_class.php | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/e107_plugins/import/import_news_class.php b/e107_plugins/import/import_news_class.php
index 8fb10f6ab..d77216212 100644
--- a/e107_plugins/import/import_news_class.php
+++ b/e107_plugins/import/import_news_class.php
@@ -116,13 +116,13 @@ class news_import
 	function getErrorText($errnum)    // these errors are presumptuous and misleading. especially '4' .
 	{
 		$errorTexts = array(
-	    	0 => 'No error', 
-	    	1 => 'Can\'t change main admin data', 
-	    	2 => 'invalid field passed',
-			3 => 'Mandatory field not set', 
-			4 => 'Entry already exists', 
-			5 => 'Invalid characters in user or login name',
-			6 => 'Error saving extended user fields'
+	    	0 => LAN_CONVERT_57, 
+	    	1 => LAN_CONVERT_58, 
+	    	2 => LAN_CONVERT_59,
+			3 => LAN_CONVERT_60, 
+			4 => LAN_CONVERT_61, 
+			5 => LAN_CONVERT_62,
+			6 => LAN_CONVERT_63
 		);
 			
 		if (isset($errorTexts[$errnum])) return $errorTexts[$errnum];
@@ -220,4 +220,4 @@ class newscategory_import
 }
 
 
-?>
\ No newline at end of file
+?>

From 7affb6cb19be77a2890873bd20a629ced34b97f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor?= <yesszus@gmail.com>
Date: Sun, 2 Apr 2017 10:45:44 +0200
Subject: [PATCH 9/9] Update import_page_class.php

---
 e107_plugins/import/import_page_class.php | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/e107_plugins/import/import_page_class.php b/e107_plugins/import/import_page_class.php
index 18d43c1b7..f1fad4b9e 100644
--- a/e107_plugins/import/import_page_class.php
+++ b/e107_plugins/import/import_page_class.php
@@ -226,13 +226,13 @@ class pagechapter_import
 	function getErrorText($errnum)    // these errors are presumptuous and misleading. especially '4' .
 	{
 		$errorTexts = array(
-	    	0 => 'No error',
-	    	1 => 'Can\'t change main admin data',
-	    	2 => 'invalid field passed',
-			3 => 'Mandatory field not set',
-			4 => 'Entry already exists',
-			5 => 'Invalid characters in user or login name',
-			6 => 'Error saving extended user fields'
+	    	0 => LAN_CONVERT_57, 
+	    	1 => LAN_CONVERT_58, 
+	    	2 => LAN_CONVERT_59,
+			3 => LAN_CONVERT_60, 
+			4 => LAN_CONVERT_61, 
+			5 => LAN_CONVERT_62,
+			6 => LAN_CONVERT_63
 		);
 
 		if (isset($errorTexts[$errnum])) return $errorTexts[$errnum];
@@ -246,4 +246,4 @@ class pagechapter_import
 }
 
 
-?>
\ No newline at end of file
+?>