test
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • hriedel Friend
    #164038

    Hi.

    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:

    and the timestamp:

    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 Friend
    #391426

    You 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 Friend
    #391433

    Thank 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 Friend
    #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 Friend
    #391574

    The 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 Friend
    #391595

    You 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 file

    hriedel Friend
    #391681

    Thank 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 Friend
    #391875

    My <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 Friend
    #391903

    Hi.

    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 Friend
    #392129

    Sorry 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 localhost

    hriedel Friend
    #392154

    Hi 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.php

    to 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.

    khoand Friend
    #392259

    I informed your idea to development team. Thank you

    Stork11 Friend
    #392566

    Hello 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).

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

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