Index: mythplugins/mythweb/modules/video/handler.php
===================================================================
--- mythplugins/mythweb/modules/video/handler.php	(revision 22991)
+++ mythplugins/mythweb/modules/video/handler.php	(working copy)
@@ -184,7 +184,7 @@
     while ($row = $sh->fetch_assoc())
         $Category_String[$row['intid']] = $row['category'];
     $sh->finish();
-    $Category_String[0] = 'Uncategorized';
+    $Category_String[0] = t('Uncategorized');
 
 // New:  Get the video genres on the system
     $Genre_String = array();
@@ -192,7 +192,7 @@
     while ($row = $sh->fetch_assoc())
         $Genre_String[$row['intid']] = $row['genre'];
     $sh->finish();
-    $Genre_String[0] = 'No Genre';
+    $Genre_String[0] = t('No Genre');
 
 // Parse the list
 // Filter_Category of -1 means All, 0 mean uncategorized
Index: mythplugins/mythweb/modules/video/edit.php
===================================================================
--- mythplugins/mythweb/modules/video/edit.php	(revision 22991)
+++ mythplugins/mythweb/modules/video/edit.php	(working copy)
@@ -81,21 +81,21 @@
 <body>
 
 <form method="post" action="<?php echo root_url ?>video/edit" enctype="multipart/form-data">
-Title<br>
+<?php echo t('Title'); ?><br>
 <input name="title" type="text" value="<?php echo htmlspecialchars($Video->title, ENT_QUOTES ); ?>"><br><br>
-Subtitle<br>
+<?php echo t('Subtitle'); ?><br>
 <input name="subtitle" type="text" value="<?php echo htmlspecialchars($Video->subtitle, ENT_QUOTES ); ?>"><br><br>
-Season:<br>
+<?php echo t('Season'); ?><br>
 <input name="season" type="text" size="3" value="<?php echo intval($Video->season); ?>"><br><br>
-Episode:<br>
+<?php echo t('Episode'); ?><br>
 <input name="episode" type="text" size="3" value="<?php echo intval($Video->episode); ?>"><br><br>
-Director<br>
+<?php echo t('Director'); ?><br>
 <input name="director" type="text" value="<?php echo htmlspecialchars($Video->director, ENT_QUOTES ); ?>"><br><br>
-Plot<br>
+<?php echo t('Plot'); ?><br>
 <textarea name="plot" rows="5" cols="30" wrap="VIRTUAL"><?php echo htmlspecialchars($Video->plot, ENT_QUOTES ); ?></textarea><br><br>
-Category<br>
+<?php echo t('Category'); ?><br>
 <select name="category">
-<option <?php if ($Video->category == 0) echo ' SELECTED'; ?> value="0">Uncategorized</option>
+<option <?php if ($Video->category == 0) echo ' SELECTED'; ?> value="0"><?php echo t('Uncategorized'); ?></option>
 <?php
     $sh = $db->query('SELECT * FROM videocategory');
     while ($cat_data = $sh->fetch_assoc()) {
@@ -106,32 +106,32 @@
     }
     $sh->finish();
 ?></select><br><br>
-Rating<br>
+<?php echo t('Rating'); ?><br>
 <input name="rating" type="text" value="<?php echo htmlspecialchars($Video->rating, ENT_QUOTES); ?>"><br><br>
-IMDB<br>
+<?php echo t('IMDB'); ?><br>
 <input name="inetref" type="text" value="<?php echo htmlspecialchars($Video->inetref, ENT_QUOTES); ?>"><br><br>
-Year<br>
+<?php echo t('Year'); ?><br>
 <input name="year" type="text" size="4" value="<?php echo htmlspecialchars($Video->year, ENT_QUOTES); ?>"><br><br>
-User Rating<br>
+<?php echo t('User Rating'); ?><br>
 <input name="userrating" type="text" size="3" value="<?php echo htmlspecialchars($Video->userrating, ENT_QUOTES); ?>"><br><br>
-Length in minutes<br>
+<?php echo t('Length in minutes'); ?><br>
 <input name="length" type="text" size="3" value="<?php echo htmlspecialchars($Video->length, ENT_QUOTES); ?>"><br><br>
-Browsable<br>
+<?php echo t('Browsable'); ?><br>
 <select name="browse">
- <option value="0" <?php if ($Video->browse == 0) echo ' SELECTED'; ?>>No</option>
- <option value="1" <?php if ($Video->browse == 1) echo ' SELECTED'; ?>>Yes</option>
+ <option value="0" <?php if ($Video->browse == 0) echo ' SELECTED'; ?>><?php echo t('No'); ?></option>
+ <option value="1" <?php if ($Video->browse == 1) echo ' SELECTED'; ?>><?php echo t('Yes'); ?></option>
 </select><br><br>
