Development

#2507: sfSimpleCMSPlugin-i18n.patch

You must first sign up to be able to contribute.

Ticket #2507: sfSimpleCMSPlugin-i18n.patch

File sfSimpleCMSPlugin-i18n.patch, 4.5 kB (added by marek, 1 year ago)

Patch to make the interface fully internationalized

  • plugins/sfSimpleCMSPlugin/modules/sfSimpleCMS/templates/_editorTools.php

    old new  
    88 
    99  <div id="cms_toolbox_mode"> 
    1010    <div> 
    11       Mode:  
     11      <?php echo __('Mode:') ?> 
    1212      <?php if ($sf_params->get('preview')): ?> 
    1313        <?php $query_string = 'edit=true&preview=true' ?> 
    1414        <span class="preview selected"><?php echo __('preview') ?></span> 
     
    2222    </div> 
    2323    <?php if ($is_publisher): ?> 
    2424    <div> 
    25       Status:  
     25      <?php echo __('Status:') ?> 
    2626      <?php if ($page->getIsPublished()): ?> 
    2727        <span class="published selected"><?php echo __('published') ?></span> 
    2828        <span class="unpublished"><?php echo link_to(__('unpublish'), 'sfSimpleCMS/togglePublish?slug='.$slug, array('query_string' => $query_string.'&sf_culture='.$culture)) ?></span> 
     
    6363      <?php echo input_hidden_tag('page_id', $page->getId()) ?> 
    6464   
    6565      <div class="form_control"> 
    66         <label for="slug">Title:</label> 
     66        <label for="slug"><?php echo __('Title:') ?></label> 
    6767        <?php echo input_tag('title', $page->getTitle($culture), 'id=update_title class=wide') ?> 
    6868      </div> 
    6969 
    7070      <div class="form_control"> 
    71         <label for="slug">Path:</label> 
     71        <label for="slug"><?php echo __('Path:') ?></label> 
    7272        <?php echo input_tag('slug', $page->getSlug(), 'id=update_path class=wide') ?> 
    7373        <?php echo input_hidden_tag('sf_culture', $culture) ?> 
    7474      </div> 
    7575       
    7676      <div class="form_control"> 
    77         <label for="template">Template:</label> 
     77        <label for="template"><?php echo __('Template:') ?></label> 
    7878        <?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') 
    8181        )), $page->getTemplate()), 'id=update_template class=wide') ?> 
    8282      </div> 
    8383       
    8484      <div class="form_control"> 
    8585        <label for="position"> 
    86           Position: 
    87           <?php echo radiobutton_tag('position_type', 'after') ?>After 
    88           <?php echo radiobutton_tag('position_type', 'under') ?>Under 
     86          <?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') ?> 
    8989        </label> 
    9090        <?php echo select_tag('position', options_for_select($page_names, $slug), 'id=create_position class=wide') ?> 
    9191        <?php echo javascript_tag(" 
     
    112112      <?php echo input_hidden_tag('sf_culture', $culture) ?> 
    113113       
    114114      <div class="form_control"> 
    115         <label for="slug">Path:</label> 
     115        <label for="slug"><?php echo __('Path:') ?></label> 
    116116        <?php echo input_tag('slug', '', 'id=create_path class=wide autocomplete=off') ?> 
    117117      </div> 
    118118       
    119119      <div class="form_control"> 
    120         <label for="template">Template:</label> 
     120        <label for="template"><?php echo __('Template:') ?></label> 
    121121        <?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') 
    124124        )), $page->getTemplate()), 'id=create_template class=wide') ?> 
    125125      </div> 
    126126   
    127127      <div class="form_control"> 
    128128        <label for="position"> 
    129           Position: 
    130           <?php echo radiobutton_tag('position_type', 'after') ?>After 
    131           <?php echo radiobutton_tag('position_type', 'under', 'selected=selected') ?>Under 
     129          <?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') ?> 
    132132        </label> 
    133133        <?php echo select_tag('position', options_for_select($page_names), 'id=create_position class=wide') ?> 
    134134      </div> 
    135135 
    136136      <div class="form_submit"> 
    137         <?php echo submit_tag('create') ?> 
     137        <?php echo submit_tag(__('create')) ?> 
    138138      </div> 
    139139   
    140140    </form>