juks (juks) wrote in changelog,
juks
juks
changelog

[livejournal] r18193: LJSV-1382 Inbox

Committer: iaskarov
LJSV-1382 Inbox
U   trunk/cgi-bin/LJ/Widget/InboxFolder.pm
U   trunk/htdocs/inbox/compose.bml
U   trunk/htdocs/inbox/compose.bml.text
U   trunk/htdocs/inbox/index.bml.text
Modified: trunk/cgi-bin/LJ/Widget/InboxFolder.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/InboxFolder.pm	2011-02-03 06:23:10 UTC (rev 18192)
+++ trunk/cgi-bin/LJ/Widget/InboxFolder.pm	2011-02-03 06:34:29 UTC (rev 18193)
@@ -86,12 +86,12 @@
                     <td class="actions" colspan="2">
                         <span class="Pages">
                             Page $page of $last_page
-                            <input type="button" id="Page_Prev_$sfx" value="Previous" $prev_disabled />
-                            <input type="button" id="Page_Next_$sfx" value="Next" $next_disabled />
+                            <input type="button" id="Page_Prev_$sfx" value="$BML::ML{'.btn.prev'}" $prev_disabled />
+                            <input type="button" id="Page_Next_$sfx" value="$BML::ML{'.btn.prev'}" $next_disabled />
                         </span>
-                        <input type="submit" name="markRead_$sfx" value="Read" $disabled id="${name}_MarkRead_$sfx" />
-                        <input type="submit" name="markUnread_$sfx" value="Unread" id="${name}_MarkUnread_$sfx" />
-                        <input type="submit" name="delete_$sfx" value="Delete" id="${name}_Delete_$sfx" />
+                        <input type="submit" name="markRead_$sfx" value="$BML::ML{'.btn.read'}" $disabled id="${name}_MarkRead_$sfx" />
+                        <input type="submit" name="markUnread_$sfx" value="$BML::ML{'.btn.unread'}" id="${name}_MarkUnread_$sfx" />
+                        <input type="submit" name="delete_$sfx" value="$BML::ML{'.btn.delete'}" id="${name}_Delete_$sfx" />
                     </td>
             </tr>
         };

Modified: trunk/htdocs/inbox/compose.bml
===================================================================
--- trunk/htdocs/inbox/compose.bml	2011-02-03 06:23:10 UTC (rev 18192)
+++ trunk/htdocs/inbox/compose.bml	2011-02-03 06:34:29 UTC (rev 18193)
@@ -130,11 +130,11 @@
                 }
 
                 unless (@errors) {
-                    $body .= "Your message has been sent successfully.";
-                    $body .= "<?p From here you can:<ul>";
-                    $body .= "<li><a href='$LJ::SITEROOT/inbox/compose.bml'>Send a new message</a></li>";
-                    $body .= "<li><a href='$LJ::SITEROOT/inbox/'>Return to Inbox</a></li>";
-                    $body .= "<li><a href='$LJ::SITEROOT/'>Return Home</a></li>";
+                    $body .= $ML{'.sent.title'}; #"Your message has been sent successfully.";
+                    $body .= "<?p " . $ML{'.sent.nowyoucan'} . " <ul>";
+                    $body .= "<li><a href='$LJ::SITEROOT/inbox/compose.bml'>" . $ML{'.sent.new'} . "</a></li>";
+                    $body .= "<li><a href='$LJ::SITEROOT/inbox/'>" . $ML{'.sent.return'} . "</a></li>";
+                    $body .= "<li><a href='$LJ::SITEROOT/'>" . $ML{'.sent.returnhome'} . "</a></li>";
                     $body .= "</ul> p?>\n";
                     return $body;
                 }
@@ -227,7 +227,7 @@
     # The drop-down userpic menu
     $body .= $picform . "</div>";
 
-    $body .= "<div class='inbox_formmes'><p><label class='subj-l'>Subject:</label> ";
+    $body .= "<div class='inbox_formmes'><p><label class='subj-l'>" . $ML{'.title.subject'} . "</label> ";
     $body .= LJ::html_text({
                 name    => 'msg_subject',
                 size    => '50',
@@ -248,7 +248,7 @@
                 value => 'send',
              });
 
-    $body .= LJ::html_submit("Send");
+    $body .= LJ::html_submit($ML{'.title.send'});
     $body .= "</form></div>";
     $body .= qq{
         </td></tr></table>

Modified: trunk/htdocs/inbox/compose.bml.text
===================================================================
--- trunk/htdocs/inbox/compose.bml.text	2011-02-03 06:23:10 UTC (rev 18192)
+++ trunk/htdocs/inbox/compose.bml.text	2011-02-03 06:34:29 UTC (rev 18193)
@@ -2,3 +2,11 @@
 .suspended.cannot.send|staleness=1
 .suspended.cannot.send=Suspended accounts are not allowed to send private messages
 
+.title.subject=Subject:
+.title.send=Send
+
+.sent.title=Your message has been sent successfully.
+.sent.nowyoucan=From here you can
+.sent.new=Send a new message
+.sent.return=Return to Inbox
+.sent.returnhome=Return Home
\ No newline at end of file

Modified: trunk/htdocs/inbox/index.bml.text
===================================================================
--- trunk/htdocs/inbox/index.bml.text	2011-02-03 06:23:10 UTC (rev 18192)
+++ trunk/htdocs/inbox/index.bml.text	2011-02-03 06:34:29 UTC (rev 18193)
@@ -50,3 +50,8 @@
 .title|staleness=1
 .title=Inbox
 
+.btn.read=read
+.btn.unread=unread
+.btn.delete=delete
+.btn.prev=Previous
+.btn.next=Next

Tags: bml, juks, livejournal, pm, text
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 

  • 0 comments