[Skip to main content](#vessel-content)

#   Language month translation

##

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 11 months ago [\#283250](#283250) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  *[Language month translation](/forum/35-orders-management/892931-language-month-translation#283250 "Hi,  I got some strange issue and looking for advise here.  Making some modification in view-&gt; order / show.php  Using code below to display some date:  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")* was created by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")*

Hi,

I got some strange issue and looking for advise here.

Making some modification in view-&gt; order / show.php

Using code below to display some date:

> &lt;?php if ($this-&gt;order-&gt;order\_shipping\_id == '9') {
> echo strftime("%B %e, %Y", strtotime(' + 6 weekday'));?&gt;

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MjkzMS1sYW5ndWFnZS1tb250aC10cmFuc2xhdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

8 years 11 months ago [\#283256](#283256) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Language month translation](/forum/35-orders-management/892931-language-month-translation#283256 "Hi,  I got some strange issue and looking for advise here.  Making some modification in view-&gt; order / show.php  Using code below to display some date:  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")*

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](http://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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MjkzMS1sYW5ndWFnZS1tb250aC10cmFuc2xhdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

8 years 11 months ago [\#283320](#283320) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[Language month translation](/forum/35-orders-management/892931-language-month-translation#283320 "Hi,  I got some strange issue and looking for advise here.  Making some modification in view-&gt; order / show.php  Using code below to display some date:  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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg5MjkzMS1sYW5ndWFnZS1tb250aC10cmFuc2xhdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.047 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
