$jabber);
}
- # XXX: I18N
-
- $msg = 'A confirmation code was sent to the IM address you added. ' .
- ' You must approve ' . jabber_daemon_address() .
- ' for sending messages to you.';
+ $msg = sprintf(_('A confirmation code was sent to the IM address you added. ' .
+ 'You must approve %s for sending messages to you.'), jabber_daemon_address());
$this->show_form($msg, TRUE);
}
'link' => common_local_url('replies',
array('nickname' =>
$user->nickname)),
- 'description' => sprintf(_('Feed for replies to '), $user->nickname));
+ 'description' => sprintf(_('Feed for replies to %s'), $user->nickname));
return $c;
}
# Looks like we're good; show the header
- common_show_header($profile->nickname."'s status on ".common_exact_date($notice->created),
+ common_show_header(sprintf(_('%1$s\'s status on %2$s'), $profile->nickname, common_exact_date($notice->created)),
NULL, $profile,
array($this, 'show_top'));
common_notice_form();
}
}
+
+ function no_such_notice() {
+ common_user_error('No such notice.');
+ }
}
}
function no_such_user() {
- common_user_error('No such user');
+ common_user_error(_('No such user.'));
}
function show_profile($profile) {
if (!$id) {
$last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
common_log(LOG_ERROR, 'DB error inserting reply: ' . $last_error->message);
- common_server_error('DB error inserting reply: ' . $last_error->message);
+ common_server_error(_('DB error inserting reply: %s', $last_error->message));
return;
}
}