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

#   Attach Invoice Plugin wrong language for dates

##

- **[121261](/forum/user/26582-121261 "View 121261's Profile")**
- [![121261's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/26582-121261 "View 121261's Profile") Topic Author
- [ Offline](/forum/user/26582-121261)

Less More

- Posts: 78
- Thank you received: 0
-
-

11 years 9 months ago [\#190205](#190205) by [121261](/forum/user/26582-121261 "View 121261's Profile")  *[Attach Invoice Plugin wrong language for dates](/forum/27-checkout/874885-attach-invoice-plugin-wrong-language-for-dates#190205 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.2.3  HI in attach incoice plugin, the invoice is generated with english dates. I need to change this...  How do I do this ??  Please advise and help")* was created by *[121261](/forum/user/26582-121261 "View 121261's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.2.3

HI in attach incoice plugin, the invoice is generated with english dates.
I need to change this...

How do I do this ??

Please advise and help

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 9 months ago [\#190209](#190209) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Attach Invoice Plugin wrong language for dates](/forum/27-checkout/874885-attach-invoice-plugin-wrong-language-for-dates#190209 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.2.3  HI in attach incoice plugin, the invoice is generated with english dates. I need to change this...  How do I do this ??  Please advise and help")*

Hi,

You have to edit the file "plugins/hikashop/attachinvoice/attachinvoice/invoice.php", and replace the date format in the line: Code:

&lt;div class="date"&gt;&lt;?php echo JText::_('DATE').': '.hikashop_getDate($order-&gt;order_invoice_created,'%d %B %Y ');?&gt;&lt;/div&gt;

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

- **[121261](/forum/user/26582-121261 "View 121261's Profile")**
- [![121261's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/26582-121261 "View 121261's Profile") Topic Author
- [ Offline](/forum/user/26582-121261)

Less More

- Posts: 78
- Thank you received: 0
-
-

11 years 9 months ago [\#190262](#190262) by [121261](/forum/user/26582-121261 "View 121261's Profile")  Replied by *[121261](/forum/user/26582-121261 "View 121261's Profile")* on topic *[Attach Invoice Plugin wrong language for dates](/forum/27-checkout/874885-attach-invoice-plugin-wrong-language-for-dates#190262 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.2.3  HI in attach incoice plugin, the invoice is generated with english dates. I need to change this...  How do I do this ??  Please advise and help")*

Hi Xavier -
Sorry for asking, but I dont get it - I need the dates to be in our native language which is Danish - How would I do that ??

I thought, that hikashop followed the joomla language setting ?

Best regards
Bison

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 9 months ago [\#190340](#190340) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Attach Invoice Plugin wrong language for dates](/forum/27-checkout/874885-attach-invoice-plugin-wrong-language-for-dates#190340 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.2.3  HI in attach incoice plugin, the invoice is generated with english dates. I need to change this...  How do I do this ??  Please advise and help")*

Hi,

The PDF invoice plugin has its own date format. You can change it there as Xavier explained.
The format is compatible with Joomla's so just put the same format that you put in your Joomla translation file instead of %d %B %Y and you'll get what you want.

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

- **[121261](/forum/user/26582-121261 "View 121261's Profile")**
- [![121261's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/26582-121261 "View 121261's Profile") Topic Author
- [ Offline](/forum/user/26582-121261)

Less More

- Posts: 78
- Thank you received: 0
-
-

11 years 9 months ago [\#190360](#190360) by [121261](/forum/user/26582-121261 "View 121261's Profile")  Replied by *[121261](/forum/user/26582-121261 "View 121261's Profile")* on topic *[Attach Invoice Plugin wrong language for dates](/forum/27-checkout/874885-attach-invoice-plugin-wrong-language-for-dates#190360 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.2.3  HI in attach incoice plugin, the invoice is generated with english dates. I need to change this...  How do I do this ??  Please advise and help")*

Hi Nicolas - The formatting of the date is correct - its the month names, that are wrong.
it says "January" in English, but I need the month names in Danish.

regards
Bison

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

11 years 9 months ago [\#191621](#191621) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Attach Invoice Plugin wrong language for dates](/forum/27-checkout/874885-attach-invoice-plugin-wrong-language-for-dates#191621 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.2.3  HI in attach incoice plugin, the invoice is generated with english dates. I need to change this...  How do I do this ??  Please advise and help")*

Hi,

The hikashop_getDate function which displays the date actually just calls the Joomla date function which generates the date. The Joomla date library should handle the translation of the date format just fine.
You can try to add the line:
&lt;?php setlocale(LC_TIME, "nl_NL"); ?&gt;
at the beginning of the invoice.php file and that should force the current language of the PHP date functions to dutch instead of english. It might help avoid the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDg4NS1hdHRhY2gtaW52b2ljZS1wbHVnaW4td3JvbmctbGFuZ3VhZ2UtZm9yLWRhdGVzP3RtcGw9bWFya2Rvd24=) 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.069 seconds

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