Radio Streaming - 50% Lifetime Discount with purchase of any Joomla Web Radio Addon. Discount Code: STR15-Z
See Radio Streaming Plans

Results 1 to 5 of 5

Thread: Translate moth

  1. #1
    Junior Member
    Join Date
    Sep 2016
    Posts
    3

    Question Translate moth

    Hi,
    how can I translate name of the moths for other Language (Polish)?
    I add photo.

  2. #2
    Super Moderator
    Join Date
    Mar 2012
    Posts
    183
    Hello,

    You need to make changes in 2 files.


    1) public_html/components/com_multileague/views/matches/tmpl/default.php


    in line 20 add:

    $lang = JFactory::getLanguage();

    in line 98 replace with the following between the <td></td>

    <?php
    if($lang->getName()=="Polish (PL)"){
    setlocale(LC_ALL,'pl_PL.UTF-8');
    }
    echo strftime("%d-%b %H:%M",strtotime($match['match_start_time']));
    ?>


    2) public_html/components/com_multileague/views/matchresults/tmpl/default.php


    in line 20 add:

    $lang = JFactory::getLanguage();

    in line 118 replace with the following between the <td></td>

    <?php
    if($lang->getName()=="Polish (PL)"){
    setlocale(LC_ALL,'pl_PL.UTF-8');
    }
    echo strftime("%d-%b %H:%M",strtotime($match['match_start_time']));
    ?>
    Last edited by 3hills; 23-09-2016 at 10:30 AM. Reason: For Master League Free
    Support Operator
    MultiHosting.com

  3. #3
    Junior Member
    Join Date
    Sep 2016
    Posts
    3
    Everything ok,but I use free version.

  4. #4
    Super Moderator
    Join Date
    Mar 2012
    Posts
    183
    Hello,

    I have edited my previous answer. Please follow the new process I described.
    Support Operator
    MultiHosting.com

  5. #5
    Can you speak Polish cockchafer - "chrabąszcz"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •