All pastes #93296 Raw Edit

Stuff

public text v1 · immutable
#93296 ·published 2006-07-20 10:23 UTC
rendered paste body
<?php
$currentLocale = setlocale(LC_ALL, 'ar_SA.utf8');
echo "Current Locale: " . $locale . "<br />";
//echo strftime("%A %e %B %Y", mktime(0, 0, 0, 12, 22, 1978));
  bindtextdomain('plurals', '/var/www/locale/');
  textdomain('plurals');
  echo "Hello in Arabic is: " . gettext("Hello") . "<br />";
  echo "Salaam in Arabic is: " . gettext("Salaam") . "<br />";
  for ( $n == 0; $n <=6; $n++) {
    printf(ngettext("1 read", "%d reads", $n), $n);
    echo "<br />";
  }
?>