-Parental Level<br>
+<?php echo t('Parental Level'); ?><br>
 <select name="showlevel">
- <option value="1" <?php if ($Video->showlevel == 1) echo ' SELECTED'; ?>>1 - Lowest</option>
+ <option value="1" <?php if ($Video->showlevel == 1) echo ' SELECTED'; ?>><?php echo t('1 - Lowest'); ?></option>
  <option value="2" <?php if ($Video->showlevel == 2) echo ' SELECTED'; ?>>2</option>
  <option value="3" <?php if ($Video->showlevel == 3) echo ' SELECTED'; ?>>3</option>
- <option value="4" <?php if ($Video->showlevel == 4) echo ' SELECTED'; ?>>4 - Highest</option>
+ <option value="4" <?php if ($Video->showlevel == 4) echo ' SELECTED'; ?>><?php echo t('4 - Highest'); ?></option>
 </select><br><br>
-Cover Image<br>
+<?php echo t('Cover Image'); ?><br>
 <input type="file" name="coverfile"><br><br>
 <input type="hidden" name="intid" value="<?php echo $_REQUEST['intid']; ?>">
-<input class="submit" type="submit" name="submit" value="submit">
+<input class="submit" type="submit" name="submit" value="<?php echo t('Submit'); ?>">
 
 </form>
 
