Last modified: 2007-04-25 16:53:57 UTC
Made reference "You will need to have cookies enabled in your browser for this to work." optional. This is moved to captchahelp-cookies-needed, which replaces $1 on captchahelp-text if wgCaptchaStorageClass uses cookies (exposed via cookies_needed() ). Added Es internationalization. En and Fr updated to use captchahelp-cookies-needed. Languages not using it use old method (no changes).
Created attachment 3271 [details] captchahelp-cookies-needed + Es internationalization
A few notes: * Avoid putting whitespace (spaces or newlines) at the end of messages; trailing whitespace is removed when pages are saved, so a message ending in \n couldn't be saved as an in-wiki customization properly. * This line is very odd: + $wgOut->addWikiText( str_replace('$1', $this->storage->cookies_needed() ? wfMsg( 'captchahelp-cookies-needed' ) : '', wfMsg( 'captchahelp-text' ) ) ); wfMsg() takes parameters; use them! * Stick with naming conventions; cookieNeeded instead of cookie_needed
Created attachment 3295 [details] captchahelp-cookies-needed + Es internationalization v2 *Line feeds moved to the beginning (they are added so captchahelp-cookies-needed appears on its own line, while avoiding extra lines if it doesn't appear). *Didn't know. Done. *Changed to camelCase.
Applied with r21574.