Plugin Directory

Changeset 392687


Ignore:
Timestamp:
06/03/2011 11:51:39 AM (15 years ago)
Author:
janheuninck
Message:

Added French translation and made minor code improvements

Location:
tf-button/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • tf-button/trunk/languages/tf-button-nl_BE.po

    r392151 r392687  
    33"Project-Id-Version: TF Button\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2011-06-02 10:20+0100\n"
    6 "PO-Revision-Date: 2011-06-02 10:20+0100\n"
     5"POT-Creation-Date: 2011-06-03 13:33+0100\n"
     6"PO-Revision-Date: 2011-06-03 13:33+0100\n"
    77"Last-Translator: Jan Heuninck <jan@janheuninck.com>\n"
    88"Language-Team: Jan Heuninck <jan@janheuninck.be>\n"
     
    1616"X-Poedit-SearchPath-1: ..\n"
    1717
    18 #: ../tf-button.php:123
     18#: ../tf-button.php:119
    1919msgid "Title"
    2020msgstr "Titel"
    2121
    22 #: ../tf-button.php:127
     22#: ../tf-button.php:123
    2323msgid "Username"
    2424msgstr "Gebruikersnaam"
    2525
    26 #: ../tf-button.php:131
     26#: ../tf-button.php:127
    2727msgid "Show count"
    2828msgstr "Toon aantal volgers"
    2929
    30 #: ../tf-button.php:133
     30#: ../tf-button.php:129
    3131msgid "Yes"
    3232msgstr "Ja"
    3333
    34 #: ../tf-button.php:134
     34#: ../tf-button.php:131
    3535msgid "No"
    3636msgstr "Nee"
    3737
    38 #: ../tf-button.php:138
    39 msgid "Color button"
    40 msgstr "Kleur knop"
     38#: ../tf-button.php:134
     39msgid "Button"
     40msgstr "Knop"
    4141
    42 #: ../tf-button.php:140
     42#: ../tf-button.php:136
    4343msgid "White"
    4444msgstr "Licht"
    4545
    46 #: ../tf-button.php:141
     46#: ../tf-button.php:138
    4747msgid "Grey"
    4848msgstr "Donker"
    4949
    50 #: ../tf-button.php:145
     50#: ../tf-button.php:141
    5151msgid "Text color"
    5252msgstr "Kleur tekst"
    5353
    54 #: ../tf-button.php:149
     54#: ../tf-button.php:145
    5555msgid "Link color"
    5656msgstr "Kleur link"
    5757
    58 #: ../tf-button.php:153
     58#: ../tf-button.php:149
    5959msgid "Language"
    6060msgstr "Taal"
    6161
    62 #: ../tf-button.php:155
     62#: ../tf-button.php:151
    6363msgid "English"
    6464msgstr "Engels"
    6565
    66 #: ../tf-button.php:156
     66#: ../tf-button.php:152
    6767msgid "French"
    6868msgstr "Frans"
    6969
    70 #: ../tf-button.php:157
     70#: ../tf-button.php:153
    7171msgid "German"
    7272msgstr "Duits"
    7373
    74 #: ../tf-button.php:158
     74#: ../tf-button.php:154
    7575msgid "Italian"
    7676msgstr "Italiaans"
    7777
    78 #: ../tf-button.php:159
     78#: ../tf-button.php:155
    7979msgid "Japanese"
    8080msgstr "Japans"
    8181
    82 #: ../tf-button.php:160
     82#: ../tf-button.php:156
    8383msgid "Korean"
    8484msgstr "Koreaans"
    8585
    86 #: ../tf-button.php:161
     86#: ../tf-button.php:157
    8787msgid "Russian"
    8888msgstr "Russisch"
    8989
    90 #: ../tf-button.php:162
     90#: ../tf-button.php:158
    9191msgid "Spanish"
    9292msgstr "Spaans"
    9393
    94 #: ../tf-button.php:163
     94#: ../tf-button.php:159
    9595msgid "Turkish"
    9696msgstr "Turks"
    9797
    98 #: ../tf-button.php:167
     98#: ../tf-button.php:163
    9999msgid "Width"
    100100msgstr "Breedte"
    101101
    102 #: ../tf-button.php:171
     102#: ../tf-button.php:167
    103103msgid "Align"
    104104msgstr "Uitlijning"
    105105
    106 #: ../tf-button.php:173
     106#: ../tf-button.php:169
    107107msgid "Left"
    108108msgstr "Links"
    109109
    110 #: ../tf-button.php:174
     110#: ../tf-button.php:171
    111111msgid "Right"
    112112msgstr "Rechts"
    113113
     114#~ msgid "Color button"
     115#~ msgstr "Kleur knop"
  • tf-button/trunk/languages/tf-button-nl_NL.po

    r392151 r392687  
    33"Project-Id-Version: TF Button\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2011-06-02 10:21+0100\n"
    6 "PO-Revision-Date: 2011-06-02 10:21+0100\n"
     5"POT-Creation-Date: 2011-06-03 13:34+0100\n"
     6"PO-Revision-Date: 2011-06-03 13:34+0100\n"
    77"Last-Translator: Jan Heuninck <jan@janheuninck.com>\n"
    88"Language-Team: Jan Heuninck <jan@janheuninck.be>\n"
     
    1616"X-Poedit-SearchPath-1: ..\n"
    1717
    18 #: ../tf-button.php:123
     18#: ../tf-button.php:119
    1919msgid "Title"
    2020msgstr "Titel"
    2121
    22 #: ../tf-button.php:127
     22#: ../tf-button.php:123
    2323msgid "Username"
    2424msgstr "Gebruikersnaam"
    2525
    26 #: ../tf-button.php:131
     26#: ../tf-button.php:127
    2727msgid "Show count"
    2828msgstr "Toon aantal volgers"
    2929
    30 #: ../tf-button.php:133
     30#: ../tf-button.php:129
    3131msgid "Yes"
    3232msgstr "Ja"
    3333
    34 #: ../tf-button.php:134
     34#: ../tf-button.php:131
    3535msgid "No"
    3636msgstr "Nee"
    3737
    38 #: ../tf-button.php:138
    39 msgid "Color button"
    40 msgstr "Kleur knop"
     38#: ../tf-button.php:134
     39msgid "Button"
     40msgstr "Knop"
    4141
    42 #: ../tf-button.php:140
     42#: ../tf-button.php:136
    4343msgid "White"
    4444msgstr "Licht"
    4545
    46 #: ../tf-button.php:141
     46#: ../tf-button.php:138
    4747msgid "Grey"
    4848msgstr "Donker"
    4949
    50 #: ../tf-button.php:145
     50#: ../tf-button.php:141
    5151msgid "Text color"
    5252msgstr "Kleur tekst"
    5353
    54 #: ../tf-button.php:149
     54#: ../tf-button.php:145
    5555msgid "Link color"
    5656msgstr "Kleur link"
    5757
    58 #: ../tf-button.php:153
     58#: ../tf-button.php:149
    5959msgid "Language"
    6060msgstr "Taal"
    6161
    62 #: ../tf-button.php:155
     62#: ../tf-button.php:151
    6363msgid "English"
    6464msgstr "Engels"
    6565
    66 #: ../tf-button.php:156
     66#: ../tf-button.php:152
    6767msgid "French"
    6868msgstr "Frans"
    6969
    70 #: ../tf-button.php:157
     70#: ../tf-button.php:153
    7171msgid "German"
    7272msgstr "Duits"
    7373
    74 #: ../tf-button.php:158
     74#: ../tf-button.php:154
    7575msgid "Italian"
    7676msgstr "Italiaans"
    7777
    78 #: ../tf-button.php:159
     78#: ../tf-button.php:155
    7979msgid "Japanese"
    8080msgstr "Japans"
    8181
    82 #: ../tf-button.php:160
     82#: ../tf-button.php:156
    8383msgid "Korean"
    8484msgstr "Koreaans"
    8585
    86 #: ../tf-button.php:161
     86#: ../tf-button.php:157
    8787msgid "Russian"
    8888msgstr "Russisch"
    8989
    90 #: ../tf-button.php:162
     90#: ../tf-button.php:158
    9191msgid "Spanish"
    9292msgstr "Spaans"
    9393
    94 #: ../tf-button.php:163
     94#: ../tf-button.php:159
    9595msgid "Turkish"
    9696msgstr "Turks"
    9797
    98 #: ../tf-button.php:167
     98#: ../tf-button.php:163
    9999msgid "Width"
    100100msgstr "Breedte"
    101101
    102 #: ../tf-button.php:171
     102#: ../tf-button.php:167
    103103msgid "Align"
    104104msgstr "Uitlijning"
    105105
    106 #: ../tf-button.php:173
     106#: ../tf-button.php:169
    107107msgid "Left"
    108108msgstr "Links"
    109109
    110 #: ../tf-button.php:174
     110#: ../tf-button.php:171
    111111msgid "Right"
    112112msgstr "Rechts"
    113113
     114#~ msgid "Color button"
     115#~ msgstr "Kleur knop"
  • tf-button/trunk/readme.txt

    r392651 r392687  
    11=== TF Button ===
    22Contributors: janheuninck
    3 Tags: twitter, widget, follow
     3Tags: twitter, widget, follow, sidebar, social
    44Requires at least: 2.8
    55Tested up to: 3.1.3
    6 Stable tag: 0.2
     6Stable tag: 0.3
    77
    88Add the new Twitter Follow Button to your website to increase engagement and create a lasting connection with your audience.
     
    1111
    1212Adds a Twitter Follow Button widget in your sidebar.
     13
     14Available in English, French and Dutch!
    1315
    1416== Installation ==
     
    2830== Changelog ==
    2931
     32= 0.3 =
     33Minor code improvements
     34Added French translation
     35
    3036= 0.2 =
    3137Added Dutch translation
  • tf-button/trunk/tf-button.php

    r392651 r392687  
    11<?php
     2/*  Copyright 2011  JAN HEUNINCK  (email : jan@janheuninck.be)
     3
     4    This program is free software; you can redistribute it and/or modify
     5    it under the terms of the GNU General Public License, version 2, as
     6    published by the Free Software Foundation.
     7
     8    This program is distributed in the hope that it will be useful,
     9    but WITHOUT ANY WARRANTY; without even the implied warranty of
     10    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     11    GNU General Public License for more details.
     12
     13    You should have received a copy of the GNU General Public License
     14    along with this program; if not, write to the Free Software
     15    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     16*/
     17
    218/*
    319    Plugin Name: TF Button
    420    Description: Add the Twitter Follow Button to your website to increase engagement and create a lasting connection with your audience.
    521    Author: Jan Heuninck
    6     Version: 0.2
     22    Version: 0.3
    723    Author URI: http://www.janheuninck.be
    8    
    9     Copyright 2011  JAN HEUNINCK  (email : jan@janheuninck.be)
    10 
    11     This program is free software; you can redistribute it and/or modify
    12     it under the terms of the GNU General Public License, version 2, as
    13     published by the Free Software Foundation.
    14 
    15     This program is distributed in the hope that it will be useful,
    16     but WITHOUT ANY WARRANTY; without even the implied warranty of
    17     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    18     GNU General Public License for more details.
    19 
    20     You should have received a copy of the GNU General Public License
    21     along with this program; if not, write to the Free Software
    22     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    2324*/
    2425
     
    114115        $width      = esc_attr($instance['width']);
    115116        $align      = esc_attr($instance['align']);
    116        
    117117        ?>
    118118        <p>
     
    125125        </p>
    126126        <p>
    127             <label for="<?php echo $this->get_field_id('show_count'); ?>"><?php _e('Show count', 'tf-button'); ?>:</label><br />
    128             <select id="<?php echo $this->get_field_id('show_count'); ?>" name="<?php echo $this->get_field_name('show_count'); ?>">
    129                 <option value="true"<?php echo ($show_count == 'true' ? ' selected=\"selected\"' : ''); ?>><?php _e('Yes', 'tf-button'); ?></option>
    130                 <option value="false"<?php echo ($show_count == 'false' ? ' selected=\"selected\"' : ''); ?>><?php _e('No', 'tf-button'); ?></option>
    131             </select>
     127            <label for="<?php echo $this->get_field_id('show_count_yes'); ?>"><?php _e('Show count', 'tf-button'); ?>:</label><br />
     128            <input type="radio" id="<?php echo $this->get_field_name('show_count_yes'); ?>" name="<?php echo $this->get_field_name('show_count'); ?>" value="true"<?php checked('true', $show_count); ?>/>
     129            <label><?php _e('Yes', 'tf-button'); ?></label>
     130            <input type="radio" id="<?php echo $this->get_field_name('show_count_no'); ?>" name="<?php echo $this->get_field_name('show_count'); ?>" value="false"<?php checked('false', $show_count); ?>/>
     131            <label><?php _e('No', 'tf-button'); ?></label>
    132132        </p>
    133133        <p>
    134             <label for="<?php echo $this->get_field_id('button'); ?>"><?php _e('Color button', 'tf-button'); ?>:</label><br />
    135             <select id="<?php echo $this->get_field_id('button'); ?>" name="<?php echo $this->get_field_name('button'); ?>">
    136                 <option value="white"<?php echo ($button == 'white' ? ' selected=\"selected\"' : ''); ?>><?php _e('White', 'tf-button'); ?></option>
    137                 <option value="grey"<?php echo ($button == 'grey' ? ' selected=\"selected\"' : ''); ?>><?php _e('Grey', 'tf-button'); ?></option>
    138             </select>
     134            <label for="<?php echo $this->get_field_id('button_white'); ?>"><?php _e('Button', 'tf-button'); ?>:</label><br />
     135            <input type="radio" id="<?php echo $this->get_field_name('button_white'); ?>" name="<?php echo $this->get_field_name('button'); ?>" value="white"<?php checked('white', $button); ?>/>
     136            <label><?php _e('White', 'tf-button'); ?></label>
     137            <input type="radio" id="<?php echo $this->get_field_name('button_grey'); ?>" name="<?php echo $this->get_field_name('button'); ?>" value="grey"<?php checked('grey', $button); ?>/>
     138            <label><?php _e('Grey', 'tf-button'); ?></label>
    139139        </p>
    140140        <p>
     
    149149            <label for="<?php echo $this->get_field_id('language'); ?>"><?php _e('Language', 'tf-button'); ?>:</label>
    150150            <select id="<?php echo $this->get_field_id('language'); ?>" name="<?php echo $this->get_field_name('language'); ?>">
    151                 <option value="en"<?php echo ($language == 'en' ? ' selected=\"selected\"' : ''); ?>><?php _e('English', 'tf-button'); ?></option>
    152                 <option value="fr"<?php echo ($language == 'fr' ? ' selected=\"selected\"' : ''); ?>><?php _e('French', 'tf-button'); ?></option>
    153                 <option value="de"<?php echo ($language == 'de' ? ' selected=\"selected\"' : ''); ?>><?php _e('German', 'tf-button'); ?></option>
    154                 <option value="it"<?php echo ($language == 'it' ? ' selected=\"selected\"' : ''); ?>><?php _e('Italian', 'tf-button'); ?></option>
    155                 <option value="ja"<?php echo ($language == 'ja' ? ' selected=\"selected\"' : ''); ?>><?php _e('Japanese', 'tf-button'); ?></option>
    156                 <option value="ko"<?php echo ($language == 'ko' ? ' selected=\"selected\"' : ''); ?>><?php _e('Korean', 'tf-button'); ?></option>
    157                 <option value="ru"<?php echo ($language == 'ru' ? ' selected=\"selected\"' : ''); ?>><?php _e('Russian', 'tf-button'); ?></option>
    158                 <option value="es"<?php echo ($language == 'es' ? ' selected=\"selected\"' : ''); ?>><?php _e('Spanish', 'tf-button'); ?></option>
    159                 <option value="tr"<?php echo ($language == 'tr' ? ' selected=\"selected\"' : ''); ?>><?php _e('Turkish', 'tf-button'); ?></option>
     151                <option value="en"<?php selected('en', $language); ?>><?php _e('English', 'tf-button'); ?></option>
     152                <option value="fr"<?php selected('fr', $language); ?>><?php _e('French', 'tf-button'); ?></option>
     153                <option value="de"<?php selected('de', $language); ?>><?php _e('German', 'tf-button'); ?></option>
     154                <option value="it"<?php selected('it', $language); ?>><?php _e('Italian', 'tf-button'); ?></option>
     155                <option value="ja"<?php selected('ja', $language); ?>><?php _e('Japanese', 'tf-button'); ?></option>
     156                <option value="ko"<?php selected('ko', $language); ?>><?php _e('Korean', 'tf-button'); ?></option>
     157                <option value="ru"<?php selected('ru', $language); ?>><?php _e('Russian', 'tf-button'); ?></option>
     158                <option value="es"<?php selected('es', $language); ?>><?php _e('Spanish', 'tf-button'); ?></option>
     159                <option value="tr"<?php selected('tr', $language); ?>><?php _e('Turkish', 'tf-button'); ?></option>
    160160            </select>
    161161        </p>
     
    166166        <p>
    167167            <label for="<?php echo $this->get_field_id('align'); ?>"><?php _e('Align', 'tf-button'); ?>:</label><br />
    168             <select id="<?php echo $this->get_field_id('align'); ?>" name="<?php echo $this->get_field_name('align'); ?>">
    169                 <option value="left"<?php echo ($align == 'left' ? ' selected=\"selected\"' : ''); ?>><?php _e('Left', 'tf-button'); ?></option>
    170                 <option value="right"<?php echo ($align == 'right' ? ' selected=\"selected\"' : ''); ?>><?php _e('Right', 'tf-button'); ?></option>
    171             </select>
     168            <input type="radio" id="<?php echo $this->get_field_name('align_left'); ?>" name="<?php echo $this->get_field_name('align'); ?>" value="left"<?php checked('left', $align); ?>/>
     169            <label><?php _e('Left', 'tf-button'); ?></label>
     170            <input type="radio" id="<?php echo $this->get_field_name('align_right'); ?>" name="<?php echo $this->get_field_name('align'); ?>" value="right"<?php checked('right', $align); ?>/>
     171            <label><?php _e('Right', 'tf-button'); ?></label>
    172172        </p>
    173173        <?php
     
    175175}
    176176
    177 // register TF_Button_Widget widget
     177// Register TF_Button_Widget widget
    178178add_action('widgets_init', create_function('', 'return register_widget("TF_Button_Widget");'));
    179179
    180180// Load translations
    181181load_plugin_textdomain('tf-button', false, dirname(plugin_basename( __FILE__ )) . '/languages/');
     182
    182183?>
Note: See TracChangeset for help on using the changeset viewer.