Browse Source

Ajout bouton validator.w3.org/feed/

Ajout d'un bouton pour valider les flux, pour des cas comme
https://github.com/marienfressinaud/FreshRSS/issues/317
Alexandre Alapetite 12 years ago
parent
commit
dd79b163fd
3 changed files with 3 additions and 1 deletions
  1. 1 0
      app/i18n/en.php
  2. 1 0
      app/i18n/fr.php
  3. 1 1
      app/views/configure/feed.phtml

+ 1 - 0
app/i18n/en.php

@@ -90,6 +90,7 @@ return array (
 	'feeds_imported'		=> 'Your feeds have been imported and will now be updated',
 	'feeds_imported'		=> 'Your feeds have been imported and will now be updated',
 	'category_emptied'		=> 'Category has been emptied',
 	'category_emptied'		=> 'Category has been emptied',
 	'feed_deleted'			=> 'Feed has been deleted',
 	'feed_deleted'			=> 'Feed has been deleted',
+	'feed_validator'		=> 'Check the validity of the feed',
 
 
 	'optimization_complete'		=> 'Optimization complete',
 	'optimization_complete'		=> 'Optimization complete',
 
 

+ 1 - 0
app/i18n/fr.php

@@ -90,6 +90,7 @@ return array (
 	'feeds_imported'		=> 'Vos flux ont été importés et vont maintenant être actualisés',
 	'feeds_imported'		=> 'Vos flux ont été importés et vont maintenant être actualisés',
 	'category_emptied'		=> 'La catégorie a été vidée',
 	'category_emptied'		=> 'La catégorie a été vidée',
 	'feed_deleted'			=> 'Le flux a été supprimé',
 	'feed_deleted'			=> 'Le flux a été supprimé',
+	'feed_validator'		=> 'Vérifier la valididé du flux',
 
 
 	'optimization_complete'		=> 'Optimisation terminée',
 	'optimization_complete'		=> 'Optimisation terminée',
 
 

+ 1 - 1
app/views/configure/feed.phtml

@@ -37,6 +37,7 @@
 			<div class="group-controls">
 			<div class="group-controls">
 				<input type="text" name="url" id="url" value="<?php echo $this->flux->url (); ?>" />
 				<input type="text" name="url" id="url" value="<?php echo $this->flux->url (); ?>" />
 				<a target="_blank" href="<?php echo $this->flux->url (); ?>"><?php echo RSSThemes::icon('link'); ?></a>
 				<a target="_blank" href="<?php echo $this->flux->url (); ?>"><?php echo RSSThemes::icon('link'); ?></a>
+				  <a class="btn" target="_blank" href="http://validator.w3.org/feed/check.cgi?url=<?php echo $this->flux->url (); ?>"><?php echo Translate::t ('feed_validator'); ?></a>
 			</div>
 			</div>
 		</div>
 		</div>
 		<div class="form-group">
 		<div class="form-group">
@@ -69,7 +70,6 @@
 				</label>
 				</label>
 			</div>
 			</div>
 		</div>
 		</div>
-
 		<div class="form-group">
 		<div class="form-group">
 			<label class="group-name"></label>
 			<label class="group-name"></label>
 			<div class="group-controls">
 			<div class="group-controls">