OSDN Git Service

localized createaccount.php
authorkimitake <kimitake@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 24 Oct 2007 09:05:58 +0000 (09:05 +0000)
committerkimitake <kimitake@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Wed, 24 Oct 2007 09:05:58 +0000 (09:05 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/branches/branch-3-3@338 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/createaccount.php
utf8/nucleus/language/english.php
utf8/nucleus/language/japanese-utf8.php
utf8/nucleus/libs/ACTION.php

index 2b12d19..51d3449 100644 (file)
@@ -18,7 +18,7 @@
 </head>
 <body>
 
-       <h1>Create Account</h1>
+       <h1><?php echo _CREATE_ACCOUNT0?></h1>
 
 <?php
        // show form only if Visitors are allowed to create a Member Account
        <input type="hidden" name="showform" value="1" />
        <input type="hidden" name="action" value="createaccount" />
        
-               Login Name (required): 
+               <?php echo _CREATE_ACCOUNT_LOGIN_NAME?>
                <br />
                <input name="name" size="20" /> <small>(only a-z, 0-9)</small>
                <br />
                <br />          
-               Real Name (required): 
+               <?php echo _CREATE_ACCOUNT_REAL_NAME?>
                <br />
                <input name="realname" size="40" />
                <br />
                <br />          
-               Email (required):
+               <?php echo _CREATE_ACCOUNT_EMAIL?>
                <br />
-               <input name="email" size="40" /> <small>(must be valid, because an activation link will be sent over there)</small>
+               <input name="email" size="40" /> <small><?php echo _CREATE_ACCOUNT_EMAIL2?></small>
                <br />
                <br />          
-               URL: 
+               <?php echo _CREATE_ACCOUNT_URL?>
                <br />
                <input name="url" size="60" />
                <br />
@@ -60,7 +60,7 @@
                ?>
                <br />
                <br />                                          
-               <input type="submit" value="Create Account" />
+               <input type="submit" value="<?php echo _CREATE_ACCOUNT_SUBMIT?>" />
        </div>
 
        </form>
        <input type="hidden" name="showform" value="1" />
        <input type="hidden" name="action" value="createaccount" />
        
-               Login Name (required): 
+               <?php echo _CREATE_ACCOUNT_LOGIN_NAME?> 
                <br />
                <input name="name" size="20" <?php if(isset($_POST['name'])){echo 'value="'.htmlspecialchars($_POST['name']).'"';}?>/> <small>(only a-z, 0-9)</small>
                <br />
                <br />          
-               Real Name (required): 
+               <?php echo _CREATE_ACCOUNT_REAL_NAME?> 
                <br />
                <input name="realname" size="40" <?php if(isset($_POST['realname'])){echo 'value="'.htmlspecialchars($_POST['realname']).'"';}?>/>
                <br />
                <br />          
-               Email (required):
+               <?php echo _CREATE_ACCOUNT_EMAIL?>
                <br />
-               <input name="email" size="40" <?php if(isset($_POST['email'])){echo 'value="'.htmlspecialchars($_POST['email']).'"';}?>/> <small>(must be valid, because an activation link will be sent over there)</small>
+               <input name="email" size="40" <?php if(isset($_POST['email'])){echo 'value="'.htmlspecialchars($_POST['email']).'"';}?>/> <small><?php echo _CREATE_ACCOUNT_EMAIL2?></small>
                <br />
                <br />          
-               URL: 
+               <?php echo _CREATE_ACCOUNT_URL?> 
                <br />
                <input name="url" size="60" <?php if(isset($_POST['url'])){echo 'value="'.htmlspecialchars($_POST['url']).'"';}?>/>
                <br />
                ?>
                <br />
                <br />
-               <input type="submit" value="Create Account" />
-       </div>
+               <input type="submit" value="<?php echo _CREATE_ACCOUNT_SUBMIT?>" />
+
 
        </form>
 <?php
 
 }
 else { 
-       echo 'Visitors are not allowed to create a Member Account.<br /><br />';
-       echo 'Please contact the website administrator for more information.';
+       echo _CREATE_ACCOUNT1;
+       echo _CREATE_ACCOUNT2;
 }
 ?>
        
        
 </body>
