Ticket #982: misc.diff

File misc.diff, 2.4 KB (added by Christian Beer, 14 years ago)

miscellaneous fixes

  • inc/util.inc

     
    188188    if ($generating_xml) {
    189189        xml_error(-1, $msg);
    190190    }
    191     page_head("Unable to handle request");
     191    page_head(tra("Unable to handle request"));
    192192    echo $msg;
    193193    page_tail();
    194194    exit();
  • inc/uotd.inc

     
    2424
    2525function uotd_thumbnail($profile, $user) {
    2626    if ($profile->has_picture) {
    27         return "<a href=\"".URL_BASE."view_profile.php?userid=$user->id\"><img border=0 vspace=4 hspace=8 align=left src=\"".URL_BASE.IMAGE_URL.$user->id."_sm.jpg\" alt=\"User profile\"></a>";
     27        return "<a href=\"".URL_BASE."view_profile.php?userid=$user->id\"><img border=0 vspace=4 hspace=8 align=left src=\"".profile_thumb_url($user->id)."\" alt=\"".tra("User profile")."\"></a>";
    2828    } else {
    2929        return "";
    3030    }
  • user/weak_auth.php

     
    2222$url = parse_config(get_config(), "<master_url>");
    2323
    2424$user = get_logged_in_user();
    25 page_head("Weak account key");
     25page_head(tra("Weak account key"));
    2626
    2727$weak_auth = weak_auth($user);
    2828
  • user/uotd.php

     
    2424
    2525$profile = get_current_uotd();
    2626if (!$profile) {
    27     echo "No user of the day has been chosen.";
     27    echo tra("No user of the day has been chosen.");
    2828} else {
    2929    $d = date("d F Y", time());
    3030    $user = lookup_user_id($profile->userid);
    31     page_head("User of the Day for $d: $user->name");
     31    page_head(tra("User of the Day for %1: %2", $d, $user->name));
    3232    start_table();
    3333    show_profile($user, get_logged_in_user(false));
    3434    end_table();
  • user/translate.php

     
    3838
    3939<p>
    4040You can also help
    41 <a href=http://boinc.berkeley.edu/language.php>translate the BOINC client software</a>.
     41<a href=http://boinc.berkeley.edu/translation.php>translate the BOINC client software</a>.
    4242<p>
    4343
    4444There is an email list