-
AuthorPosts
-
September 22, 2011 at 7:39 am #168827
I’ve got a Joomla 1.5 site with Ja Portfolio template installed and Russian language in frontend.
I have a K2 section in my site with Ja Portfolio blog layout. K2 “category item layout” is configured to have template set to ja_portfolio_blog.
It is properly rendered from layout perspective but Month name is not properly localized.
You may check it by this link: http://vdvkiev.com.ua/%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8/%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8
Could it be fixed through language definition files?
— Max
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 22, 2011 at 11:23 am #414284Hi
For clearly, are you meaning
22
А� 2011
And “А�” is incorrected ?
Thank you
Viet VuSeptember 22, 2011 at 11:30 am #414290Yeah, exactly.
“А�” is incorrect.
It should be “Сен” just if you’re curious 🙂
— Max
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 22, 2011 at 11:32 am #414291Hi
Добрый вечер,
Please give me your FTP access via PM than i can help you
Thank you,
Viet VuSeptember 22, 2011 at 3:33 pm #414321Hi!
И вам добрый вечер.
I’ve sent ftp credentials over PM.
Hope this will help.
Thanks!
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 22, 2011 at 6:30 pm #414346Hi
I ‘ve fixed this. It look like our bugs.
But about text. I don’t know is it Августа or Сен ?
Because i don’t touch into translate file just fix template code.
Please let’s me know
Thank you
Viet Vu1 user says Thank You to jooservices for this useful post
September 23, 2011 at 5:58 am #414410Hi.
Thanks a lot – it’s fixed now. The month name is ok.
Two issues i’d like to clarify:
1. The month name should be truncated to three letters, e.g. “Авг” instead of “Августа”. Otherwise longer names will overlap with title.
2. Where did you fix it? Just curious.— Max
September 23, 2011 at 6:05 am #414411Hi,
I also noticed it’s not fixed in item view yet.
— Max
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 24, 2011 at 12:38 am #414528<em>@mkutny 269827 wrote:</em><blockquote>Hi,
I also noticed it’s not fixed in item view yet.
— Max</blockquote>
Hi,
Yes because follow your provided link i just fixed for Category page. And this’s my fix
/templates/ja_portfolio/html/com_k2/templates/ja_portfolio_blog/category_item.php
<div class="blog-post-date clearfix">
<?php
$stringDate = JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC3'));
$arrdate = explode(" ", $stringDate);
?>
<span class="date"><?php echo $arrdate[0]; ?></span>
<div class="month-year">
<span class="month"><?php echo $arrdate[1]; ?></span>
<span class="year"><?php echo $arrdate[2]; ?></span>
</div>
</div>
As you can see this one use DATE_FORMAT_LC3
DATE_FORMAT_LC=%d.%m.%Y
DATE_FORMAT_LC1=%d.%m.%Y
DATE_FORMAT_LC2=%d.%m.%Y %H:%M
DATE_FORMAT_LC3=%d %B %Y
DATE_FORMAT_LC4=%d.%m.%y
DATE_FORMAT_JS1=y-m-d
%Y-%M-%D=%Y-%m-%d
%A, %B %E=%A, %B %e
# Months
You can try to change it into another format as you wish. ( http://linux.about.com/od/commands/l/blcmdl1_date.htm )
For item page i’ve just fixed please try to clear cache and check it from your side.
Thank you
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 28, 2011 at 11:54 pm #415578Hi
have you solved your issue ? 🙂
Thank you
Viet VuSeptember 29, 2011 at 6:27 am #415610Thanks for asking.
For full month name (e.g. “%d %B %Y” it works perfect.
Although when I change format to “%d %b %Y” to get abbreviated month name it somehow impacts display of the year. So instead of “23 Сен 2011” i get “23 Сен fsdfd”.
Take a look: http://vdvkiev.com.ua/%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8/%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D0%B8
How could it be?
— Max
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 29, 2011 at 7:11 am #415615Hi,
It’s strange . Allow me re-access your FTP for checking ?
( please re PM me because after have done i have deleted it )
Thank you
Viet VuSeptember 29, 2011 at 9:28 am #415637Hi Viet Vu,
done.
— Max
October 6, 2011 at 4:57 pm #417327Dear Viet Vu,
it’s now fixed. Could you explain me how did you do it?
— Max
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 7, 2011 at 1:16 am #417377Hi
It ‘s just a bug in code by use array 3 elements, infact 4 elements 🙂
Thank you
Viet Vu -
AuthorPosts
This topic contains 23 replies, has 2 voices, and was last updated by jooservices 13 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum