Plugin Directory

Changeset 598960


Ignore:
Timestamp:
09/14/2012 12:30:11 PM (13 years ago)
Author:
QRtool
Message:

Fixes several issues with locales

Location:
wpqr-qr-code
Files:
2 edited
6 copied

Legend:

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

    r598957 r598960  
    55Requires at least: 2.6
    66Tested up to: 3.4.2
    7 Stable tag: 0.1.7
     7Stable tag: 0.1.8
    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.
     
    2727== Changelog ==
    2828
     29= 0.1.8 =
     30* Locales fix
     31
    2932= 0.1.7 =
    3033* Locales added
     
    4346== Upgrade Notice ==
    4447
     48= 0.1.8 =
     49Fixes different issues with locales
     50
    4551= 0.1.5 =
    4652This version improves performance due to better caching of generated codes
  • wpqr-qr-code/tags/0.1.8/wpqr_qr-code-generator.php

    r598956 r598960  
    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.7
     7Version: 0.1.8
    88Author URI: http://qrtool.de
    99License: CC+
     
    1818function wpqr_qr_code_generator_admin(){
    1919
    20     print '<h3>'._e('WPQR QR-Code Generator').'</h3>';
    21     print '<p>'._e('Insert <b>[qr-code]</b> anywhere in WordPress to display a QR-Code that leads to the page/article being displayed').'</p>';
    22     print '<p>'._e('You can customize your QR-Code by using the shortcode with the folling attributes <b>[qr-code align="left" class="my-qr-code" color="#000000" background_color="#FFFFFF" size="4" margin="4" level="M" post_id="0"]</b> ').'</p>';
    23     print '<h4>'._e('Attributes available').':</h4>';
     20    print '<h3>'._e('WPQR QR-Code Generator', 'wpqr-qr-code').'</h3>';
     21    print '<p>'._e('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>';
     22    print '<p>'._e('You can customize your QR-Code by using the shortcode with the folling attributes <b>[qr-code align="left" class="my-qr-code" color="#000000" background_color="#FFFFFF" size="4" margin="4" level="M" post_id="0"]</b> ', 'wpqr-qr-code').'</p>';
     23    print '<h4>'._e('Attributes available', 'wpqr-qr-code').':</h4>';
    2424    print '<ul>';
    2525    print '<li><b>align</b> : left|standard|center|right</li>';
    26     print '<li><b>class</b> : '._e('any valid CSS class name').'</li>';
    27     print '<li><b>color</b> : '._e('forground color of QR-Code in hex i.e. #000000 for black').'</li>';
    28     print '<li><b>background_color</b> : '._e('background color of QR-Code in hex i.e. #FFFFFF for white').'</li>';
    29     print '<li><b>post_id</b> : '._e('If specified and greater than 0, the QR-Code will lead to the url of the post id. Otherwise the QR-Code will lead to the page currently beeing displayed.').'</li>';
    30     print '<li><b>size</b> : '._e('The size of the QR-Code. It can range from 1=smallest to 10=largest.').'</li>';
    31     print '<li><b>margin</b> : '._e('The margin around the QR-Code. It can range from 0=smallest to 10=largest.').'</li>';
    32     print '<li><b>level</b> : '._e('Possible values L|M|Q|H which stand for the error correction level of the QR-Code. L=7%,M=15%,Q=25%,H=30%').'</li>';
     26    print '<li><b>class</b> : '._e('any valid CSS class name', 'wpqr-qr-code').'</li>';
     27    print '<li><b>color</b> : '._e('forground color of QR-Code in hex i.e. #000000 for black', 'wpqr-qr-code').'</li>';
     28    print '<li><b>background_color</b> : '._e('background color of QR-Code in hex i.e. #FFFFFF for white', 'wpqr-qr-code').'</li>';
     29    print '<li><b>post_id</b> : '._e('If specified and greater than 0, the QR-Code will lead to the url of the post id. Otherwise the QR-Code will lead to the page currently beeing displayed.', 'wpqr-qr-code').'</li>';
     30    print '<li><b>size</b> : '._e('The size of the QR-Code. It can range from 1=smallest to 10=largest.', 'wpqr-qr-code').'</li>';
     31    print '<li><b>margin</b> : '._e('The margin around the QR-Code. It can range from 0=smallest to 10=largest.', 'wpqr-qr-code').'</li>';
     32    print '<li><b>level</b> : '._e('Possible values L|M|Q|H which stand for the error correction level of the QR-Code. L=7%,M=15%,Q=25%,H=30%', 'wpqr-qr-code').'</li>';
    3333    print '</ul>';
    3434   
     
    223223    function wpqr_qr_code_Widget() {
    224224        /* Widget settings. */
    225         $widget_ops = array( 'classname' => 'wpqr_qr_code', 'description' => __('Displys a QR-Code that leads mobile users to the page beeing viewed', 'wpqr_qr_code') );
     225        $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') );
    226226
    227227        /* Widget control settings. */
     
    229229
    230230        /* Create the widget. */
    231         $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr_qr_code'), $widget_ops, $control_ops );
     231        $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr_qr_code', 'wpqr-qr-code'), $widget_ops, $control_ops );
    232232    }
    233233
     
    395395        /* If show poweredby was selected, display the user's sex. */
    396396        if ( $show_poweredby )
    397             printf( '<div style="clear:both;"></div><caption align="bottom">' . __('Powered by %1$s.', 'wpqr_qr_code.') . '</caption>', '<a href="http://qrtool.de/" title="Management for mobile marketing | QR-Codes &amp; WebApps">QRtool</a>' );
     397            printf( '<div style="clear:both;"></div><caption align="bottom">' . __('Powered by %1$s.', 'wpqr_qr_code.', 'wpqr-qr-code') . '</caption>', '<a href="http://qrtool.de/" title="Management for mobile marketing | QR-Codes &amp; WebApps">QRtool</a>' );
    398398       
    399399        if ( $caption || $show_poweredby)
     
    439439        /* Set up some default widget settings. */
    440440        $defaults = array(
    441                                             'title' => __('Title', 'wpqr_qr_code'),
    442                                             'caption' => __('Scan QR-Code', 'wpqr_qr_code'),
     441                                            'title' => __('Title', 'wpqr_qr_code', 'wpqr-qr-code'),
     442                                            'caption' => __('Scan QR-Code', 'wpqr_qr_code', 'wpqr-qr-code'),
    443443                                            'size' => 4,
    444444                                            'margin' => 4,
     
    454454        <!-- Widget Title: Text Input -->
    455455        <p>
    456             <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'hybrid'); ?></label>
     456            <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'hybrid', 'wpqr-qr-code'); ?></label>
    457457            <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%;" />
    458458        </p>
     
    460460        <!-- Caption: Text Input -->
    461461        <p>
    462             <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr_qr_code'); ?></label>
     462            <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    463463            <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%;" />
    464464        </p>
     
    466466        <!-- Color: Text Input -->
    467467        <p>
    468             <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr_qr_code'); ?></label>
     468            <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    469469            <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%;" />
    470470        </p>
     
    472472        <!-- BackgroundColor: Text Input -->
    473473        <p>
    474             <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr_qr_code'); ?></label>
     474            <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    475475            <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%;" />
    476476        </p>
     
    478478        <!-- Align: Select Box -->
    479479        <p>
    480             <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr_qr_code'); ?></label>
     480            <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    481481            <select id="<?php echo $this->get_field_id( 'align' ); ?>" name="<?php echo $this->get_field_name( 'align' ); ?>" class="widefat" style="width:100%;">
    482                 <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr_qr_code'); ?></option>
    483                 <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr_qr_code'); ?></option>
    484                 <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr_qr_code'); ?></option>
    485                 <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr_qr_code'); ?></option>
     482                <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
     483                <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
     484                <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
     485                <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
    486486            </select>
    487487        </p>
     
    489489        <!-- Level: Select Box -->
    490490        <p>
    491             <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr_qr_code'); ?></label>
     491            <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    492492            <select id="<?php echo $this->get_field_id( 'level' ); ?>" name="<?php echo $this->get_field_name( 'level' ); ?>" class="widefat" style="width:100%;">
    493493                <option value="L" <?php if ( 'L' == $instance['level'] ) echo 'selected="selected"'; ?>>L</option>
     
    500500        <!-- Size: Select Box -->
    501501        <p>
    502             <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr_qr_code'); ?></label>
     502            <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    503503            <select id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>" class="widefat" style="width:100%;">
    504504                <option value="1" <?php if ( '1' == $instance['size'] ) echo 'selected="selected"'; ?>>1</option>
     
    515515        <!-- Margin: Select Box -->
    516516        <p>
    517             <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr_qr_code'); ?></label>
     517            <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    518518            <select id="<?php echo $this->get_field_id( 'margin' ); ?>" name="<?php echo $this->get_field_name( 'margin' ); ?>" class="widefat" style="width:100%;">
    519519                <option value="0" <?php if ( '0' == $instance['margin'] ) echo 'selected="selected"'; ?>>0</option>
     
    532532        <p>
    533533            <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' ); ?>" />
    534             <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr_qr_code'); ?></label>
     534            <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    535535        </p>
    536536       
     
    538538        <p>
    539539            <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' ); ?>" />
    540             <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr_qr_code'); ?></label>
     540            <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    541541        </p>
    542542
  • wpqr-qr-code/trunk/readme.txt

    r598957 r598960  
    55Requires at least: 2.6
    66Tested up to: 3.4.2
    7 Stable tag: 0.1.7
     7Stable tag: 0.1.8
    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.
     
    2727== Changelog ==
    2828
     29= 0.1.8 =
     30* Locales fix
     31
    2932= 0.1.7 =
    3033* Locales added
     
    4346== Upgrade Notice ==
    4447
     48= 0.1.8 =
     49Fixes different issues with locales
     50
    4551= 0.1.5 =
    4652This version improves performance due to better caching of generated codes
  • wpqr-qr-code/trunk/wpqr_qr-code-generator.php

    r598956 r598960  
    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.7
     7Version: 0.1.8
    88Author URI: http://qrtool.de
    99License: CC+
     
    1818function wpqr_qr_code_generator_admin(){
    1919
    20     print '<h3>'._e('WPQR QR-Code Generator').'</h3>';
    21     print '<p>'._e('Insert <b>[qr-code]</b> anywhere in WordPress to display a QR-Code that leads to the page/article being displayed').'</p>';
    22     print '<p>'._e('You can customize your QR-Code by using the shortcode with the folling attributes <b>[qr-code align="left" class="my-qr-code" color="#000000" background_color="#FFFFFF" size="4" margin="4" level="M" post_id="0"]</b> ').'</p>';
    23     print '<h4>'._e('Attributes available').':</h4>';
     20    print '<h3>'._e('WPQR QR-Code Generator', 'wpqr-qr-code').'</h3>';
     21    print '<p>'._e('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>';
     22    print '<p>'._e('You can customize your QR-Code by using the shortcode with the folling attributes <b>[qr-code align="left" class="my-qr-code" color="#000000" background_color="#FFFFFF" size="4" margin="4" level="M" post_id="0"]</b> ', 'wpqr-qr-code').'</p>';
     23    print '<h4>'._e('Attributes available', 'wpqr-qr-code').':</h4>';
    2424    print '<ul>';
    2525    print '<li><b>align</b> : left|standard|center|right</li>';
    26     print '<li><b>class</b> : '._e('any valid CSS class name').'</li>';
    27     print '<li><b>color</b> : '._e('forground color of QR-Code in hex i.e. #000000 for black').'</li>';
    28     print '<li><b>background_color</b> : '._e('background color of QR-Code in hex i.e. #FFFFFF for white').'</li>';
    29     print '<li><b>post_id</b> : '._e('If specified and greater than 0, the QR-Code will lead to the url of the post id. Otherwise the QR-Code will lead to the page currently beeing displayed.').'</li>';
    30     print '<li><b>size</b> : '._e('The size of the QR-Code. It can range from 1=smallest to 10=largest.').'</li>';
    31     print '<li><b>margin</b> : '._e('The margin around the QR-Code. It can range from 0=smallest to 10=largest.').'</li>';
    32     print '<li><b>level</b> : '._e('Possible values L|M|Q|H which stand for the error correction level of the QR-Code. L=7%,M=15%,Q=25%,H=30%').'</li>';
     26    print '<li><b>class</b> : '._e('any valid CSS class name', 'wpqr-qr-code').'</li>';
     27    print '<li><b>color</b> : '._e('forground color of QR-Code in hex i.e. #000000 for black', 'wpqr-qr-code').'</li>';
     28    print '<li><b>background_color</b> : '._e('background color of QR-Code in hex i.e. #FFFFFF for white', 'wpqr-qr-code').'</li>';
     29    print '<li><b>post_id</b> : '._e('If specified and greater than 0, the QR-Code will lead to the url of the post id. Otherwise the QR-Code will lead to the page currently beeing displayed.', 'wpqr-qr-code').'</li>';
     30    print '<li><b>size</b> : '._e('The size of the QR-Code. It can range from 1=smallest to 10=largest.', 'wpqr-qr-code').'</li>';
     31    print '<li><b>margin</b> : '._e('The margin around the QR-Code. It can range from 0=smallest to 10=largest.', 'wpqr-qr-code').'</li>';
     32    print '<li><b>level</b> : '._e('Possible values L|M|Q|H which stand for the error correction level of the QR-Code. L=7%,M=15%,Q=25%,H=30%', 'wpqr-qr-code').'</li>';
    3333    print '</ul>';
    3434   
     
    223223    function wpqr_qr_code_Widget() {
    224224        /* Widget settings. */
    225         $widget_ops = array( 'classname' => 'wpqr_qr_code', 'description' => __('Displys a QR-Code that leads mobile users to the page beeing viewed', 'wpqr_qr_code') );
     225        $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') );
    226226
    227227        /* Widget control settings. */
     
    229229
    230230        /* Create the widget. */
    231         $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr_qr_code'), $widget_ops, $control_ops );
     231        $this->WP_Widget( 'wpqr_qr_code-widget', __('QR-Code Widget', 'wpqr_qr_code', 'wpqr-qr-code'), $widget_ops, $control_ops );
    232232    }
    233233
     
    395395        /* If show poweredby was selected, display the user's sex. */
    396396        if ( $show_poweredby )
    397             printf( '<div style="clear:both;"></div><caption align="bottom">' . __('Powered by %1$s.', 'wpqr_qr_code.') . '</caption>', '<a href="http://qrtool.de/" title="Management for mobile marketing | QR-Codes &amp; WebApps">QRtool</a>' );
     397            printf( '<div style="clear:both;"></div><caption align="bottom">' . __('Powered by %1$s.', 'wpqr_qr_code.', 'wpqr-qr-code') . '</caption>', '<a href="http://qrtool.de/" title="Management for mobile marketing | QR-Codes &amp; WebApps">QRtool</a>' );
    398398       
    399399        if ( $caption || $show_poweredby)
     
    439439        /* Set up some default widget settings. */
    440440        $defaults = array(
    441                                             'title' => __('Title', 'wpqr_qr_code'),
    442                                             'caption' => __('Scan QR-Code', 'wpqr_qr_code'),
     441                                            'title' => __('Title', 'wpqr_qr_code', 'wpqr-qr-code'),
     442                                            'caption' => __('Scan QR-Code', 'wpqr_qr_code', 'wpqr-qr-code'),
    443443                                            'size' => 4,
    444444                                            'margin' => 4,
     
    454454        <!-- Widget Title: Text Input -->
    455455        <p>
    456             <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'hybrid'); ?></label>
     456            <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('Title:', 'hybrid', 'wpqr-qr-code'); ?></label>
    457457            <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%;" />
    458458        </p>
     
    460460        <!-- Caption: Text Input -->
    461461        <p>
    462             <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr_qr_code'); ?></label>
     462            <label for="<?php echo $this->get_field_id( 'caption' ); ?>"><?php _e('Caption:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    463463            <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%;" />
    464464        </p>
     
    466466        <!-- Color: Text Input -->
    467467        <p>
    468             <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr_qr_code'); ?></label>
     468            <label for="<?php echo $this->get_field_id( 'color' ); ?>"><?php _e('Color:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    469469            <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%;" />
    470470        </p>
     
    472472        <!-- BackgroundColor: Text Input -->
    473473        <p>
    474             <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr_qr_code'); ?></label>
     474            <label for="<?php echo $this->get_field_id( 'background_color' ); ?>"><?php _e('Background color:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    475475            <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%;" />
    476476        </p>
     
    478478        <!-- Align: Select Box -->
    479479        <p>
    480             <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr_qr_code'); ?></label>
     480            <label for="<?php echo $this->get_field_id( 'align' ); ?>"><?php _e('Align:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    481481            <select id="<?php echo $this->get_field_id( 'align' ); ?>" name="<?php echo $this->get_field_name( 'align' ); ?>" class="widefat" style="width:100%;">
    482                 <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr_qr_code'); ?></option>
    483                 <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr_qr_code'); ?></option>
    484                 <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr_qr_code'); ?></option>
    485                 <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr_qr_code'); ?></option>
     482                <option value="standard" <?php if ( 'standard' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Standard', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
     483                <option value="left" <?php if ( 'left' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Left', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
     484                <option value="center" <?php if ( 'center' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Center', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
     485                <option value="right" <?php if ( 'right' == $instance['align'] ) echo 'selected="selected"'; ?>><?php _e('Right', 'wpqr_qr_code', 'wpqr-qr-code'); ?></option>
    486486            </select>
    487487        </p>
     
    489489        <!-- Level: Select Box -->
    490490        <p>
    491             <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr_qr_code'); ?></label>
     491            <label for="<?php echo $this->get_field_id( 'level' ); ?>"><?php _e('Level:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    492492            <select id="<?php echo $this->get_field_id( 'level' ); ?>" name="<?php echo $this->get_field_name( 'level' ); ?>" class="widefat" style="width:100%;">
    493493                <option value="L" <?php if ( 'L' == $instance['level'] ) echo 'selected="selected"'; ?>>L</option>
     
    500500        <!-- Size: Select Box -->
    501501        <p>
    502             <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr_qr_code'); ?></label>
     502            <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e('Size:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    503503            <select id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>" class="widefat" style="width:100%;">
    504504                <option value="1" <?php if ( '1' == $instance['size'] ) echo 'selected="selected"'; ?>>1</option>
     
    515515        <!-- Margin: Select Box -->
    516516        <p>
    517             <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr_qr_code'); ?></label>
     517            <label for="<?php echo $this->get_field_id( 'margin' ); ?>"><?php _e('Margin:', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    518518            <select id="<?php echo $this->get_field_id( 'margin' ); ?>" name="<?php echo $this->get_field_name( 'margin' ); ?>" class="widefat" style="width:100%;">
    519519                <option value="0" <?php if ( '0' == $instance['margin'] ) echo 'selected="selected"'; ?>>0</option>
     
    532532        <p>
    533533            <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' ); ?>" />
    534             <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr_qr_code'); ?></label>
     534            <label for="<?php echo $this->get_field_id( 'show_poweredby' ); ?>"><?php _e('Display powered by?', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    535535        </p>
    536536       
     
    538538        <p>
    539539            <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' ); ?>" />
    540             <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr_qr_code'); ?></label>
     540            <label for="<?php echo $this->get_field_id( 'clear_after' ); ?>"><?php _e('Clear after QR-Code?', 'wpqr_qr_code', 'wpqr-qr-code'); ?></label>
    541541        </p>
    542542
Note: See TracChangeset for help on using the changeset viewer.