-
AuthorPosts
-
September 15, 2011 at 10:34 pm #168603
Hi,
I have a little problem with JAcomment about the translation of certain words
For exemple :
“Quote” : translate in french
“comment as a guest” : no translate
“Reply” : translate in french
“submit comment” : no translateThe variables are in “fr-FR.com_jacomment.ini” and the translation too …
I don’t understand. Can anyone Help me please ?
Joomla 1.7.0 JA Comment 1.1.0
Franck
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 16, 2011 at 2:03 am #412991Hi
Would you mind update me a page you are talking about ?
Thank you
Viet VuSeptember 16, 2011 at 2:12 am #412992you can see an exemple here :
the component has some words in french and some in English
also the tooltipsjooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 16, 2011 at 2:19 am #412995Hi
I’ve just checked into code
<span class="jac-form-guest">
<label for="guestWebsite"><?php echo JText::_("TEXT_WEBSITE");?></label>
<input id="guestWebsite" name="website" type="text" class="field text inputbox jac-inner-text" value="<?php echo JText::_("TEXT_WEBSITE");?>" size="18" tabindex="4" title="<?php echo JText::_("OPTIONAL_TEXT"); echo JText::_("IF_YOU_HAVE_A_WEBSITE_TEXT");?>" />
<input type="hidden" value="<?php echo JText::_("TEXT_WEBSITE");?>" id="jac_hid_text_website">
</span>
<input type="button" class="btTxt" tabindex="9" onclick="postNewComment()" title="<?php echo JText::_("POST_NEW_COMMENT");?>" id="btlAddNewComment" value="<?php echo JText::_("SUBMIT_COMMENT");?>"/>
Actually it’s already used JText for translate able.
Would you mind check in fr language file have these translate string ?
Thank you
Viet VuSeptember 16, 2011 at 2:30 am #412999Sorry but I don’t understand … 🙁 What is JText ?
Franck
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 16, 2011 at 2:33 am #413000Hi
JText is a Joomla function to make text can translate able.
As my code posted above, our JA Comment already for translate able. I see have no issue here.
But would you mind check in your fr language file , does it already have these translate text for all of above ?
For sample:
TEXT_WEBSITE = 'your translate'
OPTIONAL_TEXT = 'your translate'
Thank you
Viet VuSeptember 16, 2011 at 2:42 am #413003ok thank’s for the information about JText
in fr-FR.com_jacomment.ini I have this :
TEXT_WEBSITE="Site Web"
OPTIONAL_TEXT="(Optionnel) "jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 16, 2011 at 2:47 am #413007Hi
Yo
Please translate it into your Fr language 😀
Thank you
Viet VuSeptember 16, 2011 at 3:00 am #413009The problem is they are already in the FR language .ini :((
on the website :
TEXT_WEBSITE is translate by “site web” -> ok
OPTIONAL_TEXT is no translate “(optional)” instead of “(optionnel)”that’s why I don’t understand
PS :
I use Notepad++ to edit my file, ’cause by the backend, the translation is no longer on the sitejooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 16, 2011 at 3:02 am #413010Let’s me check.
Because i’ve tested my local and everything working well.
ps:// got root for your contact issue
Notice: Undefined property: stdClass::$email_to in components/com_contact/controllers/contact.php on line 127
Thank you
Viet Vu1 user says Thank You to jooservices for this useful post
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 16, 2011 at 3:09 am #413011Got
Thank you sir, now i’ve reason to kill dev team.
please check into file
templates/ja_methys/html/com_jacomment/themes/methys/html/comments/addnew.php
Please replace line 112 by below code
<input id="guestWebsite" name="website" type="text" class="field text inputbox jac-inner-text" value="<?php echo JText::_("TEXT_WEBSITE");?>" size="18" tabindex="4" title="<?php echo JText::_("OPTIONAL_TEXT"); echo JText::_("IF_YOU_HAVE_A_WEBSITE_TEXT");?>" />
Reason. In template override dev put wrong translate string.
Thank you
Viet Vu1 user says Thank You to jooservices for this useful post
September 16, 2011 at 3:32 am #413017It’s works !!!!!!
Thank you very much VietVu 😎Now I must do the same for the button “submit comment” who’s not translated, the text “Comment as a guest or” and other tooltips.
I’ll try to search for, now that I have some clues.Thank you for your help, I’m sorry to leave but in France it is 05:30 am.
there are 20 hours that I’m up….
I’ll go to sleep a bit and I stay in contact for the contact form problemsThanks again Vietvu
sincerely
Franckjooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 16, 2011 at 3:37 am #413019You are welcome.
Thank you
Viet VuSeptember 16, 2011 at 4:00 pm #413114Hi franckyky,
Do you have Joomla 1.7 ?
I would like to translate the french .ini file. Are you ok to translate it together ?AuthorPostsThis topic contains 19 replies, has 3 voices, and was last updated by nosyweb 13 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum