Ticket #2507: sfSimpleCMSPlugin-i18n.patch
| File sfSimpleCMSPlugin-i18n.patch, 4.5 kB (added by marek, 1 year ago) |
|---|
-
plugins/sfSimpleCMSPlugin/modules/sfSimpleCMS/templates/_editorTools.php
old new 8 8 9 9 <div id="cms_toolbox_mode"> 10 10 <div> 11 Mode:11 <?php echo __('Mode:') ?> 12 12 <?php if ($sf_params->get('preview')): ?> 13 13 <?php $query_string = 'edit=true&preview=true' ?> 14 14 <span class="preview selected"><?php echo __('preview') ?></span> … … 22 22 </div> 23 23 <?php if ($is_publisher): ?> 24 24 <div> 25 Status:25 <?php echo __('Status:') ?> 26 26 <?php if ($page->getIsPublished()): ?> 27 27 <span class="published selected"><?php echo __('published') ?></span> 28 28 <span class="unpublished"><?php echo link_to(__('unpublish'), 'sfSimpleCMS/togglePublish?slug='.$slug, array('query_string' => $query_string.'&sf_culture='.$culture)) ?></span> … … 63 63 <?php echo input_hidden_tag('page_id', $page->getId()) ?> 64 64 65 65 <div class="form_control"> 66 <label for="slug"> Title:</label>66 <label for="slug"><?php echo __('Title:') ?></label> 67 67 <?php echo input_tag('title', $page->getTitle($culture), 'id=update_title class=wide') ?> 68 68 </div> 69 69 70 70 <div class="form_control"> 71 <label for="slug"> Path:</label>71 <label for="slug"><?php echo __('Path:') ?></label> 72 72 <?php echo input_tag('slug', $page->getSlug(), 'id=update_path class=wide') ?> 73 73 <?php echo input_hidden_tag('sf_culture', $culture) ?> 74 74 </div> 75 75 76 76 <div class="form_control"> 77 <label for="template"> Template:</label>77 <label for="template"><?php echo __('Template:') ?></label> 78 78 <?php echo select_tag('template', options_for_select(sfConfig::get('app_sfSimpleCMS_templates', array( 79 'simplePage' => 'Simple Page',80 'home' => 'Home'79 'simplePage' => __('Simple Page'), 80 'home' => __('Home') 81 81 )), $page->getTemplate()), 'id=update_template class=wide') ?> 82 82 </div> 83 83 84 84 <div class="form_control"> 85 85 <label for="position"> 86 Position:87 <?php echo radiobutton_tag('position_type', 'after') ?> After88 <?php echo radiobutton_tag('position_type', 'under') ?> Under86 <?php echo __('Position:') ?> 87 <?php echo radiobutton_tag('position_type', 'after') ?><?php echo __('After') ?> 88 <?php echo radiobutton_tag('position_type', 'under') ?><?php echo __('Under') ?> 89 89 </label> 90 90 <?php echo select_tag('position', options_for_select($page_names, $slug), 'id=create_position class=wide') ?> 91 91 <?php echo javascript_tag(" … … 112 112 <?php echo input_hidden_tag('sf_culture', $culture) ?> 113 113 114 114 <div class="form_control"> 115 <label for="slug"> Path:</label>115 <label for="slug"><?php echo __('Path:') ?></label> 116 116 <?php echo input_tag('slug', '', 'id=create_path class=wide autocomplete=off') ?> 117 117 </div> 118 118 119 119 <div class="form_control"> 120 <label for="template"> Template:</label>120 <label for="template"><?php echo __('Template:') ?></label> 121 121 <?php echo select_tag('template', options_for_select(sfConfig::get('app_sfSimpleCMS_templates', array( 122 'simplePage' => 'Simple Page',123 'home' => 'Home'122 'simplePage' => __('Simple Page'), 123 'home' => __('Home') 124 124 )), $page->getTemplate()), 'id=create_template class=wide') ?> 125 125 </div> 126 126 127 127 <div class="form_control"> 128 128 <label for="position"> 129 Position:130 <?php echo radiobutton_tag('position_type', 'after') ?> After131 <?php echo radiobutton_tag('position_type', 'under', 'selected=selected') ?> Under129 <?php echo __('Position:') ?> 130 <?php echo radiobutton_tag('position_type', 'after') ?><?php echo __('After') ?> 131 <?php echo radiobutton_tag('position_type', 'under', 'selected=selected') ?><?php echo __('Under') ?> 132 132 </label> 133 133 <?php echo select_tag('position', options_for_select($page_names), 'id=create_position class=wide') ?> 134 134 </div> 135 135 136 136 <div class="form_submit"> 137 <?php echo submit_tag( 'create') ?>137 <?php echo submit_tag(__('create')) ?> 138 138 </div> 139 139 140 140 </form>