WordPress.org

Plugin Directory

Changeset 634150


Ignore:
Timestamp:
12/04/12 19:53:16 (17 months ago)
Author:
GregLone
Message:

Version 1.1.2

Location:
sf-archiver
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • sf-archiver/trunk/admin/w3p-acpt-admin.inc.php

    r516339 r634150  
    2323 
    2424/* Just adds a "Settings" link in the plugins list */ 
    25 add_filter( 'plugin_action_links', 'w3p_acpt_settings_action_links', 10, 2 ); 
     25add_filter( 'plugin_action_links_'.plugin_basename(W3P_ACPT_FILE), 'w3p_acpt_settings_action_links', 10, 2 ); 
    2626function w3p_acpt_settings_action_links( $links, $file ) { 
    27     if ( strstr( W3P_ACPT_FILE, $file ) != '' ) { 
    28         $settings_link = '<a href="' . admin_url( 'options-general.php?page='.W3P_ACPT_PAGE_NAME ) . '">' . __("Settings") . '</a>'; 
    29         array_unshift( $links, $settings_link ); 
    30     } 
     27    $settings_link = '<a href="' . admin_url( 'options-general.php?page='.W3P_ACPT_PAGE_NAME ) . '">' . __("Settings") . '</a>'; 
     28    array_unshift( $links, $settings_link ); 
     29 
    3130    return $links; 
    3231} 
     
    4241    ?> 
    4342<div class="wrap"> 
    44     <div id="icon-<?php echo W3P_ACPT_PAGE_NAME; ?>" class="icon32" style="background: url(<?php echo W3P_ACPT_PLUGIN_URL; ?>/admin/icon32.png) 0 0 no-repeat"><br/></div> 
     43    <div id="icon-<?php echo W3P_ACPT_PAGE_NAME; ?>" class="icon32" style="background: url(<?php echo W3P_ACPT_PLUGIN_URL; ?>admin/icon32.png) 0 0 no-repeat"><br/></div> 
    4544 
    4645    <h2><?php echo esc_html( W3P_ACPT_PLUGIN_NAME ); ?></h2> 
    4746 
    48     <p><?php _e("Here you can choose to enable the archive capability for the public custom post types.", W3P_ACPT_DOMAIN); ?></p> 
     47    <p><?php _e("Here you can choose to enable the archive capability for the public custom post types.", 'w3p-acpt'); ?></p> 
    4948 
    5049    <?php 
    5150    if ( !count($cpts) ) 
    52         echo '<p><i>'.__("Wait, where are my custom post types?! Why did you installed me if you don&#8217;t have custom post types? ;)", W3P_ACPT_DOMAIN).'</i></p>'; 
     51        echo '<p><i>'.__("Wait, where are my custom post types?! Why did you installed me if you don&#8217;t have custom post types? ;)", 'w3p-acpt').'</i></p>'; 
    5352    else { ?> 
    5453    <form name="w3p_acpt" method="post" action="options.php" id="w3p_acpt"> 
     
    7069                    if ( $ha_def ) { 
    7170                        echo '<input type="hidden" name="'.$acpt.'['.$cpt.'][enabled]" value="2"/>' 
    72                             .'<span class="description">'.__("This <abbr title=\"Custom Post Type\">CPT</abbr> already has an archive page.", W3P_ACPT_DOMAIN).'</span><br/>'; 
     71                            .'<span class="description">'.__("This <abbr title=\"Custom Post Type\">CPT</abbr> already has an archive page.", 'w3p-acpt').'</span><br/>'; 
    7372                    } else { 
    7473                        echo '<label>' 
    7574                                .'<input type="checkbox" name="'.$acpt.'['.$cpt.'][enabled]" value="1"'.(isset($sets[$cpt]['enabled']) && $sets[$cpt]['enabled'] ? ' checked="checked"' : '' ).'/> ' 
    76                                 .__("Enable archive page", W3P_ACPT_DOMAIN) 
     75                                .__("Enable archive page", 'w3p-acpt') 
    7776                            .'</label><br/>'; 
    7877                    } 
     
    8887                    echo '<label>' 
    8988                            .'<input type="checkbox" name="'.$acpt.'['.$cpt.'][rss]" value="1"'.(isset($sets[$cpt]['rss']) && $sets[$cpt]['rss'] ? ' checked="checked"' : '' ).'/> ' 
    90                             .__("Add the RSS feed <code>&lt;link/&gt;</code> in head", W3P_ACPT_DOMAIN) 
     89                            .__("Add the RSS feed <code>&lt;link/&gt;</code> in head", 'w3p-acpt') 
    9190                        .'</label>' 
    92                         .(isset($sets[$cpt]['enabled']) && $sets[$cpt]['enabled'] ? ' - <a target="_blank" href="'.get_post_type_archive_feed_link($cpt).'">'.__("Feed url", W3P_ACPT_DOMAIN).'</a>' : '').'<br/>'; 
    93                     echo '<label>' 
    94                             .sprintf(__("%s per page:", W3P_ACPT_DOMAIN), $wp_post_types[$cpt]->label) 
     91                        .(isset($sets[$cpt]['enabled']) && $sets[$cpt]['enabled'] ? ' - <a target="_blank" href="'.get_post_type_archive_feed_link($cpt).'">'.__("Feed url", 'w3p-acpt').'</a>' : '').'<br/>'; 
     92                    echo '<label>' 
     93                            .sprintf(__("%s per page:", 'w3p-acpt'), $wp_post_types[$cpt]->label) 
    9594                            .' <input type="text" class="small-text" name="'.$acpt.'['.$cpt.'][ppp]" value="'.(isset($sets[$cpt]['ppp']) && $sets[$cpt]['ppp'] ? (int) $sets[$cpt]['ppp'] : '').'"/>' 
    9695                        .'</label><br/>'; 
    9796                    echo '<label>' 
    98                             .__("Custom archive slug:", W3P_ACPT_DOMAIN) 
     97                            .__("Custom archive slug:", 'w3p-acpt') 
    9998                            .' <input type="text" name="'.$acpt.'['.$cpt.'][a_slug]" value="'.(isset($sets[$cpt]['a_slug']) && $sets[$cpt]['a_slug'] ? strtolower(esc_attr($sets[$cpt]['a_slug'])) : '').'"/>' 
    10099                        .'</label> ' 
    101                         .($disp_def_a ? '<span class="description">('.__("default value:", W3P_ACPT_DOMAIN).' "'.$a_slug.'")</span>' : '') 
    102                         .(isset($sets[$cpt]['enabled']) && $sets[$cpt]['enabled'] ? ' <a target="_blank" href="'.get_post_type_archive_link($cpt).'">'.__("Go to the archive page", W3P_ACPT_DOMAIN).'</a>' : '').'<br/>'; 
    103                     echo '<label>' 
    104                             .__("Custom posts slug:", W3P_ACPT_DOMAIN) 
     100                        .($disp_def_a ? '<span class="description">('.__("default value:", 'w3p-acpt').' "'.$a_slug.'")</span>' : '') 
     101                        .(isset($sets[$cpt]['enabled']) && $sets[$cpt]['enabled'] ? ' <a target="_blank" href="'.get_post_type_archive_link($cpt).'">'.__("Go to the archive page", 'w3p-acpt').'</a>' : '').'<br/>'; 
     102                    echo '<label>' 
     103                            .__("Custom posts slug:", 'w3p-acpt') 
    105104                            .' <input type="text" name="'.$acpt.'['.$cpt.'][p_slug]" value="'.(isset($sets[$cpt]['p_slug']) && $sets[$cpt]['p_slug'] ? strtolower(esc_attr($sets[$cpt]['p_slug'])) : '').'"/>' 
    106105                        .'</label> ' 
    107                         .($disp_def_p ? '<span class="description">('.__("default value:", W3P_ACPT_DOMAIN).' "'.$p_slug.'")</span>' : '').'<br/>'; 
     106                        .($disp_def_p ? '<span class="description">('.__("default value:", 'w3p-acpt').' "'.$p_slug.'")</span>' : '').'<br/>'; 
    108107                    echo '<label>' 
    109108                            .'<input type="checkbox" name="'.$acpt.'['.$cpt.'][hp]" value="1"'.(isset($sets[$cpt]['hp']) && $sets[$cpt]['hp'] ? ' checked="checked"' : '' ).'/> ' 
    110                             .__("Add this post type to the posts page", W3P_ACPT_DOMAIN) 
     109                            .__("Add this post type to the posts page", 'w3p-acpt') 
    111110                        .'</label><br/>'; 
    112111                    echo '<label>' 
    113112                            .'<input type="checkbox" name="'.$acpt.'['.$cpt.'][mainrss]" value="1"'.(isset($sets[$cpt]['mainrss']) && $sets[$cpt]['mainrss'] ? ' checked="checked"' : '' ).'/> ' 
    114                             .__("Add this post type to the main RSS feed", W3P_ACPT_DOMAIN) 
     113                            .__("Add this post type to the main RSS feed", 'w3p-acpt') 
    115114                        .'</label><br/>'; 
    116115                    ?> 
     
    123122                </th> 
    124123                <td style="vertical-align: middle;"> 
    125                     <label><input type="checkbox" name="<?php echo $acpt; ?>[delete_options]" value="1" /> <?php _e("Panic room: delete all the plugin settings", W3P_ACPT_DOMAIN); ?></label> 
     124                    <label><input type="checkbox" name="<?php echo $acpt; ?>[delete_options]" value="1" /> <?php _e("Panic room: delete all the plugin settings", 'w3p-acpt'); ?></label> 
    126125                </td> 
    127126        </table> 
     
    183182    $helpArr = array(); 
    184183 
    185     $txt1 = '<p>'.__('Each post type must have the &#171;&#160;Archive capability&#160;&#187; if you want to link to a page listing them.', W3P_ACPT_DOMAIN).'</p>'. 
    186             '<p>'.__('To enable the archive page, tick the &#171;&#160;Enable archive page&#160;&#187; checkbox in front of your custom post type. If the custom post type already has this capability, the checkbox won&#8217; show up.', W3P_ACPT_DOMAIN).'</p>'; 
     184    $txt1 = '<p>'.__('Each post type must have the &#171;&#160;Archive capability&#160;&#187; if you want to link to a page listing them.', 'w3p-acpt').'</p>'. 
     185            '<p>'.__('To enable the archive page, tick the &#171;&#160;Enable archive page&#160;&#187; checkbox in front of your custom post type. If the custom post type already has this capability, the checkbox won&#8217; show up.', 'w3p-acpt').'</p>'; 
    187186    $helpArr[] = array( 
    188187        'id'        => 'archive-page', 
    189         'title'     => __('Archive page', W3P_ACPT_DOMAIN), 
     188        'title'     => __('Archive page', 'w3p-acpt'), 
    190189        'content'   => $txt1 
    191190    ); 
    192191 
    193     $txt2 = '<p>'.__('By enabling the &#171;&#160;Archive capability&#160;&#187;, a RSS feed is also created. If you want to add this feed to your site, tick the checkbox and a <code>&lt;link/&gt;</code> tag will be inserted in the head of your site. But first, you should look if it isn&#8217;t already there.', W3P_ACPT_DOMAIN).'</p>'. 
    194             '<p>'.sprintf(__("The plugin also gives you an url to this feed: just copy the &#171;&#160;Feed url&#160;&#187; link url. You can also get this url by using the appropriate WordPress function:<br/> %s.", W3P_ACPT_DOMAIN), "<code>&lt;?php echo get_post_type_archive_feed_link('my-custom-post-type'); ?&gt;</code>").'</p>'; 
     192    $txt2 = '<p>'.__('By enabling the &#171;&#160;Archive capability&#160;&#187;, a RSS feed is also created. If you want to add this feed to your site, tick the checkbox and a <code>&lt;link/&gt;</code> tag will be inserted in the head of your site. But first, you should look if it isn&#8217;t already there.', 'w3p-acpt').'</p>'. 
     193            '<p>'.sprintf(__("The plugin also gives you an url to this feed: just copy the &#171;&#160;Feed url&#160;&#187; link url. You can also get this url by using the appropriate WordPress function:<br/> %s.", 'w3p-acpt'), "<code>&lt;?php echo get_post_type_archive_feed_link('my-custom-post-type'); ?&gt;</code>").'</p>'; 
    195194    $helpArr[] = array( 
    196195        'id'        => 'rss-feed', 
    197         'title'     => __('RSS feed', W3P_ACPT_DOMAIN), 
     196        'title'     => __('RSS feed', 'w3p-acpt'), 
    198197        'content'   => $txt2 
    199198    ); 
    200199 
    201     $txt3 = '<p>'.sprintf(__('You can customize the number of posts per page for each custom post type. Otherwise, this number will be the same than what you specified for your normal posts: %d.', W3P_ACPT_DOMAIN), get_option('posts_per_page')).'</p>'. 
    202             '<p>'.__('Hint: -1 to display all of them in the same page.', W3P_ACPT_DOMAIN).'</p>'; 
     200    $txt3 = '<p>'.sprintf(__('You can customize the number of posts per page for each custom post type. Otherwise, this number will be the same than what you specified for your normal posts: %d.', 'w3p-acpt'), get_option('posts_per_page')).'</p>'. 
     201            '<p>'.__('Hint: -1 to display all of them in the same page.', 'w3p-acpt').'</p>'; 
    203202    $helpArr[] = array( 
    204203        'id'        => 'posts-per-page', 
    205         'title'     => __('Posts per page', W3P_ACPT_DOMAIN), 
     204        'title'     => __('Posts per page', 'w3p-acpt'), 
    206205        'content'   => $txt3 
    207206    ); 
    208207 
    209     $txt4 = '<p>'.__('You can even specify a new slug for the archive page or the single pages.', W3P_ACPT_DOMAIN).'</p>'. 
    210             '<p>'.__("Hint: you can use sub-slugs like &#8217;sub-slug/slug&#8217;, &#8217;collections/summer/tee-shirts&#8217;...", W3P_ACPT_DOMAIN).'</p>'. 
    211             '<p>'.__("Don&#8217;t forget that the RSS url change at the same time.", W3P_ACPT_DOMAIN).'</p>'; 
     208    $txt4 = '<p>'.__('You can even specify a new slug for the archive page or the single pages.', 'w3p-acpt').'</p>'. 
     209            '<p>'.__("Hint: you can use sub-slugs like &#8217;sub-slug/slug&#8217;, &#8217;collections/summer/tee-shirts&#8217;...", 'w3p-acpt').'</p>'. 
     210            '<p>'.__("Don&#8217;t forget that the RSS url change at the same time.", 'w3p-acpt').'</p>'; 
    212211    $helpArr[] = array( 
    213212        'id'        => 'slugs', 
    214         'title'     => __('Slugs', W3P_ACPT_DOMAIN), 
     213        'title'     => __('Slugs', 'w3p-acpt'), 
    215214        'content'   => $txt4 
    216215    ); 
    217216 
    218     $txt5 = '<p>'.__('You can add your custom post types to your posts page, with your normal posts. Just tick the &#171;&#160;Add this post type to the posts page&#160;&#187; checkbox, the archive page is still available.', W3P_ACPT_DOMAIN).'</p>'. 
    219             '<p>'.__('You can do the same thing with the main RSS feed: you can add your custom post types to your normal posts in the main RSS feed by ticking the &#171;&#160;Add this post type to the main RSS feed&#160;&#187; checkbox.', W3P_ACPT_DOMAIN).'</p>'; 
     217    $txt5 = '<p>'.__('You can add your custom post types to your posts page, with your normal posts. Just tick the &#171;&#160;Add this post type to the posts page&#160;&#187; checkbox, the archive page is still available.', 'w3p-acpt').'</p>'. 
     218            '<p>'.__('You can do the same thing with the main RSS feed: you can add your custom post types to your normal posts in the main RSS feed by ticking the &#171;&#160;Add this post type to the main RSS feed&#160;&#187; checkbox.', 'w3p-acpt').'</p>'; 
    220219    $helpArr[] = array( 
    221220        'id'        => 'posts-page-and-feed', 
    222         'title'     => __('Posts page and main RSS feed', W3P_ACPT_DOMAIN), 
     221        'title'     => __('Posts page and main RSS feed', 'w3p-acpt'), 
    223222        'content'   => $txt5 
    224223    ); 
    225224 
    226     $txt6 = '<p>'.sprintf(__('Go to Appearance -> %s, look for the box called &#171;&#160;Post types&#160;&#187;, add your custom post type to your menu :)', W3P_ACPT_DOMAIN), '<a href="'.admin_url('nav-menus.php').'">'.__('Menus').'</a>').'</p>'; 
     225    $txt6 = '<p>'.sprintf(__('Go to Appearance -> %s, look for the box called &#171;&#160;Post types&#160;&#187;, add your custom post type to your menu :)', 'w3p-acpt'), '<a href="'.admin_url('nav-menus.php').'">'.__('Menus').'</a>').'</p>'; 
    227226    $helpArr[] = array( 
    228227        'id'        => 'whats-next', 
    229         'title'     => __('What&#8217;s next?', W3P_ACPT_DOMAIN), 
     228        'title'     => __('What&#8217;s next?', 'w3p-acpt'), 
    230229        'content'   => $txt6 
    231230    ); 
    232231 
    233     $credits = '<p>'.sprintf(__('This plugin was created by %1$s and reviewed by %2$s for a security check.', W3P_ACPT_DOMAIN), 'Grégory Viguier', "<a title='Boite A Web' target='_blank' href='http://www.boiteaweb.fr'>Julio Potier</a>").'</p>'. 
    234                '<p>'.sprintf(__('Plugin icon by %s.', W3P_ACPT_DOMAIN), "<a title='Double-J designs' target='_blank' href='http://www.doublejdesign.co.uk/'>Double-J designs</a>").'</p>'; 
     232    $credits = '<p>'.sprintf(__('This plugin was created by %1$s and reviewed by %2$s for a security check.', 'w3p-acpt'), 'Grégory Viguier', "<a title='Boite A Web' target='_blank' href='http://www.boiteaweb.fr'>Julio Potier</a>").'</p>'. 
     233               '<p>'.sprintf(__('Plugin icon by %s.', 'w3p-acpt'), "<a title='Double-J designs' target='_blank' href='http://www.doublejdesign.co.uk/'>Double-J designs</a>").'</p>'; 
    235234    $helpArr[] = array( 
    236235        'id'        => 'credits', 
    237         'title'     => __('Credits', W3P_ACPT_DOMAIN), 
     236        'title'     => __('Credits', 'w3p-acpt'), 
    238237        'content'   => $credits 
    239238    ); 
    240239 
    241240    $helpSide = '<p><strong>'.__('For more information:').'</strong></p>'. 
    242                 "<p><a title='Screenfeed' target='_blank' href='http://www.screenfeed.fr/archi/'>".__('My blog (french)', W3P_ACPT_DOMAIN).'</a></p>'; 
    243  
    244      
     241                "<p><a title='Screenfeed' target='_blank' href='http://www.screenfeed.fr/archi/'>".__('My blog (french)', 'w3p-acpt').'</a></p>'; 
     242 
     243 
    245244    foreach($helpArr as $helpItem) { 
    246245        $screen->add_help_tab($helpItem); 
     
    256255    $post_types = get_post_types( array( 'show_in_nav_menus' => true, 'has_archive' => true ), 'object' ); 
    257256    if ( count($post_types) ) 
    258         add_meta_box( 'add-cpt-archive', __('Post types', W3P_ACPT_DOMAIN), 'w3p_acpt_nav_menu_metabox', 'nav-menus', 'side', 'default' ); 
     257        add_meta_box( 'add-cpt-archive', __('Post types', 'w3p-acpt'), 'w3p_acpt_nav_menu_metabox', 'nav-menus', 'side', 'default' ); 
    259258    return $object; 
    260259} 
     
    263262/* The metabox */ 
    264263function w3p_acpt_nav_menu_metabox() { 
    265     global $nav_menu_selected_id, $locale; 
     264    global $nav_menu_selected_id, $locale, $wp_version; 
     265    $from_35 = version_compare( $wp_version, '3.4.99', '>' ); 
    266266    $post_types = get_post_types( array( 'show_in_nav_menus' => true, 'has_archive' => true ), 'object' ); 
    267267 
     
    295295            </ul> 
    296296        </div><!-- /.tabs-panel --> 
     297    <?php if ( !$from_35 ) { ?> 
    297298    </div> 
     299    <?php } ?> 
    298300 
    299301    <p class="button-controls"> 
     
    303305 
    304306        <span class="add-to-menu"> 
    305             <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> 
    306             <input type="submit"<?php disabled( $nav_menu_selected_id, 0 ); ?> class="button-secondary submit-add-to-menu" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-ctp-archive-menu-item" id="submit-cpt-archive" /> 
     307            <?php if ( !$from_35 ) { ?><img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /><?php } ?> 
     308            <input type="submit"<?php disabled( $nav_menu_selected_id, 0 ); ?> class="button-secondary submit-add-to-menu right" value="<?php esc_attr_e('Add to Menu'); ?>" name="add-ctp-archive-menu-item" id="submit-cpt-archive" /> 
     309            <?php if ( $from_35 ) { ?><span class="spinner"></span><?php } ?> 
    307310        </span> 
    308311    </p> 
    309     <?php 
     312    <?php if ( $from_35 ) { ?> 
     313    </div> 
     314    <?php } 
    310315} 
    311316 
     
    321326} 
    322327 
    323  
    324  
    325  
    326  
    327  
    328  
    329  
    330  
    331  
    332  
    333  
    334  
    335  
    336  
    337  
    338  
    339  
    340  
    341  
    342  
    343  
    344  
    345 ?> 
  • sf-archiver/trunk/languages/w3p-acpt-fr_FR.po

    r516339 r634150  
    11# LANGUAGE French translation for SF Archive for custom post types plugin for WordPress. 
    22# Copyright (C) 2011 Grégory Viguier 
    3 # Grégory Viguier, Julio Potier 2011. 
     3# Grégory Viguier. 
    44# 
    55msgid "" 
    66msgstr "" 
    77"Project-Id-Version: w3p-acpt 0.3\n" 
    8 "Report-Msgid-Bugs-To: http://scri.in/acpt/\n" 
     8"Report-msgid -Bugs-To: http://scri.in/acpt/\n" 
    99"POT-Creation-Date: 2012-02-15 16:25+0100\n" 
    10 "PO-Revision-Date: 2012-03-08 03:27+0100\n" 
    11 "Last-Translator: Grégory Viguier\n" 
     10"PO-Revision-Date: 2012-12-04 20:41+0100\n" 
     11"Last-Translator: Grégory Viguier <screenfeed@gmail.com>\n" 
    1212"Language-Team: fr_FR\n" 
    1313"MIME-Version: 1.0\n" 
    1414"Content-Type: text/plain; charset=utf-8\n" 
    1515"Content-Transfer-Encoding: 8bit\n" 
    16 "Plural-Forms: nplurals=2; plural=n>1\n" 
    17 "X-Poedit-Language: French\n" 
    18 "X-Poedit-Country: FRANCE\n" 
     16"Plural-Forms: nplurals=2; plural=n>1;\n" 
    1917"X-Poedit-SourceCharset: utf-8\n" 
    2018"X-Poedit-KeywordsList: __;_e\n" 
     19"Language: fr_FR\n" 
     20"X-Generator: Poedit 1.5.4\n" 
    2121 
    22 #: w3p-archive-for-cpt.php:109 
    23 msgid "Subscribe to %s via RSS" 
     22#: w3p-archive-for-cpt.php 
     23msgid  "A simple way to display archive pages for your custom post types" 
     24msgstr "Une manière simple d'afficher les pages d'archive de vos contenus personnalisés" 
     25 
     26msgid  "Subscribe to %s via RSS" 
    2427msgstr "Souscrire à %s via RSS" 
    2528 
    26 #: w3p-acpt-admin.inc.php:48 
    27 msgid "Here you can choose to enable the archive capability for the public custom post types." 
     29#: w3p-acpt-admin.inc.php 
     30msgid  "Here you can choose to enable the archive capability for the public custom post types." 
    2831msgstr "Ici vous pouvez choisir d&#8217;activer la capacité d&#8217;archive pour les types de contenu personnalisé publics." 
    2932 
    30 #: w3p-acpt-admin.inc.php:52 
    31 msgid "Wait, where are my custom post types?! Why did you installed me if you don&#8217;t have custom post types? ;)" 
     33msgid  "Wait, where are my custom post types?! Why did you installed me if you don&#8217;t have custom post types? ;)" 
    3234msgstr "Hé, où sont mes types de contenu personnalisé? Pourquoi m&#8217;avoir installé si vous n&#8217;avez pas de types de contenu personnalisé? ;)" 
    3335 
    34 #: w3p-acpt-admin.inc.php:72 
    35 msgid "This <abbr title=\"Custom Post Type\">CPT</abbr> already has an archive page." 
     36msgid  "This <abbr title=\"Custom Post Type\">CPT</abbr> already has an archive page." 
    3637msgstr "Ce <abbr title=\"Custom Post Type : type de contenu personnalisé\">CPT</abbr> a déjà une page d&#8217;archive." 
    3738 
    38 #: w3p-acpt-admin.inc.php:76 
    39 msgid "Enable archive page" 
     39msgid  "Enable archive page" 
    4040msgstr "Activer la page d&#8217;archive" 
    4141 
    42 #: w3p-acpt-admin.inc.php:90 
    43 msgid "Add the RSS feed <code>&lt;link/&gt;</code> in head" 
     42msgid  "Add the RSS feed <code>&lt;link/&gt;</code> in head" 
    4443msgstr "Ajouter le <code>&lt;link/&gt;</code> du flux RSS dans l&#8217;entête de page" 
    4544 
    46 #: w3p-acpt-admin.inc.php:92 
    47 msgid "Feed url" 
     45msgid  "Feed url" 
    4846msgstr "Url du flux" 
    4947 
    50 #: w3p-acpt-admin.inc.php:94 
    51 msgid "%s per page:" 
     48msgid  "%s per page:" 
    5249msgstr "%s par page :" 
    5350 
    54 #: w3p-acpt-admin.inc.php:98 
    55 msgid "Custom archive slug:" 
     51msgid  "Custom archive slug:" 
    5652msgstr "<abbr title=\"Fin de l&#8217;url\">Slug</abbr> personnalisé de l&#8217;archive :" 
    5753 
    58 #: w3p-acpt-admin.inc.php:101 
    59 msgid "default value:" 
     54msgid  "default value:" 
    6055msgstr "valeur par défaut :" 
    6156 
    62 #: w3p-acpt-admin.inc.php:102 
    63 msgid "Go to the archive page" 
     57msgid  "Go to the archive page" 
    6458msgstr "Aller sur la page d&#8217;archive" 
    6559 
    66 #: w3p-acpt-admin.inc.php:104 
    67 msgid "Custom posts slug:" 
     60msgid  "Custom posts slug:" 
    6861msgstr "Slug personnalisé des articles :" 
    6962 
    70 #: w3p-acpt-admin.inc.php:110 
    71 msgid "Add this post type to the posts page" 
     63msgid  "Add this post type to the posts page" 
    7264msgstr "Ajouter ce type de contenu à la page des articles" 
    7365 
    74 #: w3p-acpt-admin.inc.php:114 
    75 msgid "Add this post type to the main RSS feed" 
     66msgid  "Add this post type to the main RSS feed" 
    7667msgstr "Ajouter ce type de contenu au flux RSS principal" 
    7768 
    78 #: w3p-acpt-admin.inc.php:125 
    79 msgid "Panic room: delete all the plugin settings" 
     69msgid  "Panic room: delete all the plugin settings" 
    8070msgstr "C&#8217;est le drame : effacer tous les réglages du plugin" 
    8171 
    8272#: Help 
    83 #: w3p-acpt-admin.inc.php:185 
    84 msgid "Each post type must have the &#171;&#160;Archive capability&#160;&#187; if you want to link to a page listing them." 
     73msgid  "Each post type must have the &#171;&#160;Archive capability&#160;&#187; if you want to link to a page listing them." 
    8574msgstr "Chaque type de contenu doit avoir la &#171;&#160;capacité d&#8217;archive&#160;&#187; si vous souhaitez faire un lien vers une page les listant." 
    8675 
    87 #: w3p-acpt-admin.inc.php:186 
    88 msgid "To enable the archive page, tick the &#171;&#160;Enable archive page&#160;&#187; checkbox in front of your custom post type. If the custom post type already has this capability, the checkbox won&#8217; show up." 
     76msgid  "To enable the archive page, tick the &#171;&#160;Enable archive page&#160;&#187; checkbox in front of your custom post type. If the custom post type already has this capability, the checkbox won&#8217; show up." 
    8977msgstr "Pour activer la page d&#8217;archive, cocher la case &#171;&#160;Activer la page d&#8217;archive&#160;&#187; devant votre type de contenu personnalisé. Si le type de contenu personnalisé a déjà cette capacité, la case à cocher n&#8217;est pas affichée." 
    9078 
    91 #: w3p-acpt-admin.inc.php:189 
    92 msgid "Archive page" 
     79msgid  "Archive page" 
    9380msgstr "Page d&#8217;archive" 
    9481 
    95 #: w3p-acpt-admin.inc.php:193 
    96 msgid "By enabling the &#171;&#160;Archive capability&#160;&#187;, a RSS feed is also created. If you want to add this feed to your site, tick the checkbox and a <code>&lt;link/&gt;</code> tag will be inserted in the head of your site. But first, you should look if it isn&#8217;t already there." 
     82msgid  "By enabling the &#171;&#160;Archive capability&#160;&#187;, a RSS feed is also created. If you want to add this feed to your site, tick the checkbox and a <code>&lt;link/&gt;</code> tag will be inserted in the head of your site. But first, you should look if it isn&#8217;t already there." 
    9783msgstr "En activant la &#171;&#160;capacité d&#8217;archive&#160;&#187;, un flux RSS est également créé. Si vous souhaitez ajouter ce flux à votre site, cochez la case et une balise <code>&lt;link/&gt;</code> sera insérée dans l'entête de votre site. Mais d&#8217;abord vous devriez vérifier que cette balise n&#8217;est pas déjà en place." 
    9884 
    99 #: w3p-acpt-admin.inc.php:194 
    100 msgid "The plugin also gives you an url to this feed: just copy the &#171;&#160;Feed url&#160;&#187; link url. You can also get this url by using the appropriate WordPress function:<br/> %s." 
     85msgid  "The plugin also gives you an url to this feed: just copy the &#171;&#160;Feed url&#160;&#187; link url. You can also get this url by using the appropriate WordPress function:<br/> %s." 
    10186msgstr "Le plugin vous donne aussi une url pour ce flux : vous n'avez qu&#8217;à copier l&#8217;url de ce lien &#171;&#160;Url du flux&#160;&#187;. Vous pouvez aussi utiliser la fonction WordPress adéquate :<br/> %s" 
    10287 
    103 #: w3p-acpt-admin.inc.php:197 
    104 msgid "RSS feed" 
     88msgid  "RSS feed" 
    10589msgstr "Flux RSS" 
    10690 
    107 #: w3p-acpt-admin.inc.php:201 
    108 msgid "You can customize the number of posts per page for each custom post type. Otherwise, this number will be the same than what you specified for your normal posts: %d." 
     91msgid  "You can customize the number of posts per page for each custom post type. Otherwise, this number will be the same than what you specified for your normal posts: %d." 
    10992msgstr "Vous pouvez personnaliser le nombre d&#8217;articles par page pour chacun de vos contenus personnalisés. Sinon, ce nombre sera égal à celui précisé pour vos articles classiques : %d." 
    11093 
    111 #: w3p-acpt-admin.inc.php:202 
    112 msgid "Hint: -1 to display all of them in the same page." 
     94msgid  "Hint: -1 to display all of them in the same page." 
    11395msgstr "Astuce : -1 pour les montrer tous sur la même page." 
    11496 
    115 #: w3p-acpt-admin.inc.php:205 
    116 msgid "Posts per page" 
     97msgid  "Posts per page" 
    11798msgstr "Articles par page" 
    11899 
    119 #: w3p-acpt-admin.inc.php:209 
    120 msgid "You can even specify a new slug for the archive page or the single pages." 
     100msgid  "You can even specify a new slug for the archive page or the single pages." 
    121101msgstr "Vous pouvez même préciser un nouveau <abbr title=\"fin de l&#8217;url\">slug</abbr> pour la page d&#8217;archive ou les articles." 
    122102 
    123 #: w3p-acpt-admin.inc.php:210 
    124 msgid "Hint: you can use sub-slugs like &#8217;sub-slug/slug&#8217;, &#8217;collections/summer/tee-shirts&#8217;..." 
     103msgid  "Hint: you can use sub-slugs like &#8217;sub-slug/slug&#8217;, &#8217;collections/summer/tee-shirts&#8217;..." 
    125104msgstr "Astuce : vous pouvez utiliser des sous-slugs comme &#8217;sous-slug/slug&#8217;, &#8217;collection/été/tee-shirts&#8217;..." 
    126105 
    127 #: w3p-acpt-admin.inc.php:211 
    128 msgid "Don&#8217;t forget that the RSS url change at the same time." 
     106msgid  "Don&#8217;t forget that the RSS url change at the same time." 
    129107msgstr "N&#8217;oubliez pas que l&#8217;url du flux RSS change en même temps." 
    130108 
    131 #: w3p-acpt-admin.inc.php:214 
    132 msgid "Slugs" 
     109msgid  "Slugs" 
    133110msgstr "Slugs" 
    134111 
    135 #: w3p-acpt-admin.inc.php:218 
    136 msgid "You can add your custom post types to your posts page, with your normal posts. Just tick the &#171;&#160;Add this post type to the posts page&#160;&#187; checkbox, the archive page is still available." 
     112msgid  "You can add your custom post types to your posts page, with your normal posts. Just tick the &#171;&#160;Add this post type to the posts page&#160;&#187; checkbox, the archive page is still available." 
    137113msgstr "Vous pouvez ajouter vos types de contenu personnalisé sur votre page d&#8217;articles. Cochez juste la case &#171;&#160;Ajouter ce type de contenu à la page des articles&#160;&#187;, la page d&#8217;archive reste disponible." 
    138114 
    139 #: w3p-acpt-admin.inc.php:219 
    140 msgid "You can do the same thing with the main RSS feed: you can add your custom post types to your normal posts in the main RSS feed by ticking the &#171;&#160;Add this post type to the main RSS feed&#160;&#187; checkbox." 
     115msgid  "You can do the same thing with the main RSS feed: you can add your custom post types to your normal posts in the main RSS feed by ticking the &#171;&#160;Add this post type to the main RSS feed&#160;&#187; checkbox." 
    141116msgstr "Vous pouvez faire la même chose avec le flux RSS principal : vous pouvez ajouter vos types de contenu personnalisé au flux RSS principal en cochant la case &#171;&#160;Ajouter ce type de contenu au flux RSS principal&#160;&#187;." 
    142117 
    143 #: w3p-acpt-admin.inc.php:221 
    144 msgid "Posts page and main RSS feed" 
     118msgid  "Posts page and main RSS feed" 
    145119msgstr "Page des articles et flux RSS principal" 
    146120 
    147 #: w3p-acpt-admin.inc.php:226 
    148 msgid "Go to Appearance -> %s, look for the box called &#171;&#160;Post types&#160;&#187;, add your custom post type to your menu :)" 
     121msgid  "Go to Appearance -> %s, look for the box called &#171;&#160;Post types&#160;&#187;, add your custom post type to your menu :)" 
    149122msgstr "Allez dans Apparence -> %s, cherchez la boîte &#171;&#160;Types de contenu&#160;&#187;, ajoutez votre type de contenu personnalisé au menu :)" 
    150123 
    151 #: w3p-acpt-admin.inc.php:229 
    152 msgid "What&#8217;s next?" 
     124msgid  "What&#8217;s next?" 
    153125msgstr "Et après?" 
    154126 
    155 #: w3p-acpt-admin.inc.php:233 
    156 msgid "This plugin was created by %1$s and reviewed by %2$s for a security check." 
     127msgid  "This plugin was created by %1$s and reviewed by %2$s for a security check." 
    157128msgstr "Ce plugin a été créé par %1$s et vérifié par %2$s au niveau sécurité." 
    158129 
    159 #: w3p-acpt-admin.inc.php:234 
    160 msgid "Plugin icon by %s." 
     130msgid  "Plugin icon by %s." 
    161131msgstr "Icône du plugin par %s." 
    162132 
    163 #: w3p-acpt-admin.inc.php:237 
    164 msgid "Credits" 
     133msgid  "Credits" 
    165134msgstr "Crédits" 
    166135 
    167 #: w3p-acpt-admin.inc.php:242 
    168 msgid "My blog (french)" 
     136msgid  "My blog (french)" 
    169137msgstr "Mon blog" 
    170138 
    171 #: w3p-acpt-admin.inc.php:258 
    172 msgid "Post types" 
     139msgid  "Post types" 
    173140msgstr "Types de contenu" 
    174141 
  • sf-archiver/trunk/readme.txt

    r585314 r634150  
    44Tags: content, archive, post types 
    55Requires at least: 3.3 
    6 Tested up to: 3.3.1 
     6Tested up to: 3.5RC-3 
    77Stable tag: trunk 
    88License: GPLv3 
     
    3636== Screenshots == 
    37371. The settings page 
    38 2. The meta box in nav menu admin page 
     382. The meta box in the Menus admin page 
    3939 
    4040== Changelog == 
     41 
     42= 1.1.2 = 
     43* 2012/12/04 
     44* Small change for WP 3.5 compatibility. 
     45* Code improvements. 
     46* Use string as domain for gettext. 
    4147 
    4248= 1.1.1 = 
     
    5864 
    5965 
    60  
    61  
    62  
    63  
    64  
    65  
    66  
    67  
    68  
    69  
    70  
    71  
    72  
    73  
    74  
    75  
    76  
    77  
    78  
    79  
    80  
    81  
    82  
    83  
    84  
    85  
    86  
    87  
    88  
    89  
    90  
    91  
    92  
    93  
    94  
    95  
    96  
    97  
    98  
    99  
    100  
  • sf-archiver/trunk/w3p-archiver.php

    r585312 r634150  
    11<?php 
    22/* 
    3 Plugin Name: SF Archiver 
    4 Plugin URI: http://www.screenfeed.fr/archi/ 
    5 Description: A simple way to display archive pages for your custom post types 
    6 Version: 1.1.1 
    7 Author: Grégory Viguier 
    8 Author URI: http://www.screenfeed.fr/greg/ 
    9 License: GPLv3 
    10 Require: WordPress 3.3+ 
     3 * Plugin Name: SF Archiver 
     4 * Plugin URI: http://www.screenfeed.fr/archi/ 
     5 * Description: A simple way to display archive pages for your custom post types 
     6 * Version: 1.1.2 
     7 * Author: Grégory Viguier 
     8 * Author URI: http://www.screenfeed.fr/greg/ 
     9 * License: GPLv3 
     10 * Require: WordPress 3.3+ 
     11 * Text Domain: w3p-acpt 
     12 * Domain Path: /languages/ 
    1113*/ 
    1214 
    1315define( 'W3P_ACPT_PLUGIN_NAME', 'SF Archiver' ); 
    1416define( 'W3P_ACPT_PAGE_NAME',   'w3p_acpt_config' ); 
    15 define( 'W3P_ACPT_VERSION',     '1.1.1' ); 
    16 define( 'W3P_ACPT_DOMAIN',      'w3p-acpt' ); 
     17define( 'W3P_ACPT_VERSION',     '1.1.2' ); 
    1718define( 'W3P_ACPT_FILE',        __FILE__ ); 
    1819define( 'W3P_ACPT_DIRNAME',     basename( dirname( W3P_ACPT_FILE ) ) ); 
    19 define( 'W3P_ACPT_PLUGIN_URL',  trailingslashit( WP_PLUGIN_URL ) . W3P_ACPT_DIRNAME ); 
    20 define( 'W3P_ACPT_PLUGIN_DIR',  trailingslashit( WP_PLUGIN_DIR ) . W3P_ACPT_DIRNAME ); 
     20define( 'W3P_ACPT_PLUGIN_URL',  plugin_dir_url( W3P_ACPT_FILE ) ); 
     21define( 'W3P_ACPT_PLUGIN_DIR',  plugin_dir_path( W3P_ACPT_FILE ) ); 
    2122 
    2223 
     
    2425add_action( 'init', 'w3p_acpt_lang_init' ); 
    2526function w3p_acpt_lang_init() { 
    26     load_plugin_textdomain( W3P_ACPT_DOMAIN, false, W3P_ACPT_DIRNAME . '/languages/' ); 
     27    load_plugin_textdomain( 'w3p-acpt', false, W3P_ACPT_DIRNAME . '/languages/' ); 
    2728} 
    2829 
     
    107108        foreach ( $sets as $pt => $set ) { 
    108109            if ( isset($set['enabled'], $set['rss']) && $set['enabled'] && $set['rss'] && isset($wp_post_types[$pt]->label) ) { 
    109                 $feed_title = apply_filters( 'post_type_feed_title', __( 'Subscribe to %s via RSS', W3P_ACPT_DOMAIN ), $pt ); 
     110                $feed_title = apply_filters( 'post_type_feed_title', __( 'Subscribe to %s via RSS', 'w3p-acpt' ), $pt ); 
    110111                echo '<link rel="alternate" type="'.$feed_type.'" title="'.sprintf( esc_html($feed_title), $wp_post_types[$pt]->label ).'" href="'.get_post_type_archive_feed_link($pt).'" />'; 
    111112            } 
     
    184185    } 
    185186} 
    186  
    187 ?> 
Note: See TracChangeset for help on using the changeset viewer.