Index: mythplugins/mythweb/modules/video/tmpl/default/video.php
===================================================================
--- mythplugins/mythweb/modules/video/tmpl/default/video.php	(revision 22991)
+++ mythplugins/mythweb/modules/video/tmpl/default/video.php	(working copy)
@@ -26,7 +26,7 @@
 <script type="text/javascript">
 
     function newWindow(id) {
-        $('window_title').innerHTML   = '<?php echo t('Editing '); ?> ' + $(id+'-title').childNodes[0].innerHTML;
+        $('window_title').innerHTML   = '<?php echo addslashes(t('Editing ')); ?> ' + $(id+'-title').childNodes[1].innerHTML;
         $('window_content').innerHTML = '<iframe src="<?php echo root_url; ?>video/edit?intid='+id+'">';
         $('window').show();
         Tips.hideAll();
@@ -34,7 +34,7 @@
 
     function imdb_lookup(id, title) {
         if (pending_ajax_requests > 0) {
-            alert('<?php echo t('Please wait for the pending ajax request'); ?>');
+            alert('<?php echo addslashes(t('Please wait for the pending ajax request')); ?>');
             return;
         }
         ajax_add_request();
@@ -75,7 +75,7 @@
 
         if (result['action'] == 'lookup') {
             if (result['matches']) {
-                $('window_title').innerHTML   = '<?php echo t('Video: IMDB: Window Title'); ?> (<a href="javascript: imdb_prompt(\''+result['id']+'\');"><?php echo t('Custom Search'); ?><\/a>)';
+                $('window_title').innerHTML   = '<?php echo addslashes(t('Video: IMDB: Window Title')); ?> (<a href="javascript: imdb_prompt(\''+result['id']+'\');"><?php echo addslashes(t('Custom Search')); ?><\/a>)';
                 $('window_content').innerHTML = '';
                 for (var key in result['matches'])
                     if (result['matches'][key]['title'])
@@ -85,8 +85,8 @@
 
             }
             else {
-                $('window_title').innerHTML   = '<?php echo t('Video: IMDB: Window Title'); ?> (<a href="javascript: imdb_prompt(\''+result['id']+'\');"><?php echo t('Custom Search'); ?><\/a>)';
-                $('window_content').innerHTML = '<?php echo t('Video: IMDB: No Matches');   ?>';
+                $('window_title').innerHTML   = '<?php echo addslashes(t('Video: IMDB: Window Title')); ?> (<a href="javascript: imdb_prompt(\''+result['id']+'\');"><?php echo addslashes(t('Custom Search')); ?><\/a>)';
+                $('window_content').innerHTML = '<?php echo addslashes(t('Video: IMDB: No Matches'));   ?>';
 
             }
             $('window').show();
@@ -118,7 +118,7 @@
 
     function imdb_prompt(id) {
         var title  = $(id+'-title').childNodes[1].innerHTML;
-        var number = prompt('<?php echo t('Please enter an imdb number or a title to do another search'); ?>', title);
+        var number = prompt('<?php echo addslashes(t('Please enter an imdb number or a title to do another search')); ?>', title);
         if (typeof(number) != 'string' || number.length == 0)
             return;
         $('window').hide();
@@ -218,10 +218,10 @@
     function video_create_popup(result) {
         var video    = result.responseJSON['metadata'];
         var content  = '<dl class="details_list">'
-                     + '<dt>Plot:</dt>     <dd>'+(video['plot'] ? video['plot'] : '&nbsp;')+'</dd>'
-                     + '<dt>Rating:</dt>   <dd>'+(video['rating'] ? video['rating'] : '&nbsp;')+'</dd>'
-                     + '<dt>Director:</dt> <dd>'+(video['director'] ? video['director'] : '&nbsp;')+'</dd>'
-                     + '<dt>Year:</dt>     <dd>'+(video['year'] ? video['year'] : '&nbsp;')+'</dd>';
+                     + '<dt><?php echo addslashes(t('Plot:')); ?></dt>     <dd>' + (video['plot'] ? video['plot'] : '&nbsp;')+'</dd>'
+                     + '<dt><?php echo addslashes(t('Rating:')); ?></dt>   <dd>' + (video['rating'] ? video['rating'] : '&nbsp;')+'</dd>'
+                     + '<dt><?php echo addslashes(t('Director:')); ?></dt> <dd>' + (video['director'] ? video['director'] : '&nbsp;')+'</dd>'
+                     + '<dt><?php echo addslashes(t('Year:')); ?></dt>     <dd>' + (video['year'] ? video['year'] : '&nbsp;')+'</dd>';
                      + '</dl>';
         new Tip(video['intid'], content, { className: 'popup' });
         loading_popups[video['intid']] = false;
@@ -299,8 +299,8 @@
 <div id="videos">
 
 <div id="path">
-  <b>Directory Structure</b><hr>
-  <a class="<?php if (!isset($_SESSION['video']['path']) || $_SESSION['video']['path'] == '/') echo 'active'; ?>" href="<?php echo root_url; ?>video?path=/">Root Directory</a><br><br>
+  <b><?php echo t('Directory Structure'); ?></b><hr>
+  <a class="<?php if (!isset($_SESSION['video']['path']) || $_SESSION['video']['path'] == '/') echo 'active'; ?>" href="<?php echo root_url; ?>video?path=/"><?php echo t('Root Directory'); ?></a><br><br>
   <?php foreach ($PATH_TREE as $path) { output_path_picker($path); } ?>
 </div>
 
@@ -324,7 +324,7 @@
         <div id="<?php echo $video->intid; ?>_imdb">               <?php if ($video->inetref != '00000000') { ?><a href="<?php echo makeImdbWebUrl($video->inetref); ?>"><?php echo $video->inetref ?></a><?php } ?></div>
         <div class="command">
             <span class="commands"><a href="javascript:newWindow('<?php echo $video->intid ?>')" ><?php echo t('Edit') ?></a></span>
-            <span class="commands"><a href="javascript:imdb_lookup('<?php echo $video->intid ?>','<?php echo addslashes($video->title); ?>')">IMDB</a></span>
+            <span class="commands"><a href="javascript:imdb_lookup('<?php echo $video->intid ?>','<?php echo addslashes($video->title); ?>')"><?php echo t('IMDB') ?></a></span>
         </div>
     </div>
 <?php
Index: mythplugins/mythweb/classes/Video.php
===================================================================
--- mythplugins/mythweb/classes/Video.php	(revision 22991)
+++ mythplugins/mythweb/classes/Video.php	(working copy)
@@ -48,8 +48,8 @@
         $this->episode      = $video['episode'];
         $this->director     = $video['director'];
         $this->inetref      = $video['inetref'];
-        $this->year         = $video['year'] ? $video['year'] : 'Unknown';
-        $this->userrating   = $video['userrating'] ? $video['userrating'] : 'Unknown';
+        $this->year         = $video['year'] ? $video['year'] : t('Unknown');
+        $this->userrating   = $video['userrating'] ? $video['userrating'] : t('Unknown');
         $this->length       = $video['length'];
         $this->showlevel    = $video['showlevel'];
         $this->filename     = $video['filename'];
@@ -99,7 +99,7 @@
                       'season'      => $this->season,
                       'episode'     => $this->episode,
                       'playtime'    => nice_length($this->length * 60),
-                      'category'    => strlen($Category_String[$this->category]) ? $Category_String[$this->category] : 'Uncategorized',
+                      'category'    => strlen($Category_String[$this->category]) ? $Category_String[$this->category] : t('Uncategorized'),
                       'imdb'        => ($this->inetref != '00000000') ? '<a href="http://www.imdb.com/Title?'.$this->inetref.'">'.$this->inetref.'</a>' : '',
                       'plot'        => $this->plot,
                       'rating'      => $this->rating,
