Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

International date format #5

Open
JEreth opened this issue Jan 15, 2017 · 1 comment
Open

International date format #5

JEreth opened this issue Jan 15, 2017 · 1 comment

Comments

@JEreth
Copy link

JEreth commented Jan 15, 2017

Thx for this great extension. One minor improvment:
When printing month names (e.g. in the monthly archive menu) in multi language stores the months are not translated since Magento use it's own date renderer. To fix this you can easily use Mage::app()->getLocale()->date() instead of php date function.

As I didn't want to overwrite your code basis I used this workaround in add/design/frontend/default/default/template/fontis/blog/menu/archive.phtml

<?php echo Mage::app()->getLocale()->date(strtotime($archive->getDateString()))->toString(Zend_Date::MONTH_NAME." ".Zend_Date::YEAR); ?>
instead of
<?php echo $archive->getDateString(); ?>

@mwgamble
Copy link

Thanks for letting us know about this issue, and also for putting in the effort of providing a solution. We'll add a fix for this issue to the next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants