[TYPO3-german] cal_base und German Localization
Andreas Burg
typo3 at andreasburg.de
Wed Mar 4 12:54:13 CET 2009
David,
>>> <?php
>>> echo "<pre>";
>>> system("locale -a");
>>> echo "</pre>";
>>> ?>
> aber das Skript gibt leider auch nichts aus.
oh, höre ich zum ersten Mal, dann gehörst du zu den seltenen Fällen, wo es nicht geht. Was ist das
für ein Server? Probiere vielleicht nochmal folgende Datei (locales.php)
<?php
ob_start();
system('locale');
$str = ob_get_contents();
ob_end_clean();
$current = split("\n", trim($str));
ob_start();
system('locale -a');
$str = ob_get_contents();
ob_end_clean();
$locales = split("\n", trim($str));
echo '<html><head><title>Locale Listing</title></head><body>';
echo '<h3>Default PHP Locale</h3>';
echo '<ul>';
foreach($current as $item) {
echo '<li>'.$item.'</li>';
}
echo '</ul>';
echo '<h3>Available Locales</h3>';
echo '<ul>';
foreach($locales as $locale) {
echo '<li>'.$locale.'</li>';
}
echo '</ul>';
echo '</body></html>';
?>
--
Andreas
Mailing list rules & guidelines (Mailing list Regeln & Leitfaden):
http://typo3.org/community/mailing-lists/
http://typo3.org/community/mailing-lists/mailing-list-rules-guidelines/
More information about the TYPO3-german
mailing list