From 0632618a9d0afe4a6a6d9785777ffae079ba56b8 Mon Sep 17 00:00:00 2001
From: Kelly Rauchenberger <fefferburbia@gmail.com>
Date: Sun, 24 Aug 2008 19:48:02 +0000
Subject: Update: Localized phpBB3 ACP field descriptions

Refs #7
---
 .../phpBB3/trunk/root/adm/style/acp_instadisc.html | 20 ++++++-------
 .../trunk/root/includes/acp/acp_instadisc.php      |  4 +--
 .../trunk/root/language/en/mods/instadisc.php      | 33 ++++++++++++++--------
 3 files changed, 33 insertions(+), 24 deletions(-)

(limited to 'update/plugin')

diff --git a/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html b/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html
index a3e60da..6e8249d 100644
--- a/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html
+++ b/update/plugin/phpBB3/trunk/root/adm/style/acp_instadisc.html
@@ -18,41 +18,41 @@
 		<DL>
 			<DT>
 				<LABEL FOR="subscription_file">{L_SUBSCRIPTION_FILE}</LABEL>
-				<BR><SPAN>This is the URL of your subscription file</SPAN>
+				<BR><SPAN>{L_SUBSCRIPTION_FILE_DESC}</SPAN>
 			</DT>
 			<DD>{S_SUBSCRIPTION_FILE}</DD>
 		</DL>
 		<DL>
-			<dt><label for="central_server">{L_CENTRAL_SERVER}:</label><BR>
-				<SPAN>This is the Central Server's XML-RPC URL. They should have provided this for you in an email and also on their site. </SPAN>
-				</dt>
-			<dd><input name="central_server" type="text" id="central_server" maxlength="255" VALUE="{S_CENTRAL_SERVER}" SIZE="40"/></dd>
-		</dl>
+			<DT><label for="central_server">{L_CENTRAL_SERVER}:</label><BR>
+				<SPAN>{L_CENTRAL_SERVER_DESC}</SPAN>
+			</DT>
+			<DD><input name="central_server" type="text" id="central_server" maxlength="255" VALUE="{S_CENTRAL_SERVER}" SIZE="40"/></DD>
+		</DL>
 		<DL>
 			<DT>
 				<LABEL FOR="central_server_username">{L_USERNAME}</LABEL>
-				<BR><SPAN>Enter the username you registered for at your Central Server</SPAN>
+				<BR><SPAN>{L_USERNAME_DESC}</SPAN>
 			</DT>
 			<DD><INPUT NAME="central_server_username" TYPE="text" ID="central_server_username" MAXLENGTH="255" VALUE="{S_USERNAME}" SIZE="40"></DD>
 		</DL>
 		<DL>
 			<DT>
 				<LABEL FOR="central_server_password">{L_PASSWORD}</LABEL>
-				<BR><SPAN>Enter the password to go with the username above</SPAN>
+				<BR><SPAN>{L_PASSWORD_DESC}</SPAN>
 			</DT>
 			<DD><INPUT NAME="central_server_password" TYPE="password" ID="central_server_password" MAXLENGTH="255" VALUE="{S_PASSWORD}" SIZE="40"></DD>
 		</DL>
 		<DL>
 			<DT>
 				<LABEL FOR="central_server_activation">{L_ACTIVATION}</LABEL>
-				<BR><SPAN>After submitting your subscription for sponsership at your Central Server, it should provide you with an Activation Key</SPAN>
+				<BR><SPAN>{L_ACTIVATION_DESC}</SPAN>
 			</DT>
 			<DD><INPUT NAME="central_server_activation" TYPE="text" ID="central_server_activation" MAXLENGTH="255" VALUE="{S_ACTIVATION}" SIZE="40"></DD>
 		</DL>
 		<DL>
 			<DT>
 				<LABEL FOR="encryption_key">{L_ENCRYPTION}</LABEL>
-				<BR><SPAN>If you have the PHP module "mcrypt" installed, you can password protect this subscription so that users who wish to subscribe to it must provide the correct password. Leave this field blank if you do not wish to encrypt this subscription.</SPAN>
+				<BR><SPAN>{L_ENCRYPTION_DESC}</SPAN>
 			</DT>
 			<DD><INPUT NAME="encryption_key" TYPE="text" ID="encryption_key" MAXLENGTH="255" VALUE="{S_ENCRYPTION}" SIZE="40"></DD>
 		</DL>
