Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Language _CPT
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Language _CPT

Language _CPT 11 years, 10 months ago #37114

I don't get the whole _cpt language tags. I want to show the invoice date in Dutch (nl-NL). But how do i do it?
The topic has been locked.

Re: Language _CPT 11 years, 9 months ago #37159

Hi makl,

Thanks for answering. I have set page appearance to no but the invoice date is still in english...
Where does VM invoice get the names of the month from? Maybe i can change it there.

Kind regards
The topic has been locked.

Re: Language _CPT 11 years, 9 months ago #37160

  • pama
  • OFFLINE
  • Posts: 489
Hello. {*_cpt} tags are only translated labels. It's shortcut for language constant from Joomla! language file.

If you want to have date itself translated (months, days in week), we introduced that feature some months ago. Just go General Config -> Date Pattern and change it to syntax of PHP strftime() function (php.net/manual/en/function.strftime.php).

Date in this format gets translated to invoice language based on server locale settings. Note that this is not guaranteed work 100% - depends for example if your server has Dutch locale installed.
ARTIO Support Team
Last Edit: 11 years, 9 months ago by pama.
The topic has been locked.

Re: Language _CPT 11 years, 9 months ago #37161

Hi pama,

Is there a way to manualy set the server locale to dutch? Because if i understand it right my server isn't dutch because the month is in english. I'm using: d F Y
The topic has been locked.

Re: Language _CPT 11 years, 9 months ago #37163

  • pama
  • OFFLINE
  • Posts: 489
Hello. You must use syntax of strftime function (see documentation in link above) which uses percents before letters.
For example "day month(text) year" will be "%d %B %Y". If you don't use percents, function used is date() (php.net/manual/en/function.date.php), which has different letters and is not translated.
You don't need to set locale to dutch, script does it automatically for every invoice. You only must make sure Dutch locale is installed on server - first by testing it with format above and if result is not in Dutch or dutch characters are not displayed properly, by asking your server administrator.
ARTIO Support Team
Last Edit: 11 years, 9 months ago by pama.
The topic has been locked.

Re: Language _CPT 11 years, 9 months ago #37166

Hi pama,

Thanks for explaining. It works!
The topic has been locked.
  • Page:
  • 1
User Login Empty