WordPress.org

Plugin Directory

Changeset 394922


Ignore:
Timestamp:
06/09/11 05:41:16 (3 years ago)
Author:
GeertDD
Message:

Fixed i18n: language files were not loaded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • speedy-page-redirect/trunk/speedy-page-redirect.php

    r394921 r394922  
    9797    { 
    9898        // Load translated strings 
    99         load_plugin_textdomain('page-redirect', FALSE, dirname(plugin_basename(__FILE__)).'/languages/'); 
     99        load_plugin_textdomain('speedy-page-redirect', FALSE, dirname(plugin_basename(__FILE__)).'/languages/'); 
    100100 
    101101        // Automatically include all public custom post types 
     
    115115        // Note: first element in the array will be selected by default 
    116116        $this->statuses = array( 
    117             301 => sprintf(__('Permanent', 'page-redirect'), '301'), 
    118             302 => sprintf(__('Temporary', 'page-redirect'), '302'), 
     117            301 => sprintf(__('Permanent', 'speedy-page-redirect'), '301'), 
     118            302 => sprintf(__('Temporary', 'speedy-page-redirect'), '302'), 
    119119        ); 
    120120 
     
    158158        foreach ($this->post_types as $post_type) 
    159159        { 
    160             add_meta_box('gdd_page_redirect', __('Page Redirect', 'page-redirect'), array($this, 'meta_box_show'), $post_type); 
     160            add_meta_box('gdd_page_redirect', __('Page Redirect', 'speedy-page-redirect'), array($this, 'meta_box_show'), $post_type); 
    161161        } 
    162162    } 
     
    187187        // Output the URL field 
    188188        echo '<p>'; 
    189         echo '<label for="gdd_spr_url">'.__('Destination URL:', 'page-redirect').'</label> '; 
     189        echo '<label for="gdd_spr_url">'.__('Destination URL:', 'speedy-page-redirect').'</label> '; 
    190190        echo '<input id="gdd_spr_url" name="gdd_spr_url" type="text" value="'.esc_url($values['url_raw']).'" size="50" style="width:80%">'; 
    191191        echo '</p>'; 
     
    195195        { 
    196196            echo '<p>'; 
    197             echo '<label for="gdd_spr_status">'.__('Type of redirect:', 'page-redirect').'</label> '; 
     197            echo '<label for="gdd_spr_status">'.__('Type of redirect:', 'speedy-page-redirect').'</label> '; 
    198198            echo '<select id="gdd_spr_status" name="gdd_spr_status">'; 
    199199            foreach ($this->statuses as $status => $description) 
    200200            { 
    201                 echo '<option value="'.$status.'" '.selected($status, $values['status'], FALSE).' title="'.sprintf(esc_attr__('HTTP response status code: %s', 'page-redirect'), $status).'">'; 
     201                echo '<option value="'.$status.'" '.selected($status, $values['status'], FALSE).' title="'.sprintf(esc_attr__('HTTP response status code: %s', 'speedy-page-redirect'), $status).'">'; 
    202202                echo esc_html($description); 
    203203                echo '</option>'; 
Note: See TracChangeset for help on using the changeset viewer.