diff options
| author | 2013-05-05 13:20:13 +0200 | |
|---|---|---|
| committer | 2013-05-05 13:20:13 +0200 | |
| commit | 2e7afb7d340eb367d65ac042ae24a10fa021c073 (patch) | |
| tree | 27208483aac8262cdc42ee492a0f222991a0b4fa /app/views/configure | |
| parent | ae7c9787cd8afd4313d356c6525e40d4ce79f99b (diff) | |
| parent | d4e6176a1ae210c011b14839023f91b4014f2881 (diff) | |
Merge branch 'releases'0.3.0
Diffstat (limited to 'app/views/configure')
| -rw-r--r-- | app/views/configure/categorize.phtml | 20 | ||||
| -rw-r--r-- | app/views/configure/display.phtml | 66 | ||||
| -rw-r--r-- | app/views/configure/feed.phtml | 47 | ||||
| -rw-r--r-- | app/views/configure/importExport.phtml | 12 | ||||
| -rw-r--r-- | app/views/configure/shortcut.phtml | 30 |
5 files changed, 94 insertions, 81 deletions
diff --git a/app/views/configure/categorize.phtml b/app/views/configure/categorize.phtml index 660ddef20..b6ba5c3c7 100644 --- a/app/views/configure/categorize.phtml +++ b/app/views/configure/categorize.phtml @@ -1,23 +1,23 @@ <?php $this->partial ('aside_configure'); ?> <div class="post"> - <a href="<?php echo _url ('index', 'index'); ?>">← Retour à vos flux RSS</a> + <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a> <form method="post" action="<?php echo _url ('configure', 'categorize'); ?>"> - <legend>Gestion des catégories - <a href="<?php echo _url ('configure', 'feed'); ?>">gestion des flux</a></legend> + <legend><?php echo Translate::t ('categories_management'); ?> - <a href="<?php echo _url ('configure', 'feed'); ?>"><?php echo Translate::t ('rss_feed_management'); ?></a></legend> - <p class="alert alert-warn">Lors de la suppression d'une catégorie, ses flux seront automatiquement classés dans <em><?php echo $this->defaultCategory->name (); ?></em>.</p> + <p class="alert alert-warn"><?php echo Translate::t ('feeds_moved_category_deleted', $this->defaultCategory->name ()); ?></p> <?php $i = 0; foreach ($this->categories as $cat) { $i++; ?> <div class="form-group"> <label class="group-name" for="cat_<?php echo $cat->id (); ?>"> - Catégorie n°<?php echo $i; ?> + <?php echo Translate::t ('category_number', $i); ?> </label> <div class="group-controls"> <input type="text" id="cat_<?php echo $cat->id (); ?>" name="categories[]" value="<?php echo $cat->name (); ?>" /> - <a href="<?php echo _url ('feed', 'delete', 'id', $cat->id (), 'type', 'category'); ?>">Vider ?</a> (<?php echo $cat->nbFeed (); ?> flux) + <a href="<?php echo _url ('feed', 'delete', 'id', $cat->id (), 'type', 'category'); ?>"><?php echo Translate::t ('ask_empty'); ?></a> (<?php echo Translate::t ('number_feeds', $cat->nbFeed ()); ?>) <?php if ($cat->id () == $this->defaultCategory->id ()) { ?> - <i class="icon i_help"></i> ne peut pas être supprimée + <i class="icon i_help"></i> <?php echo Translate::t ('can_not_be_deleted'); ?> <?php } ?> <input type="hidden" name="ids[]" value="<?php echo $cat->id (); ?>" /> </div> @@ -25,16 +25,16 @@ <?php } ?> <div class="form-group"> - <label class="group-name" for="new_category">Ajouter une catégorie</label> + <label class="group-name" for="new_category"><?php echo Translate::t ('add_category'); ?></label> <div class="group-controls"> - <input type="text" id="new_category" name="new_category" placeholder="Nouvelle catégorie" /> + <input type="text" id="new_category" name="new_category" placeholder="<?php echo Translate::t ('new_category'); ?>" /> </div> </div> <div class="form-group form-actions"> <div class="group-controls"> - <button type="submit" class="btn btn-important">Sauvegarder</button> - <button type="reset" class="btn">Annuler</button> + <button type="submit" class="btn btn-important"><?php echo Translate::t ('save'); ?></button> + <button type="reset" class="btn"><?php echo Translate::t ('cancel'); ?></button> </div> </div> </form> diff --git a/app/views/configure/display.phtml b/app/views/configure/display.phtml index 79fa4b43c..be67896dc 100644 --- a/app/views/configure/display.phtml +++ b/app/views/configure/display.phtml @@ -1,104 +1,116 @@ <?php $this->partial ('aside_configure'); ?> <div class="post"> - <a href="<?php echo _url ('index', 'index'); ?>">← Retour à vos flux RSS</a> + <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a> <form method="post" action="<?php echo _url ('configure', 'display'); ?>"> - <legend>Configuration générale</legend> + <legend><?php echo Translate::t ('general_configuration'); ?></legend> <div class="form-group"> - <label class="group-name" for="old_entries">Supprimer les articles tous les</label> + <label class="group-name" for="language"><?php echo Translate::t ('language'); ?></label> <div class="group-controls"> - <input type="number" id="old_entries" name="old_entries" value="<?php echo $this->conf->oldEntries (); ?>" /> mois + <select name="language" id="language"> + <?php $languages = $this->conf->availableLanguages (); ?> + <?php foreach ($languages as $short => $lib) { ?> + <option value="<?php echo $short; ?>"<?php echo $this->conf->language () == $short ? ' selected="selected"' : ''; ?>><?php echo $lib; ?></option> + <?php } ?> + </select> + </div> + </div> + + <div class="form-group"> + <label class="group-name" for="old_entries"><?php echo Translate::t ('delete_articles_every'); ?></label> + <div class="group-controls"> + <input type="number" id="old_entries" name="old_entries" value="<?php echo $this->conf->oldEntries (); ?>" /> <?php echo Translate::t ('month'); ?> </div> </div> <div class="form-group"> - <label class="group-name" for="mail_login">Adresse mail de connexion (utilise <a href="https://persona.org/">Persona</a>)</label> + <label class="group-name" for="mail_login"><?php echo Translate::t ('persona_connection_email'); ?></label> <?php $mail = $this->conf->mailLogin (); ?> <div class="group-controls"> - <input type="email" id="mail_login" name="mail_login" value="<?php echo $mail ? $mail : ''; ?>" placeholder="Laissez vide pour désactiver" /> - <noscript><b>nécessite que javascript soit activé</b></noscript> + <input type="email" id="mail_login" name="mail_login" value="<?php echo $mail ? $mail : ''; ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>" /> + <noscript><b><?php echo Translate::t ('javascript_should_be_activated'); ?></b></noscript> </div> </div> - <legend>Configuration de lecture</legend> + <legend><?php echo Translate::t ('reading_configuration'); ?></legend> <div class="form-group"> - <label class="group-name" for="posts_per_page">Nombre d'articles par page</label> + <label class="group-name" for="posts_per_page"><?php echo Translate::t ('articles_per_page'); ?></label> <div class="group-controls"> <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->postsPerPage (); ?>" /> </div> </div> <div class="form-group"> - <label class="group-name">Vue par défaut</label> + <label class="group-name"><?php echo Translate::t ('default_view'); ?></label> <div class="group-controls"> <label class="radio" for="radio_all"> <input type="radio" name="default_view" id="radio_all" value="all"<?php echo $this->conf->defaultView () == 'all' ? ' checked="checked"' : ''; ?> /> - Tout afficher + <?php echo Translate::t ('show_all_articles'); ?> </label> <label class="radio" for="radio_not_read"> <input type="radio" name="default_view" id="radio_not_read" value="not_read"<?php echo $this->conf->defaultView () == 'not_read' ? ' checked="checked"' : ''; ?> /> - Afficher les non lus + <?php echo Translate::t ('show_not_reads'); ?> </label> </div> </div> <div class="form-group"> - <label class="group-name" for="sort_order">Ordre de tri</label> + <label class="group-name" for="sort_order"><?php echo Translate::t ('sort_order'); ?></label> <div class="group-controls"> <select name="sort_order" id="sort_order"> - <option value="low_to_high"<?php echo $this->conf->sortOrder () == 'low_to_high' ? ' selected="selected"' : ''; ?>>Du plus récent au plus ancien</option> - <option value="high_to_low"<?php echo $this->conf->sortOrder () == 'high_to_low' ? ' selected="selected"' : ''; ?>>Du plus ancien au plus récent</option> + <option value="low_to_high"<?php echo $this->conf->sortOrder () == 'low_to_high' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('newer_first'); ?></option> + <option value="high_to_low"<?php echo $this->conf->sortOrder () == 'high_to_low' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('older_first'); ?></option> </select> </div> </div> <div class="form-group"> - <label class="group-name">Afficher les articles dépliés par défaut</label> + <label class="group-name"><?php echo Translate::t ('display_articles_unfolded'); ?></label> <div class="group-controls"> <label class="radio" for="radio_yes"> <input type="radio" name="display_posts" id="radio_yes" value="yes"<?php echo $this->conf->displayPosts () == 'yes' ? ' checked="checked"' : ''; ?> /> - Oui + <?php echo Translate::t ('yes'); ?> </label> <label class="radio" for="radio_no"> <input type="radio" name="display_posts" id="radio_no" value="no"<?php echo $this->conf->displayPosts () == 'no' ? ' checked="checked"' : ''; ?> /> - Non<noscript> - <b>nécessite que javascript soit activé</b></noscript> + <?php echo Translate::t ('no'); ?><noscript> - <b><?php echo Translate::t ('javascript_should_be_activated'); ?></b></noscript> </label> </div> </div> <div class="form-group"> - <label class="group-name">Article automatiquement marqué comme lu lorsque</label> + <label class="group-name"><?php echo Translate::t ('auto_read_when'); ?></label> <div class="group-controls"> <label class="checkbox" for="check_open_article"> <input type="checkbox" name="mark_open_article" id="check_open_article" value="yes"<?php echo $this->conf->markWhenArticle () == 'yes' ? ' checked="checked"' : ''; ?> /> - l'article est sélectionné + <?php echo Translate::t ('article_selected'); ?> </label> <label class="checkbox" for="check_open_site"> <input type="checkbox" name="mark_open_site" id="check_open_site" value="yes"<?php echo $this->conf->markWhenSite () == 'yes' ? ' checked="checked"' : ''; ?> /> - l'article est ouvert sur le site d'origine + <?php echo Translate::t ('article_open_on_website'); ?> </label> <label class="checkbox" for="check_open_page"> <input type="checkbox" name="mark_open_page" id="check_open_page" value="yes"<?php echo $this->conf->markWhenPage () == 'yes' ? ' checked="checked"' : ''; ?> /> - la page est chargée + <?php echo Translate::t ('page_loaded'); ?> </label> </div> </div> - <legend>Partage</legend> + <legend><?php echo Translate::t ('sharing'); ?></legend> <div class="form-group"> - <label class="group-name" for="shaarli">Votre Shaarli</label> + <label class="group-name" for="shaarli"><?php echo Translate::t ('your_shaarli'); ?></label> <div class="group-controls"> - <input type="text" id="shaarli" name="shaarli" value="<?php echo $this->conf->urlShaarli (); ?>" placeholder="Laissez vide pour désactiver"/> + <input type="text" id="shaarli" name="shaarli" value="<?php echo $this->conf->urlShaarli (); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>"/> </div> </div> <div class="form-group form-actions"> <div class="group-controls"> - <button type="submit" class="btn btn-important">Valider</button> - <button type="reset" class="btn">Annuler</button> + <button type="submit" class="btn btn-important"><?php echo Translate::t ('save'); ?></button> + <button type="reset" class="btn"><?php echo Translate::t ('cancel'); ?></button> </div> </div> </form> diff --git a/app/views/configure/feed.phtml b/app/views/configure/feed.phtml index adea27e52..33483f72d 100644 --- a/app/views/configure/feed.phtml +++ b/app/views/configure/feed.phtml @@ -2,35 +2,35 @@ <?php if ($this->flux) { ?> <div class="post"> - <a href="<?php echo _url ('index', 'index'); ?>">← Retour à vos flux RSS</a> + <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a> <?php echo Translate::t ('or'); ?> <a href="<?php echo _url ('index', 'index', 'get', 'f_' . $this->flux->id ()); ?>"><?php echo Translate::t ('filter'); ?></a> <h1><?php echo $this->flux->name (); ?></h1> <?php echo $this->flux->description (); ?> <form method="post" action="<?php echo _url ('configure', 'feed', 'id', $this->flux->id ()); ?>"> - <legend>Informations</legend> + <legend><?php echo Translate::t ('informations'); ?></legend> <div class="form-group"> - <label class="group-name">URL du site</label> + <label class="group-name"><?php echo Translate::t ('website_url'); ?></label> <div class="group-controls"> <span class="control"><a target="_blank" href="<?php echo $this->flux->website (); ?>"><?php echo $this->flux->website (); ?></a></span> </div> </div> <div class="form-group"> - <label class="group-name">URL du flux</label> + <label class="group-name"><?php echo Translate::t ('feed_url'); ?></label> <div class="group-controls"> <span class="control"><a target="_blank" href="<?php echo $this->flux->url (); ?>"><?php echo $this->flux->url (); ?></a></span> </div> </div> <div class="form-group"> - <label class="group-name">Nombre d'articles</label> + <label class="group-name"><?php echo Translate::t ('number_articles'); ?></label> <div class="group-controls"> <span class="control"><?php echo $this->flux->nbEntries (); ?></span> </div> </div> - <legend>Catégorie - <a href="<?php echo _url ('configure', 'categorize'); ?>">gestion</a></legend> + <legend><?php echo Translate::t ('category'); ?> - <a href="<?php echo _url ('configure', 'categorize'); ?>"><?php echo Translate::t ('categories_management'); ?></a></legend> <div class="form-group"> - <label class="group-name">Ranger dans une catégorie</label> + <label class="group-name"><?php echo Translate::t ('categorize'); ?></label> <div class="group-controls"> <?php foreach ($this->categories as $cat) { ?> <label class="radio" for="cat_<?php echo $cat->id (); ?>"> @@ -41,46 +41,47 @@ </div> </div> - <legend>Avancé</legend> + <legend><?php echo Translate::t ('advanced'); ?></legend> <div class="form-group"> - <label class="group-name" for="priority">Afficher dans le flux principal</label> + <label class="group-name" for="priority"><?php echo Translate::t ('show_in_all_flux'); ?></label> <div class="group-controls"> <label class="checkbox" for="priority"> <input type="checkbox" name="priority" id="priority" value="10"<?php echo $this->flux->priority () > 0 ? ' checked="checked"' : ''; ?> /> - Oui + <?php echo Translate::t ('yes'); ?> </label> </div> </div> <div class="form-group"> - <label class="group-name" for="path_entries">Chemin CSS des articles sur le site d'origine</label> + <label class="group-name" for="path_entries"><?php echo Translate::t ('css_path_on_website'); ?></label> <div class="group-controls"> - <input type="text" name="path_entries" id="path_entries" value="<?php echo $this->flux->pathEntries (); ?>" placeholder="Laissez vide pour désactiver" /> - <i class="icon i_help"></i> Permet de récupérer les flux tronqués (attention, demande plus de temps !) + <input type="text" name="path_entries" id="path_entries" value="<?php echo $this->flux->pathEntries (); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>" /> + <i class="icon i_help"></i> <?php echo Translate::t ('retrieve_truncated_feeds'); ?> </div> </div> -<!-- + + <?php $auth = $this->flux->httpAuth (false); ?> <div class="form-group"> - <label class="group-name" for="http_user">Username HTTP</label> + <label class="group-name" for="http_user"><?php echo Translate::t ('http_username'); ?></label> <div class="group-controls"> - <input type="text" name="http_user" id="http_user" value="Pas encore implémenté" /> - <i class="icon i_help"></i> La connexion permet d'accéder aux flux protégés par une authentification HTTP + <input type="text" name="http_user" id="http_user" value="<?php echo $auth['username']; ?>" /> + <i class="icon i_help"></i> <?php echo Translate::t ('access_protected_feeds'); ?> </div> - <label class="group-name" for="http_pass">Password HTTP</label> + <label class="group-name" for="http_pass"><?php echo Translate::t ('http_password'); ?></label> <div class="group-controls"> - <input type="text" name="http_pass" id="http_pass" value="Pas encore implémenté" /> + <input type="password" name="http_pass" id="http_pass" value="<?php echo $auth['password']; ?>" /> </div> </div> ---> + <div class="form-group form-actions"> <div class="group-controls"> - <button class="btn btn-important">Valider</button> - <button class="btn btn-attention" formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>">Supprimer</button> + <button class="btn btn-important"><?php echo Translate::t ('save'); ?></button> + <button class="btn btn-attention" formaction="<?php echo Url::display (array ('c' => 'feed', 'a' => 'delete', 'params' => array ('id' => $this->flux->id ()))); ?>"><?php echo Translate::t ('delete'); ?></button> </div> </div> </form> </div> <?php } else { ?> -<div class="alert"><span class="alert-head">Aucun flux sélectionné.</span> Pensez à en ajouter !</div> +<div class="alert alert-warn"><span class="alert-head"><?php echo Translate::t ('no_selected_feed'); ?></span> <?php echo Translate::t ('think_to_add'); ?></div> <?php } ?> diff --git a/app/views/configure/importExport.phtml b/app/views/configure/importExport.phtml index 34bee4a07..4cc575356 100644 --- a/app/views/configure/importExport.phtml +++ b/app/views/configure/importExport.phtml @@ -14,12 +14,12 @@ <?php $this->partial ('aside_feed'); ?> <div class="post "> - <a href="<?php echo _url ('index', 'index'); ?>">← Retour à vos flux RSS</a> + <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a> <form method="post" action="<?php echo Url::display (array ('c' => 'configure', 'a' => 'importExport', 'params' => array ('q' => 'import'))); ?>" enctype="multipart/form-data"> - <legend>Import / export au format OPML</legend> + <legend><?php echo Translate::t ('import_export_opml'); ?></legend> <div class="form-group"> - <label class="group-name" for="file">Fichier à importer</label> + <label class="group-name" for="file"><?php echo Translate::t ('file_to_import'); ?></label> <div class="group-controls"> <input type="file" name="file" id="file" /> </div> @@ -27,9 +27,9 @@ <div class="form-group form-actions"> <div class="group-controls"> - <button type="submit" class="btn btn-important">Importer</button> - ou - <a target="_blank" class="btn btn-important" href="<?php echo _url ('configure', 'importExport', 'q', 'export'); ?>">Exporter</a> + <button type="submit" class="btn btn-important"><?php echo Translate::t ('import'); ?></button> + <?php echo Translate::t ('or'); ?> + <a target="_blank" class="btn btn-important" href="<?php echo _url ('configure', 'importExport', 'q', 'export'); ?>"><?php echo Translate::t ('export'); ?></a> </div> </div> </form> diff --git a/app/views/configure/shortcut.phtml b/app/views/configure/shortcut.phtml index 86682465a..4c7884234 100644 --- a/app/views/configure/shortcut.phtml +++ b/app/views/configure/shortcut.phtml @@ -1,7 +1,7 @@ <?php $this->partial ('aside_configure'); ?> <div class="post"> - <a href="<?php echo _url ('index', 'index'); ?>">← Retour à vos flux RSS</a> + <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a> <datalist id="keys"> <?php foreach ($this->list_keys as $key) { ?> @@ -12,57 +12,57 @@ <?php $s = $this->conf->shortcuts (); ?> <form method="post" action="<?php echo _url ('configure', 'shortcut'); ?>"> - <legend>Gestion des raccourcis</legend> + <legend><?php echo Translate::t ('shortcuts_management'); ?></legend> - <noscript><b>Le javascript doit être activé pour pouvoir profiter des raccourcis</b></noscript> + <noscript><p class="alert alert-error"><?php echo Translate::t ('javascript_for_shortcuts'); ?></p></noscript> <div class="form-group"> - <label class="group-name" for="mark_read">Marquer l'article comme lu</label> + <label class="group-name" for="mark_read"><?php echo Translate::t ('mark_read'); ?></label> <div class="group-controls"> <input type="text" id="mark_read" name="shortcuts[mark_read]" list="keys" value="<?php echo $s['mark_read']; ?>" /> - + <code>shift</code> pour marquer tous les articles comme non lus + <?php echo Translate::t ('shift_for_all_read'); ?> </div> </div> <div class="form-group"> - <label class="group-name" for="mark_favorite">Mettre l'article en favori</label> + <label class="group-name" for="mark_favorite"><?php echo Translate::t ('mark_favorite'); ?></label> <div class="group-controls"> <input type="text" id="mark_favorite" name="shortcuts[mark_favorite]" list="keys" value="<?php echo $s['mark_favorite']; ?>" /> </div> </div> <div class="form-group"> - <label class="group-name" for="go_website">Voir l'article sur le site d'origine</label> + <label class="group-name" for="go_website"><?php echo Translate::t ('see_on_website'); ?></label> <div class="group-controls"> <input type="text" id="go_website" name="shortcuts[go_website]" list="keys" value="<?php echo $s['go_website']; ?>" /> </div> </div> <div class="form-group"> - <label class="group-name" for="next_entry">Passer à l'article suivant</label> + <label class="group-name" for="next_entry"><?php echo Translate::t ('next_article'); ?></label> <div class="group-controls"> <input type="text" id="next_entry" name="shortcuts[next_entry]" list="keys" value="<?php echo $s['next_entry']; ?>" /> - + <code>shift</code> pour passer au dernier article de la page + <?php echo Translate::t ('shift_for_last'); ?> </div> </div> <div class="form-group"> - <label class="group-name" for="prev_entry">Passer à l'article précédent</label> + <label class="group-name" for="prev_entry"><?php echo Translate::t ('previous_article'); ?></label> <div class="group-controls"> <input type="text" id="prev_entry" name="shortcuts[prev_entry]" list="keys" value="<?php echo $s['prev_entry']; ?>" /> - + <code>shift</code> pour passer au premier article de la page + <?php echo Translate::t ('shift_for_first'); ?> </div> </div> <div class="form-group"> - <label class="group-name" for="next_page">Passer à la page suivante</label> + <label class="group-name" for="next_page"><?php echo Translate::t ('next_page'); ?></label> <div class="group-controls"> <input type="text" id="next_page" name="shortcuts[next_page]" list="keys" value="<?php echo $s['next_page']; ?>" /> </div> </div> <div class="form-group"> - <label class="group-name" for="prev_page">Passer à la page précédente</label> + <label class="group-name" for="prev_page"><?php echo Translate::t ('previous_page'); ?></label> <div class="group-controls"> <input type="text" id="prev_page" name="shortcuts[prev_page]" list="keys" value="<?php echo $s['prev_page']; ?>" /> </div> @@ -70,8 +70,8 @@ <div class="form-group form-actions"> <div class="group-controls"> - <button type="submit" class="btn btn-important">Sauvegarder</button> - <button type="reset" class="btn">Annuler</button> + <button type="submit" class="btn btn-important"><?php echo Translate::t ('save'); ?></button> + <button type="reset" class="btn"><?php echo Translate::t ('cancel'); ?></button> </div> </div> </form> |