diff --git a/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php
index 71eaef1..d5bcbd1 100644
--- a/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php
+++ b/update/plugin/phpBB3/trunk/root/includes/acp/acp_instadisc.php
@@ -25,7 +25,7 @@ class acp_instadisc
 		// Set up the page
 		$this->tpl_name		= 'acp_instadisc';
 		$this->page_title	= 'ACP_INSTADISC';
-		$submit		= isset($_POST['submit']) ? true : false;
+		$submit			= isset($_POST['submit']) ? true : false;
 
 		if ($submit)
 		{
@@ -37,7 +37,7 @@ class acp_instadisc
 			set_config('id_activation_key', $_POST['central_server_activation']);
 			set_config('id_encryption_key', $_POST['encryption_key']);
 
-			trigger_error('The changes you made to your InstaDisc settings have been saved!' . adm_back_link($this->u_action), E_USER_NOTICE);
+			trigger_error($user->lang['ID_CHANGES_SAVED'] . adm_back_link($this->u_action), E_USER_NOTICE);
 		} else {
 			$idst	= isset($config['id_subscription_title']) ? $config['id_subscription_title'] : $config['sitename'];
 			$idcs	= isset($config['id_central_server']) ? $config['id_central_server'] : '';
diff --git a/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php b/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php
index 17023c6..c82e10d 100644
--- a/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php
+++ b/update/plugin/phpBB3/trunk/root/language/en/mods/instadisc.php
@@ -33,22 +33,31 @@ if (empty($lang) || !is_array($lang))
 $lang = array_merge($lang, array(
 	'ACP_INSTADISC'		=> 'InstaDisc',
 
-	'INSTADISC'		=> 'InstaDisc',
-	'INSTADISC_EXPLAIN'	=> 'Welcome to the InstaDisc Update Server admin panel. To set up your subscriptions, you have to do a few things. For more information, see',
-	'INSTADISC_LINK_TEXT'	=> 'the InstaDisc phpBB3 plugin page',
+	'INSTADISC'			=> 'InstaDisc',
+	'INSTADISC_EXPLAIN'		=> 'Welcome to the InstaDisc Update Server admin panel. To set up your subscriptions, you have to do a few things. For more information, see',
+	'INSTADISC_LINK_TEXT'		=> 'the InstaDisc phpBB3 plugin page',
 
-	'SUBSCRIPTION'		=> 'Subscription',
-	'SUBSCRIPTION_TITLE'	=> 'Subscription Title',
-	'SUBSCRIPTION_FILE'	=> 'Subscription File URL',
+	'SUBSCRIPTION'			=> 'Subscription',
+	'SUBSCRIPTION_TITLE'		=> 'Subscription Title',
+	'SUBSCRIPTION_FILE'		=> 'Subscription File URL',
 
-	'CENTRAL_SERVER'	=> 'Central Server',
-	'USERNAME'		=> 'Username',
-	'PASSWORD'		=> 'Password',
-	'ACTIVATION'		=> 'Activation Key',
+	'CENTRAL_SERVER'		=> 'Central Server',
+	'USERNAME'			=> 'Username',
+	'PASSWORD'			=> 'Password',
+	'ACTIVATION'			=> 'Activation Key',
 
-	'ENCRYPTION'		=> 'Encryption Key',
+	'ENCRYPTION'			=> 'Encryption Key',
 
-	'LN'			=> "\n",
+	'SUBSCRIPTION_FILE_DESC'	=> 'This is the URL of your subscription file',
+	'CENTRAL_SERVER_DESC'		=> 'This is the Central Server\'s XML-RPC URL. They should have provided this for you in an email and also on their site.',
+	'USERNAME_DESC'			=> 'Enter the username you registered for at your Central Server',
+	'PASSWORD_DESC'			=> 'Enter the password to go with the username above',
+	'ACTIVATION_DESC'		=> 'After submitting your subscription for sponsership at your Central Server, it should provide you with an Activation Key',
+	'ENCRYPTION_DESC'		=> 'If you have the PHP module "mcrypt" installed, you can password protect this subscription so that users who wish to subscribe to it must provide the correct password. Leave this field blank if you do not wish to encrypt this subscription.',
+
+	'ID_CHANGES_SAVED'		=> 'The changes you made to your InstaDisc settings have been saved!',
+
+	'LN'				=> "\n",
 ));
 			
 ?>
-- 
cgit 1.4.1