Index: /branches/release-27/lib/MT/App/CMS.pm
===================================================================
--- /branches/release-27/lib/MT/App/CMS.pm (revision 1242)
+++ /branches/release-27/lib/MT/App/CMS.pm (revision 1248)
@@ -20365,4 +20365,5 @@
         }
         $param->{'template_set_index'} = $#$sets;
+        $param->{'template_set_count'} = scalar @$sets;
 
         $param->{template_sets} = $sets;
Index: /branches/release-27/tmpl/cms/dialog/refresh_templates.tmpl
===================================================================
--- /branches/release-27/tmpl/cms/dialog/refresh_templates.tmpl (revision 1135)
+++ /branches/release-27/tmpl/cms/dialog/refresh_templates.tmpl (revision 1248)
@@ -55,5 +55,5 @@
 
     <mt:setvarblock name="refresh_label"><mt:loop name="template_set_loop"><mt:if name="selected"><__trans phrase="Refresh [_1] template set" params="<mt:var name="label" escape="html">"></mt:if></mt:loop></mt:setvarblock>
-        
+
     <mtapp:setting
         id="refresh_templates"
@@ -68,5 +68,11 @@
     </mtapp:setting>
 
+    <mt:if name="template_set_count" gt="1">
     <mt:setvarblock name="new_label"><__trans phrase="Apply a new template set"></mt:setvarblock>
+    <mt:setvarblock name="new_hint"><__trans phrase="Deletes all existing templates and install the selected template set."></mt:setvarblock>
+    <mt:else>
+    <mt:setvarblock name="new_label"><__trans phrase="Reset to factory defaults"></mt:setvarblock>
+    <mt:setvarblock name="new_hint"><__trans phrase="Deletes all existing templates and installs factory default template set."></mt:setvarblock>
+    </mt:if>
 
     <mtapp:setting
@@ -75,5 +81,5 @@
         show_label="0"
         show_hint="1"
-        hint="<__trans phrase="Deletes all existing templates and installs factory default template set.">"
+        hint="$new_hint"
         label_class="top-label">
 
@@ -82,17 +88,18 @@
         </div>
 
-        <mt:if name="template_set_index" gt="1">
+        <mt:if name="template_set_count" gt="1">
         <select id="template_set" name="template_set" size="1" disabled="disabled">
             <mt:loop name="template_set_loop">
             <option value="<mt:var name="key" escape="html">" <mt:if name="selected">selected="selected"</mt:if>><mt:var name="label" escape="html"></option>
             </mt:loop>
-        </select>
         <mt:else>
             <mt:loop name="template_set_loop">
-        <input type="hidden" name="template_set" value="<mt:var name="key" escape="html">" />
+            <input type="hidden" name="template_set" value="<mt:var name="key" escape="html">" />
             </mt:loop>
         </mt:if>
+        </select>
 
     </mtapp:setting>
+
 
         <div>
