-
- 409 Posts
This is a one year old topic.
Is there any nicer solution today ?
-
- 384 Posts
Interested in this too. Ive a multilingual site and the dates on each news article are in the wrong format.
...
-
- 535 Posts
you can write a snippet :
<?php
// Snippet : DATEFR
// Usage: [[+tv.myDate:DATEFR]]
//
setlocale(LC_ALL, 'fr_FR.UTF-8');
$output = strftime('%e %B %Y',strtotime($input));
return $output;
CTRL+SHIFT+U - Clear Cache
CTRL+SHIFT+H - Hiding Heft Panel
CTRL+SHIFT+N - Fast Create Resource
CTRL+ALT+P - Preview Recource (in edit resorce window)
CTRL+ALT+S - Save
-
- 170 Posts
Hi,
In version 2.2.6 and may be some older version (never checked), there is a locale option in core parameters / lexicon and language section of the system configuration.
I have no idea of what should be put in but the comment says : define the locale of the system .... refer to php documentation, with no exemple.
This could be the right way to do it ?
Modx team, can you confirm ?
Cheers
Philippe
-
- 534 Posts
Not MODx team, but I can confirm it =)...just put nl_NL or de_DE or whatever inside that system setting and it works for me...
-
- 534 Posts
Definitely looks like a content encoding problem (ie. not UTF-8)... what do you mean by "MODx messages", where are they shown, frontend or backend?
-
- 170 Posts
Sorry must explain better :
My content utf 8 is looking good.
The text messages from the lexicon are printing correctly the accentuated letters (either in the manager or in article snippet).
The messages sent back from articles snippets (coming certainly out of core modx parameters) like the dates are printing wrongly. In fact, the dates are using the strtotime filter.... that could be the problem source.
[ed. note: Fildefer57 last edited this post 11 years, 2 months ago.]