You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Juan Pablo Santos Rodríguez (JIRA)" <ji...@apache.org> on 2008/03/17 23:54:24 UTC

[jira] Commented: (JSPWIKI-214) Captcha.jsp not fully localized

    [ https://issues.apache.org/jira/browse/JSPWIKI-214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579658#action_12579658 ] 

Juan Pablo Santos Rodríguez commented on JSPWIKI-214:
-----------------------------------------------------

Hi!

not very sure to understand the issue: AsirraClientSide.js, adds some HTML markup to the page. Until it has finished loading, both the "Please select all the cat photos:" and "Adopt me" labels remain in english, as they are hard-coded into the script. Once it finishes, the rest of the page also finishes loading, which triggers the i18nAsirra() function, translating those texts.

As you see, there is a small amount of time in which those labels remain untranslated, but I don't see how could we get rid of it. We could place i18nAsirra() just below AsirraClientSide.js, but I don't think it would speed up the process, as most of the time is spent loading the images. Placing i18nAsirra() inside the <body> onload event seemed the correct approach to me, but I'm not a javascript guru, so any suggestion is welcome :-)

You are referring to this small amount of time or you aren't getting any translation at all?

Regards,
jp

> Captcha.jsp not fully localized
> -------------------------------
>
>                 Key: JSPWIKI-214
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-214
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Localization
>    Affects Versions: 2.6.2
>            Reporter: Florian Holeczek
>            Priority: Minor
>
> In Captcha.jsp, the function i18nAsirra() doesn't produce what it should.
> Just an idea, I'm not so into Javascript programming:
> Maybe this is because the function is called onload of the body, which may be before assira's script http://challenge.asirra.com/js/AsirraClientSide.js is loaded?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.