-
AuthorPosts
-
hriedel Friend
hriedel
- Join date:
- May 2011
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
May 15, 2011 at 9:08 pm #164038Hi.
As mentioned in this thread:
http://www.joomlart.com/forums/topic/some-items-not-translated/
Not all items can be translated in the language.ini file.
Specifically the word NONE in the subcribe field:
Is it only in the .php files that can be edited?
If so, which .php file(s) is to be edited?
Im running version 1.0.2 on joomla 1.6.3.
Thanks.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 16, 2011 at 10:18 am #391426You find this code from <joomla url>languageen-GBen-GB.com_jacomment.ini file
NONE=None
YESTERDAY=Yesterday
DAYS=Days
AGO=Ago
MONTHS=Months
TOMORROW=Tomorrow
hriedel Friendhriedel
- Join date:
- May 2011
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
May 16, 2011 at 11:02 am #391433Thank you for your answer.
I guess you mean:
AGO=”Ago”
?Anyway, the text NONE does not appear in the language file as another user described in the above mentioned link. There is a php file that describes value=0 as NONE, value=1 as REPLIES and value=2 as COMMENTS.
COMMENTS and REPLIES can be translated in the language.ini file, but not the NONE text, because NONE is not a Jtext referral. I would change the text in the .php file if I knew which .php file that contains the text. I can only find the code when looking i up in a browser developer tool.
Same goes for timestamps. They are not translated in the language.ini file.
The text you refer to as
<em>@khoand 240687 wrote:</em><blockquote>You find this code from <joomla url>languageen-GBen-GB.com_jacomment.ini file
YESTERDAY=Yesterday
DAYS=Days
AGO=Ago
MONTHS=Months
TOMORROW=Tomorrow
</blockquote>is not translating anything in the frontend, as far as I can see. I have translated everything else, and that works perfectly, but for timestamps (and NONE text). My guess is that your examples from the language.ini file translates something in the backend.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 16, 2011 at 11:43 am #391442<blockquote>I guess you mean:
AGO=”Ago”
?</blockquote>
It has no quote. If your <joomla url>languageyour_languageyour_language.com_jacomment.ini file has no codes I mentioned. You just add them into the file.
I tested on my local and it works normally.hriedel Friendhriedel
- Join date:
- May 2011
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
May 17, 2011 at 8:29 am #391574The jacooment.ini file is with quotes on version 1.0.2. Both in my langugage and the en-GB file…
That can be confirmed by opening the editor within JA comments component.When typing a new line with NONE=”My language” or NONE=My language the file corrupts the text in the comments page, and everything is then shown as the Jtext referrals e.g. SUBSCRIBE_TO and REPLIES.
Could you please inform which .php file that generates the text NONE?
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 17, 2011 at 9:35 am #391595You try <joomla url>administratorlanguageen-GBen-GB.com_jacomment.ini.
There are 4 files that you want to: <joomla url>componentscom_jacommentthemesdefaulthtmlcommentsaddnew.php, <joomla url>administratorcomponentscom_jacommentviewscommentstmpldefault_edit.php, <joomla url>administratorcomponentscom_jacommentviewscommentstmpldefault_reply.php, <joomla url>com_jacommentthemesdefaulthtmlcommentsedit.php file1 user says Thank You to khoand for this useful post
hriedel Friendhriedel
- Join date:
- May 2011
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
May 17, 2011 at 8:08 pm #391681Thank you for the info.
I must admit I am still not getting any luck translating these small items. And when I add a new line to the language.ini file as you described, it starts over with capital letters e.g. SUBSCRIBE_TO.
Maybe you could send me the language file where you hae added the lines, and which you know works?
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 19, 2011 at 2:02 am #391875My <joomla url>languageen-GBen-GB.com_jacomment.ini file is attached file. If it doesn’t work, could you give me username+password of ftp to fix it?
hriedel Friendhriedel
- Join date:
- May 2011
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
May 19, 2011 at 6:28 am #391903Hi.
This file differs alot to the en-GB.com_jacomment.ini file that is in the installed version of JA comment in my system. Would that be because the one you have sent me is the joomla 1.5 version?
I stated in the first post I am using joomla 1.6.3.
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 20, 2011 at 12:59 pm #392129Sorry about inconvenience. My previous posts is used by Joomla 1.5. I don’t know why I add this code into languageen-GBen-GB.com_jacomment.ini file that cause invalid.
NONE="None"
You try another way:
– You replace this code from <joomla url>componentscom_jacommentthemesdefaulthtml commentsaddnew.php, <joomla url>administratorcomponentscom_jacommentviews commentstmpldefault_edit.php, <joomla url>administratorcomponentscom_jacommentviews commentstmpldefault_reply.php, <joomla url>com_jacommentthemesdefaulthtmlcommentsed it.php file:
JText::_("NONE")
with
JText::_("NONE1")
– Add this code into languageen-GBen-GB.com_jacomment.ini file
NONE1="None123"
It works on localhost1 user says Thank You to khoand for this useful post
hriedel Friendhriedel
- Join date:
- May 2011
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 6
- Thanked:
- 3 times in 1 posts
May 20, 2011 at 6:11 pm #392154Hi khoand.
No sweat, I bet you answer a lot of questions during the day. 🙂
It works now. 🙂
I changed the code in:
com_jacommentthemesdefaulthtml commentsaddnew.php
com_jacommentthemesdefaulthtmlcommentsedit.phpto NON insted of NONE
and then added the line in the file en-GB.com_jacomment:
NON=”My text”After that it works fine. I dont know either why the language file does not like the word NONE. I would recommend that you include this in the next upgrade, as this is something I (and others) would have to do everytime we upgrade the version.
At the same time I suggest that you add another possibility in regards to subscription. You can only choose subscription between replies and new comments. It would be logical if one could subscribe to BOTH replies and new comments.
1 user says Thank You to hriedel for this useful post
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 21, 2011 at 6:22 pm #392259I informed your idea to development team. Thank you
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
May 24, 2011 at 3:19 am #392566Hello hriedel and khoand,
I have just fixed the language issue. It will be released in our next version of JA Comment.
According to Joomla document, “NONE” is a keyword, so we can’t use it in language file (ref: http://docs.joomla.org/Specification_of_language_files).
-
AuthorPosts
This topic contains 13 replies, has 3 voices, and was last updated by Stork11 13 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum