kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2010-04-14 09:43 pm

[dw-free] Post-posting an entry to a community page has some wrong terminology.

[commit: http://hg.dwscoalition.org/dw-free/rev/e0b133ed81ff]

http://bugs.dwscoalition.org/show_bug.cgi?id=2516

Change wording for update of community vs. personal journal.

Patch by [personal profile] jportela.

Files modified:
  • htdocs/update.bml
  • htdocs/update.bml.text
--------------------------------------------------------------------------------
diff -r 13256f8db4c8 -r e0b133ed81ff htdocs/update.bml
--- a/htdocs/update.bml	Tue Apr 13 08:27:04 2010 -0700
+++ b/htdocs/update.bml	Wed Apr 14 16:42:56 2010 -0500
@@ -452,6 +452,8 @@ _c?>
                 } else {
 
                     # update success
+                    my $updatemessage = '.update.success2';
+
                     if ($POST{'usejournal'}) {
                         $ju = LJ::load_user($POST{'usejournal'});  # posting as community
                     } elsif ($user) {
@@ -459,7 +461,12 @@ _c?>
                     } else {
                         $ju = $remote;                             # posting as remote
                     };
-                    $$body .= BML::ml('.update.success2', {'aopts' => "href='" . $ju->journal_base . "/'"});
+                    
+                    if ( $ju->is_community ) { # changes the update message if journal is from a community
+                        $updatemessage = '.update.success2.community';
+                    }
+
+                    $$body .= BML::ml( $updatemessage, {'aopts' => "href='" . $ju->journal_base . "/'"} );
                     my $juser = $ju->{'user'};
                     my ($itemid, $anum) = ($res{'itemid'}, $res{'anum'});
                     $itemlink = LJ::item_link($ju, $itemid, $anum);
diff -r 13256f8db4c8 -r e0b133ed81ff htdocs/update.bml.text
--- a/htdocs/update.bml.text	Tue Apr 13 08:27:04 2010 -0700
+++ b/htdocs/update.bml.text	Wed Apr 14 16:42:56 2010 -0500
@@ -131,5 +131,7 @@
 
 .update.success2=Update successful. You can view your updated journal <a [[aopts]]>here</a>.
 
+.update.success2.community=Update successful. You can view the updated community <a [[aopts]]>here</a>. 
+
 .username=Username:
 
--------------------------------------------------------------------------------
yvi: Kaylee half-smiling, looking very pretty (Default)

[personal profile] yvi 2010-04-16 06:51 am (UTC)(link)
Congrats on your first patch for Dreamwidth, [personal profile] jportela!
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2010-04-16 12:04 pm (UTC)(link)
Whoo! Congratulations, and welcome [personal profile] jportela!