Plugin Directory

Changeset 2061892


Ignore:
Timestamp:
04/02/2019 10:01:16 PM (7 years ago)
Author:
Antoniocampos
Message:

Changed text domain

Location:
ac-change-login-logo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ac-change-login-logo/tags/1.0.0/ac-change-login-logo.php

    r2061854 r2061892  
    77Version: 1.0.0
    88Author URI: https://antoniocampos.net
    9 Text Domain: ac_login_logo
     9Text Domain: ac-change-login-logo
    1010Domain Path: /languages
    1111License:     GPL2
     
    6464{
    6565    if (is_admin()) {
    66         add_theme_page(__('Choose Login Logo', 'ac_login_logo'), __('Login Logo', 'ac_login_logo'), 'manage_options', 'ac_login_logo_admin_menu', 'ac_login_logo_admin_page');
     66        add_theme_page(__('Choose Login Logo', 'ac-change-login-logo'), __('Login Logo', 'ac-change-login-logo'), 'manage_options', 'ac_login_logo_admin_menu', 'ac_login_logo_admin_page');
    6767    }
    6868}
     
    7373        /* Scripts to allow to shoose the image */
    7474        add_action('admin_footer', 'ac_login_logo_admin_css');
    75         echo '<h3>' . __('Choose the image to use as login Logo', 'ac_login_logo') . '</h3>';
     75        echo '<h3>' . __('Choose the image to use as login Logo', 'ac-change-login-logo') . '</h3>';
    7676        // Save attachment ID
    7777        if (isset($_POST['submit_image_selector']) && isset($_POST['image_attachment_id'])):
     
    8686    <img id='image-preview'  height='100px' src='<?php echo $uploaded_login_logo; ?>'>
    8787    </div>
    88     <input id="upload_image_button" type="button" class="button" value="<?php _e('Upload image', 'ac_login_logo');?>" />
     88    <input id="upload_image_button" type="button" class="button" value="<?php _e('Upload image', 'ac-change-login-logo');?>" />
    8989    <input type='hidden' name='image_attachment_id' id='image_attachment_id' value='<?php echo get_option(AC_LOGIN_LOGO_ID); ?>'>
    90     <input type="submit" name="submit_image_selector" value="<?php _e('Save', 'ac_login_logo');?>" class="button-primary">
     90    <input type="submit" name="submit_image_selector" value="<?php _e('Save', 'ac-change-login-logo');?>" class="button-primary">
    9191</form> <?php ;
    9292    }
     
    118118                // Create the media frame.
    119119                file_frame = wp.media.frames.file_frame = wp.media({
    120                     title: "<?php _e('Select a image to upload', 'ac_login_logo');?>",
     120                    title: "<?php _e('Select a image to upload', 'ac-change-login-logo');?>",
    121121                    button: {
    122                         text: "<?php _e('Use this image', 'ac_login_logo');?>",
     122                        text: "<?php _e('Use this image', 'ac-change-login-logo');?>",
    123123                    },
    124124                    multiple: false // Set to true to allow multiple files to be selected
  • ac-change-login-logo/trunk/ac-change-login-logo.php

    r2061859 r2061892  
    77Version: 1.0.0
    88Author URI: https://antoniocampos.net
    9 Text Domain: ac_login_logo
     9Text Domain: ac-change-login-logo
    1010Domain Path: /languages
    1111License:     GPL2
     
    6464{
    6565    if (is_admin()) {
    66         add_theme_page(__('Choose Login Logo', 'ac_login_logo'), __('Login Logo', 'ac_login_logo'), 'manage_options', 'ac_login_logo_admin_menu', 'ac_login_logo_admin_page');
     66        add_theme_page(__('Choose Login Logo', 'ac-change-login-logo'), __('Login Logo', 'ac-change-login-logo'), 'manage_options', 'ac_login_logo_admin_menu', 'ac_login_logo_admin_page');
    6767    }
    6868}
     
    7373        /* Scripts to allow to shoose the image */
    7474        add_action('admin_footer', 'ac_login_logo_admin_css');
    75         echo '<h3>' . __('Choose the image to use as login Logo', 'ac_login_logo') . '</h3>';
     75        echo '<h3>' . __('Choose the image to use as login Logo', 'ac-change-login-logo') . '</h3>';
    7676        // Save attachment ID
    7777        if (isset($_POST['submit_image_selector']) && isset($_POST['image_attachment_id'])):
     
    8686    <img id='image-preview'  height='100px' src='<?php echo $uploaded_login_logo; ?>'>
    8787    </div>
    88     <input id="upload_image_button" type="button" class="button" value="<?php _e('Upload image', 'ac_login_logo');?>" />
     88    <input id="upload_image_button" type="button" class="button" value="<?php _e('Upload image', 'ac-change-login-logo');?>" />
    8989    <input type='hidden' name='image_attachment_id' id='image_attachment_id' value='<?php echo get_option(AC_LOGIN_LOGO_ID); ?>'>
    90     <input type="submit" name="submit_image_selector" value="<?php _e('Save', 'ac_login_logo');?>" class="button-primary">
     90    <input type="submit" name="submit_image_selector" value="<?php _e('Save', 'ac-change-login-logo');?>" class="button-primary">
    9191</form> <?php ;
    9292    }
     
    118118                // Create the media frame.
    119119                file_frame = wp.media.frames.file_frame = wp.media({
    120                     title: "<?php _e('Select a image to upload', 'ac_login_logo');?>",
     120                    title: "<?php _e('Select a image to upload', 'ac-change-login-logo');?>",
    121121                    button: {
    122                         text: "<?php _e('Use this image', 'ac_login_logo');?>",
     122                        text: "<?php _e('Use this image', 'ac-change-login-logo');?>",
    123123                    },
    124124                    multiple: false // Set to true to allow multiple files to be selected
Note: See TracChangeset for help on using the changeset viewer.