diff --git a/checkin_notes b/checkin_notes index 08d0e33b52..c2390d99fa 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1169,3 +1169,9 @@ Charlie 11 Feb 2010 clientgui/ BOINCTaskBar.cpp + +David 13 Feb 2010 + - web: make strings translatable. fixes #980 + + html/user + edit_user_info_form/action.php diff --git a/html/user/edit_user_info_action.php b/html/user/edit_user_info_action.php index df84203742..c25bb07e20 100644 --- a/html/user/edit_user_info_action.php +++ b/html/user/edit_user_info_action.php @@ -26,10 +26,10 @@ check_tokens($user->authenticator); $name = boinc_htmlentities(post_str("user_name")); if ($name != strip_tags($name)) { - error_page("HTML tags not allowed in name"); + error_page(tra("HTML tags are not allowed in your name.")); } if (strlen($name) == 0) { - error_page("You must supply a name for your account."); + error_page(tra("You must supply a name for your account.")); } $url = post_str("url", true); $url = strip_tags($url); @@ -38,7 +38,7 @@ if ($country == "") { $country = "International"; } if (!is_valid_country($country)) { - error_page("bad country"); + error_page(tra("bad country")); } $country = BoincDb::escape_string($country); $postal_code = post_str("postal_code", true); @@ -54,7 +54,7 @@ $result = $user->update( if ($result) { Header("Location: home.php"); } else { - error_page("Couldn't update user info."); + error_page(tra("Couldn't update user info.")); } ?> diff --git a/html/user/edit_user_info_form.php b/html/user/edit_user_info_form.php index d08f1cd72e..52009cffe6 100644 --- a/html/user/edit_user_info_form.php +++ b/html/user/edit_user_info_form.php @@ -24,27 +24,27 @@ db_init(); $user = get_logged_in_user(); check_tokens($user->authenticator); -page_head("Edit account information"); +page_head(tra("Edit account information")); echo "
"; echo form_tokens($user->authenticator); start_table(); -row2("Name
real name or nickname", +row2(tra("Name %1 real name or nickname%2", "
", ""), "" ); -row2("URL
of your web page; optional", +row2(tra("URL %1 of your web page; optional%2", "
", ""), "http://" ); -row2_init("Country", +row2_init(tra("Country"), "\n"; -row2("Postal (ZIP) code
Optional", +row2(tra("Postal (ZIP) code %1 Optional%2", "
", ""), "" ); -row2("", ""); +row2("", ""); end_table(); echo "
\n"; page_tail();