Plugin Directory

Changeset 598993


Ignore:
Timestamp:
09/14/2012 01:31:47 PM (13 years ago)
Author:
QRtool
Message:

Cleared Umlaut-Issues

Location:
wpqr-qr-code
Files:
3 deleted
2 edited
4 copied

Legend:

Unmodified
Added
Removed
  • wpqr-qr-code/tags/0.2.0/readme.txt

    r598976 r598993  
    55Requires at least: 2.6
    66Tested up to: 3.4.2
    7 Stable tag: 0.1.9
     7Stable tag: 0.2.0
    88
    99QR-Code widget and shortcode in one QR-Code gernerator plugin. Use the QR-Code widget in your sidebars or generate QR-Codes in pages and articles.
     
    2626
    2727== Changelog ==
     28
     29= 0.2.0 =
     30* Cleard "Umlaut" Issues in German locale
    2831
    2932= 0.1.9 =
  • wpqr-qr-code/tags/0.2.0/wpqr_qr-code-generator.php

    r598976 r598993  
    55Description: QR-Code widget and shortcode in one QR-Code gernerator plugin. Use the QR-Code widget in your sidebars or generate QR-Codes in pages and articles
    66Author: QRtool
    7 Version: 0.1.9
     7Version: 0.2.0
    88Author URI: http://qrtool.de
    99License: CC+
     
    1212
    1313function wpqr_qr_code_generator_init() {
    14  $plugin_dir = basename(dirname(__FILE__));
    15  load_plugin_textdomain( 'wpqr-qr-code', false, $plugin_dir.'locales/' );
     14 load_plugin_textdomain( 'wpqr-qr-code', false, dirname( plugin_basename( __FILE__ ) ) . '/locales/' );
    1615}
    17 add_action('plugins_loaded', 'wpqr_qr_code_generator_init');
     16//add_action('plugins_loaded', 'wpqr_qr_code_generator_init');
    1817
    1918function wpqr_qr_code_generator_admin_actions() {
     
    2221}
    2322function wpqr_qr_code_generator_admin(){
    24 
     23    wpqr_qr_code_generator_init();
    2524    print '<h3>'.__('WPQR QR-Code Generator', 'wpqr-qr-code').'</h3>';
    2625    print '<p>'.__('Insert <b>[qr-code]</b> anywhere in WordPress to display a QR-Code that leads to the page/article being displayed', 'wpqr-qr-code').'</p>';
     
    228227    function wpqr_qr_code_Widget() {
    229228        /* Widget settings. */
    230         $widget_ops = array( 'classname' => 'wpqr_qr_code', 'description' => __('Displys a QR-Code that leads mobile users to the page beeing viewed', 'wpqr_qr_code', 'wpqr-qr-code') );
     229        $widget_ops = array( 'classname' => 'wpqr_qr_code', 'description' => __('Displys a QR-Code that leads mobile users to the page beeing viewed', 'wpqr-qr-code') );
    231230
    232231        /* Widget control settings. */
     
    234233
    235234        /* Create the widget. */
    236         $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr_qr_code', 'wpqr-qr-code'), $widget_ops, $control_ops );
     235        $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr-qr-code'), $widget_ops, $control_ops );
    237236    }
    238237
     
    441440     */
    442441    function form( $instance ) {
    443 
     442       
     443        wpqr_qr_code_generator_init();
     444       
    444445        /* Set up some default widget settings. */
    445446        $defaults = array(
    446                                             'title' => __('Title', 'wpqr_qr_code', 'wpqr-qr-code'),
    447                                             'caption' => __('Scan QR-Code', 'wpqr_qr_code', 'wpqr-qr-code'),
     447                                            'title' => __('Title', 'wpqr-qr-code'),
     448                                            'caption' => __('Scan QR-Code', 'wpqr-qr-code'),
    448449                                            'size' => 4,
    449450                                            'margin' => 4,
     
    459460        <!-- Widget Title: Text Input -->
    460461        <p>
    461             <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'hybrid', 'wpqr-qr-code'); ?></label>
     462            <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'wpqr-qr-code'); ?></label>
    462463            <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" />
    463464        </p>
     
    465466        <!-- Caption: Text Input -->
    466467        <p>
    467             <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     468            <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr-qr-code'); ?></label>
    468469            <input id="<?php echo $this->get_field_id( 'caption' ); ?>" name="<?php echo $this->get_field_name( 'caption' ); ?>" value="<?php echo $instance['caption']; ?>" style="width:100%;" />
    469470        </p>
     
    471472        <!-- Color: Text Input -->
    472473        <p>
    473             <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     474            <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr-qr-code'); ?></label>
    474475            <input id="<?php echo $this->get_field_id( 'color' ); ?>" name="<?php echo $this->get_field_name( 'color' ); ?>" value="<?php echo $instance['color']; ?>" style="width:100%;" />
    475476        </p>
     
    477478        <!-- BackgroundColor: Text Input -->
    478479        <p>
    479             <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     480            <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr-qr-code'); ?></label>
    480481            <input id="<?php echo $this->get_field_id( 'background_color' ); ?>" name="<?php echo $this->get_field_name( 'background_color' ); ?>" value="<?php echo $instance['background_color']; ?>" style="width:100%;" />
    481482        </p>
     
    483484        <!-- Align: Select Box -->
    484485        <p>
    485             <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     486            <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr-qr-code'); ?></label>
    486487            <select id="<?php echo $this->get_field_id( 'align' ); ?>" name="<?php echo $this->get_field_name( 'align' ); ?>" class="widefat" style="width:100%;">
    487                 <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
    488                 <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
    489                 <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
    490                 <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
     488                <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr-qr-code'); ?></option>
     489                <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr-qr-code'); ?></option>
     490                <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr-qr-code'); ?></option>
     491                <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr-qr-code'); ?></option>
    491492            </select>
    492493        </p>
     
    494495        <!-- Level: Select Box -->
    495496        <p>
    496             <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     497            <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr-qr-code'); ?></label>
    497498            <select id="<?php echo $this->get_field_id( 'level' ); ?>" name="<?php echo $this->get_field_name( 'level' ); ?>" class="widefat" style="width:100%;">
    498499                <option value="L" <?php if ( 'L' == $instance['level'] ) echo 'selected="selected"'; ?>>L</option>
     
    505506        <!-- Size: Select Box -->
    506507        <p>
    507             <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     508            <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr-qr-code'); ?></label>
    508509            <select id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>" class="widefat" style="width:100%;">
    509510                <option value="1" <?php if ( '1' == $instance['size'] ) echo 'selected="selected"'; ?>>1</option>
     
    520521        <!-- Margin: Select Box -->
    521522        <p>
    522             <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     523            <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr-qr-code'); ?></label>
    523524            <select id="<?php echo $this->get_field_id( 'margin' ); ?>" name="<?php echo $this->get_field_name( 'margin' ); ?>" class="widefat" style="width:100%;">
    524525                <option value="0" <?php if ( '0' == $instance['margin'] ) echo 'selected="selected"'; ?>>0</option>
     
    537538        <p>
    538539            <input value="1" class="checkbox" type="checkbox" <?php checked( $instance['show_poweredby'], true ); ?> id="<?php echo $this->get_field_id( 'show_poweredby' ); ?>" name="<?php echo $this->get_field_name( 'show_poweredby' ); ?>" />
    539             <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     540            <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr-qr-code'); ?></label>
    540541        </p>
    541542       
     
    543544        <p>
    544545            <input value="1" class="checkbox" type="checkbox" <?php checked( $instance['clear_after'], true ); ?> id="<?php echo $this->get_field_id( 'clear_after' ); ?>" name="<?php echo $this->get_field_name( 'clear_after' ); ?>" />
    545             <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     546            <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr-qr-code'); ?></label>
    546547        </p>
    547548
  • wpqr-qr-code/trunk/readme.txt

    r598976 r598993  
    55Requires at least: 2.6
    66Tested up to: 3.4.2
    7 Stable tag: 0.1.9
     7Stable tag: 0.2.0
    88
    99QR-Code widget and shortcode in one QR-Code gernerator plugin. Use the QR-Code widget in your sidebars or generate QR-Codes in pages and articles.
     
    2626
    2727== Changelog ==
     28
     29= 0.2.0 =
     30* Cleard "Umlaut" Issues in German locale
    2831
    2932= 0.1.9 =
  • wpqr-qr-code/trunk/wpqr_qr-code-generator.php

    r598976 r598993  
    55Description: QR-Code widget and shortcode in one QR-Code gernerator plugin. Use the QR-Code widget in your sidebars or generate QR-Codes in pages and articles
    66Author: QRtool
    7 Version: 0.1.9
     7Version: 0.2.0
    88Author URI: http://qrtool.de
    99License: CC+
     
    1212
    1313function wpqr_qr_code_generator_init() {
    14  $plugin_dir = basename(dirname(__FILE__));
    15  load_plugin_textdomain( 'wpqr-qr-code', false, $plugin_dir.'locales/' );
     14 load_plugin_textdomain( 'wpqr-qr-code', false, dirname( plugin_basename( __FILE__ ) ) . '/locales/' );
    1615}
    17 add_action('plugins_loaded', 'wpqr_qr_code_generator_init');
     16//add_action('plugins_loaded', 'wpqr_qr_code_generator_init');
    1817
    1918function wpqr_qr_code_generator_admin_actions() {
     
    2221}
    2322function wpqr_qr_code_generator_admin(){
    24 
     23    wpqr_qr_code_generator_init();
    2524    print '<h3>'.__('WPQR QR-Code Generator', 'wpqr-qr-code').'</h3>';
    2625    print '<p>'.__('Insert <b>[qr-code]</b> anywhere in WordPress to display a QR-Code that leads to the page/article being displayed', 'wpqr-qr-code').'</p>';
     
    228227    function wpqr_qr_code_Widget() {
    229228        /* Widget settings. */
    230         $widget_ops = array( 'classname' => 'wpqr_qr_code', 'description' => __('Displys a QR-Code that leads mobile users to the page beeing viewed', 'wpqr_qr_code', 'wpqr-qr-code') );
     229        $widget_ops = array( 'classname' => 'wpqr_qr_code', 'description' => __('Displys a QR-Code that leads mobile users to the page beeing viewed', 'wpqr-qr-code') );
    231230
    232231        /* Widget control settings. */
     
    234233
    235234        /* Create the widget. */
    236         $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr_qr_code', 'wpqr-qr-code'), $widget_ops, $control_ops );
     235        $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr-qr-code'), $widget_ops, $control_ops );
    237236    }
    238237
     
    441440     */
    442441    function form( $instance ) {
    443 
     442       
     443        wpqr_qr_code_generator_init();
     444       
    444445        /* Set up some default widget settings. */
    445446        $defaults = array(
    446                                             'title' => __('Title', 'wpqr_qr_code', 'wpqr-qr-code'),
    447                                             'caption' => __('Scan QR-Code', 'wpqr_qr_code', 'wpqr-qr-code'),
     447                                            'title' => __('Title', 'wpqr-qr-code'),
     448                                            'caption' => __('Scan QR-Code', 'wpqr-qr-code'),
    448449                                            'size' => 4,
    449450                                            'margin' => 4,
     
    459460        <!-- Widget Title: Text Input -->
    460461        <p>
    461             <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'hybrid', 'wpqr-qr-code'); ?></label>
     462            <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'wpqr-qr-code'); ?></label>
    462463            <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" />
    463464        </p>
     
    465466        <!-- Caption: Text Input -->
    466467        <p>
    467             <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     468            <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr-qr-code'); ?></label>
    468469            <input id="<?php echo $this->get_field_id( 'caption' ); ?>" name="<?php echo $this->get_field_name( 'caption' ); ?>" value="<?php echo $instance['caption']; ?>" style="width:100%;" />
    469470        </p>
     
    471472        <!-- Color: Text Input -->
    472473        <p>
    473             <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     474            <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr-qr-code'); ?></label>
    474475            <input id="<?php echo $this->get_field_id( 'color' ); ?>" name="<?php echo $this->get_field_name( 'color' ); ?>" value="<?php echo $instance['color']; ?>" style="width:100%;" />
    475476        </p>
     
    477478        <!-- BackgroundColor: Text Input -->
    478479        <p>
    479             <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     480            <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr-qr-code'); ?></label>
    480481            <input id="<?php echo $this->get_field_id( 'background_color' ); ?>" name="<?php echo $this->get_field_name( 'background_color' ); ?>" value="<?php echo $instance['background_color']; ?>" style="width:100%;" />
    481482        </p>
     
    483484        <!-- Align: Select Box -->
    484485        <p>
    485             <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     486            <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr-qr-code'); ?></label>
    486487            <select id="<?php echo $this->get_field_id( 'align' ); ?>" name="<?php echo $this->get_field_name( 'align' ); ?>" class="widefat" style="width:100%;">
    487                 <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
    488                 <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
    489                 <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
    490                 <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
     488                <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr-qr-code'); ?></option>
     489                <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr-qr-code'); ?></option>
     490                <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr-qr-code'); ?></option>
     491                <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr-qr-code'); ?></option>
    491492            </select>
    492493        </p>
     
    494495        <!-- Level: Select Box -->
    495496        <p>
    496             <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     497            <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr-qr-code'); ?></label>
    497498            <select id="<?php echo $this->get_field_id( 'level' ); ?>" name="<?php echo $this->get_field_name( 'level' ); ?>" class="widefat" style="width:100%;">
    498499                <option value="L" <?php if ( 'L' == $instance['level'] ) echo 'selected="selected"'; ?>>L</option>
     
    505506        <!-- Size: Select Box -->
    506507        <p>
    507             <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     508            <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr-qr-code'); ?></label>
    508509            <select id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>" class="widefat" style="width:100%;">
    509510                <option value="1" <?php if ( '1' == $instance['size'] ) echo 'selected="selected"'; ?>>1</option>
     
    520521        <!-- Margin: Select Box -->
    521522        <p>
    522             <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     523            <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr-qr-code'); ?></label>
    523524            <select id="<?php echo $this->get_field_id( 'margin' ); ?>" name="<?php echo $this->get_field_name( 'margin' ); ?>" class="widefat" style="width:100%;">
    524525                <option value="0" <?php if ( '0' == $instance['margin'] ) echo 'selected="selected"'; ?>>0</option>
     
    537538        <p>
    538539            <input value="1" class="checkbox" type="checkbox" <?php checked( $instance['show_poweredby'], true ); ?> id="<?php echo $this->get_field_id( 'show_poweredby' ); ?>" name="<?php echo $this->get_field_name( 'show_poweredby' ); ?>" />
    539             <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     540            <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr-qr-code'); ?></label>
    540541        </p>
    541542       
     
    543544        <p>
    544545            <input value="1" class="checkbox" type="checkbox" <?php checked( $instance['clear_after'], true ); ?> id="<?php echo $this->get_field_id( 'clear_after' ); ?>" name="<?php echo $this->get_field_name( 'clear_after' ); ?>" />
    545             <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
     546            <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr-qr-code'); ?></label>
    546547        </p>
    547548
Note: See TracChangeset for help on using the changeset viewer.