-
AuthorPosts
-
Tech-xml Friend
Tech-xml
- Join date:
- October 2010
- Posts:
- 765
- Downloads:
- 39
- Uploads:
- 140
- Thanks:
- 106
- Thanked:
- 5 times in 2 posts
November 6, 2010 at 12:29 am #156108How to translate date display to Portuguese Brazil?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 8, 2010 at 7:41 am #361897Hello 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 FriendTech-xml
- Join date:
- October 2010
- Posts:
- 765
- Downloads:
- 39
- Uploads:
- 140
- Thanks:
- 106
- Thanked:
- 5 times in 2 posts
November 8, 2010 at 1:20 pm #361936Joomla and K2 are already using the same language Portguês Brazil.
The attached picture shows where will be the translation.9575
9576
-
Tech-xml Friend
Tech-xml
- Join date:
- October 2010
- Posts:
- 765
- Downloads:
- 39
- Uploads:
- 140
- Thanks:
- 106
- Thanked:
- 5 times in 2 posts
November 10, 2010 at 12:04 pm #362286unsolved:((
Tech-xml FriendTech-xml
- Join date:
- October 2010
- Posts:
- 765
- Downloads:
- 39
- Uploads:
- 140
- Thanks:
- 106
- Thanked:
- 5 times in 2 posts
November 11, 2010 at 5:54 pm #362480I am not a solution since: 06/11/2010
Where do the translation of the Portuguese language-date for Brazil?Tech-xml FriendTech-xml
- Join date:
- October 2010
- Posts:
- 765
- Downloads:
- 39
- Uploads:
- 140
- Thanks:
- 106
- Thanked:
- 5 times in 2 posts
November 12, 2010 at 2:53 pm #362612I’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.November 13, 2010 at 9:54 am #362716My 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 13, 2010 at 10:14 am #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.phpboth 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 FriendTech-xml
- Join date:
- October 2010
- Posts:
- 765
- Downloads:
- 39
- Uploads:
- 140
- Thanks:
- 106
- Thanked:
- 5 times in 2 posts
November 13, 2010 at 12:38 pm #362736No solution, mainostakomo the month is displayed in number. I need the month is shown abbreviated. Eg Jan, Feb, Mar ….
November 13, 2010 at 2:52 pm #362756Tienhc, 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");
-
AuthorPosts
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
Jump to forum