Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • Tech-xml Friend
    #156108

    How to translate date display to Portuguese Brazil?

    Saguaros Moderator
    #361897

    Hello insofticursos!

    can you pls provide more information on the issue, would you like to translate data of articles, k2 content to Portuguese Brazil ? if so , you only get a package in here: http://extensions.joomla.org/extensions/languages/translations-for-joomla

    Tech-xml Friend
    #361936

    Joomla and K2 are already using the same language Portguês Brazil.
    The attached picture shows where will be the translation.

    9575

    9576


    1. Capturar1
    2. Capturar2
    Tech-xml Friend
    #362286

    unsolved:((

    Tech-xml Friend
    #362480

    I am not a solution since: 06/11/2010
    Where do the translation of the Portuguese language-date for Brazil?

    Tech-xml Friend
    #362612

    I’m having a very serious problem. Already asked the forum support, ticket: #OKU-246-91683 and still no response.
    Please help me solve this problem.

    mainostakomo Friend
    #362716

    My solution:

    Open file templates/ja_events/html/com_content/frontpage/default_item.php
    and change this:

    <?php
    if ($this->params->get('show_create_date')) :
    $createDay = date('d', strtotime( $this->item->created));
    $createMonth = date('M', strtotime( $this->item->created));
    $createYear = date('Y', strtotime( $this->item->created));
    ?>

    to this:

    <?php
    if ($this->params->get('show_create_date')) :
    $createDay = date('d', strtotime( $this->item->created));
    $createMonth = date('m', strtotime( $this->item->created));
    $createYear = date('Y', strtotime( $this->item->created));
    ?>

    Then open file templates/ja_events/html/com_content/article/default.php
    and change this:

    <?php
    if ($this->params->get('show_create_date')) :
    $createDay = date('d', strtotime( $this->article->created));
    $createMonth = date('M', strtotime( $this->article->created));
    $createYear = date('Y', strtotime( $this->article->created));
    ?>

    to this:

    <?php
    if ($this->params->get('show_create_date')) :
    $createDay = date('d', strtotime( $this->article->created));
    $createMonth = date('m', strtotime( $this->article->created));
    $createYear = date('Y', strtotime( $this->article->created));
    ?>

    I do not think that this is the best solution to the problem.
    There have been a lot of language/date format problems in all new JoomlArt -templates after the introduction of T3 framework. So i think that the problem is in the T3 framework, but i am not sure about this.

    Saguaros Moderator
    #362722

    <em>@insofticursos 203233 wrote:</em><blockquote>I’m having a very serious problem. Already asked the forum support, ticket: #OKU-246-91683 and still no response.
    Please help me solve this problem.</blockquote>

    1) solution for content component:

    you open this file:
    + templates/ja_events/html/com_content/frontpage/default_item.php ,
    + templates/ja_events/html/com_content/category/default_item.php
    + templates/ja_events/html/com_content/section/default_item.php
    2) solution for k2 :You open the file:
    + templates/ja_events/html/com_k2/templates/ja_events/category_item.php,
    + /templates/ja_events/html/com_k2/templates/ja_events/item.php

    both use this:
    find:
    [PHP]
    $createMonth = date(‘M’, strtotime( $this->item->created));
    [/PHP]

    replace:
    [PHP]
    $createMonth = JText::_(date(‘F’, strtotime( $this->item->created)).”_SHORT”);
    [/PHP]

    Tech-xml Friend
    #362736

    No solution, mainostakomo the month is displayed in number. I need the month is shown abbreviated. Eg Jan, Feb, Mar ….

    mainostakomo Friend
    #362756

    Tienhc, your instruction was not quite right.

    There is no templates/ja_events/html/com_content/section -folder
    but there is templates/ja_events/html/com_content/article -folder.

    In templates/ja_events/html/com_content/frontpage/default_item.php
    find:

    $createMonth = date('M', strtotime( $this->item->created));

    and replace with:

    $createMonth = JText::_(date('F', strtotime( $this->item->created))."_SHORT");

    BUT, in templates/ja_events/html/com_content/article/default.php
    find:

    $createMonth = date('M', strtotime( $this->article->created));

    and replace with:

    $createMonth = JText::_(date('F', strtotime( $this->article->created))."_SHORT");

    Tech-xml Friend
    #362765

    Solved 😎
    Thanks

    myuption Friend
    #368211

    Also helpful to translate into spanish. 😀

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

This topic contains 12 replies, has 4 voices, and was last updated by  myuption 13 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum