Add link to circle gifts for logged in users; tweak other link wording 
and translation string.

        Patch by 900degrees. 

diffs (33 lines):

diff -r ccf38dee94f1 -r 3b42d2dbadf8 bin/upgrading/en.dat
--- a/bin/upgrading/en.dat      Mon Nov 02 09:57:29 2009 +0000
+++ b/bin/upgrading/en.dat      Mon Nov 02 10:36:52 2009 +0000
@@ -4703,9 +4703,11 @@ widget.shopcartstatusbar.viewcart=View C
 
 widget.shopitemgroupdisplay.paidaccounts.header=Buy a Paid Account
 
+widget.shopitemgroupdisplay.paidaccounts.item.circleaccount=<a [[aopts]]>For 
an account in your Circle</a>
+
 widget.shopitemgroupdisplay.paidaccounts.item.differentaccount=<a 
[[aopts]]>For a different existing account</a>
 
-widget.shopitemgroupdisplay.paidaccounts.item.exisitingaccount=<a 
[[aopts]]>For an existing account</a>
+widget.shopitemgroupdisplay.paidaccounts.item.existingaccount=<a [[aopts]]>For 
an existing account</a>
 
 widget.shopitemgroupdisplay.paidaccounts.item.newaccount=<a [[aopts]]>For a 
new account</a>
 
diff -r ccf38dee94f1 -r 3b42d2dbadf8 cgi-bin/DW/Widget/ShopItemGroupDisplay.pm
--- a/cgi-bin/DW/Widget/ShopItemGroupDisplay.pm Mon Nov 02 09:57:29 2009 +0000
+++ b/cgi-bin/DW/Widget/ShopItemGroupDisplay.pm Mon Nov 02 10:36:52 2009 +0000
@@ -33,9 +33,12 @@ sub render_body {
         $ret .= "<ul>";
         if ( $remote && $remote->is_personal && DW::Pay::get_account_type( 
$remote ) ne 'seed' ) {
             $ret .= "<li>" . $class->ml( 
'widget.shopitemgroupdisplay.paidaccounts.item.self', { aopts => 
"href='$LJ::SITEROOT/shop/account?for=self'", user => $remote->ljuser_display } 
) . "</li>";
+        }
+        if ( $remote && $remote->is_personal ) {
+            $ret .= "<li>" . $class->ml( 
'widget.shopitemgroupdisplay.paidaccounts.item.circleaccount', { aopts => 
"href='$LJ::SITEROOT/shop/gifts'" } ) . "</li>";
             $ret .= "<li>" . $class->ml( 
'widget.shopitemgroupdisplay.paidaccounts.item.differentaccount', { aopts => 
"href='$LJ::SITEROOT/shop/account?for=gift'" } ) . "</li>";
         } else {
-            $ret .= "<li>" . $class->ml( 
'widget.shopitemgroupdisplay.paidaccounts.item.exisitingaccount', { aopts => 
"href='$LJ::SITEROOT/shop/account?for=gift'" } ) . "</li>";
+            $ret .= "<li>" . $class->ml( 
'widget.shopitemgroupdisplay.paidaccounts.item.existingaccount', { aopts => 
"href='$LJ::SITEROOT/shop/account?for=gift'" } ) . "</li>";
         }
         $ret .= "<li>" . $class->ml( 
'widget.shopitemgroupdisplay.paidaccounts.item.newaccount', { aopts => 
"href='$LJ::SITEROOT/shop/account?for=new'" } ) . "</li>";
         $ret .= "<li>" . $class->ml( 
'widget.shopitemgroupdisplay.paidaccounts.item.randomaccount.show', { aopts => 
"href='$LJ::SITEROOT/shop/randomgift'" } ) . "</li>";
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to