Skip to main content

Language month translation

More
8 years 10 months ago #283250 by kyratn
Hi,

I got some strange issue and looking for advise here.

Making some modification in view-> order / show.php

Using code below to display some date:

<?php if ($this->order->order_shipping_id == '9') {
echo strftime("%B %e, %Y", strtotime(' + 6 weekday'));?>


The issue is that month is not translated. It is always set to English.
As a quick fix i had to use setLocale based on language tag.

Any advise please?

Thanks

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #283256 by Jerome
Replied by Jerome on topic Language month translation
Hello,

I'm afraid that your question is not related to HikaShop but to PHP development.
If you want more details about the "strftime" PHP function : us3.php.net/manual/en/function.strftime.php
Afterwards, you can also take a look at the Joomla core function regarding the dates.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #283320 by kyratn
Replied by kyratn on topic Language month translation
Hi,

Thanks for pointing it out Jerome. Forgot that instead of using php strftime i could use Joomla date format. That had fixed all my troubles and less coding.

Have a great day

Please Log in or Create an account to join the conversation.

Time to create page: 0.166 seconds
Powered by Kunena Forum