Localize Log In control

Is it possible to localize Log In control?
No matter what I writte in resource files, Login control allways shows:
Username:
Password:
Remember me next time
Log In
2 people have
this problem
+1
Reply
  • Make sure to follow instructions at http://blog.codeontime.com/search/label/Globalization and Localization when localizing the app.

    You will have to refresh the browser cache (use F5 in IE) to ensure that the localized scripts are loaded.

    We will appreciate if you submit your localized file set to be included in the code generation library.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • I translated all files listed in the instructions to Spanish, including the file: aspnet_Membership.xml.txt but the login small square shown by uremovic won't translate when generated.

    Then I figured out that you need to include some missing parameters translated text for the Login System control (from the System.Web.UI.Web.Controls class), in the Login user control template in COT Designer, check out mine in Spanish: <%@ Register Src="Welcome.ascx" TagName="Welcome" TagPrefix="uc1" %>
    <div class="SettingsPanel">
    <asp:Login ID="Login1" runat="server" TitleText="" Style="border-collapse: separate;"
    CreateUserUrl="javascript:Web.Membership._instance.signUp();"
    PasswordRecoveryUrl="javascript:Web.Membership._instance.passwordRecovery();"
    CreateUserText="Inscribirse ahora"
    PasswordRecoveryText="¿Olvidó su contraseña?"
    RememberMeText="Recordarme la próxima vez."
    FailureText="Su intento de ingreso falló. Por favor inténtelo de nuevo."
    PasswordRequiredErrorMessage="Se requiere contraseña."
    UserNameLabelText="Usuario:"
    UserNameRequiredErrorMessage="Se requiere nombre de usuario."
    PasswordLabelText="Contraseña:"
    LoginButtonText="Ingresar"
    >
    </asp:Login>
    <div style="width: 300px; margin: 20px -8px;">
    <uc1:Welcome ID="Welcome1" runat="server" />
    </div>
    </div>
    This worked just fine for me.

    I wonder where those strings need to be included in the generator engine, because I tried to write localizable strings with corresponding translations in the Scripts-Web_MembershipResources.es.txt file accordingly i.e.:

    In the Login control template:RememberMeText="^RememberMeText^Remember me next time^RememberMeText^"
    In the Scripts-Web_MembershipResources.es.txt file|Remember me next time|
    |Recuérdeme la próxima vez|


    But it won't work.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • 1
    bertovega, thanks a lot! That really works. Now, when I see solution, it seems obvious :-)
    I have done all necessary steps for localization but generator somehow missed it. Maybe it is a bug that need to be solved.
    I'm glad to contribute localization resources files for Croatian language as soon as I translate them :-) I have translated only few statements to see how it works, and stucked by Login frame at beginning. I hope other resources work fine.
    Localization for other "objects" would be great to see in some future update (e.g. names of tables and column names).
    Tnx!
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated