-
AuthorPosts
-
henrik1782 Friend
henrik1782
- Join date:
- October 2011
- Posts:
- 109
- Downloads:
- 0
- Uploads:
- 35
- Thanks:
- 20
- Thanked:
- 5 times in 1 posts
March 27, 2012 at 1:18 am #175435I 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.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 27, 2012 at 2:51 am #445811You 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>1 user says Thank You to khoand for this useful post
henrik1782 Friendhenrik1782
- Join date:
- October 2011
- Posts:
- 109
- Downloads:
- 0
- Uploads:
- 35
- Thanks:
- 20
- Thanked:
- 5 times in 1 posts
March 27, 2012 at 8:31 am #445863Thanks a lot for your reply.
It is a little confusing. The strings in da-DK.mod_jalogin.ini are named
JACONFIRM_EMAIL_ADDRESS
JGLOBAL_REPASSWORDThe string “Fields marked with an asterisk (*) are required.” are hardcoded into default.php and need to be changed to with DESC_REQUIREMENT
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 28, 2012 at 8:12 am #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_ADDRESSThe 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 Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
March 28, 2012 at 8:12 am #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_ADDRESSThe 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
1 user says Thank You to khoand for this useful post
henrik1782 Friendhenrik1782
- Join date:
- October 2011
- Posts:
- 109
- Downloads:
- 0
- Uploads:
- 35
- Thanks:
- 20
- Thanked:
- 5 times in 1 posts
March 31, 2012 at 2:26 am #446596Thanks a lot khoand..
AuthorPostsViewing 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
Translation of Jalogin…
Viewing 6 posts - 1 through 6 (of 6 total)