Changeset 2818
- Timestamp:
- 07/18/08 23:41:53 (3 months ago)
- Files:
-
- branches/release-41/lib/MT/App/CMS.pm (modified) (1 diff)
- branches/release-41/tmpl/cms/dialog/refresh_templates.tmpl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-41/lib/MT/App/CMS.pm
r2597 r2818 331 331 refresh_global_templates => { 332 332 label => "Refresh Global Templates", 333 handler => '$Core::MT::CMS::Template::refresh_all_templates',333 dialog => 'dialog_refresh_templates', 334 334 condition => sub { 335 335 ! MT->app->blog, 336 336 }, 337 337 order => 1000, 338 continue_prompt => MT->translate('This action will restore your global templates to factory settings without creating a backup. Click OK to continue or Cancel to abort.'),339 338 }, 340 339 publishing_profile => { branches/release-41/tmpl/cms/dialog/refresh_templates.tmpl
r2046 r2818 1 <mt:var 2 name="page_title" 3 value="<__trans phrase="Refresh Template Set">"> 1 <mt:if name="blog_id"> 2 <mt:var 3 name="page_title" 4 value="<__trans phrase="Refresh Template Set">"> 5 <mt:else> 6 <mt:var 7 name="page_title" 8 value="<__trans phrase="Refresh Global Templates">"> 9 </mt:if> 4 10 5 11 <mt:setvarblock name="html_head" append="1"> … … 54 60 <div id="refresh-panel" class="hidden panel"> 55 61 56 <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> 62 <mt:setvarblock name="refresh_label"> 63 <mt:if name="blog_id"> 64 <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> 65 <mt:else> 66 <__trans phrase="Refresh global templates"> 67 </mt:if> 68 </mt:setvarblock> 57 69 58 70 <mtapp:setting … … 129 141 <div id="confirm-panel" class="hidden panel"> 130 142 <div id="confirm-refresh"> 131 <p><__trans phrase="You have requested to <strong>refresh the current template set</strong>. This action will:"></p> 143 <mt:if name="blog_id"> 144 <p><__trans phrase="You have requested to <strong>refresh the current template set</strong>. This action will:"></p> 145 <mt:else> 146 <p><__trans phrase="You have requested to <strong>refresh the global templates</strong>. This action will:"></p> 147 </mt:if> 132 148 133 149 <ul> 150 <li id="backups-message-refresh"><__trans phrase="make backups of your templates that can be accessed through your backup filter"></li> 134 151 <li><__trans phrase="potentially install new templates"></li> 135 152 <li><__trans phrase="overwrite some existing templates with new template code"></li> 136 <li id="backups-message-refresh"><__trans phrase="backups will be made of your templates and can be accessed through your backup filter"></li>137 153 </ul> 138 154 </div> 139 155 140 156 <div id="confirm-clean" class="hidden"> 141 <p><__trans phrase="You have requested to <strong>apply a new template set</strong>. This action will:"></p> 157 <mt:if name="blog_id"> 158 <p><__trans phrase="You have requested to <strong>apply a new template set</strong>. This action will:"></p> 159 <mt:else> 160 <p><__trans phrase="You have requested to <strong>reset to the default global templates</strong>. This action will:"></p> 161 </mt:if> 142 162 143 163 <ul> 144 <li><__trans phrase="delete all of the templates in your blog"></li> 145 <li><__trans phrase="install new templates from the selected template set"></li> 146 <li id="backups-message-clean"><__trans phrase="backups will be made of your templates and can be accessed through your backup filter"></li> 164 <li id="backups-message-clean"><__trans phrase="make backups of your templates that can be accessed through your backup filter"></li> 165 <mt:if name="blog_id"> 166 <li><__trans phrase="delete all of the templates in your blog"></li> 167 <li><__trans phrase="install new templates from the selected template set"></li> 168 <mt:else> 169 <li><__trans phrase="delete all of your global templates"></li> 170 <li><__trans phrase="install new templates from the default global templates"></li> 171 </mt:if> 147 172 </ul> 148 173 </div>
