For a bi-lingual site german/english I have to hack date-output (see this thread). Here is my PHP-Code for the monthly archive links (german template).
<div class="subtitle">Monatliches Archiv (12 Monate)</div>
<ul>
{exp:weblog:month_links weblog="{embed:blog}" limit="12"}
<li><a href="http://{path={embed:blog}/index}">_<?php_setlocale (LC_TIME, 'de_DE'); _echo strftime('%B %Y ',strtotime("{month} {year}"));_?>_</a></li>
{/exp:weblog:month_links}
</ul>The output with Firefox on Vista is correct:
* Februar 2008 (February 2008)
* Januar 2008 (January 2008)To my surprise it is wrong on IE-7/Vista, IE-6/XP and Firefox/Ubuntu. They show:
* Dezember 1969 (December 1969)
* Dezember 1969HTML is validated, the header:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="{language_code}" />I’ve also tried “setlocale (LC_TIME, ‘de_DE.UTF-8’);” but that does not fix it.
I have no clue how to fix that. Any ideas?
Peter
PS: the url(without http) irish-terrier.eu/de/journal/