Plugin Directory

Changeset 1377689


Ignore:
Timestamp:
03/24/2016 08:33:53 AM (9 years ago)
Author:
obstschale
Message:

Start fixing text-domain

Location:
dicentis-podcast/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • dicentis-podcast/trunk/dicentis-podcast.php

    r1363250 r1377689  
    1313 * Author: Hans-Helge Buerger
    1414 * Author URI: http://hanshelgebuerger.de
    15  * Text Domain: dicentis
     15 * Text Domain: dicentis-podcast
    1616 * Domain Path: /languages/
    1717 * GitHub Plugin URI: https://github.com/dicentis/dicentis
  • dicentis-podcast/trunk/includes/controller/class-dipo-podcast-post-type.php

    r1363250 r1377689  
    102102        $podcast_args = array(
    103103            'labels' => array(
    104                 'name' => __( 'Podcasts', 'dicentis' ),
    105                 'singular_name' => __( 'Episode', 'dicentis' ),
    106                 'add_new' => __( 'Add New Episode', 'dicentis' ),
    107                 'add_new_item' => __( 'Add New Episode', 'dicentis' ),
    108                 'edit_item' => __( 'Edit Episodes', 'dicentis' ),
    109                 'new_item' => __( 'New Episodes', 'dicentis' ),
    110                 'view_item' => __( 'View Episodes', 'dicentis' ),
    111                 'search_items' => __( 'Search Episodes', 'dicentis' ),
    112                 'not_found' => __( 'No Episodes Found', 'dicentis' ),
    113                 'not_found_in_trash' => __( 'No Episodes Found In Trash', 'dicentis' )
     104                'name' => __( 'Podcasts', 'dicentis-podcast' ),
     105                'singular_name' => __( 'Episode', 'dicentis-podcast' ),
     106                'add_new' => __( 'Add New Episode', 'dicentis-podcast' ),
     107                'add_new_item' => __( 'Add New Episode', 'dicentis-podcast' ),
     108                'edit_item' => __( 'Edit Episodes', 'dicentis-podcast' ),
     109                'new_item' => __( 'New Episodes', 'dicentis-podcast' ),
     110                'view_item' => __( 'View Episodes', 'dicentis-podcast' ),
     111                'search_items' => __( 'Search Episodes', 'dicentis-podcast' ),
     112                'not_found' => __( 'No Episodes Found', 'dicentis-podcast' ),
     113                'not_found_in_trash' => __( 'No Episodes Found In Trash', 'dicentis-podcast' )
    114114            ),
    115115            'public' => true,
    116116            'has_archive' => true,
    117             'description' => __( 'A podcast plugin which allows to define multipel podcasts with individual feeds', 'dicentis' ),
     117            'description' => __( 'A podcast plugin which allows to define multipel podcasts with individual feeds', 'dicentis-podcast' ),
    118118            'supports' => array(
    119119                'editor',
     
    180180            ),
    181181            'labels' => array(
    182                 'name' => __( 'Podcast Shows', $this->textdomain ),
    183                 'singular_name' => __( 'Podcast Show', $this->textdomain ),
    184                 'edit_item' => __( 'Edit Podcast Show', $this->textdomain ),
    185                 'update_item' => __( 'Update Podcast Show', $this->textdomain ),
    186                 'add_new_item' => __( 'Add New Podcast Show', $this->textdomain ),
    187                 'new_item_name' => __( 'New Podcast Show Name', $this->textdomain ),
    188                 'all_items' => __( 'All Podcast Shows', $this->textdomain ),
    189                 'search_items' => __( 'Search Podcast Show', $this->textdomain ),
    190                 'parent_item' => __( 'Parent Podcast Show', $this->textdomain ),
    191                 'parent_item_colon' => __( 'Parent Podcast Show:', $this->textdomain ),
     182                'name' => __( 'Podcast Shows', 'dicentis-podcast' ),
     183                'singular_name' => __( 'Podcast Show', 'dicentis-podcast' ),
     184                'edit_item' => __( 'Edit Podcast Show', 'dicentis-podcast' ),
     185                'update_item' => __( 'Update Podcast Show', 'dicentis-podcast' ),
     186                'add_new_item' => __( 'Add New Podcast Show', 'dicentis-podcast' ),
     187                'new_item_name' => __( 'New Podcast Show Name', 'dicentis-podcast' ),
     188                'all_items' => __( 'All Podcast Shows', 'dicentis-podcast' ),
     189                'search_items' => __( 'Search Podcast Show', 'dicentis-podcast' ),
     190                'parent_item' => __( 'Parent Podcast Show', 'dicentis-podcast' ),
     191                'parent_item_colon' => __( 'Parent Podcast Show:', 'dicentis-podcast' ),
    192192            ),
    193193        );
     
    201201            ),
    202202            'labels' => array(
    203                 'name' => __( 'Series', $this->textdomain ),
    204                 'singular_name' => __( 'Series', $this->textdomain ),
    205                 'edit_item' => __( 'Edit Series', $this->textdomain ),
    206                 'update_item' => __( 'Update Series', $this->textdomain ),
    207                 'add_new_item' => __( 'Add New Series', $this->textdomain ),
    208                 'new_item_name' => __( 'New Series Name', $this->textdomain ),
    209                 'all_items' => __( 'All Series', $this->textdomain ),
    210                 'search_items' => __( 'Search Series', $this->textdomain ),
    211                 'parent_item' => __( 'Parent Series', $this->textdomain ),
    212                 'parent_item_colon' => __( 'Parent Series:', $this->textdomain ),
     203                'name' => __( 'Series', 'dicentis-podcast' ),
     204                'singular_name' => __( 'Series', 'dicentis-podcast' ),
     205                'edit_item' => __( 'Edit Series', 'dicentis-podcast' ),
     206                'update_item' => __( 'Update Series', 'dicentis-podcast' ),
     207                'add_new_item' => __( 'Add New Series', 'dicentis-podcast' ),
     208                'new_item_name' => __( 'New Series Name', 'dicentis-podcast' ),
     209                'all_items' => __( 'All Series', 'dicentis-podcast' ),
     210                'search_items' => __( 'Search Series', 'dicentis-podcast' ),
     211                'parent_item' => __( 'Parent Series', 'dicentis-podcast' ),
     212                'parent_item_colon' => __( 'Parent Series:', 'dicentis-podcast' ),
    213213            ),
    214214        );
     
    222222            ),
    223223            'labels' => array(
    224                 'name' => __( 'Speakers', $this->textdomain ),
    225                 'singular_name' => __( 'Speaker', $this->textdomain ),
    226                 'edit_item' => __( 'Edit Speaker', $this->textdomain ),
    227                 'update_item' => __( 'Update Speaker', $this->textdomain ),
    228                 'add_new_item' => __( 'Add New Speaker', $this->textdomain ),
    229                 'new_item_name' => __( 'New Speaker Name', $this->textdomain ),
    230                 'all_items' => __( 'All Speaker', $this->textdomain ),
    231                 'search_items' => __( 'Search Speaker', $this->textdomain ),
    232                 'parent_item' => __( 'Parent Speaker', $this->textdomain ),
    233                 'parent_item_colon' => __( 'Parent Speaker:', $this->textdomain ),
     224                'name' => __( 'Speakers', 'dicentis-podcast' ),
     225                'singular_name' => __( 'Speaker', 'dicentis-podcast' ),
     226                'edit_item' => __( 'Edit Speaker', 'dicentis-podcast' ),
     227                'update_item' => __( 'Update Speaker', 'dicentis-podcast' ),
     228                'add_new_item' => __( 'Add New Speaker', 'dicentis-podcast' ),
     229                'new_item_name' => __( 'New Speaker Name', 'dicentis-podcast' ),
     230                'all_items' => __( 'All Speaker', 'dicentis-podcast' ),
     231                'search_items' => __( 'Search Speaker', 'dicentis-podcast' ),
     232                'parent_item' => __( 'Parent Speaker', 'dicentis-podcast' ),
     233                'parent_item_colon' => __( 'Parent Speaker:', 'dicentis-podcast' ),
    234234            ),
    235235        );
     
    440440     */
    441441    public function human_readable_filesize($size) {
    442    
     442
    443443        // Adapted from: http://www.php.net/manual/en/function.filesize.php
    444      
     444
    445445        $mod = 1024;
    446      
     446
    447447        $units = explode(' ','B KB MB GB TB PB');
    448448        for ($i = 0; $size > $mod; $i++) {
    449449            $size /= $mod;
    450450        }
    451      
     451
    452452        return round($size, 2) . ' ' . $units[$i];
    453453    }
     
    520520        $mediafiles = array();
    521521
    522         for ( $i=1; $i <= $media_count; $i++ ) { 
     522        for ( $i=1; $i <= $media_count; $i++ ) {
    523523            $temp_mediafile = get_post_meta( $post_id, '_dipo_mediafile' . $i, true );
    524524            array_push( $mediafiles, $temp_mediafile );
  • dicentis-podcast/trunk/includes/core/class-dipo-localization.php

    r958237 r1377689  
    1616    public function load_localisation() {
    1717
    18         load_plugin_textdomain( 'dicentis', false,
     18        load_plugin_textdomain( 'dicentis-podcast', false,
    1919            'dicentis-podcast/languages/' );
    2020
Note: See TracChangeset for help on using the changeset viewer.