Plugin Directory

Changeset 1780617


Ignore:
Timestamp:
12/04/2017 09:59:53 AM (8 years ago)
Author:
enguerranws
Message:

Bump to 2.1: added "use_video_date" option

Location:
import-youtube-videos-as-wp-post
Files:
760 added
6 edited

Legend:

Unmodified
Added
Removed
  • import-youtube-videos-as-wp-post/trunk/admin.php

    r1769155 r1780617  
    4343      <input type="number" min="1" max="50" placeholder="<?php _e('Default value is 30', 'youtube-to-posts') ?>" name="yt_to_posts_number" value="<?php echo esc_attr( get_option('yt_to_posts_number') ); ?>" /></td>
    4444
     45    </div>
     46    <div class="option">
     47   
     48      <label><?php _e('Use video date instead of current date?', 'youtube-to-posts') ?></label>
     49      <select name="yt_to_posts_use_video_date">
     50        <option <?php if(esc_attr( get_option('yt_to_posts_use_video_date') == 'true' )){ echo 'selected'; } ?> value="true"><?php _e('Yes', 'youtube-to-posts') ?></option>
     51        <option <?php if(esc_attr( get_option('yt_to_posts_use_video_date') !== 'true' )){ echo 'selected'; } ?> value="false"><?php _e('No', 'youtube-to-posts') ?></option>
     52      </select>
     53      <p class="description"><?php _e('If you choose `Yes`, the created post will use the video date as its date, otherwise it will use the current date.', 'youtube-to-posts') ?></p>
    4554    </div>
    4655    <div class="option">
  • import-youtube-videos-as-wp-post/trunk/i18n/youtube-to-posts-fr_FR.po

    r1769155 r1780617  
    33"Project-Id-Version: Import YouTube videos as WP Posts v1.9\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: \n"
    6 "PO-Revision-Date: 2017-11-14 10:31:27+0000\n"
     5"POT-Creation-Date: 2017-12-04 09:39+0000\n"
     6"PO-Revision-Date: 2017-12-04 09:42+0000\n"
    77"Last-Translator: admin <enguerrandeep@gmail.com>\n"
    8 "Language-Team: \n"
     8"Language-Team: French (France)\n"
    99"MIME-Version: 1.0\n"
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "Plural-Forms: nplurals=2; plural=n>1;\n"
    13 "X-Generator: CSL v1.x\n"
     12"Plural-Forms: nplurals=2; plural=n > 1\n"
     13"X-Generator: Loco - https://localise.biz/\n"
    1414"X-Poedit-Language: French\n"
    1515"X-Poedit-Country: FRANCE\n"
    1616"X-Poedit-SourceCharset: utf-8\n"
    17 "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
     17"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
     18"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
    1819"X-Poedit-Basepath: ../\n"
    1920"X-Poedit-Bookmarks: \n"
    2021"X-Poedit-SearchPath-0: .\n"
    21 "X-Textdomain-Support: yes"
    22 
    23 #: import-youtube-videos-as-wp-post.php:330
    24 #: import-youtube-videos-as-wp-post.php:331
    25 #@ default
    26 msgid "Y2P rejects"
    27 msgstr "Y2P rejects"
    28 
    29 #: admin.php:126
    30 #@ youtube-to-posts
     22"X-Textdomain-Support: yes\n"
     23"Language: fr-FR"
     24
     25#: admin.php:48
     26msgid "Use video date instead of current date?"
     27msgstr ""
     28"Utiliser la date de publication de la vidéo plutôt que la date actuelle ?"
     29
     30#: admin.php:50
     31msgid "Yes"
     32msgstr "Oui"
     33
     34#: admin.php:51
     35msgid "No"
     36msgstr "Non"
     37
     38#: admin.php:53
     39msgid ""
     40"If you choose `Yes`, the created post will use the video date as its date, "
     41"otherwise it will use the current date."
     42msgstr ""
     43"Si vous choisissez 'Oui', l'article créé utilisera la date de publication de "
     44"la vidéo, sinon, il utilisera la date actuelle."
     45
     46#. Name of the plugin
     47msgid "Import YouTube videos as WP Posts"
     48msgstr ""
     49
     50#. Description of the plugin
     51msgid ""
     52"Get a video list from a request to Youtube (free query, playlist ID, channel "
     53"ID) and add their content to your own Wordpress :)"
     54msgstr ""
     55"Retrouvez une liste de vidéos en fonction d'une requête (par mots-clé, ID de "
     56"playlist, ID de chaine) et ajoutez ces vidéos sur votre Wordpress."
     57
     58#. URI of the plugin
     59#. Author URI of the plugin
     60msgid "http://www.enguerranweiss.fr"
     61msgstr ""
     62
     63#. Author of the plugin
     64msgid "Enguerran Weiss"
     65msgstr ""
     66
     67#: admin.php:7
     68msgid "Approve"
     69msgstr "Enregistrer"
     70
     71#: admin.php:8
     72msgid "Deny"
     73msgstr "Rejeter"
     74
     75#: admin.php:9
     76msgid ""
     77"You have changed the query parameters, remember to click on Save Changes to "
     78"update the results."
     79msgstr ""
     80"Vous avez changé les paramètres de votre requête, n\\'oubliez pas de cliquer "
     81"sur Enregistrer les modifications pour mettre à jour les résultats."
     82
     83#: admin.php:10
     84msgid ""
     85"There is an error with your API key, it has been rejected by Google API "
     86"Service."
     87msgstr ""
     88"Il semble y avoir une erreur avec votre configuration (clé API Google, ID "
     89"playlist ou de chaîne Youtube), veuillez vérifier ces paramètres."
     90
     91#: admin.php:11
     92msgid "Loading..."
     93msgstr "Chargement..."
     94
     95#: admin.php:12
     96msgid "Video added !"
     97msgstr "Vidéo ajoutée !"
     98
     99#: admin.php:13
     100msgid "Video rejected !"
     101msgstr "Vidéo supprimée !"
     102
     103#: admin.php:20
     104msgid "Youtube query options"
     105msgstr "Options de requête vers Youtube"
     106
     107#: admin.php:27
     108msgid "Query type:"
     109msgstr "Type de requête :"
     110
     111#: admin.php:36
     112msgid "Query:"
     113msgstr "Requête :"
     114
     115#: admin.php:37
     116msgid "Type your query."
     117msgstr "Tapez votre requête."
     118
     119#: admin.php:38
     120msgid ""
     121"If your query type is a playlist or a user, then you must type the relevant "
     122"playlist / user ID."
     123msgstr ""
     124"Si votre requête correspond à une playlist ou une chaîne Youtube, vous devez "
     125"renseigner l'ID de celle-ci."
     126
     127#: admin.php:42
     128msgid "Max results?"
     129msgstr "Nombre de résultats maximum&nbsp;?"
     130
     131#: admin.php:43
     132msgid "Default value is 30"
     133msgstr "La valeur par défaut est de 30"
     134
     135#: admin.php:56
     136msgid "Post type to feed:"
     137msgstr "Type de post à alimenter :"
     138
     139#: admin.php:73 admin.php:90
     140msgid "If you select a custom post type, be sure it supports Post Thumbnails."
     141msgstr ""
     142"Si vous sélectionnez un type de publication personnalisé, assurez-vous qu'il "
     143"supporte les images à la une (Post Thumbnails)."
     144
     145#: admin.php:76
     146msgid "Post status of created posts:"
     147msgstr "Status des articles nouvellement créés:"
     148
     149#: admin.php:93
     150msgid "Taxonomy term to feed:"
     151msgstr "Terme de taxonomie à remplir :"
     152
     153#: admin.php:110
     154msgid "Published:"
     155msgstr "Publié:"
     156
     157#: admin.php:132
     158msgid "Results from Youtube for:"
     159msgstr "Résultats récupérés depuis Youtube pour la requête :"
     160
     161#: admin.php:133
     162msgid "Results are ordered by date, newest first."
     163msgstr "Les résultats sont rangés par date, les plus récents en premier."
     164
     165#: admin.php:135
    31166msgid "Media added !"
    32167msgstr "Vidéo ajoutée !"
    33168
    34 #: admin.php:20
    35 #@ youtube-to-posts
    36 msgid "Youtube query options"
    37 msgstr "Options de requête vers Youtube"
    38 
    39 #: admin.php:36
    40 #@ youtube-to-posts
    41 msgid "Query:"
    42 msgstr "Requête :"
    43 
    44 #: admin.php:42
    45 #@ youtube-to-posts
    46 msgid "Max results?"
    47 msgstr "Nombre de résultats maximum&nbsp;?"
    48 
    49 #: admin.php:43
    50 #@ youtube-to-posts
    51 msgid "Default value is 30"
    52 msgstr "La valeur par défaut est de 30"
    53 
    54 #: admin.php:47
    55 #@ youtube-to-posts
    56 msgid "Post type to feed:"
    57 msgstr "Type de post à alimenter :"
    58 
    59 #: admin.php:123
    60 #@ youtube-to-posts
    61 msgid "Results from Youtube for:"
    62 msgstr "Résultats récupérés depuis Youtube pour la requête :"
    63 
    64 #: admin.php:136
    65 #@ youtube-to-posts
     169#: admin.php:138
     170msgid "Video preview"
     171msgstr "Miniature"
     172
     173#: admin.php:139
     174msgid "Video title"
     175msgstr "Titre de la vidéo"
     176
     177#: admin.php:140
     178msgid "Video description"
     179msgstr "Description de la vidéo"
     180
     181#: admin.php:141
     182msgid "Upload date"
     183msgstr "Date d'upload"
     184
     185#: admin.php:142
     186msgid "Actions"
     187msgstr "Actions"
     188
     189#: admin.php:145
    66190msgid "Getting the posts, please wait..."
    67191msgstr "Chargement des vidéos, veuillez patienter..."
    68192
    69 #: admin.php:139
    70 #@ youtube-to-posts
     193#: admin.php:148
    71194msgid "Load more videos"
    72195msgstr "Charger plus de vidéos"
    73196
    74 #: admin.php:129
    75 #@ youtube-to-posts
    76 msgid "Video preview"
    77 msgstr "Miniature"
    78 
    79 #: admin.php:130
    80 #@ youtube-to-posts
    81 msgid "Video title"
    82 msgstr "Titre de la vidéo"
    83 
    84 #: admin.php:131
    85 #@ youtube-to-posts
    86 msgid "Video description"
    87 msgstr "Description de la vidéo"
    88 
    89 #: admin.php:132
    90 #@ youtube-to-posts
    91 msgid "Upload date"
    92 msgstr "Date d'upload"
    93 
    94 #: admin.php:133
    95 #@ youtube-to-posts
    96 msgid "Actions"
    97 msgstr "Actions"
     197#: admin.php:149
     198msgid "Adding videos, please wait..."
     199msgstr "Vidéos en cours d'ajout, veuillez patienter..."
     200
     201#: admin.php:149 admin.php:149
     202msgid "Approve all listed videos"
     203msgstr "Ajouter toutes les vidéos listées d'un coup"
     204
     205#: admin.php:153
     206msgid ""
     207"Your Youtube API access is not defined, go set it on the <a href=\"options-"
     208"general.php?page=youtube-to-posts\">settings page</a>."
     209msgstr ""
     210"Vous n'avez pas renseigné de clé d'API Youtube, renseignez-là sur <a "
     211"href=\"options-general.php?page=youtube-to-posts\">la page d'options</a>."
    98212
    99213#: options.php:12
    100 #@ youtube-to-posts
    101214msgid "Google Youtube API settings :"
    102215msgstr "Paramètres de l'API Google Youtube :"
    103216
    104217#: options.php:16
    105 #@ youtube-to-posts
    106218msgid "Google Youtube API key:"
    107219msgstr "Clé API Youtube :"
    108220
    109221#: options.php:17
    110 #@ youtube-to-posts
    111222msgid "Paste here your consumer key"
    112223msgstr "Collez ici votre consumer key"
    113224
    114 #: admin.php:7
    115 #@ youtube-to-posts
    116 msgid "Approve"
    117 msgstr "Enregistrer"
    118 
    119 #: admin.php:8
    120 #@ youtube-to-posts
    121 msgid "Deny"
    122 msgstr "Rejeter"
    123 
    124 #: admin.php:9
    125 #@ youtube-to-posts
    126 msgid "You have changed the query parameters, remember to click on Save Changes to update the results."
    127 msgstr "Vous avez changé les paramètres de votre requête, n\\'oubliez pas de cliquer sur Enregistrer les modifications pour mettre à jour les résultats."
    128 
    129 #: admin.php:10
    130 #@ youtube-to-posts
    131 msgid "There is an error with your API key, it has been rejected by Google API Service."
    132 msgstr "Il semble y avoir une erreur avec votre configuration (clé API Google, ID playlist ou de chaîne Youtube), veuillez vérifier ces paramètres."
    133 
    134 #: admin.php:27
    135 #@ youtube-to-posts
    136 msgid "Query type:"
    137 msgstr "Type de requête :"
    138 
    139 #: admin.php:37
    140 #@ youtube-to-posts
    141 msgid "Type your query."
    142 msgstr "Tapez votre requête."
    143 
    144 #: admin.php:38
    145 #@ youtube-to-posts
    146 msgid "If your query type is a playlist or a user, then you must type the relevant playlist / user ID."
    147 msgstr "Si votre requête correspond à une playlist ou une chaîne Youtube, vous devez renseigner l'ID de celle-ci."
    148 
    149 #: admin.php:84
    150 #@ youtube-to-posts
    151 msgid "Taxonomy term to feed:"
    152 msgstr "Terme de taxonomie à remplir :"
    153 
    154 #: admin.php:101
    155 #@ youtube-to-posts
    156 msgid "Published:"
    157 msgstr "Publié:"
    158 
    159 #: admin.php:124
    160 #@ youtube-to-posts
    161 msgid "Results are ordered by date, newest first."
    162 msgstr "Les résultats sont rangés par date, les plus récents en premier."
    163 
    164 #: admin.php:144
    165 #@ youtube-to-posts
    166 msgid "Your Youtube API access is not defined, go set it on the <a href=\"options-general.php?page=youtube-to-posts\">settings page</a>."
    167 msgstr "Vous n'avez pas renseigné de clé d'API Youtube, renseignez-là sur <a href=\"options-general.php?page=youtube-to-posts\">la page d'options</a>."
    168 
    169225#: options.php:22
    170 #@ youtube-to-posts
    171226msgid "Post content format :"
    172227msgstr "Format du contenu de l'article :"
    173228
    174229#: options.php:24
    175 #@ youtube-to-posts
    176 msgid "You can customize the way Youtube content will feed your posts with a template tag system. So:"
    177 msgstr "Vous pouvez personnaliser la façon dont vous alimentez votre site avec des contenus Youtube :"
     230msgid ""
     231"You can customize the way Youtube content will feed your posts with a "
     232"template tag system. So:"
     233msgstr ""
     234"Vous pouvez personnaliser la façon dont vous alimentez votre site avec des "
     235"contenus Youtube :"
     236
     237#: options.php:29
     238msgid "%title% is the title of the Youtube video"
     239msgstr "%title% est le titre de la vidéo"
     240
     241#: options.php:30
     242msgid ""
     243"%description% is the description (500 chars max - Youtube restriction) of "
     244"the Youtube video"
     245msgstr ""
     246"%description% est la description de la vidéo (500 caractères max., imposé "
     247"par Youtube)"
     248
     249#: options.php:31
     250msgid "%embed% will display the embed code of the video"
     251msgstr "%embed% affichera le code embed de la vidéo"
     252
     253#: options.php:32
     254msgid "%thumbnail% will display the thumbnail of the video"
     255msgstr "%thumbnail% affiche la miniature (preview) de la vidéo"
     256
     257#: options.php:33
     258msgid "%query% will display the query you typed"
     259msgstr "%query% vous permet d'afficher la requête que vous avez tapé"
     260
     261#: options.php:34
     262msgid "%user% will display the uploader of the video"
     263msgstr ""
     264"%user% affichera le nom d'utilisateur de la personne qui a uploadé la vidéo"
     265
     266#: options.php:35
     267msgid "%date% will display the upload date of the video"
     268msgstr "%date% affichera la date d'upload de la vidéo"
    178269
    179270#: options.php:40
    180 #@ youtube-to-posts
    181271msgid "Title format of your videos:"
    182272msgstr "Format de titre des articles ajoutés :"
    183273
     274#: options.php:40
     275msgid "Default title is just %title%"
     276msgstr "Par défaut, le titre correspond au titre de la vidéo (%title%)"
     277
     278#: options.php:41 options.php:45
     279msgid "e.g. Last Video of %user% - %title%"
     280msgstr "ex :Dernière vidéo par %user% - %title%"
     281
    184282#: options.php:44
    185 #@ youtube-to-posts
    186283msgid "Content format of your videos:"
    187284msgstr "Format du contenu des articles ajoutés :"
    188285
     286#: options.php:44
     287msgid "Default content is %embed%<br>%description%"
     288msgstr "Par défaut : %embed%<br>%description%"
     289
    189290#: options.php:49
    190 #@ youtube-to-posts
    191291msgid "How can I get a Google API key?"
    192292msgstr "Comment puis-je avoir une clé API Google ?"
    193293
    194294#: options.php:51
    195 #@ youtube-to-posts
    196 msgid "To use this plugin, you'll need to create a Google Youtube API key. Dealing with Google Developers Console can be a bit confusing, you need to : create a project, make the API data you need active and generate a public API key. Here's how to do that:"
    197 msgstr "Pour utiliser ce plugin, vous devez créer une clé d'API Youtube sur la console de développeur Google. Ça parait compliqué, mais ça ne l'est pas tant que ça, il faut : créer un projet, activer l'API \\\"YouTube Data API v3\\\" et générer ensuite une clé API. Voici comment faire, pas à pas :"
     295msgid ""
     296"To use this plugin, you'll need to create a Google Youtube API key. Dealing "
     297"with Google Developers Console can be a bit confusing, you need to : create "
     298"a project, make the API data you need active and generate a public API key. "
     299"Here's how to do that:"
     300msgstr ""
     301"Pour utiliser ce plugin, vous devez créer une clé d'API Youtube sur la "
     302"console de développeur Google. Ça parait compliqué, mais ça ne l'est pas "
     303"tant que ça, il faut : créer un projet, activer l'API \\\"YouTube Data API "
     304"v3\\\" et générer ensuite une clé API. Voici comment faire, pas à pas :"
    198305
    199306#: options.php:56
    200 #@ youtube-to-posts
    201307msgid "Login to Google using your Google account."
    202308msgstr "Connectez-vous sur Google avec votre compte Google."
    203309
    204310#: options.php:58
    205 #@ youtube-to-posts
    206 msgid "Go to the <a target=\"_blank\" href=\"https://console.developers.google.com/project\">Developers Console > Projects</a>"
    207 msgstr "Allez sur <a target=\"_blank\" href=\"https://console.developers.google.com/project\">la console de développeurs > Projets</a>"
     311msgid ""
     312"Go to the <a target=\"_blank\" href=\"https://console.developers.google."
     313"com/project\">Developers Console > Projects</a>"
     314msgstr ""
     315"Allez sur <a target=\"_blank\" href=\"https://console.developers.google."
     316"com/project\">la console de développeurs > Projets</a>"
    208317
    209318#: options.php:59
    210 #@ youtube-to-posts
    211 msgid "Click on \"Create a project\" (you'll need to give it a title and an ID)"
    212 msgstr "Cliquez sur \"Créer un projet\" (il faudra lui donner un titre et un ID)"
     319msgid ""
     320"Click on \"Create a project\" (you'll need to give it a title and an ID)"
     321msgstr ""
     322"Cliquez sur \"Créer un projet\" (il faudra lui donner un titre et un ID)"
    213323
    214324#: options.php:60
    215 #@ youtube-to-posts
    216325msgid "When your project his created, click on it on the project list"
    217 msgstr "Lorsque votre projet est créé, cliquez dessus dans la liste des projets"
     326msgstr ""
     327"Lorsque votre projet est créé, cliquez dessus dans la liste des projets"
    218328
    219329#: options.php:61
    220 #@ youtube-to-posts
    221 msgid "Go to the section API and authentication > API, and search for YouTube Data API v3, and click on the button on the right to make this API active."
    222 msgstr "Allez dans la section API et authentification > API et rechercher Youtube Data API v3, et activez la via le bouton à droite."
     330msgid ""
     331"Go to the section API and authentication > API, and search for YouTube Data "
     332"API v3, and click on the button on the right to make this API active."
     333msgstr ""
     334"Allez dans la section API et authentification > API et rechercher Youtube "
     335"Data API v3, et activez la via le bouton à droite."
    223336
    224337#: options.php:62
    225 #@ youtube-to-posts
    226 msgid "Go to the Credentials section > Access to the public API anc click on the button \"Make a key\" > Server key"
    227 msgstr "Allez dans la section Identifiants > Ajouter des identifiants > Clé API > Clé serveur "
     338msgid ""
     339"Go to the Credentials section > Access to the public API anc click on the "
     340"button \"Make a key\" > Server key"
     341msgstr ""
     342"Allez dans la section Identifiants > Ajouter des identifiants > Clé API > "
     343"Clé serveur "
    228344
    229345#: options.php:63
    230 #@ youtube-to-posts
    231 msgid "On the next box, you'll need to tell on which domains you allow the use of your app (e.g. 127.0.0.1, www.mydomain.com, etc)."
    232 msgstr "Vous pouvez également renseigner des domaines sur lesquels l'utilisation de cette clé est autorisé (ex : 127.0.0.1, etc...)"
     346msgid ""
     347"On the next box, you'll need to tell on which domains you allow the use of "
     348"your app (e.g. 127.0.0.1, www.mydomain.com, etc)."
     349msgstr ""
     350"Vous pouvez également renseigner des domaines sur lesquels l'utilisation de "
     351"cette clé est autorisé (ex : 127.0.0.1, etc...)"
    233352
    234353#: options.php:64
    235 #@ youtube-to-posts
    236 msgid "Now it should have generated a API Key (e.g. AIzaFyD0aPCQjLFRbLnh4RKbVBlBgVCVSwjbFAg), copy-paste it on the box above."
    237 msgstr "En cliquant sur Créer, une popup s'ouvre avec votre clé API, vous n'avez plus qu'à la renseigner dans le champ en haut de cette page."
     354msgid ""
     355"Now it should have generated a API Key (e.g. "
     356"AIzaFyD0aPCQjLFRbLnh4RKbVBlBgVCVSwjbFAg), copy-paste it on the box above."
     357msgstr ""
     358"En cliquant sur Créer, une popup s'ouvre avec votre clé API, vous n'avez "
     359"plus qu'à la renseigner dans le champ en haut de cette page."
    238360
    239361#: options.php:65
    240 #@ youtube-to-posts
    241362msgid "It's done, congrats :)"
    242363msgstr "C'est fait, bien joué :)"
    243 
    244 #: options.php:29
    245 #, php-format
    246 #@ youtube-to-posts
    247 msgid "%title% is the title of the Youtube video"
    248 msgstr "%title% est le titre de la vidéo"
    249 
    250 #: options.php:30
    251 #, php-format
    252 #@ youtube-to-posts
    253 msgid "%description% is the description (500 chars max - Youtube restriction) of the Youtube video"
    254 msgstr "%description% est la description de la vidéo (500 caractères max., imposé par Youtube)"
    255 
    256 #: options.php:31
    257 #, php-format
    258 #@ youtube-to-posts
    259 msgid "%embed% will display the embed code of the video"
    260 msgstr "%embed% affichera le code embed de la vidéo"
    261 
    262 #: options.php:32
    263 #, php-format
    264 #@ youtube-to-posts
    265 msgid "%thumbnail% will display the thumbnail of the video"
    266 msgstr "%thumbnail% affiche la miniature (preview) de la vidéo"
    267 
    268 #: options.php:33
    269 #, php-format
    270 #@ youtube-to-posts
    271 msgid "%query% will display the query you typed"
    272 msgstr "%query% vous permet d'afficher la requête que vous avez tapé"
    273 
    274 #: options.php:34
    275 #, php-format
    276 #@ youtube-to-posts
    277 msgid "%user% will display the uploader of the video"
    278 msgstr "%user% affichera le nom d'utilisateur de la personne qui a uploadé la vidéo"
    279 
    280 #: options.php:35
    281 #, php-format
    282 #@ youtube-to-posts
    283 msgid "%date% will display the upload date of the video"
    284 msgstr "%date% affichera la date d'upload de la vidéo"
    285 
    286 #: options.php:40
    287 #, php-format
    288 #@ youtube-to-posts
    289 msgid "Default title is just %title%"
    290 msgstr "Par défaut, le titre correspond au titre de la vidéo (%title%)"
    291 
    292 #: options.php:41
    293 #: options.php:45
    294 #, php-format
    295 #@ youtube-to-posts
    296 msgid "e.g. Last Video of %user% - %title%"
    297 msgstr "ex :Dernière vidéo par %user% - %title%"
    298 
    299 #: options.php:44
    300 #, php-format
    301 #@ youtube-to-posts
    302 msgid "Default content is %embed%<br>%description%"
    303 msgstr "Par défaut : %embed%<br>%description%"
    304 
    305 #: admin.php:64
    306 #: admin.php:81
    307 #@ youtube-to-posts
    308 msgid "If you select a custom post type, be sure it supports Post Thumbnails."
    309 msgstr "Si vous sélectionnez un type de publication personnalisé, assurez-vous qu'il supporte les images à la une (Post Thumbnails)."
    310 
    311 #: admin.php:11
    312 #@ youtube-to-posts
    313 msgid "Loading..."
    314 msgstr "Chargement..."
    315 
    316 #: admin.php:12
    317 #@ youtube-to-posts
    318 msgid "Video added !"
    319 msgstr "Vidéo ajoutée !"
    320 
    321 #: admin.php:13
    322 #@ youtube-to-posts
    323 msgid "Video rejected !"
    324 msgstr "Vidéo supprimée !"
    325 
    326 #: admin.php:67
    327 #@ youtube-to-posts
    328 msgid "Post status of created posts:"
    329 msgstr "Status des articles nouvellement créés:"
    330 
    331 #: import-youtube-videos-as-wp-post.php:241
    332 #: import-youtube-videos-as-wp-post.php:242
    333 #@ yt_to_posts
    334 msgid "Youtube importer"
    335 msgstr ""
    336 
    337 #: admin.php:140
    338 #@ youtube-to-posts
    339 msgid "Approve all listed videos"
    340 msgstr "Ajouter toutes les vidéos listées d'un coup"
    341 
    342 #: admin.php:140
    343 #@ youtube-to-posts
    344 msgid "Adding videos, please wait..."
    345 msgstr "Vidéos en cours d'ajout, veuillez patienter..."
    346 
  • import-youtube-videos-as-wp-post/trunk/import-youtube-videos-as-wp-post.php

    r1769155 r1780617  
    152152    $imgSrc = $_POST['imgSrc'];
    153153    $query = $_POST['query'];
     154    $use_video_date = (get_option('yt_to_posts_use_video_date') == 'true');
    154155    $status = get_option('yt_to_posts_post_status');
    155156    $postType = get_option('yt_to_posts_post_type');
     
    157158    $title_template = get_option('yt_to_posts_title_format');
    158159    $content_template = get_option('yt_to_posts_content_format');
    159     $date = $_POST['date'];
     160    $date = date("Y-m-d H:i:s", strtotime($_POST['date']));
    160161    $embed = '[embed]'.$_POST['mediaUrl'].'[/embed]';
    161162    $content = $embed . ' <br> '. $description;
     
    182183      'post_category' => array($cat)
    183184    );
     185    if($use_video_date){
     186      $my_post['post_date'] = $date;
     187    }
     188
     189   
    184190
    185191    $post_ID = wp_insert_post($my_post);
     
    312318  register_setting( 'yt_to_posts-query-settings-group', 'yt_to_posts_query_type' );
    313319  register_setting( 'yt_to_posts-query-settings-group', 'yt_to_posts_number' );
    314 
     320  register_setting( 'yt_to_posts-query-settings-group', 'yt_to_posts_use_video_date' );
    315321
    316322  register_setting( 'yt_to_posts-admin-settings-group', 'yt_to_posts_ck' );
  • import-youtube-videos-as-wp-post/trunk/readme.txt

    r1769155 r1780617  
    44Tags: youtube, content, videos, enguerranws, google api, youtube api, youtube importer, video importer
    55Requires at least: 3.0.1
    6 Tested up to: 4.8.3
    7 Stable tag: 2.0
     6Tested up to: 4.9
     7Stable tag: 2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9595
    9696== Changelog ==
    97 
     97= 2.1 =
     98* Added an option to use video's date instead of current date
    9899= 2.0 =
    99100* Added a "Approve all" button in order to add all listed videos in a single shot
  • import-youtube-videos-as-wp-post/trunk/script.js

    r1769155 r1780617  
    199199            var username = $that.attr('data-user');
    200200            var date = $that.attr('data-date');
    201 
    202             console.log(title, $that.attr('data-title'))
    203 
    204201            var data = {
    205202                'action': 'yt_to_posts_insertPost',
     
    218215            jQuery('.updated-custom p').html(ajaxGetYoutube.trans.loading).parent().fadeIn();
    219216            jQuery.post(ajaxurl, data, function(response) {
    220 
    221217                if (response === 'ok') {
     218                   
    222219                    $that.parents('.result').fadeOut();
    223220                    ajaxGetYoutube.showAlert('mediaAdded');
Note: See TracChangeset for help on using the changeset viewer.