Plugin Directory

Changeset 1918801


Ignore:
Timestamp:
08/02/2018 12:58:04 PM (8 years ago)
Author:
alexwing
Message:

Add internationalization

Location:
woo-oscommerce-sync/trunk
Files:
6 added
2 edited

Legend:

Unmodified
Added
Removed
  • woo-oscommerce-sync/trunk/readme.txt

    r1917009 r1918801  
    55Requires at least: 3.5.1
    66Tested up to: 4.9.4–es_ES
    7 Stable tag: 2.0.7
     7Stable tag: 2.0.8
    88License: AGPLv3.0 or later
    99License URI: http://opensource.org/licenses/AGPL-3.0
     
    7070
    7171== Changelog ==
     72= 2.0.8 =
     73* Add internationalization
     74
    7275= 2.0.7 =
    7376* Include Bootstrap tabs and forms
  • woo-oscommerce-sync/trunk/woocommerce-osc-sync.php

    r1917009 r1918801  
    33  Plugin Name: Woocommerce osCommerce Sync
    44  Plugin URI: http://aaranda.es/woocommerce-oscommerce-sync/
     5  Text Domain: woocommerce-osc-sync
     6  Domain Path: /languages
    57  Description: Import products, categories, customers and orders from osCommerce to Woocommerce
    68  Author: Alejandro Aranda
    7   Version: 2.0.7
     9  Version: 2.0.8
    810  Author URI: http://www.aaranda.es
    911  Original Author: David Barnes
     
    2527if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) {
    2628
     29   
    2730    function otw_submenu_page() {
    2831        add_submenu_page('woocommerce', 'osCommerce Sync', 'osCommerce Sync', 'manage_options', 'woocommerce-osc-sync', 'otw_submenu_page_callback');
     
    817820            <ul class="nav nav-tabs" id="myTab" role="tablist">
    818821                <li class="nav-item">
    819                     <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">OsCommerce Database Conection</a>
     822                    <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true"><?php _e( 'OsCommerce Database Conection', 'woocommerce-osc-sync' ); ?></a>
    820823                </li>
    821824                <li class="nav-item">
    822                     <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false">Products Configuration</a>
     825                    <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false"><?php _e( 'Products Configuration', 'woocommerce-osc-sync' ); ?></a>
    823826                </li>
    824827                <li class="nav-item">
    825                     <a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false">Select Imports</a>
     828                    <a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false"><?php _e( 'Select Imports', 'woocommerce-osc-sync' ); ?></a>
    826829                </li>
    827830            </ul>
    828831            <div class="tab-content" id="myTabContent">
    829832                <div class="tab-pane fade show active modal-body bg-light" id="home" role="tabpanel" aria-labelledby="home-tab">
    830                     <h4>Enter your oscommerce database information </h4>
     833                    <h4><?php _e( 'Enter your oscommerce database information', 'woocommerce-osc-sync' ); ?> </h4>
    831834                    <div class="alert alert-warning" role="alert">
    832                         You will need remote access to your oscommerce database
     835                        <?php _e( 'You will need remote access to your oscommerce database', 'woocommerce-osc-sync' ); ?>
    833836                    </div>                   
    834837                    <div class="row">
    835838                        <div class="col-md-6">
    836839                            <div class="form-group">
    837                                 <label >osCommerce store URL: </label>
     840                                <label ><?php _e( 'osCommerce store URL: ', 'woocommerce-osc-sync' ); ?></label>
    838841                                <input class="form-control" type="text" name="store_url" value="<?php echo sanitize_text_field($_POST['store_url']); ?>">
    839                                 <small>Example: https://www.[your site].com/</small>   
     842                                <small><?php _e( 'Example: https://www.yoursite.com/', 'woocommerce-osc-sync' ); ?></small>   
    840843                                </label>
    841844                            </div>
    842                             <div class="form-group"><label >osCommerce Database Host: </label><input class="form-control" type="text" name="store_host" value="localhost"></div>
    843                             <div class="form-group"><label >osCommerce Database Name: </label><input class="form-control" type="text" name="store_dbname" value="<?php echo sanitize_text_field($_POST['store_dbname']); ?>"></div>
     845                            <div class="form-group"><label ><?php _e( 'osCommerce Database Host: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="store_host" value="localhost"></div>
     846                            <div class="form-group"><label ><?php _e( 'osCommerce Database Name: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="store_dbname" value="<?php echo sanitize_text_field($_POST['store_dbname']); ?>"></div>
    844847                        </div>
    845848                        <div class="col-md-6">
    846849                            <div class="form-group">
    847                                 <label >Images directory: </label>
     850                                <label ><?php _e( 'Images directory: ', 'woocommerce-osc-sync' ); ?></label>
    848851                                <input class="form-control" type="text" name="images_url" value="<?php echo sanitize_text_field($_POST['images_url']); ?>">
    849                                 <small>Empty directory as default "image"</small>                               
     852                                <small><?php _e( 'Empty directory as default "image"', 'woocommerce-osc-sync' ); ?></small>                               
    850853                            </div>
    851                             <div class="form-group"><label >osCommerce Database User: </label><input class="form-control" type="text" name="store_user" value="<?php echo sanitize_text_field($_POST['store_user']); ?>"></div>
    852                             <div class="form-group"><label >osCommerce Database Password: </label><input class="form-control" type="text" name="store_pass" value="<?php echo sanitize_text_field($_POST['store_pass']); ?>"></div>                           
     854                            <div class="form-group"><label ><?php _e( 'osCommerce Database User: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="store_user" value="<?php echo sanitize_text_field($_POST['store_user']); ?>"></div>
     855                            <div class="form-group"><label ><?php _e( 'osCommerce Database Password: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="store_pass" value="<?php echo sanitize_text_field($_POST['store_pass']); ?>"></div>                           
    853856                        </div>
    854857                    </div>
    855858                </div>
    856859                <div class="tab-pane fade  modal-body bg-light" id="profile" role="tabpanel" aria-labelledby="profile-tab">
    857                     <h3>Import data from osCommerce</h3>
     860                    <h3><?php _e( 'Import data from osCommerce', 'woocommerce-osc-sync' ); ?></h3>
    858861                    <div class="alert alert-info" role="alert">
    859                        For big products database can import in steps (use fields Offset & Limit)
     862                       <?php _e( 'For big products database can import in steps (use fields Offset & Limit)', 'woocommerce-osc-sync' ); ?>
    860863                    </div>                                       
    861864                    <div class="col-md-12">
    862                         <div class="form-group"><label >Language: </label><input class="form-control" type="text" name="lang" value="<?php echo sanitize_text_field($_POST['lang']); ?>"><small>Id from osCommerce lang table</small></div>
    863                         <div class="form-group"><label >Offset: </label><input class="form-control" type="text" name="offset" value="<?php echo sanitize_text_field($_POST['offset']); ?>"><small>Last product imported</small></div>
    864                         <div class="form-group"><label >Limit: </label><input class="form-control" type="text" name="limit" value="<?php echo sanitize_text_field($_POST['limit']); ?>"><small>how many products imported</small></div>       
     865                        <div class="form-group"><label ><?php _e( 'Language: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="lang" value="<?php echo sanitize_text_field($_POST['lang']); ?>"><small><?php _e( 'Id from osCommerce lang table', 'woocommerce-osc-sync' ); ?></small></div>
     866                        <div class="form-group"><label ><?php _e( 'Offset: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="offset" value="<?php echo sanitize_text_field($_POST['offset']); ?>"><small><?php _e( 'Last product imported', 'woocommerce-osc-sync' ); ?></small></div>
     867                        <div class="form-group"><label ><?php _e( 'Limit: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="limit" value="<?php echo sanitize_text_field($_POST['limit']); ?>"><small><?php _e( 'how many products imported', 'woocommerce-osc-sync' ); ?></small></div>       
    865868                    </div>
    866869
    867870                </div>
    868871                <div class="tab-pane fade  modal-body bg-light" id="contact" role="tabpanel" aria-labelledby="contact-tab">
    869                     <h3>Data to Import:</h3>
     872                    <h3><?php _e( 'Data to Import:', 'woocommerce-osc-sync' ); ?></h3>
    870873                    <div class="alert alert-warning" role="alert">
    871                        It is recommended to follow the order of the list
     874                       <?php _e( 'It is recommended to follow the order of the list', 'woocommerce-osc-sync' ); ?>
    872875                    </div>                     
    873876                    <div class="row">
     
    877880                                    echo " checked ";
    878881                                }
    879                                 ?>>Customers (passwords will not be transferred)</label><br>
     882                                ?>><?php _e( 'Customers (passwords will not be transferred)', 'woocommerce-osc-sync' ); ?></label><br>
    880883
    881884                            <label ><input class="form-control" type="checkbox" name="dtype[categories]" value="1" <?php
     
    883886                                    echo " checked ";
    884887                                }
    885                                 ?>>Categories</label><br>
     888                                ?>><?php _e( 'Categories', 'woocommerce-osc-sync' ); ?></label><br>
    886889                           <!-- <label ><input class="form-control" type="checkbox" name="dtype[taxes]" value="1" <?php
    887890                            if ((int) $_POST['dtype']['taxes']) {
     
    893896                                    echo " checked ";
    894897                                }
    895                                 ?>>Products</label><br>
     898                                ?>><?php _e( 'Products', 'woocommerce-osc-sync' ); ?></label><br>
    896899                            <label ><input class="form-control" type="checkbox" name="dtype[delete]" value="1"  <?php
    897900                                if ((int) $_POST['dtype']['delete']) {
    898901                                    echo " checked ";
    899902                                }
    900                                 ?>>Products delete images </label><br>
     903                                ?>><?php _e( 'Products delete images', 'woocommerce-osc-sync' ); ?></label><br>
    901904                            <label ><input class="form-control" type="checkbox" name="dtype[image]" value="1"  <?php
    902905                                if ((int) $_POST['dtype']['image']) {
    903906                                    echo " checked ";
    904907                                }
    905                                 ?>>Products Prefered image</label><br>
     908                                ?>><?php _e( 'Products Prefered image', 'woocommerce-osc-sync' ); ?></label><br>
    906909                            <label ><input class="form-control" type="checkbox" name="dtype[gallery]" value="1"  <?php
    907910                                if ((int) $_POST['dtype']['gallery']) {
    908911                                    echo " checked ";
    909912                                }
    910                                 ?>>Products gallery</label><br>
     913                                ?>><?php _e( 'Products gallery', 'woocommerce-osc-sync' ); ?></label><br>
    911914                            <label ><input class="form-control" type="checkbox" name="dtype[orders]" value="1" <?php
    912915                                if ((int) $_POST['dtype']['orders']) {
    913916                                    echo " checked ";
    914917                                }
    915                                 ?>>Orders</label><br>
     918                                ?>><?php _e( 'Orders', 'woocommerce-osc-sync' ); ?></label><br>
    916919                            <label ><input class="form-control" type="checkbox" name="dtype[pages]" value="1"  <?php
    917920                                if ((int) $_POST['dtype']['pages']) {
    918921                                    echo " checked ";
    919922                                }
    920                                 ?>>Information Pages</label>
     923                                ?>><?php _e( 'Information Pages', 'woocommerce-osc-sync' ); ?></label>
    921924
    922925
     
    931934                    }
    932935                    ?>></label>
    933                 <small>(Display and save a log file in WordPress root folder)</small>
    934                 <div class="form-group"><input type="submit" value="Import Data"  class="btn btn-primary btn-lg"></div>               
     936                <small><?php _e( '(Display and save a log file in WordPress root folder)', 'woocommerce-osc-sync' ); ?></small>
     937                <div class="form-group"><input type="submit" value="<?php _e( 'Import Data', 'woocommerce-osc-sync' ); ?>"  class="btn btn-primary btn-lg"></div>               
    935938            </div>           
    936939
     
    962965    }
    963966}
     967
     968load_plugin_textdomain( 'woocommerce-osc-sync', false, basename( dirname( __FILE__ ) ) . '/languages' );
    964969?>
Note: See TracChangeset for help on using the changeset viewer.