test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • henrik1782 Friend
    #175435

    I have tried to translate the Jalogin by copying the english language to da-DK language directory and translate the text strings. I have saved the file UTF-8 encoded.

    Some of the textstrings are shown correct but others are not and I just cant figure out why.

    It seems that it is the strings where the translation includes local danish characters.


    1. jalogin
    khoand Friend
    #445811

    You add the code into /language/da-DK/da-DK.mod_jalogin.ini


    CONFIRM_EMAIL_ADDRESS="your text"
    CONFIRM_PASSWORD="your text"

    and replace the code from /templates/ja_social/html/mod_jalogin/default.php

    Confirm Password
    with

    CONFIRM_PASSWORD
    replace

    Confirm email Address
    with

    CONFIRM_EMAIL_ADDRESS
    To translate “Login” and “Fields marked with an asterisk (*) are required.”, you change the code from /templates/ja_social/html/mod_jalogin/default.php

    Fields marked with an asterisk (*) are required.
    Replace the code

    <a class="login-switch" href="<?php echo JRoute::_('index.php?option=com_user&view=login');?>" onclick="showBox('ja-user-login','mod_login_username',this, window.event || event);return false;" title="<?php JText::_('Login');?>"><span>Login</span></a>
    with


    <a class="login-switch" href="<?php echo JRoute::_('index.php?option=com_user&view=login');?>" onclick="showBox('ja-user-login','mod_login_username',this, window.event || event);return false;" title="<?php JText::_('TXT_LOGIN');?>"><span><?php echo JText::_('TXT_LOGIN');?></span></a>

    henrik1782 Friend
    #445863

    Thanks a lot for your reply.

    It is a little confusing. The strings in da-DK.mod_jalogin.ini are named
    JACONFIRM_EMAIL_ADDRESS
    JGLOBAL_REPASSWORD

    The string “Fields marked with an asterisk (*) are required.” are hardcoded into default.php and need to be changed to with DESC_REQUIREMENT

    khoand Friend
    #446076

    – My da-DK.mod_jalogin.ini has no
    JACONFIRM_EMAIL_ADDRESS
    JGLOBAL_REPASSWORD
    DESC_REQUIREMENT
    – So I defined a new CONFIRM_PASSWORD, CONFIRM_EMAIL_ADDRESS. You can use JACONFIRM_EMAIL_ADDRESS, JGLOBAL_REPASSWORD by change
    + CONFIRM_PASSWORD to JGLOBAL_REPASSWORD
    + CONFIRM_EMAIL_ADDRESS to JACONFIRM_EMAIL_ADDRESS

    The string “Fields marked with an asterisk (*) are required.” are hardcoded into default.php

    You’re right. To used DESC_REQUIREMENT in da-DK.mod_jalogin.ini, you just replace the text from default.php

    Fields marked with an asterisk (*) are required.
    to

    DESC_REQUIREMENT

    khoand Friend
    #446077

    – My da-DK.mod_jalogin.ini has no
    JACONFIRM_EMAIL_ADDRESS
    JGLOBAL_REPASSWORD
    DESC_REQUIREMENT
    – So I defined a new CONFIRM_PASSWORD, CONFIRM_EMAIL_ADDRESS. You can use JACONFIRM_EMAIL_ADDRESS, JGLOBAL_REPASSWORD by change
    + CONFIRM_PASSWORD to JGLOBAL_REPASSWORD
    + CONFIRM_EMAIL_ADDRESS to JACONFIRM_EMAIL_ADDRESS

    The string “Fields marked with an asterisk (*) are required.” are hardcoded into default.php

    You’re right. To used DESC_REQUIREMENT in da-DK.mod_jalogin.ini, you just replace the text from default.php

    Fields marked with an asterisk (*) are required.

    to

    DESC_REQUIREMENT

    henrik1782 Friend
    #446596

    Thanks a lot khoand..

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 2 voices, and was last updated by  henrik1782 12 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum