The following file adds Japanese language support to reCAPTCHA MediaWiki extension v.1.7[1]. Simply replace the file ReCaptcha.i18n.php in the installation package or copy and paste the Japanese array. You may see the Japanese language support in action at KyotoWiki.
Please make sure that you save the file without BOM as otherwise your site will no longer properly validate.
<?php
/**
* Internationalisation file for the reCAPTCHA extension.
*
* @addtogroup Extensions
*/
function efReCaptchaMessages() {
return array(
/* English */
'en' => array(
'recaptcha-edit' => 'To help protect against automated edit spam, please type the two words you see in the box below:',
'recaptcha-addurl' => 'Your edit includes new external links. To help protect against automated
spam, please type the two words you see in the box below:',
'recaptcha-badpass' => 'To help protect against automated password cracking, please type the two words you see in the box below:',
'recaptcha-createaccount' => 'To help protect against automated account creation, please type the two words you see in the box below:',
'recaptcha-createaccount-fail' => 'Incorrect or missing reCAPTCHA answer.',
'recaptcha-create' => 'To help protect against automated page creation, please type the two words you see in the box below:',
),
/* Japanese - 日本語 */
'ja' => array(
'recaptcha-edit' => '自動編集スパムからの保護のため、下の画像に表示されている2つの言葉を入力 してください。',
'recaptcha-addurl' => 'あなたの編集は新しい外部リンクを含んでいます。自動スパムからの保護のた め、下の画像に表示されている2つの言葉を入力してください。',
'recaptcha-badpass' => '自動パスワードクラッキングからの保護のために、下の画像に表示されている2 つの言葉を入力してください。',
'recaptcha-createaccount' => '自動アカウント登録からの保護のために、下の画像に表示されている2つの言葉 を入力してください。',
'recaptcha-createaccount-fail' => '入力された文字列が正しくありません。',
'recaptcha-create' => '自動ページ作成からの保護のために、下の画像に表示されている2つの言葉を入 力してください。',
),
/* TODO - more languages */
);
}
?>
References
Comments
Post new comment