mirror of https://github.com/BOINC/boinc.git
- web: make strings translatable. fixes #980
svn path=/trunk/boinc/; revision=20563
This commit is contained in:
parent
eebee6f71b
commit
e441fdcd37
|
@ -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
|
||||
|
|
|
@ -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."));
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -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 "<form method=post action=edit_user_info_action.php>";
|
||||
echo form_tokens($user->authenticator);
|
||||
start_table();
|
||||
row2("Name<br><font size=-2>real name or nickname</font>",
|
||||
row2(tra("Name %1 real name or nickname%2", "<br><font size=-2>", "</font>"),
|
||||
"<input name=user_name size=30 value='$user->name'>"
|
||||
);
|
||||
row2("URL<br><font size=-2>of your web page; optional</font>",
|
||||
row2(tra("URL %1 of your web page; optional%2", "<br><font size=-2>", "</font>"),
|
||||
"http://<input name=url size=50 value='$user->url'>"
|
||||
);
|
||||
row2_init("Country",
|
||||
row2_init(tra("Country"),
|
||||
"<select name=country>"
|
||||
);
|
||||
print_country_select($user->country);
|
||||
echo "</select></td></tr>\n";
|
||||
row2("Postal (ZIP) code<br><font size=-2>Optional</font>",
|
||||
row2(tra("Postal (ZIP) code %1 Optional%2", "<br><font size=-2>", "</font>"),
|
||||
"<input name=postal_code size=20 value='$user->postal_code'>"
|
||||
);
|
||||
|
||||
row2("", "<input type=submit value='Update info'>");
|
||||
row2("", "<input type=submit value='".tra("Update info")."'>");
|
||||
end_table();
|
||||
echo "</form>\n";
|
||||
page_tail();
|
||||
|
|
Loading…
Reference in New Issue