Hallo,
ich würde gerne meine locale.php "von Hand" ins deutsche umwandeln.
<?php
// Date and Time
// The Weekdays
$weekday[0] = __('Sunday');
// The first letter of each day. The _%day%_initial suffix is a hack to make
// sure the day initials are unique. They should be translated to a one
// letter initial.
$weekday_initial[__('Sunday')] = __('S_Sunday_initial');
foreach ($weekday_initial as $weekday_ => $weekday_initial_) {
$weekday_initial[$weekday_] = preg_replace('/_.+_initial$/', '', $weekday_initial_);
}
// Abbreviations for each day.
$weekday_abbrev[__('Sunday')] = __('Sun');
// The Months
$month['01'] = __('January');
// Abbreviations for each month. Uses the same hack as above to get around the
// 'May' duplication.
$month_abbrev[__('January')] = __('Jan_January_abbreviation');
foreach ($month_abbrev as $month_ => $month_abbrev_) {
$month_abbrev[$month_] = preg_replace('/_.+_abbreviation$/', '', $month_abbrev_);
}
?>
Alles anzeigen
Wenn ich die arrays $weekday und $month ändere erhalte ich auch die gewünschten Änderungen im Blog.
Mehr Kopfzerbrechen machen mir die arrays $weekday_initial, $weekday_abbrev und $month_abbrev.
Wenn ich
$weekday_initial[__('Sunday')] = __('S_Sunday_initial'); einfach umändere zu
$weekday_initial[__('Sonntag')] = __('S_Sunday_initial');
reicht dass dann?
Oder muß ich auch das __('S_Sunday_initial'); verändern zu __('S_Sonntag_initial'); ?
Ich tippe mal eher nicht, oder?