wisest owl (wisest_owl) wrote in changelog,
wisest owl

[livejournal] r18464: LJSV-1425. Error message needs to be cha...

Committer: gprochaev
LJSV-1425. Error message needs to be changed: user with non-authenticated email posting to journal

U   trunk/bin/upgrading/en.dat
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/bin/upgrading/en.dat
--- trunk/bin/upgrading/en.dat	2011-03-03 10:37:02 UTC (rev 18463)
+++ trunk/bin/upgrading/en.dat	2011-03-03 10:37:44 UTC (rev 18464)
@@ -2470,6 +2470,8 @@
 event.poll_vote.me=Someone votes in a poll I posted
+event.post.error.not_validated_email=You must have an authenticated email address in order to post to another account
 event.userpic_upload.me=One of my friends uploads a new userpic

Modified: trunk/cgi-bin/ljprotocol.pl
--- trunk/cgi-bin/ljprotocol.pl	2011-03-03 10:37:02 UTC (rev 18463)
+++ trunk/cgi-bin/ljprotocol.pl	2011-03-03 10:37:44 UTC (rev 18464)
@@ -1618,7 +1618,7 @@
     # user must have a validated email address to post to any journal - including its own,
     # except syndicated (rss, 'Y') journals
     # unless this is approved from the mod queue (we'll error out initially, but in case they change later)
-    return fail($err, 155, "You must have an authenticated email address in order to post to another account")
+    return fail($err, 155, LJ::Lang::ml('event.post.error.not_validated_email'))
         unless $flags->{'noauth'} || $u->{'status'} eq 'A' || $u->{'journaltype'} eq 'Y';
     $req->{'event'} =~ s/\r\n/\n/g; # compact new-line endings to more comfort chars count near 65535 limit

Tags: dat, livejournal, pl, wisest-owl

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded