Plugin Directory

Changeset 1446567


Ignore:
Timestamp:
06/30/2016 01:17:17 PM (10 years ago)
Author:
deshack
Message:

Add new banners for Linux Day 2016
Fix text domain
Update translations

Location:
linux-day/trunk
Files:
8 edited
2 moved

Legend:

Unmodified
Added
Removed
  • linux-day/trunk/languages/linux-day-it_IT.po

    r1446566 r1446567  
    22msgstr ""
    33"Project-Id-Version: Linux Day\n"
    4 "POT-Creation-Date: 2013-09-26 16:24+0100\n"
    5 "PO-Revision-Date: 2013-09-26 16:25+0100\n"
     4"POT-Creation-Date: 2016-06-30 15:13+0200\n"
     5"PO-Revision-Date: 2016-06-30 15:14+0200\n"
    66"Last-Translator: Mattia Migliorini <deshack@ubuntu.com>\n"
    77"Language-Team: Mattia Migliorini <deshack@ubuntu.com>\n"
     8"Language: it_IT\n"
    89"MIME-Version: 1.0\n"
    910"Content-Type: text/plain; charset=UTF-8\n"
    1011"Content-Transfer-Encoding: 8bit\n"
    11 "X-Generator: Poedit 1.5.4\n"
     12"X-Generator: Poedit 1.8.7.1\n"
    1213"X-Poedit-KeywordsList: __;_e\n"
    1314"X-Poedit-Basepath: .\n"
     
    1516"X-Poedit-SearchPath-0: ..\n"
    1617
    17 #: ../linux-day.php:27
     18#: ../linux-day.php:39
    1819msgid "Linux Day Banner"
    1920msgstr "Linux Day Banner"
    2021
    21 #: ../linux-day.php:28
     22#: ../linux-day.php:40
    2223msgid "Add the Linux Day banners to your sidebar"
    23 msgstr "Aggiungi il banner del Linux Day alla tua sidebar"
     24msgstr "Aggiungi i banner del Linux Day alla tua sidebar"
    2425
    25 #: ../linux-day.php:70
     26#: ../linux-day.php:63
     27msgid "Linux Day 2016"
     28msgstr "Linux Day 2016"
     29
     30#: ../linux-day.php:85
    2631msgid "Title:"
    2732msgstr "Titolo:"
    2833
    29 #: ../linux-day.php:75
     34#: ../linux-day.php:90
    3035msgid "Banner format:"
    31 msgstr "Formato del banner:"
     36msgstr "Formato banner:"
    3237
    33 #: ../linux-day.php:77
     38#: ../linux-day.php:92
    3439msgid "Select format"
    3540msgstr "Seleziona formato"
  • linux-day/trunk/languages/linux-day.po

    r779789 r1446567  
    22msgstr ""
    33"Project-Id-Version: Linux Day\n"
    4 "POT-Creation-Date: 2013-09-26 16:22+0100\n"
    5 "PO-Revision-Date: 2013-09-26 16:24+0100\n"
     4"POT-Creation-Date: 2016-06-30 15:14+0200\n"
     5"PO-Revision-Date: 2016-06-30 15:15+0200\n"
    66"Last-Translator: Mattia Migliorini <deshack@ubuntu.com>\n"
    77"Language-Team: Mattia Migliorini <deshack@ubuntu.com>\n"
     8"Language: en_EN\n"
    89"MIME-Version: 1.0\n"
    910"Content-Type: text/plain; charset=UTF-8\n"
    1011"Content-Transfer-Encoding: 8bit\n"
    11 "X-Generator: Poedit 1.5.4\n"
     12"X-Generator: Poedit 1.8.7.1\n"
    1213"X-Poedit-KeywordsList: __;_e\n"
    1314"X-Poedit-Basepath: .\n"
    1415"X-Poedit-SourceCharset: UTF-8\n"
     16"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    1517"X-Poedit-SearchPath-0: ..\n"
     18
     19#: ../linux-day.php:39
     20msgid "Linux Day Banner"
     21msgstr ""
     22
     23#: ../linux-day.php:40
     24msgid "Add the Linux Day banners to your sidebar"
     25msgstr ""
     26
     27#: ../linux-day.php:63
     28msgid "Linux Day 2016"
     29msgstr ""
     30
     31#: ../linux-day.php:85
     32msgid "Title:"
     33msgstr ""
     34
     35#: ../linux-day.php:90
     36msgid "Banner format:"
     37msgstr ""
     38
     39#: ../linux-day.php:92
     40msgid "Select format"
     41msgstr ""
  • linux-day/trunk/linux-day.php

    r1200020 r1446567  
    55 * Description: This plugin adds a widget for Linux Day banners.
    66 * Author: Mattia Migliorini
    7  * Version: 1.2.2
     7 * Version: 1.2.3
    88 * Author URI: http://www.deshack.net
    99 * License: GPLv2 or later
     10 * Text Domain: linux-day
    1011 */
    1112
    1213// Load Text Domain
    1314function ld_text_start() {
    14     load_plugin_textdomain( 'ld', false, 'linux-day/languages' );
     15    load_plugin_textdomain( 'linux-day', false, plugin_basename( dirname( __FILE__ ) . '/languages' ) );
    1516}
    16 add_action( 'init', 'ld_text_start' );
     17add_action( 'plugins_loaded', 'ld_text_start' );
    1718
    1819/**
     
    3031     * @var string
    3132     */
    32     const VERSION = '1.2.2';
     33    const VERSION = '1.2.3';
    3334
    3435    // Constructor
     
    3637        parent::__construct(
    3738            'ld_widget_banner', // Base ID
    38             __( 'Linux Day Banner', 'ld' ), // Name
    39             array( 'description' => __( 'Add the Linux Day banners to your sidebar', 'ld' ) ) // Args
     39            __( 'Linux Day Banner', 'linux-day' ), // Name
     40            array( 'description' => __( 'Add the Linux Day banners to your sidebar', 'linux-day' ) ) // Args
    4041        );
    4142    }
     
    5051     */
    5152    public function widget( $args, $instance ) {
    52         $title = apply_filters( 'widget_title', $instance['title'] );
    53         $format = $instance['format'];
     53        $title = isset( $instance['title'] ) ? apply_filters( 'widget_title', $instance['title'] ) : '';
     54        $format = isset( $instance['format'] ) ? $instance['format'] : '';
    5455
    5556        echo $args['before_widget'];
     
    6061        <a href="http://www.linuxday.it">
    6162            <?php $banner = 'images/banner_' . $format . '.png'; ?>
    62             <img src="<?php echo plugins_url( $banner, __FILE__ ); ?>?<?php echo self::VERSION; ?>" border="0" alt="Linux Day 2015">
     63            <img src="<?php echo plugins_url( $banner, __FILE__ ); ?>?<?php echo self::VERSION; ?>" border="0" alt="<?php _e( 'Linux Day 2016', 'linux-day' ); ?>">
    6364        </a>
    6465        <?php
     
    8283
    8384        <p>
    84             <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e( 'Title:', 'ld' ); ?></label>
     85            <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e( 'Title:', 'linux-day' ); ?></label>
    8586            <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
    8687        </p>
    8788
    8889        <p>
    89             <label for="<?php echo $this->get_field_id('format'); ?>"><?php _e( 'Banner format:', 'ld' ); ?></label>
     90            <label for="<?php echo $this->get_field_id('format'); ?>"><?php _e( 'Banner format:', 'linux-day' ); ?></label>
    9091            <select class="widefat" id="<?php echo $this->get_field_id('format'); ?>" name="<?php echo $this->get_field_name('format'); ?>">
    91                 <option <?php selected( $format, '' ); ?> disabled><?php _e( 'Select format', 'ld' ); ?></option>
     92                <option <?php selected( $format, '' ); ?> disabled><?php _e( 'Select format', 'linux-day' ); ?></option>
    9293                <?php foreach( $sizes as $size ) : ?>
    9394                    <option <?php selected( $size, $format ); ?> value="<?php echo esc_attr($size); ?>"><?php echo $size; ?></option>
  • linux-day/trunk/readme.txt

    r1200020 r1446567  
    55Requires at least: 2.8
    66Tested up to: 4.3
    7 Stable tag: 1.2.2
     7Stable tag: 1.2.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    2828
    2929== Changelog ==
     30
     31= 1.2.3 =
     32* Add new banners for Linux Day 2016
    3033
    3134= 1.2.1 =
Note: See TracChangeset for help on using the changeset viewer.