Plugin Directory

Changeset 1754091


Ignore:
Timestamp:
10/27/2017 06:00:52 PM (8 years ago)
Author:
webtimal
Message:

Translation fix

Location:
multiple-cropped-images/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • multiple-cropped-images/trunk/dist/MCI_Meta.php

    r1754078 r1754091  
    5050        public function meta_box()
    5151        {
    52             add_meta_box('mci-meta', __('MCI', MCI_LOC_DOMAIN), [
     52            add_meta_box('mci-meta', __('MCI', 'multiple-cropped-images'), [
    5353                $this,
    5454                'cb_meta_box'
     
    7373            echo '</div>';
    7474
    75             echo '<span class="button mci-add">' . __('Add', MCI_LOC_DOMAIN) . '</span>';
     75            echo '<span class="button mci-add">' . __('Add', 'multiple-cropped-images') . '</span>';
    7676        }
    7777
  • multiple-cropped-images/trunk/dist/MCI_Options.php

    r1754078 r1754091  
    1717        public function __construct()
    1818        {
    19             $this->page_title = __('MCI Settings', MCI_LOC_DOMAIN);
     19            $this->page_title = __('MCI Settings', 'multiple-cropped-images');
    2020            $this->menu_slug  = 'mci';
    2121            $this->active_tab = isset($_GET['tab']) ? $_GET['tab'] : false;
     
    9898        public function add_admin_menu()
    9999        {
    100             add_menu_page($this->page_title, __('MCI', MCI_LOC_DOMAIN), 'manage_options', $this->menu_slug, [
     100            add_menu_page($this->page_title, __('MCI', 'multiple-cropped-images'), 'manage_options', $this->menu_slug, [
    101101                $this,
    102102                'create_options_page'
     
    170170        public function cb_status_description()
    171171        {
    172             echo '<p class="description">' . __('Activate the plugin for specific post types.', MCI_LOC_DOMAIN) . '</p>';
     172            echo '<p class="description">' . __('Activate the plugin for specific post types.', 'multiple-cropped-images') . '</p>';
    173173        }
    174174
    175175        public function cb_post_types_description()
    176176        {
    177             echo '<p class="description">' . __('Set custom sizes for each post type.', MCI_LOC_DOMAIN) . '</p>';
    178             echo '<p class="description">' . __('All sizes are to be given in pixels.', MCI_LOC_DOMAIN) . '</p>';
     177            echo '<p class="description">' . __('Set custom sizes for each post type.', 'multiple-cropped-images') . '</p>';
     178            echo '<p class="description">' . __('All sizes are to be given in pixels.', 'multiple-cropped-images') . '</p>';
    179179        }
    180180
     
    216216            $id = isset($sizes[ $post_type->name ]) ? count($sizes[ $post_type->name ]) : 0;
    217217
    218             echo '<span class="add button-secondary">' . __('Add', MCI_LOC_DOMAIN) . '</span>';
     218            echo '<span class="add button-secondary">' . __('Add', 'multiple-cropped-images') . '</span>';
    219219            echo '<span class="id">' . $id . '</span>';
    220220            echo '<span class="post_type">' . $post_type->name . '</span>';
  • multiple-cropped-images/trunk/dist/config/constants.php

    r1754073 r1754091  
    2323
    2424
    25     /* ---------- LOCALIZATION ----------*/
    26     define('MCI_LOC_DOMAIN', 'multiple-cropped-images');
    27 
    28 
    2925    /* ---------- SIZES ----------*/
    3026    define('MCI_SIZE_ICON', 98);
  • multiple-cropped-images/trunk/dist/config/settings.php

    r1754078 r1754091  
    55    return [
    66        'mci-tab-general' => [
    7             'title'    => __('General', MCI_LOC_DOMAIN),
     7            'title'    => __('General', 'multiple-cropped-images'),
    88            'sections' => [
    99                'mci-section-status' => [
    10                     'title'    => __('Status', MCI_LOC_DOMAIN),
     10                    'title'    => __('Status', 'multiple-cropped-images'),
    1111                    'callback' => 'cb_status_description',
    1212                    'fields'   => array_map(function($post_type)
     
    2525        ],
    2626        'mci-tab-sizes'   => [
    27             'title'    => __('Sizes', MCI_LOC_DOMAIN),
     27            'title'    => __('Sizes', 'multiple-cropped-images'),
    2828            'sections' => [
    2929                'mci-section-post-types' => [
    30                     'title'    => __('Post Types', MCI_LOC_DOMAIN),
     30                    'title'    => __('Post Types', 'multiple-cropped-images'),
    3131                    'callback' => 'cb_post_types_description',
    3232                    'fields'   => array_map(function($post_type)
  • multiple-cropped-images/trunk/dist/templates/mci-meta.php

    r1754070 r1754091  
    1919            <div class="info-id">ID: <?php echo $id; ?></div>
    2020            <div class="info-shortcode">[mci id=<?php echo $id; ?>]<input value="[mci id=<?php echo $id; ?>]">
    21                 <span class="notification"><?php _e('Copied to Clipboard', MCI_LOC_DOMAIN); ?></span>
     21                <span class="notification"><?php _e('Copied to Clipboard', 'multiple-cropped-images'); ?></span>
    2222            </div>
    2323        </div>
     
    3434
    3535        <div class="mci-controls-container">
    36             <label for="mci-size-<?php echo $id; ?>" class="mci-size-label"><?php _e('Size', MCI_LOC_DOMAIN); ?></label>
     36            <label for="mci-size-<?php echo $id; ?>" class="mci-size-label"><?php _e('Size', 'multiple-cropped-images'); ?></label>
    3737            <select id="mci-size-<?php echo $id; ?>" title="" class="mci-size">
    3838
     
    4444
    4545            </select>
    46             <span class="button cancel"><?php _e('Cancel', MCI_LOC_DOMAIN); ?></span>
     46            <span class="button cancel"><?php _e('Cancel', 'multiple-cropped-images'); ?></span>
    4747        </div>
    4848
     
    6060
    6161            <div>
    62                 <input class="mci-title" name="mci[<?php echo $id; ?>][title]" placeholder="<?php _e('Title', MCI_LOC_DOMAIN); ?>" value="<?php echo $title; ?>">
    63                 <textarea name="mci[<?php echo $id; ?>][text]" placeholder="<?php _e('Text', MCI_LOC_DOMAIN); ?>" rows="6"><?php echo $text; ?></textarea>
     62                <input class="mci-title" name="mci[<?php echo $id; ?>][title]" placeholder="<?php _e('Title', 'multiple-cropped-images'); ?>" value="<?php echo $title; ?>">
     63                <textarea name="mci[<?php echo $id; ?>][text]" placeholder="<?php _e('Text', 'multiple-cropped-images'); ?>" rows="6"><?php echo $text; ?></textarea>
    6464            </div>
    6565
    6666            <div>
    67                 <input name="mci[<?php echo $id; ?>][seo_title]" placeholder="<?php _e('SEO Title', MCI_LOC_DOMAIN); ?>" value="<?php echo $seo_title; ?>">
    68                 <textarea name="mci[<?php echo $id; ?>][seo_alt]" placeholder="<?php _e('SEO Alt', MCI_LOC_DOMAIN); ?>" rows="6"><?php echo $seo_alt; ?></textarea>
     67                <input name="mci[<?php echo $id; ?>][seo_title]" placeholder="<?php _e('SEO Title', 'multiple-cropped-images'); ?>" value="<?php echo $seo_title; ?>">
     68                <textarea name="mci[<?php echo $id; ?>][seo_alt]" placeholder="<?php _e('SEO Alt', 'multiple-cropped-images'); ?>" rows="6"><?php echo $seo_alt; ?></textarea>
    6969            </div>
    7070
  • multiple-cropped-images/trunk/dist/templates/mci-size.php

    r1754070 r1754091  
    22
    33    <label>
    4         <?php _e('Width', MCI_LOC_DOMAIN); ?>:
     4        <?php _e('Width', 'multiple-cropped-images'); ?>:
    55        <input type="number" min="1" max="2560" name="<?php echo $name; ?>[width]" value="<?php echo $width; ?>">
    66    </label>
    77
    88    <label>
    9         <?php _e('Height', MCI_LOC_DOMAIN); ?>:
     9        <?php _e('Height', 'multiple-cropped-images'); ?>:
    1010        <input type="number" min="1" max="2560" name="<?php echo $name; ?>[height]" value="<?php echo $height; ?>">
    1111    </label>
    1212
    1313    <label>
    14         <?php _e('Max. Thumbnail Size', MCI_LOC_DOMAIN); ?>:
     14        <?php _e('Max. Thumbnail Size', 'multiple-cropped-images'); ?>:
    1515        <input type="number" min="1" max="2560" name="<?php echo $name; ?>[thumb_size]" value="<?php echo $thumb_size; ?>">
    1616    </label>
  • multiple-cropped-images/trunk/mci.php

    r1754080 r1754091  
    3434        $plugin_rel_path = basename(plugin_dir_path(__FILE__)) . '/' . MCI_ENVIRONMENT . '/lang';
    3535
    36         load_plugin_textdomain(MCI_LOC_DOMAIN, false, $plugin_rel_path);
     36        load_plugin_textdomain('multiple-cropped-images', false, $plugin_rel_path);
    3737    });
    3838
Note: See TracChangeset for help on using the changeset viewer.