Plugin Directory

Changeset 1740107


Ignore:
Timestamp:
10/03/2017 07:51:26 AM (8 years ago)
Author:
Daschmi
Message:
  • Prepare for translation
Location:
cf7-jlocator/trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • cf7-jlocator/trunk/classes/Action.class.php

    r1735727 r1740107  
    4747        {
    4848
    49             \add_options_page(__('jLocator', 'cfjl'), __('jLocator', 'cfjl'), 'manage_options', 'cfjl', array('\cfjl\Action', 'option_page'));
     49            \add_options_page(__('jLocator', 'cf7-jlocator'), __('jLocator', 'cf7-jlocator'), 'manage_options', 'cfjl', array('\cfjl\Action', 'option_page'));
     50
     51        }
     52
     53        public static function plugins_loaded()
     54        {
     55
     56            load_plugin_textdomain('cf7-jlocator', false, basename(dirname(__FILE__)).'/../languages');
    5057
    5158        }
  • cf7-jlocator/trunk/jlocator.php

    r1735727 r1740107  
    1212     * Author: Daniel Schmitzer
    1313     * Author URI: https://daschmi.de/
    14      * Text Domain: cfjl
     14     * Text Domain: cf7-jlocator
    1515     */
    1616
     
    2626    add_action('init', array('\cfjl\Action', 'init'));
    2727    add_action('wp_footer', array('\cfjl\Action', 'wp_footer'));
     28    add_action('plugins_loaded', array('\cfjl\Action', 'plugins_loaded'));
  • cf7-jlocator/trunk/readme.txt

    r1735728 r1740107  
    33Donate link: http://daschmi.de/
    44Tags: contactform7,contactform,form,location,position,gps
    5 Requires at least: 3.0.1
     5Requires at least: 4.6.0
    66Tested up to: 4.9
    77Stable tag: 1.0
     
    3535Yes, here:
    3636
    37 <blockquote><label> Straße
     37<blockquote><label>street
    3838 [text* text-886 class:jLocator class:jLocator_street] </label>
    3939
    40  <label> Hausnummer
     40 <label>house number
    4141 [text* text-887 class:jLocator class:jLocator_street_number] </label>
    4242
    43  <label> PLZ
     43 <label>zip
    4444 [text* text-888 class:jLocator class:jLocator_zip] </label>
    4545
    46  <label> Stadt
     46 <label>ctiy
    4747 [text* text-889 class:jLocator class:jLocator_city] </label>
    4848
    49  <label> Landkreis
    50  [text* text-889 class:jLocator class:jLocator_district] </label>
     49 <label>district
     50 [text* text-890 class:jLocator class:jLocator_district] </label>
    5151
    52  <label> Bundesland
    53  [text* text-890 class:jLocator class:jLocator_state] </label>
     52 <label>state
     53 [text* text-891 class:jLocator class:jLocator_state] </label>
    5454
    55  <label> Land
    56  [text* text-891 class:jLocator class:jLocator_country] </label></blockquote>
     55 <label>country
     56 [text* text-892 class:jLocator class:jLocator_country] </label></blockquote>
    5757
    5858= What do i need =
  • cf7-jlocator/trunk/views/option_page.phtml

    r1735727 r1740107  
    1313<div class="wrap">
    1414
    15     <h1><?php echo __('Settings › Contact Form 7 jLocator', 'cfjl'); ?></h1>
     15    <h1><?php echo __('Settings › Contact Form 7 jLocator', 'cf7-jlocator'); ?></h1>
    1616
    1717    <?php if (isset($_REQUEST['cfjl_confirm'])) { ?>
    1818    <div id="setting-error-settings_updated" class="updated settings-error notice is-dismissible">
    19         <p><strong><?php echo __('Settings saved.', 'cfjl'); ?></strong></p>
     19        <p><strong><?php echo __('Settings saved.', 'cf7-jlocator'); ?></strong></p>
    2020    </div>
    2121    <?php } ?>
     
    2626            <tbody>
    2727                <tr>
    28                     <th scope="row"><label for="default_role"><?php echo __('include Google Maps', 'cfjl'); ?></label></th>
     28                    <th scope="row"><label for="default_role"><?php echo __('include Google Maps', 'cf7-jlocator'); ?></label></th>
    2929                    <td>
    3030                        <select name="cfjl_include_googlemaps" id="include_googlemaps">
    31                             <option value="1" <?php echo ((get_option('cfjl_include_googlemaps') === '1')?'selected="selected"':''); ?>><?php echo __('Yes', 'cfjl'); ?></option>
    32                             <option value="0" <?php echo ((get_option('cfjl_include_googlemaps') === '0')?'selected="selected"':''); ?>><?php echo __('No', 'cfjl'); ?></option>
     31                            <option value="1" <?php echo ((get_option('cfjl_include_googlemaps') === '1')?'selected="selected"':''); ?>><?php echo __('Yes', 'cf7-jlocator'); ?></option>
     32                            <option value="0" <?php echo ((get_option('cfjl_include_googlemaps') === '0')?'selected="selected"':''); ?>><?php echo __('No', 'cf7-jlocator'); ?></option>
    3333                        </select>
    3434                    </td>
    3535                </tr>
    3636                <tr id="row_cfjl_googlemaps_apikey">
    37                     <th scope="row"><label for="cfjl_googlemaps_apikey"><?php echo __('Google Maps API Key', 'cfjl'); ?></label></th>
     37                    <th scope="row"><label for="cfjl_googlemaps_apikey"><?php echo __('Google Maps API Key', 'cf7-jlocator'); ?></label></th>
    3838                    <td>
    3939                        <input name="cfjl_googlemaps_apikey" type="text" id="cfjl_googlemaps_apikey" value="<?php echo get_option('cfjl_googlemaps_apikey'); ?>" class="regular-text code" />
     
    4242                <tr id="row_cfjl_path">
    4343                    <th scope="row"><label for="cfjl_file">
    44                             <?php echo __('Upload jLocator Script', 'cfjl'); ?><br />
     44                            <?php echo __('Upload jLocator Script', 'cf7-jlocator'); ?><br />
    4545                            <p class="description">(jLocator.js)</p>
    4646                        </label>
     
    4949
    5050                        <?php if (file_exists($this->view['path'])) { ?>
    51                         <p style="color:green;"><?php echo __('File exists.', 'cfjl'); ?></p>
     51                        <p style="color:green;"><?php echo __('File exists.', 'cf7-jlocator'); ?></p>
    5252                        <?php } ?>
    5353                       
    5454                        <input name="cfjl_file" type="file" id="row_cfjl_file" class="regular-text code" />
    55                         <p class="description"><?php echo __('You can get your Licence for jLocatore <a href="#">here</a>.', 'cfjl'); ?></p>
     55                        <p class="description"><?php echo __('You can get your Licence for jLocatore <a href="#">here</a>.', 'cf7-jlocator'); ?></p>
    5656                    </td>
    5757                </tr>
Note: See TracChangeset for help on using the changeset viewer.