Ticket #980: edit_user_info_action.php.diff

File edit_user_info_action.php.diff, 1.1 KB (added by Christian Beer, 14 years ago)
  • user/edit_user_info_action.php

     
    2626
    2727$name = boinc_htmlentities(post_str("user_name"));
    2828if ($name != strip_tags($name)) {
    29     error_page("HTML tags not allowed in name");
     29    error_page(tra("HTML tags are not allowed in your name."));
    3030}
    3131if (strlen($name) == 0) {
    32    error_page("You must supply a name for your account.");
     32   error_page(tra("You must supply a name for your account."));
    3333}
    3434$url = post_str("url", true);
    3535$url = strip_tags($url);
     
    3838    $country = "International";
    3939}
    4040if (!is_valid_country($country)) {
    41     error_page("bad country");
     41    error_page(tra("bad country"));
    4242}
    4343$country = BoincDb::escape_string($country);
    4444$postal_code = post_str("postal_code", true);
     
    5454if ($result) {
    5555    Header("Location: home.php");
    5656} else {
    57     error_page("Couldn't update user info.");
     57    error_page(tra("Couldn't update user info."));
    5858}
    5959
    6060?>