Plugin Directory

Changeset 142580


Ignore:
Timestamp:
08/03/2009 11:17:27 PM (17 years ago)
Author:
frodenas
Message:

Add lang subdirectory

Location:
wp-dopplr/tags/1.6
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-dopplr/tags/1.6/readme.txt

    r140259 r142580  
    33Tags: dopplr, travel, badge, sidebar, widget
    44Requires at least: 2.5 or higher
    5 Tested up to: 2.8.2
     5Tested up to: 2.8.3
    66Stable tag: 1.6
    77
     
    8888* Bug: Determine the correct wp-content directory.
    8989
    90 = Version 1.6 - 2009/07/29 =
     90= Version 1.6 - 2009/08/04 =
    9191* Bug: Determine the correct date & time.
    92 * Enhance installation process.
    9392* Enhance settings and widget menu.
     93* Enhance installation process (subdirectories allowed).
    9494* Translatable strings (internationalization).
  • wp-dopplr/tags/1.6/wp-dopplr.php

    r140261 r142580  
    4747 * June 10 2009 - v1.5
    4848   - Bug: Determine the correct wp-content directory
    49  * July 29 2009 - v1.6
     49 * August 4 2009 - v1.6
    5050   - Bug: Determine the correct date & time
    51    - Enhance installation process
    5251   - Enhance settings and widget menu
     52   - Enhance installation process (subdirectories allowed)
    5353   - Translatable strings (internationalization)
    5454*/
    5555
    56 load_plugin_textdomain('wp-dopplr');
     56// Plugin inicialization
     57load_plugin_textdomain('wp-dopplr', '', dirname(plugin_basename(__FILE__)) . '/lang');
    5758add_action('plugins_loaded', 'widget_wpdopplr_init');
    5859add_action('admin_menu', 'add_wpdopplr_options_page');
     
    142143    }
    143144    $traveller_info = wpdopplr_traveller_methods($method = "traveller_info", $username);
    144     if ($traveller_info != null) {
     145    if ($traveller_info != null && function_exists('date_default_timezone_set')) {
    145146        $default_timezone = date_default_timezone_get();
    146147        date_default_timezone_set($traveller_info->traveller->current_city->timezone);
     
    150151        return $traveller_info->traveller->name . __('\'s local time at current location is ', 'wp-dopplr') . $local_time_text . __(' on ', 'wp-dopplr') . $local_date_text;               
    151152    } else {
    152         return null;
     153        return '';
    153154    }
    154155}
     
    218219                    $city_name = $trip->city->name;
    219220                }
    220                 if ($display_localtime) {
     221                if ($display_localtime && function_exists('date_default_timezone_set')) {
    221222                    $default_timezone = date_default_timezone_get();
    222223                    date_default_timezone_set($trip->city->timezone);
Note: See TracChangeset for help on using the changeset viewer.