Plugin Directory

Changeset 1377071


Ignore:
Timestamp:
03/23/2016 02:51:18 PM (10 years ago)
Author:
selectyco
Message:

ii18n

Location:
selectyco/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • selectyco/trunk/inc/style.css

    r1376148 r1377071  
    1616  no-repeat;
    1717  background-size: contain;
     18  text-align: center;
    1819}
    1920
  • selectyco/trunk/selectyco.php

    r1377031 r1377071  
    88  Author:      selectyco Media Solutions GmbH
    99  Author URI:  https://www.selectyco.com
     10  Text Domain: selectyco
     11  Domain Path: /languages/
    1012  */
    1113 
     
    9597      public function add_syc_metabox()
    9698      {
    97           add_meta_box("syc-meta-box", "selectyco: Artikel-Stammdaten", array($this, "syc_meta_box_markup"), "post", "side", "high", null);
     99          add_meta_box("syc-meta-box", "selectyco: " . __('Item data','selectyco'), array($this, "syc_meta_box_markup"), "post", "side", "high", null);
    98100      }
    99101     
     
    115117        <table border="0" id="selectycoTbl">
    116118          <tr>
    117             <td><?php _e('Itemname','itemname')?></td>
    118             <td colspan="2"><input style="width:150px" id="sycItemName" name="meta-box-itemName" type="text" placeholder="Name des Beitrages" value=""></td>
    119           </tr>
    120           <tr>
    121             <td>Beitragstyp</td>
     119            <td><?php _e('Itemname','selectyco')?></td>
     120            <td colspan="2"><input style="width:150px" id="sycItemName" name="meta-box-itemName" type="text" placeholder="<?php _e('Name of the article','selectyco')?>" value=""></td>
     121          </tr>
     122          <tr>
     123            <td><?php _e('Type of Item','selectyco')?></td>
    122124            <td colspan="2">
    123125                <select style="width:150px" name="meta-box-laufZeit" id="sycItemType">
     
    125127                        $itemTypes = array(0=>'Artikel',1=>'Video',2=>'ContentPlacement',3=>'Ausgabe, EPaper');
    126128                        foreach($itemTypes as $itKey => $itVal ) {
    127                            echo "<option value=".$itKey.">".$itVal."</option>";
     129                           echo "<option value=".$itKey.">".__($itVal,'selectyco')."</option>";
    128130                        }
    129131                    ?>
     
    132134          </tr>
    133135          <tr>
    134             <td>Preiskategorie</td>
     136            <td><?php _e('Price category','selectyco')?></td>
    135137            <td colspan="2">
    136138              <select style="width:150px" id="sycPriceClass" name="meta-box-priceClass">
     
    145147          </tr>
    146148          <tr>
    147             <td>Laufzeit</td>
     149            <td><?php _e('Runtime','selectyco')?></td>
    148150            <td width="50">
    149151                <select style="width:50px" name="meta-box-laufZeit" id="sycRunTime">
     
    156158            </td>
    157159            <td>
    158               <input type="radio" id="sycMonth" name="sycTimeunits" value="month" checked><label for="sycMonth"> Monate</label><br>
    159               <input type="radio" id="sycWeek" name="sycTimeunits" value="week"><label for="sycWeek"> Wochen</label><br>
    160               <input type="radio" id="sycDay" name="sycTimeunits" value="day" ><label for="sycDay"> Tage</label>
     160              <input type="radio" id="sycMonth" name="sycTimeunits" value="month" checked><label for="sycMonth"> <?php _e('months','selectyco')?></label><br>
     161              <input type="radio" id="sycWeek" name="sycTimeunits" value="week"><label for="sycWeek"> <?php _e('weeks','selectyco')?></label><br>
     162              <input type="radio" id="sycDay" name="sycTimeunits" value="day" ><label for="sycDay"> <?php _e('days','selectyco')?></label>
    161163            </td>
    162164          </tr>
     
    170172                }
    171173                else {
    172                   echo "<div class=\"button tagadd\" id=\"createBackendItem\">Artikel bei selectyco anlegen</div>";
     174                  echo "<div class=\"button tagadd\" id=\"createBackendItem\">".__('Create selectyco item','selectyco')."</div>";
    173175                }
    174176              ?>           
     
    484486   
    485487    // init the plugin class
     488    load_plugin_textdomain( 'selectyco', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
    486489    add_action('plugins_loaded', 'syc_init');
    487490   
Note: See TracChangeset for help on using the changeset viewer.