Ejemplo n.º 1
0
 $number = '';
 $money = '';
 $charset = '';
 $codepage = '';
 $locale_name = fbLocale::getLocale();
 $long_month_names = ' ';
 $short_month_names = ' ';
 $long_weekday_names = ' ';
 $short_weekday_names = ' ';
 if ($locale == $default_locale || $locale_name != $default_locale_name) {
     $string = _('24 hours');
     $long_date = fbDateTime::getLongDate($date);
     $short_date = fbDateTime::getShortDate($date);
     $datetime = strftime('%c', $date);
     $amount = -1234567.89;
     $number = fbLocale::numberFormat($amount, 2);
     if (function_exists('money_format')) {
         $money = money_format('%i', $amount) . "<br />\n" . money_format('%n', $amount);
     }
     $charset = fbLocale::getCharset();
     $codepage = fbLocale::getCodepage();
     $long_month_names = join(',', fbDateTime::getLongMonthNames());
     $short_month_names = join(',', fbDateTime::getShortMonthNames());
     $long_weekday_names = join(',', fbDateTime::getLongWeekdayNames());
     $short_weekday_names = join(',', fbDateTime::getShortWeekdayNames());
     $long_month_names_hash[$long_month_names][$locale] = $locale_name;
     $long_weekday_names_hash[$long_weekday_names][$locale] = $locale_name;
 } else {
     //		$locale_name	= '&nbsp;';
 }
 print "<tr>\n<td>\n{$name}\n<br />\nlocale={$locale}\n<br />\nrv={$rv}\n<br />\nlocale_name={$locale_name}\n&nbsp;\n</td>\n<td>\n{$string}\n&nbsp;\n</td>\n<td>\n{$long_date}\n&nbsp;\n</td>\n<td>\n{$short_date}\n&nbsp;\n</td>\n<td>\n{$datetime}\n&nbsp;\n</td>\n<td>\n{$number}\n&nbsp;\n</td>\n<td>\n{$money}\n&nbsp;\n</td>\n<td>\n{$long_month_names}\n&nbsp;\n</td>\n<td>\n{$short_month_names}\n&nbsp;\n</td>\n<td>\n{$long_weekday_names}\n&nbsp;\n</td>\n<td>\n{$short_weekday_names}\n&nbsp;\n</td>\n<td>\n{$locale_name}\n&nbsp;\n</td>\n<td>\n{$charset}\n&nbsp;\n</td>\n<td>\n{$codepage}\n&nbsp;\n</td>\n</tr>\n";