WordPress.org

Plugin Directory

Changeset 517200


Ignore:
Timestamp:
03/10/12 12:28:40 (2 years ago)
Author:
MZAWeb
Message:
  • Added Spanish localization
  • Fixed some localization related issues
Location:
business-hours-plugin/trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • business-hours-plugin/trunk/README.txt

    r517192 r517200  
    44Tags: working hours, working, business hours, business, hours 
    55Requires at least: 3.1 
    6 Tested up to: 3.3 
     6Tested up to: 3.3.1 
    77Stable tag: 1.2 
    88 
     
    6363== Changelog == 
    6464 
     65= 1.3.1 = 
     66* Added Spanish localization 
     67* Fixed some localization related issues 
     68 
    6569= 1.3 = 
    6670* Added the shortcodes 
  • business-hours-plugin/trunk/widget.php

    r517192 r517200  
    1010        function WorkingHoursWidget() { 
    1111 
    12             $widget_ops = array( 'classname' => 'workinghourswidget', 'description' => 'Shows your business hours by day' ); 
     12            $widget_ops = array( 'classname' => 'workinghourswidget', 'description' => __('Shows your business hours by day',"business-hours") ); 
    1313 
    1414            $control_ops = array( 'width' => 200, 'height' => 350, 'id_base' => 'workinghourswidget' ); 
    1515 
    16             $this->WP_Widget( 'workinghourswidget', 'Business Hours by Day', $widget_ops, $control_ops ); 
     16            $this->WP_Widget( 'workinghourswidget', __('Business Hours by Day', "business-hours"), $widget_ops, $control_ops ); 
    1717 
    1818            if ( is_active_widget(false, false, $this->id_base) ){ 
  • business-hours-plugin/trunk/working-hours.class.php

    r517192 r517200  
    123123 
    124124            $sections[strtolower( $day )] = array( "title"  => __( $day, "business-hours" ), 
    125                                                    "fields" => array( "working" => array( "title"   => __( "Is it open on " . __($day, "business-hours" ) . "?", "business-hours" ), 
     125                                                   "fields" => array( "working" => array( "title"   => sprintf( __("Is it open on %s?","business-hours") , $day), 
    126126                                                                                          "type"    => "checkbox", 
    127127                                                                                          "options" => array( "true" => "" ) ), 
  • business-hours-plugin/trunk/working-hours.php

    r517192 r517200  
    66Author: MZAWeb 
    77Author URI: http://mzaweb.com/en 
    8 Version: 1.3 
     8Version: 1.3.1 
    99*/ 
    1010 
     
    2424function bussiness_hours_init() { 
    2525    load_plugin_textdomain( 'business-hours', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 
     26    global $workinghours; 
     27    $workinghours = new WorkingHours(); 
    2628} 
    2729add_action('init', 'bussiness_hours_init'); 
    2830 
    29 global $workinghours; 
    30 $workinghours = new WorkingHours(); 
     31 
    3132 
    3233?> 
Note: See TracChangeset for help on using the changeset viewer.