$value) { foreach ($locales as $l) { if (isset ($key) && "" !== $key && strpos ($l, $key) !== FALSE) { $locale = $l; break; } } if ('C' !== $locale) break; } $l = setlocale (LC_MESSAGES, $locale); if ($l !== $locale) { $locale = 'C'; setlocale (LC_MESSAGES, $locale); } setlocale (LC_TIME, $locale); bindtextdomain ("bilder", LOCALEDIR); bind_textdomain_codeset ("bilder", "UTF-8"); textdomain ("bilder"); ?>