[TYPO3-german] cal_base und German Localization
David Brunnthaler
d.brunnthaler at aon.at
Wed Mar 4 13:26:39 CET 2009
Hallo Andreas,
danke für die Ausdauer, aber auch dein 2. Skript bringt nichts zum
Vorschein - Wenn ich mich nicht täusche ist dass das gleiche Skript wie
eh bei der Cal-Extension schon dabei ist. Oder?
Tja ist der Server einer Diözese in Österreich - Mache eine
Pfarr-Homepage. Und da ist das ganze nicht ganz so professionell wie man
sich das halt oft wünscht :)
In einer Stunde weiß ich mehr.
Gruß
David
Andreas Burg schrieb:
> 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>';
> ?>
>
>
More information about the TYPO3-german
mailing list