+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Form Captcha control not localizable

Form Captcha control not localizable

3 posts, 0 answered
  1. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    05 Sep 2014
    Link to this post

    @Telerik

    Any news on this. How many votes to make it happen :-)

     Unless I am mistaken the captcha for forms is not localizable :-/

     Some have more then one language and its kind of unprofessional to have English text on German page. 

    http://feedback.telerik.com/Project/153/Feedback/Details/125592-form-captcha-control-localizable

     

    Markus

     

    I thought I had a post but did not find it (maybe it was a support ticket)

  2. Sabrie Nedzhip
    Sabrie Nedzhip avatar
    534 posts
    Registered:
    06 Dec 2016
    10 Sep 2014
    Link to this post
    Hello Markus,

    Currently, the form captcha control is not localizable. In order to localize the fields you need to implement a custom solution by extending the default form captcha control and plugin your custom logic there.

    You may take a look at the following articles for more details:

    1. https://demos.telerik.com/aspnet-ajax/captcha/examples/localization/defaultcs.aspx
    2. http://www.telerik.com/help/aspnet-ajax/captcha-localization.html

    Here is also a sample code as we have suggested in the support ticket you have opened illustrating how you can add your custom logic in the custom form captcha control and change the field values:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using Telerik.Sitefinity.Modules.Forms.Web.UI.Fields;
      
    namespace SitefinityWebApp
    {
        public class CustomFormsCaptcha : FormCaptcha
        {
            protected override void InitializeControls(Telerik.Sitefinity.Web.UI.GenericContainer container)
            {
                this.Captcha.CaptchaLinkButtonText = "This is the custom link";
                this.Captcha.CaptchaTextBoxLabel = "This is custom label";
      
                base.InitializeControls(container);
            }
        }
    }


    Regards,
    Sabrie Nedzhip
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    11 Sep 2014 in reply to Sabrie Nedzhip
    Link to this post

    Dear Sabri

     a) I now know why I saw a usercontrol captcha some time back in one of my projects. I guess I have come across that problem before

    b) Do you know if the Captcha Team has an outstanding feature request for localization in a bit simpler way. 

     To have to do this for every single project is kind of a hassle. Even more confusing is that you can change the text, or some text in the advanced tab of the control within SF.

     Markus

3 posts, 0 answered