From 9892dfd81d74b3cbe8ecebbbb60498c8f65f64df Mon Sep 17 00:00:00 2001 From: root Date: Thu, 9 Jun 2005 15:21:55 +0000 Subject: [PATCH] lang updates --- includes/account.php | 19 +- includes/account_stuff.php | 2 +- includes/general.php | 10 +- includes/general_stuff.php | 10 +- locale/ar.po | 3348 ++++++++++++++++++++++++++++++++++++ locale/bg.po | 208 ++- locale/cs.po | 3342 +++++++++++++++++++++++++++++++++++ locale/da.po | 280 ++- locale/de.po | 111 +- locale/el.po | 3342 +++++++++++++++++++++++++++++++++++ locale/es.po | 801 +++++---- locale/fi.po | 232 ++- locale/fr.po | 81 +- locale/he.po | 224 ++- locale/hr.po | 218 ++- locale/hu.po | 1189 ++++++------- locale/it.po | 486 ++++-- locale/ja.po | 260 ++- locale/nl.po | 914 +++++----- locale/pl.po | 3342 +++++++++++++++++++++++++++++++++++ locale/pt.po | 332 ++-- locale/pt_BR.po | 274 ++- locale/ro.po | 204 ++- locale/ru.po | 268 ++- locale/sv.po | 444 +++-- locale/tl.po | 3342 +++++++++++++++++++++++++++++++++++ locale/tr.po | 340 ++-- locale/zh.po | 520 +++--- messages.po | 304 ++-- pages/account/3.php | 6 + pages/account/6.php | 5 +- pages/disputes/1.php | 2 +- pages/disputes/2.php | 2 +- pages/index/17.php | 12 +- pages/wot/11.php | 2 +- pages/wot/6.php | 4 +- scripts/clientcerts.php | 16 +- scripts/removedead.php | 8 + scripts/runclient.c | 2 +- scripts/runserver.c | 2 +- www/src-lic.php | 2 +- 41 files changed, 21539 insertions(+), 2971 deletions(-) create mode 100644 locale/ar.po create mode 100644 locale/cs.po create mode 100644 locale/el.po create mode 100644 locale/pl.po create mode 100644 locale/tl.po diff --git a/includes/account.php b/includes/account.php index 8e76a6a..821c46b 100644 --- a/includes/account.php +++ b/includes/account.php @@ -148,7 +148,7 @@ if($_SESSION['_config']['incname'] < 1 || $_SESSION['_config']['incname'] > 4) $_SESSION['_config']['incname'] = 1; } - if($_POST['codesign'] == 1) + if($_POST['codesign'] == 1 && $_SESSION['profile']['points'] >= 100) $_SESSION['_config']['codesign'] = 1; else $_SESSION['_config']['codesign'] = 0; @@ -160,7 +160,15 @@ if($_SESSION['_config']['rootcert'] < 1 || $_SESSION['_config']['rootcert'] > 2) $_SESSION['_config']['rootcert'] = 1; } - $id = 4; + $csr = ""; + if(trim($_POST['optionalCSR']) == "") + { + $id = 4; + } else { + $oldid = 4; + $_POST['keytype'] = "MS"; + $csr = $_POST['optionalCSR']; + } } if($oldid == 4) @@ -227,7 +235,8 @@ fclose($fp); mysql_query("update `emailcerts` set `csr_name`='$CSRname' where `id`='$emailid'"); } else if($_POST['keytype'] == "MS") { - $csr = "-----BEGIN CERTIFICATE REQUEST-----\n".$CSR."-----END CERTIFICATE REQUEST-----\n"; + if($csr == "") + $csr = "-----BEGIN CERTIFICATE REQUEST-----\n".$CSR."-----END CERTIFICATE REQUEST-----\n"; $tmpfname = tempnam("/tmp", "CSR"); $fp = fopen($tmpfname, "w"); fputs($fp, $csr); @@ -1896,7 +1905,7 @@ } else { mysql_query("update `users` set `password`=password('".mysql_escape_string(stripslashes($_POST['newpass']))."') where `id`='".intval($_POST['userid'])."'"); $row = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='".$_POST['userid']."'")); - printf(_("The password for %s has been updated sucessfully in the system."), $row['email']); + printf(_("The password for %s has been updated successfully in the system."), $row['email']); } showfooter(); exit; @@ -2119,7 +2128,7 @@ } $totalpoints = intval($tmp['points']) + $points; - $body = _("Your request to have points transfered was sucessful. You were issued $points points as a result, and you now have $totalpoints in total")."\n\n"._("The following comments were made by reviewers")."\n\n"; + $body = _("Your request to have points transfered was successful. You were issued $points points as a result, and you now have $totalpoints in total")."\n\n"._("The following comments were made by reviewers")."\n\n"; $res = mysql_query("select * from `tverify-vote` where `tverify`='$uid' and `vote`='1'"); while($row = mysql_fetch_assoc($res)) $body .= $row['comment']."\n"; diff --git a/includes/account_stuff.php b/includes/account_stuff.php index 5419ef9..a527457 100644 --- a/includes/account_stuff.php +++ b/includes/account_stuff.php @@ -150,7 +150,7 @@ function hideall() {

- +