-</html>
\ No newline at end of file
+</html>
index 9510a75..d5ff737 100755 (executable)
 // Fully translated language file can be sent to us and will be made
 // available for download (with proper credit to the author, of course)
 
+// START changed/added after 3.31 START
+define('_CREATE_ACCOUNT0', 'Create Account');
+define('_CREATE_ACCOUNT1', 'Visitors are not allowed to create a Member Account.<br /><br />');
+define('_CREATE_ACCOUNT2', 'Please contact the website administrator for more information.');
+define('_CREATE_ACCOUNT_LOGIN_NAME',   'Login Name (required):');
+define('_CREATE_ACCOUNT_REAL_NAME',            'Real Name (required):');
+define('_CREATE_ACCOUNT_EMAIL',                        'Email (required):');
+define('_CREATE_ACCOUNT_EMAIL2',               '(must be valid, because an activation link will be sent over there)');
+define('_CREATE_ACCOUNT_URL',                  'URL:');
+define('_CREATE_ACCOUNT_SUBMIT',               'Create Account');
+
+
 // START changed/added after 3.3 START
 define('_AUTOSAVEDRAFT',               'Auto save draft');
 define('_AUTOSAVEDRAFT_LASTSAVED',     'Last saved: ');
index a8788aa..63869a7 100755 (executable)
@@ -30,6 +30,17 @@ define('_BOOKMARKLET_SEND_PING',     'アイテムの追加に成功しました。
 
 // END merge UTF-8 and EUC-JP
 
+// START changed/added after 3.31 START
+define('_CREATE_ACCOUNT0', 'アカウントの作成');
+define('_CREATE_ACCOUNT1', 'ビジターのよるメンバーアカウントの作成は許可されていません。<br /><br />');
+define('_CREATE_ACCOUNT2', '詳細はウェブサイトの管理者にお問い合わせください。');
+define('_CREATE_ACCOUNT_LOGIN_NAME',   'ログイン名 (必須):');
+define('_CREATE_ACCOUNT_REAL_NAME',            '本名 (必須):');
+define('_CREATE_ACCOUNT_EMAIL',                        'Email (必須):');
+define('_CREATE_ACCOUNT_EMAIL2',               '(アクティベーション用のリンクが送られるので有効なものを使用してください)');
+define('_CREATE_ACCOUNT_URL',                  'URL:');
+define('_CREATE_ACCOUNT_SUBMIT',               'アカウントの作成');
+
 
 // START changed/added after 3.3 START
 define('_AUTOSAVEDRAFT',                       'ドラフト保存状況');
index 3208a25..50c31d8 100755 (executable)
@@ -15,8 +15,8 @@
  *
  * @license http://nucleuscms.org/license.txt GNU General Public License
  * @copyright Copyright (C) 2002-2007 The Nucleus Group
- * @version $Id: ACTION.php,v 1.8.2.2 2007-10-23 06:24:50 kimitake Exp $
- * $NucleusJP: ACTION.php,v 1.8.2.1 2007/08/08 05:17:54 kimitake Exp $
+ * @version $Id: ACTION.php,v 1.8.2.3 2007-10-24 09:05:58 kimitake Exp $
+ * $NucleusJP: ACTION.php,v 1.8.2.2 2007/10/23 06:24:50 kimitake Exp $
  */
 class ACTION
 {
@@ -229,7 +229,8 @@ class ACTION
                        if (postVar('desturl')) {
                                redirect(postVar('desturl'));
                        } else {
-                               header ("Content-Type: text/html; charset="._CHARSET);
+                               // header has been already sent, so deleted the line below
+                               //header ("Content-Type: text/html; charset="._CHARSET);
                                echo _MSG_ACTIVATION_SENT;
                        }
                        exit;
@@ -413,4 +414,4 @@ class ACTION
 
 }
 
-?>
\ No newline at end of file
+?>