WordPress.org

Plugin Directory

Changeset 706588


Ignore:
Timestamp:
05/01/13 18:34:46 (5 years ago)
Author:
GwynethLlewelyn
Message:

0.3.3: Fixed translation loading, which was never called

Location:
gwyns-imagemap-selector
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gwyns-imagemap-selector/gwyns-imagemap-selector.php

    r706581 r706588  
    4040 
    4141*/ 
    42  
    43 // Deal with translations. Portuguese only for now. 
    44 load_plugin_textdomain('gwyns-imagemap-selector', false, dirname( plugin_basename( __FILE__ ) )); 
    4542 
    4643// Return the directory where the plugin is installed (with trailing slash) 
     
    132129function gwyns_imagemap_selector_admin_menu_options() 
    133130{ 
     131    // Deal with translations. Portuguese only for now. 
     132    load_plugin_textdomain('gwyns-imagemap-selector', false, dirname( plugin_basename( __FILE__ ) )); 
     133 
    134134    $myOptionsPage = add_options_page(__('Gwyn\'s Imagemap Selector', 'gwyns-imagemap-selector'), __('Gwyn\'s Imagemap Selector', 'gwyns-imagemap-selector'), 'publish_pages', 
    135135        'gwyns_imagemap_selector', 'gwyns_imagemap_selector_menu'); 
     
    439439{ 
    440440    global $gwyns_imagemap_selector_settings; 
    441       
     441     
    442442    register_setting('gwyns_imagemap_selector_settings', 'gwyns_imagemap_selector_settings', 'gwyns_imagemap_selector_validate'); 
    443443     
  • gwyns-imagemap-selector/tags/0.3.3/gwyns-imagemap-selector.php

    r706581 r706588  
    4040 
    4141*/ 
    42  
    43 // Deal with translations. Portuguese only for now. 
    44 load_plugin_textdomain('gwyns-imagemap-selector', false, dirname( plugin_basename( __FILE__ ) )); 
    4542 
    4643// Return the directory where the plugin is installed (with trailing slash) 
     
    132129function gwyns_imagemap_selector_admin_menu_options() 
    133130{ 
     131    // Deal with translations. Portuguese only for now. 
     132    load_plugin_textdomain('gwyns-imagemap-selector', false, dirname( plugin_basename( __FILE__ ) )); 
     133 
    134134    $myOptionsPage = add_options_page(__('Gwyn\'s Imagemap Selector', 'gwyns-imagemap-selector'), __('Gwyn\'s Imagemap Selector', 'gwyns-imagemap-selector'), 'publish_pages', 
    135135        'gwyns_imagemap_selector', 'gwyns_imagemap_selector_menu'); 
     
    439439{ 
    440440    global $gwyns_imagemap_selector_settings; 
    441       
     441     
    442442    register_setting('gwyns_imagemap_selector_settings', 'gwyns_imagemap_selector_settings', 'gwyns_imagemap_selector_validate'); 
    443443     
  • gwyns-imagemap-selector/trunk/gwyns-imagemap-selector.php

    r706581 r706588  
    4040 
    4141*/ 
    42  
    43 // Deal with translations. Portuguese only for now. 
    44 load_plugin_textdomain('gwyns-imagemap-selector', false, dirname( plugin_basename( __FILE__ ) )); 
    4542 
    4643// Return the directory where the plugin is installed (with trailing slash) 
     
    132129function gwyns_imagemap_selector_admin_menu_options() 
    133130{ 
     131    // Deal with translations. Portuguese only for now. 
     132    load_plugin_textdomain('gwyns-imagemap-selector', false, dirname( plugin_basename( __FILE__ ) )); 
     133 
    134134    $myOptionsPage = add_options_page(__('Gwyn\'s Imagemap Selector', 'gwyns-imagemap-selector'), __('Gwyn\'s Imagemap Selector', 'gwyns-imagemap-selector'), 'publish_pages', 
    135135        'gwyns_imagemap_selector', 'gwyns_imagemap_selector_menu'); 
     
    439439{ 
    440440    global $gwyns_imagemap_selector_settings; 
    441       
     441     
    442442    register_setting('gwyns_imagemap_selector_settings', 'gwyns_imagemap_selector_settings', 'gwyns_imagemap_selector_validate'); 
    443443     
Note: See TracChangeset for help on using the changeset viewer.