{if $recaptchaLegacyMode|empty}
{include file='captcha'}
{else}
{if RECAPTCHA_PUBLICKEY && RECAPTCHA_PRIVATEKEY}
{if $supportsAsyncCaptcha|isset && $supportsAsyncCaptcha && RECAPTCHA_PUBLICKEY_INVISIBLE && RECAPTCHA_PRIVATEKEY_INVISIBLE}
{lang}wcf.recaptcha.title{/lang}
{assign var="recaptchaBucketID" value=true|microtime|sha1}
-
{if (($errorType|isset && $errorType|is_array && $errorType[recaptchaString]|isset) || ($errorField|isset && $errorField == 'recaptchaString'))}
{if $errorType|is_array && $errorType[recaptchaString]|isset}
{assign var='__errorType' value=$errorType[recaptchaString]}
{else}
{assign var='__errorType' value=$errorType}
{/if}
{if $__errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{else}
{lang}wcf.captcha.recaptchaInvisible.error.recaptchaString.{$__errorType}{/lang}
{/if}
{/if}
{else}
{lang}wcf.recaptcha.title{/lang}
{assign var="recaptchaBucketID" value=true|microtime|sha1}
-
{if (($errorType|isset && $errorType|is_array && $errorType[recaptchaString]|isset) || ($errorField|isset && $errorField == 'recaptchaString'))}
{if $errorType|is_array && $errorType[recaptchaString]|isset}
{assign var='__errorType' value=$errorType[recaptchaString]}
{else}
{assign var='__errorType' value=$errorType}
{/if}
{if $__errorType == 'empty'}
{lang}wcf.global.form.error.empty{/lang}
{else}
{lang}wcf.captcha.recaptchaV2.error.recaptchaString.{$__errorType}{/lang}
{/if}
{/if}
{/if}
{/if}
{/if}