Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r17280: LJSV-1189 ("Insert Image" button in RTE ...

Committer: ailyin
LJSV-1189 ("Insert Image" button in RTE redirects to a Photobucket login page): add ML variables
U   trunk/htdocs/imgupload.bml
U   trunk/htdocs/imgupload.bml.text
U   trunk/htdocs/imguploadrte.bml
Modified: trunk/htdocs/imgupload.bml
===================================================================
--- trunk/htdocs/imgupload.bml	2010-09-03 10:21:27 UTC (rev 17279)
+++ trunk/htdocs/imgupload.bml	2010-09-03 10:47:12 UTC (rev 17280)
@@ -85,8 +85,9 @@
     $ret .= "<div id='close'><a href='#close' onclick='onCancel();return false;'>close</a></div>";
 
     # content
+    my $ml_unavailable = LJ::Lang::ml('/imgupload.bml.msg.unavailable');
     $ret .= "<div class='insobjContent' id='img_iframe_holder' style='display: none; margin: 0px 0px 0px 0px;'>
-        TODO ML: Service temporary unavailable.
+        $ml_unavailable
     </div><div id='img_fromwhere' class='insobjContent'>";
 
     $ret .= "<p class='wintitle' id='wintitle'></p>";

Modified: trunk/htdocs/imgupload.bml.text
===================================================================
--- trunk/htdocs/imgupload.bml.text	2010-09-03 10:21:27 UTC (rev 17279)
+++ trunk/htdocs/imgupload.bml.text	2010-09-03 10:47:12 UTC (rev 17280)
@@ -5,3 +5,5 @@
 
 .size=When uploading from file or from a gallery, the image will display as 320 x 240 (medium) and will link to the image in the gallery.
 
+.msg.unavailable=This service is temporarily unavailable.
+

Modified: trunk/htdocs/imguploadrte.bml
===================================================================
--- trunk/htdocs/imguploadrte.bml	2010-09-03 10:21:27 UTC (rev 17279)
+++ trunk/htdocs/imguploadrte.bml	2010-09-03 10:47:12 UTC (rev 17280)
@@ -189,6 +189,7 @@
         $ret .= "</form></div><script>InObFCK.setupIframeHandlers();</script>";
 
         # taken from orig fck_image.html
+        my $ml_unavailable = LJ::Lang::ml('/imgupload.bml.msg.unavailable');
         $ret .= qq{
                 </div>
                 <div id="divLink" style="DISPLAY: none">
@@ -260,7 +261,7 @@
                     var inRTE = true;
                     var browser = new BrowserDetectLite();
                     if (browser.isSafari) cb_url = '';
-                    document.write('TODO ML: Service temporary unavailable.');
+                    document.write('$ml_unavailable');
                     //document.write('<iframe name="jwidget" id="jwidget" src="http://photobucket.com/svc/jwidget.php?width=360&height=400&largeThumb=true&pbaffsite='+pb_affsite_id+'&bg=%23F7F7F7&border=false&bordercolor=%23000000'+cb_url+'&linkType=url&textcolor=%23000000&linkcolor=%230000FF&media=image&btntxt=Paste&dimensions=false&promo=false" bgcolor="transparent" width="99%" height="440" frameborder="0" scrolling="no"></iframe>');
                 </script>
                 </div>

Tags: andy, bml, livejournal, 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