Changeset 89
- Timestamp:
- 2007-12-08 12:54:21 (4 years ago)
- Files:
-
- trunk/classes/misc/Member.php (modified) (1 diff)
- trunk/includes/lang/de.php (modified) (1 diff)
- trunk/includes/lang/en.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/classes/misc/Member.php
r81 r89 381 381 $table->addRow(Array($LANG['Homepage'] . ':', '-')); 382 382 } 383 $table->addRow(Array($LANG['Posts'] . ':', $this->posts)); 383 // number of days since registration 384 $today = new DateTime('now', new DateTimeZone('UTC')); 385 $diff = strtotime($today->format('Y-m-d')) - strtotime($this->registration); 386 $days = max(1, $diff) / (60 * 60 * 24); 387 $table->addRow(Array($LANG['Posts'] . ':', $this->posts . ' (' . round($this->posts / $days , 1) . ' ' . $LANG['per_day'] . ')')); 384 388 $table->addRow(Array($LANG['Stage'] . ':', $this->stage)); 385 389 $table->addRow(Array($LANG['Registration'] . ':', $F->datetime($this->registration, TRUE, FALSE))); trunk/includes/lang/de.php
r86 r89 309 309 $LANG['Last_x_Posts'] = 'Die letzten %n% Beiträge'; 310 310 $LANG['View_All'] = 'Alle ansehen'; 311 $LANG['per_day'] = 'pro Tag'; 311 312 312 313 /* actual sentences */ trunk/includes/lang/en.php
r84 r89 310 310 $LANG['Last_x_Posts'] = 'Last %n% Posts'; 311 311 $LANG['View_All'] = 'View All'; 312 $LANG['per_day'] = 'per day'; 312 313 313 314 /* actual sentences */
