wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r18246: LJSV-1403. Community owner email text/pl...

Committer: gprochaev
LJSV-1403. Community owner email text/plain body part is empty

U   trunk/bin/misc/set_comm_supermaintainer.pl
U   trunk/bin/upgrading/en.dat
U   trunk/cgi-bin/LJ/Poll.pm
U   trunk/cgi-bin/communitylib.pl
Modified: trunk/bin/misc/set_comm_supermaintainer.pl
===================================================================
--- trunk/bin/misc/set_comm_supermaintainer.pl	2011-02-09 09:28:26 UTC (rev 18245)
+++ trunk/bin/misc/set_comm_supermaintainer.pl	2011-02-09 09:56:03 UTC (rev 18246)
@@ -226,6 +226,15 @@
                                             siteroot        => $LJ::SITEROOT,
                                         })
                                     ),
+                    'body'      => (LJ::Lang::ml('poll.election.not.need.html.plain', {
+                                            username        => LJ::ljuser($u),
+                                            communityname   => LJ::ljuser($comm),
+                                            faqlink         => '#',
+                                            shortsite       => $LJ::SITENAMESHORT,
+                                            authas          => $comm->{user},
+                                            siteroot        => $LJ::SITEROOT,
+                                        })
+                                    ),
                 });
 }
 

Modified: trunk/bin/upgrading/en.dat
===================================================================
--- trunk/bin/upgrading/en.dat	2011-02-09 09:28:26 UTC (rev 18245)
+++ trunk/bin/upgrading/en.dat	2011-02-09 09:56:03 UTC (rev 18246)
@@ -3417,6 +3417,17 @@
 [[shortsite]] Team
 .
 
+poll.election.start.email.plain<<
+Dear [[username]],
+
+You are receiving this email because you are a maintainer of the community [[communityname]]. LiveJournal has recently implemented a new role of community management, known as the 'Owner' of the community. The Owner of a community will be the only person who will be able to perform tasks such as deleting maintainers or deleting the community itself. You can read more about the Owner role here:  [[faqlink]]
+
+Since [[communityname]] is an existing community with multiple maintainers, it is now up to you and the other maintainers of the community to select which of you will be granted the Owner status. A poll has been created for your community <a href="[[siteroot]]/community/election.bml?authas=[[authas]]">at this page</a>. You simply need to visit this page and cast your vote for which current maintainer you believe should be made Owner of the community. More information on how the election process works can be found at the page above.
+
+Regards,
+[[shortsite]] Team
+.
+
 poll.election.end.email<<
 Dear [[username]],
 
@@ -3430,6 +3441,47 @@
 [[shortsite]] Team
 .
 
+poll.election.end.email.plain<<
+Dear [[username]],
+
+You are receiving this email because you are a maintainer of the community [[communityname]]. 
+
+According to result of the Supermaintainer Election [[winner]] appointet to this role.
+
+You can read more about this role here:  [[faqlink]]
+
+Regards,
+[[shortsite]] Team
+.
+
+poll.election.not.need.subject=Owner choosen automatically
+
+poll.election.not.need.html<<
+Dear [[username]],<br><br> 
+
+You are receiving this email because you are a maintainer of the community [[communityname]]. <br><br> 
+
+According to the history for this community, you has been designated as the owner of this community.<br><br> 
+
+You can read more about this role here: [[faqlink]]<br><br> 
+
+Regards,<br> 
+[[shortsite]] Team
+.
+poll.election.not.need.html.plain<<
+Dear [[username]],
+
+You are receiving this email because you are a maintainer of the community [[communityname]].
+
+According to the history for this community, you has been designated as the owner of this community.
+
+You can read more about this role here: [[faqlink]]
+
+Regards,
+[[shortsite]] Team
+.
+
+
 poll.election.subject=<b>Choose your candidate:</b>
 
 poll.election.post_subject=Election Post
@@ -7202,4 +7254,4 @@
 widget.vgifts.title=Virtual Gifts
 
 widget.vgifts.viewall|staleness=1
-widget.vgifts.viewall=more
\ No newline at end of file
+widget.vgifts.viewall=more

Modified: trunk/cgi-bin/LJ/Poll.pm
===================================================================
--- trunk/cgi-bin/LJ/Poll.pm	2011-02-09 09:28:26 UTC (rev 18245)
+++ trunk/cgi-bin/LJ/Poll.pm	2011-02-09 09:56:03 UTC (rev 18246)
@@ -851,6 +851,14 @@
                                                         shortsite       => $LJ::SITENAMESHORT,
                                                     })
                                                 ),
+                                'body'      => (LJ::Lang::ml('poll.election.end.email.plain', {
+                                                        username        => LJ::ljuser($u),
+                                                        communityname   => LJ::ljuser($comm),
+                                                        winner          => LJ::ljuser($winner),
+                                                        faqlink         => '#',
+                                                        shortsite       => $LJ::SITENAMESHORT,
+                                                    })
+                                                ),
                             });
             }
 

Modified: trunk/cgi-bin/communitylib.pl
===================================================================
--- trunk/cgi-bin/communitylib.pl	2011-02-09 09:28:26 UTC (rev 18245)
+++ trunk/cgi-bin/communitylib.pl	2011-02-09 09:56:03 UTC (rev 18246)
@@ -88,6 +88,15 @@
                                                 siteroot        => $LJ::SITEROOT,
                                             })
                                         ),
+                        'body'      => (LJ::Lang::ml('poll.election.start.email.plain', {
+                                                username        => LJ::ljuser($u),
+                                                communityname   => LJ::ljuser($comm),
+                                                faqlink         => '#',
+                                                shortsite       => $LJ::SITENAMESHORT,
+                                                authas          => $comm->{user},
+                                                siteroot        => $LJ::SITEROOT,
+                                            })
+                                        ),
                     }) unless ($no_job);
     }
 

Tags: dat, livejournal, pl, pm, wisest-owl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment