Plugin Directory

Changeset 1681727


Ignore:
Timestamp:
06/20/2017 09:22:16 AM (9 years ago)
Author:
shokola
Message:

update text-domain of translation with text and not variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • shokola-custom-white-label/trunk/shokola-custom-whitelabel.php

    r1681723 r1681727  
    143143        function plugin_action_links($links)
    144144        {
    145             $links[] = '<a href="' . esc_url(get_admin_url(null, 'options-general.php?page=' . $this->plugin_slug . '.php')) . '">' . __('Settings', $this->plugin_slug) . '</a>';
     145            $links[] = '<a href="' . esc_url(get_admin_url(null, 'options-general.php?page=' . $this->plugin_slug . '.php')) . '">' . __('Settings', 'shokola-custom-whitelabel') . '</a>';
    146146
    147147            // $links[] = '<a href="https://www.shokola.com/" target="_blank">Shokola</a>';
     
    160160            if (!current_user_can('manage_options'))
    161161            {
    162                 wp_die(__('You do not have sufficient permissions to access this page.', $this->plugin_slug));
     162                wp_die(__('You do not have sufficient permissions to access this page.', 'shokola-custom-whitelabel'));
    163163            }
    164164
     
    167167            <div class="wrap scwl-wrap">
    168168                <h2><?php echo esc_html(get_admin_page_title()); ?></h2>
    169                 <p><?php echo __('Adjust the custom settings of the login page / recovery password page.', $this->plugin_slug); ?></p>
     169                <p><?php echo __('Adjust the custom settings of the login page / recovery password page.', 'shokola-custom-whitelabel'); ?></p>
    170170
    171171                <?php if ($tabs) : ?>
     
    223223                                                <button type="button"
    224224                                                        class="button button-secondary button-remove-image"
    225                                                         title="<?php echo __('Remove image', $this->plugin_slug); ?>"
    226                                                         data-input-id="<?php echo $setting['key']; ?>"><?php echo __('Remove', $this->plugin_slug); ?></button>
     225                                                        title="<?php echo __('Remove image', 'shokola-custom-whitelabel'); ?>"
     226                                                        data-input-id="<?php echo $setting['key']; ?>"><?php echo __('Remove', 'shokola-custom-whitelabel'); ?></button>
    227227                                            <?php endif; ?>
    228228
     
    234234                                        <?php if ($setting['type'] == 'file' && function_exists('wp_enqueue_media')) : ?>
    235235                                            <p class="description"
    236                                                id="<?php echo $setting['key']; ?>_image_preview_description" <?php echo ($option_value == '') ? 'style="display: none;"' : ''; ?>><?php echo __('Image preview', $this->plugin_slug); ?>
     236                                               id="<?php echo $setting['key']; ?>_image_preview_description" <?php echo ($option_value == '') ? 'style="display: none;"' : ''; ?>><?php echo __('Image preview', 'shokola-custom-whitelabel'); ?>
    237237                                                :</p>
    238238                                            <div class="image-preview">
     
    267267            $settings = array();
    268268
    269             $settings[] = array('type' => 'file', 'name' => __('Logo - image', $this->plugin_slug),
     269            $settings[] = array('type' => 'file', 'name' => __('Logo - image', 'shokola-custom-whitelabel'),
    270270                                'default_value' => '',
    271                                 'placeholder' => __('Click here to choose an image...', $this->plugin_slug),
    272                                 'description' => __('Select or upload an image in the Media. Recommended size :', $this->plugin_slug) . ' <code>320px x 320px max</code>',
     271                                'placeholder' => __('Click here to choose an image...', 'shokola-custom-whitelabel'),
     272                                'description' => __('Select or upload an image in the Media. Recommended size :', 'shokola-custom-whitelabel') . ' <code>320px x 320px max</code>',
    273273                                'key' => 'shokola_logo_name');
    274             $settings[] = array('type' => 'text', 'name' => __('Logo - link', $this->plugin_slug),
    275                                 'default_value' => '#', 'description' => __('Logo link', $this->plugin_slug),
     274            $settings[] = array('type' => 'text', 'name' => __('Logo - link', 'shokola-custom-whitelabel'),
     275                                'default_value' => '#', 'description' => __('Logo link', 'shokola-custom-whitelabel'),
    276276                                'key' => 'shokola_logo_url');
    277277
    278             $settings[] = array('type' => 'file', 'name' => __('Background - image', $this->plugin_slug),
     278            $settings[] = array('type' => 'file', 'name' => __('Background - image', 'shokola-custom-whitelabel'),
    279279                                'default_value' => '',
    280                                 'placeholder' => __('Click here to choose an image...', $this->plugin_slug),
    281                                 'description' => __('Select or upload an image in the Media. Recommended size :', $this->plugin_slug) . ' <code>1920px x 1080px min</code>',
     280                                'placeholder' => __('Click here to choose an image...', 'shokola-custom-whitelabel'),
     281                                'description' => __('Select or upload an image in the Media. Recommended size :', 'shokola-custom-whitelabel') . ' <code>1920px x 1080px min</code>',
    282282                                'key' => 'shokola_background_name');
    283283
    284             $settings[] = array('type' => 'radio', 'name' => __('Background - position', $this->plugin_slug),
    285                                 'values' => array('left top' => __('left top', $this->plugin_slug),
    286                                                   'center top' => __('center top', $this->plugin_slug),
    287                                                   'right top' => __('right top', $this->plugin_slug),
    288                                                   'left center' => __('left center', $this->plugin_slug),
    289                                                   'center center' => __('center center', $this->plugin_slug),
    290                                                   'right center' => __('right center', $this->plugin_slug),
    291                                                   'left bottom' => __('left bottom', $this->plugin_slug),
    292                                                   'center bottom' => __('center bottom', $this->plugin_slug),
    293                                                   'right bottom' => __('right bottom', $this->plugin_slug)),
     284            $settings[] = array('type' => 'radio', 'name' => __('Background - position', 'shokola-custom-whitelabel'),
     285                                'values' => array('left top' => __('left top', 'shokola-custom-whitelabel'),
     286                                                  'center top' => __('center top', 'shokola-custom-whitelabel'),
     287                                                  'right top' => __('right top', 'shokola-custom-whitelabel'),
     288                                                  'left center' => __('left center', 'shokola-custom-whitelabel'),
     289                                                  'center center' => __('center center', 'shokola-custom-whitelabel'),
     290                                                  'right center' => __('right center', 'shokola-custom-whitelabel'),
     291                                                  'left bottom' => __('left bottom', 'shokola-custom-whitelabel'),
     292                                                  'center bottom' => __('center bottom', 'shokola-custom-whitelabel'),
     293                                                  'right bottom' => __('right bottom', 'shokola-custom-whitelabel')),
    294294                                'default_value' => 'center center',
    295                                 'description' => __('Choose background position', $this->plugin_slug),
     295                                'description' => __('Choose background position', 'shokola-custom-whitelabel'),
    296296                                'key' => 'shokola_background_position');
    297297
    298298            $settings[] = array('type' => 'radio',
    299                                 'values' => array('no-repeat' => __('The background-image will not be repeated', $this->plugin_slug),
    300                                                   'repeat' => __('The background image will be repeated both vertically and horizontally', $this->plugin_slug),
    301                                                   'repeat-x' => __('The background image will be repeated only horizontally', $this->plugin_slug),
    302                                                   'repeat-y' => __('The background image will be repeated only vertically', $this->plugin_slug)),
    303                                 'name' => __('Background - repeat', $this->plugin_slug), 'default_value' => 'no-repeat',
    304                                 'description' => __('Choose background repetition', $this->plugin_slug),
     299                                'values' => array('no-repeat' => __('The background-image will not be repeated', 'shokola-custom-whitelabel'),
     300                                                  'repeat' => __('The background image will be repeated both vertically and horizontally', 'shokola-custom-whitelabel'),
     301                                                  'repeat-x' => __('The background image will be repeated only horizontally', 'shokola-custom-whitelabel'),
     302                                                  'repeat-y' => __('The background image will be repeated only vertically', 'shokola-custom-whitelabel')),
     303                                'name' => __('Background - repeat', 'shokola-custom-whitelabel'), 'default_value' => 'no-repeat',
     304                                'description' => __('Choose background repetition', 'shokola-custom-whitelabel'),
    305305                                'key' => 'shokola_background_repeat');
    306306
    307             $settings[] = array('type' => 'radio', 'values' => array(0 => __('No', $this->plugin_slug),
    308                                                                      1 => __('Yes', $this->plugin_slug)),
    309                                 'name' => __('Background - cover', $this->plugin_slug), 'default_value' => '0',
    310                                 'description' => __('Set background dimension as cover type', $this->plugin_slug),
     307            $settings[] = array('type' => 'radio', 'values' => array(0 => __('No', 'shokola-custom-whitelabel'),
     308                                                                     1 => __('Yes', 'shokola-custom-whitelabel')),
     309                                'name' => __('Background - cover', 'shokola-custom-whitelabel'), 'default_value' => '0',
     310                                'description' => __('Set background dimension as cover type', 'shokola-custom-whitelabel'),
    311311                                'key' => 'shokola_background_cover');
    312312
    313             $settings[] = array('type' => 'file', 'name' => __('Favicon', $this->plugin_slug), 'default_value' => '',
    314                                 'placeholder' => __('Click here to choose an image...', $this->plugin_slug),
    315                                 'description' => __('Select or upload an image in the Media. Recommended size :', $this->plugin_slug) . ' <code>16px x 16px</code>',
     313            $settings[] = array('type' => 'file', 'name' => __('Favicon', 'shokola-custom-whitelabel'), 'default_value' => '',
     314                                'placeholder' => __('Click here to choose an image...', 'shokola-custom-whitelabel'),
     315                                'description' => __('Select or upload an image in the Media. Recommended size :', 'shokola-custom-whitelabel') . ' <code>16px x 16px</code>',
    316316                                'key' => 'shokola_favico_name');
    317317
    318             $settings[] = array('type' => 'radio', 'values' => array('classic' => __('Classic', $this->plugin_slug),
    319                                                                      'material' => __('Material Design', $this->plugin_slug)),
    320                                 'name' => __('Theme - style', $this->plugin_slug), 'default_value' => 'classic',
    321                                 'description' => __('The general look of the form (inputs, labels and buttons)', $this->plugin_slug),
     318            $settings[] = array('type' => 'radio', 'values' => array('classic' => __('Classic', 'shokola-custom-whitelabel'),
     319                                                                     'material' => __('Material Design', 'shokola-custom-whitelabel')),
     320                                'name' => __('Theme - style', 'shokola-custom-whitelabel'), 'default_value' => 'classic',
     321                                'description' => __('The general look of the form (inputs, labels and buttons)', 'shokola-custom-whitelabel'),
    322322                                'key' => 'shokola_theme_style');
    323323
    324             $settings[] = array('type' => 'radio', 'values' => array(0 => __('Light', $this->plugin_slug),
    325                                                                      1 => __('Dark', $this->plugin_slug)),
    326                                 'name' => __('Theme - ambiance', $this->plugin_slug), 'default_value' => '0',
    327                                 'description' => __('Light or dark theme', $this->plugin_slug),
     324            $settings[] = array('type' => 'radio', 'values' => array(0 => __('Light', 'shokola-custom-whitelabel'),
     325                                                                     1 => __('Dark', 'shokola-custom-whitelabel')),
     326                                'name' => __('Theme - ambiance', 'shokola-custom-whitelabel'), 'default_value' => '0',
     327                                'description' => __('Light or dark theme', 'shokola-custom-whitelabel'),
    328328                                'key' => 'shokola_theme_dark');
    329329
    330             $settings[] = array('type' => 'color', 'name' => __('Theme - details', $this->plugin_slug),
     330            $settings[] = array('type' => 'color', 'name' => __('Theme - details', 'shokola-custom-whitelabel'),
    331331                                'default_value' => '#333',
    332                                 'description' => __('Borders and buttons color', $this->plugin_slug),
     332                                'description' => __('Borders and buttons color', 'shokola-custom-whitelabel'),
    333333                                'key' => 'shokola_theme_color');
    334334
    335             $settings[] = array('type' => 'color', 'name' => __('Theme - logo background', $this->plugin_slug),
     335            $settings[] = array('type' => 'color', 'name' => __('Theme - logo background', 'shokola-custom-whitelabel'),
    336336                                'default_value' => '#FFF',
    337                                 'description' => __('Background color of the logo (should be <code>#FFFFFF</code> to match Light theme and <code>#333333</code> to match Dark theme', $this->plugin_slug),
     337                                'description' => __('Background color of the logo (should be <code>#FFFFFF</code> to match Light theme and <code>#333333</code> to match Dark theme', 'shokola-custom-whitelabel'),
    338338                                'key' => 'shokola_h1_color');
    339339
Note: See TracChangeset for help on using the changeset viewer.