aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-01 17:29:58 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-01 17:29:58 +0200
commit6a1631476cfd5b46b1c778fff680ea2bc554baaa (patch)
treec33476826be8efee600c5cd33e866201e776cc9c /pyaggr3g470r/templates
parentUpdated translation. (diff)
downloadnewspipe-6a1631476cfd5b46b1c778fff680ea2bc554baaa.tar.gz
newspipe-6a1631476cfd5b46b1c778fff680ea2bc554baaa.tar.bz2
newspipe-6a1631476cfd5b46b1c778fff680ea2bc554baaa.zip
Internationalization to french in progress.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/favorites.html10
-rw-r--r--pyaggr3g470r/templates/feed.html16
-rw-r--r--pyaggr3g470r/templates/feeds.html22
-rw-r--r--pyaggr3g470r/templates/inactives.html6
-rw-r--r--pyaggr3g470r/templates/layout.html28
-rw-r--r--pyaggr3g470r/templates/unread.html14
6 files changed, 48 insertions, 48 deletions
diff --git a/pyaggr3g470r/templates/favorites.html b/pyaggr3g470r/templates/favorites.html
index 50378d3c..b0357b41 100644
--- a/pyaggr3g470r/templates/favorites.html
+++ b/pyaggr3g470r/templates/favorites.html
@@ -3,19 +3,19 @@
<div class="container">
{% if feeds|count == 0 %}
<div class="page-header">
- <h1>No favorites</h1>
+ <h1>{{ _('No favorites') }}</h1>
</div>
{% else %}
<div class="page-header">
- <h1>Favorites articles <small>{{ nb_favorites }}</small></h1>
+ <h1>{{ _('Favorites articles') }} <small>{{ nb_favorites }}</small></h1>
</div>
{% for feed in feeds|sort(attribute="title") %}
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h1>{{ feed.title|safe }}</h1>
- <a href="/articles/{{ feed.id }}/100"><i class="glyphicon glyphicon-th-list" title="More articles"></i></a>
- <a href="/feed/{{ feed.id }}"><i class="glyphicon glyphicon-info-sign" title="Details"></i></a>
- <a href="/edit_feed/{{ feed.id }}"><i class="glyphicon glyphicon-edit" title="Edit this feed"></i></a>
+ <a href="/articles/{{ feed.id }}/100"><i class="glyphicon glyphicon-th-list" title="{{ _('More articles') }}"></i></a>
+ <a href="/feed/{{ feed.id }}"><i class="glyphicon glyphicon-info-sign" title="{{ _('Details') }}"></i></a>
+ <a href="/edit_feed/{{ feed.id }}"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this feed') }}"></i></a>
</div>
</div>
{% for number in range(0, feed.articles.all()|length-(feed.articles.all()|length % 3), 3) %}
diff --git a/pyaggr3g470r/templates/feed.html b/pyaggr3g470r/templates/feed.html
index 849dba49..98e965e4 100644
--- a/pyaggr3g470r/templates/feed.html
+++ b/pyaggr3g470r/templates/feed.html
@@ -4,24 +4,24 @@
<div class="jumbotron">
<h2>{{ feed.title }}</h2>
{% if feed.description %} <p>{{ feed.description }}</p> {% endif %}
- <a href="/delete_feed/{{ feed.id }}"><i class="glyphicon glyphicon-remove" title="Delete this feed"></i></a>
- <a href="/edit_feed/{{ feed.id }}"><i class="glyphicon glyphicon-edit" title="Edit this feed"></i></a>
+ <a href="/delete_feed/{{ feed.id }}"><i class="glyphicon glyphicon-remove" title="{{ _('Delete this feed') }}"></i></a>
+ <a href="/edit_feed/{{ feed.id }}"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this feed') }}"></i></a>
</div>
<div class="jumbotron">
<p>
- This feed contains {{ feed.articles.all()|count }} <a href="/articles/{{ feed.id }}/100">articles</a>
+ {{ _('This feed contains') }} {{ feed.articles.all()|count }} <a href="/articles/{{ feed.id }}/100">{{ _('articles') }}</a>
{% if nb_articles != 0 %}
- ({{ ((feed.articles.all()|count * 100 ) / nb_articles) | round(2, 'floor') }}% of the database)
+ ({{ ((feed.articles.all()|count * 100 ) / nb_articles) | round(2, 'floor') }}% {{ _('of the database') }})
{% endif %}
.<br />
- Address of the feed: <a href="{{ feed.link }}">{{ feed.link }}</a><br />
+ {{ _('Address of the feed') }}: <a href="{{ feed.link }}">{{ feed.link }}</a><br />
{% if feed.site_link != "" %}
- Address of the site: <a href="{{ feed.site_link }}">{{ feed.site_link }}</a>
+ {{ _('Address of the site') }}: <a href="{{ feed.site_link }}">{{ feed.site_link }}</a>
{% endif %}
<br />
{% if feed.articles.all()|count != 0 %}
- The last article was posted {{ elapsed.days }} day(s) ago.<br />
- Daily average: {{ average }}, between the {{ first_post_date.strftime('%Y-%m-%d') }} and the {{ end_post_date.strftime('%Y-%m-%d') }}.
+ {{ _('The last article was posted') }} {{ elapsed.days }} {{ _('day(s) ago.') }}<br />
+ {{ _('Daily average') }}: {{ average }}, {{ _('between the') }} {{ first_post_date.strftime('%Y-%m-%d') }} {{ _('and the') }} {{ end_post_date.strftime('%Y-%m-%d') }}.
{% endif %}
</p>
</div>
diff --git a/pyaggr3g470r/templates/feeds.html b/pyaggr3g470r/templates/feeds.html
index 82e4afae..4caf6653 100644
--- a/pyaggr3g470r/templates/feeds.html
+++ b/pyaggr3g470r/templates/feeds.html
@@ -1,17 +1,17 @@
{% extends "layout.html" %}
{% block content %}
<div class="container">
- <h1>You are subscribed to {{ feeds.all()|count }} feeds &middot; Add a <a href="/create_feed/">feed</a></h1>
+ <h1>{{ _('You are subscribed to') }} {{ feeds.all()|count }} {{ _('feeds') }} &middot; {{ _('Add a') }} <a href="/create_feed/">{{ _('feed') }}</a></h1>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>#</th>
- <th>Status</th>
- <th>Title</th>
- <th>Site</th>
- <th>Articles</th>
- <th>Actions</th>
+ <th>{{ _('Status') }}</th>
+ <th>{{ _('Title') }}</th>
+ <th>{{ _('Site') }}</th>
+ <th>{{ _('Articles') }}</th>
+ <th>{{ _('Actions') }}</th>
</tr>
</thead>
<tbody>
@@ -20,18 +20,18 @@
<td>{{ loop.index }}</td>
<td>
{% if feed.enabled %}
- <i class="glyphicon glyphicon-eye-open" title="Feed enabled"></i>
+ <i class="glyphicon glyphicon-eye-open" title="{{ _('Feed enabled') }}"></i>
{% else %}
- <i class="glyphicon glyphicon-eye-close" title="Feed disabled"></i>
+ <i class="glyphicon glyphicon-eye-close" title="{{ _('Feed disabled') }}"></i>
{% endif %}
</td>
<td><a href="/feed/{{ feed.id }}" {% if feed.description %}title="{{ feed.description }}"{% endif %}>{{ feed.title }}</a></td>
<td><a href="{{ feed.site_link }}">{{ feed.site_link }}</a></td>
<td>{{ feed.articles.all()|count }}</td>
<td>
- <a href="/articles/{{ feed.id }}/100"><i class="glyphicon glyphicon-th-list" title="Articles"></i></a>
- <a href="/edit_feed/{{ feed.id }}"><i class="glyphicon glyphicon-edit" title="Edit this feed"></i></a>
- <a href="/delete_feed/{{ feed.id }}"><i class="glyphicon glyphicon-remove" title="Delete this feed"></i></a>
+ <a href="/articles/{{ feed.id }}/100"><i class="glyphicon glyphicon-th-list" title="{{ _('Articles') }}"></i></a>
+ <a href="/edit_feed/{{ feed.id }}"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this feed') }}"></i></a>
+ <a href="/delete_feed/{{ feed.id }}"><i class="glyphicon glyphicon-remove" title="{{ _('Delete this feed') }}"></i></a>
</td>
</tr>
{% endfor %}
diff --git a/pyaggr3g470r/templates/inactives.html b/pyaggr3g470r/templates/inactives.html
index 0d093029..1916e09a 100644
--- a/pyaggr3g470r/templates/inactives.html
+++ b/pyaggr3g470r/templates/inactives.html
@@ -3,18 +3,18 @@
<div class="container">
<div class="jumbotron">
<form method=get action="/inactives/">
- <p>Days of inactivity:</p>
+ <p>{{ _('Days of inactivity') }}:</p>
<input type="number" name="nb_days" class="form-control" value="{{ nb_days }}" min="0" max="1000000" step="1" size="4" style="text-align: center" />
</form>
<br />
{% if inactives != [] %}
<ul class="list-group">
{% for item in inactives %}
- <li class="list-group-item"><a href="/feed/{{ item[0].id }}">{{ item[0].title }}</a> - {{ item[1].days }} days</li>
+ <li class="list-group-item"><a href="/feed/{{ item[0].id }}">{{ item[0].title }}</a> - {{ item[1].days }} {{ _('days') }}</li>
{% endfor %}
</ul>
{% else %}
- <p>No inactive feeds.<p>
+ <p>{{ _('No inactive feeds.') }}<p>
{% endif %}
</div>
</div><!-- /.container -->
diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html
index d45ce090..8ed66d89 100644
--- a/pyaggr3g470r/templates/layout.html
+++ b/pyaggr3g470r/templates/layout.html
@@ -40,30 +40,30 @@
<ul class="nav navbar-nav navbar-right">
{% if g.user.is_authenticated() %}
<li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Articles <b class="caret"></b></a>
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ _('Articles') }} <b class="caret"></b></a>
<ul class="dropdown-menu">
- <li><a accesskey="r" href="/fetch/">Fetch</a></li>
- <li><a href="/mark_as_read/">Mark all as read</a></li>
+ <li><a accesskey="r" href="/fetch/">{{ _('Fetch') }}</a></li>
+ <li><a href="/mark_as_read/">{{ _('Mark all as read') }}</a></li>
<li role="presentation" class="divider"></li>
- <li><a href="/create_feed/">Add a feed</a></li>
+ <li><a href="/create_feed/">{{ _('Add a feed') }}</a></li>
</ul>
</li>
<li class="dropdown">
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Filter <b class="caret"></b></a>
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ _('Filter') }} <b class="caret"></b></a>
<ul class="dropdown-menu">
- <li><a accesskey="u" href="/unread/">Unread</a></li>
- <li><a accesskey="f" href="/favorites/">Favorites</a></li>
- <li><a accesskey="i" href="/inactives/">Inactive feeds</a></li>
- <li><a href="/feeds/">All feeds</a></li>
- <li><a href="/history/">History</a></li>
+ <li><a accesskey="u" href="/unread/">{{ _('Unread') }}</a></li>
+ <li><a accesskey="f" href="/favorites/">{{ _('Favorites') }}</a></li>
+ <li><a accesskey="i" href="/inactives/">{{ _('Inactive feeds') }}</a></li>
+ <li><a href="/feeds/">{{ _('All feeds') }}</a></li>
+ <li><a href="/history/">{{ _('History') }}</a></li>
</ul>
</li>
- <li><a accesskey="m" href="/management/">Management</a></li>
+ <li><a accesskey="m" href="/management/">{{ _('Management') }}</a></li>
{% if g.user.is_admin() %}
- <li><a href="{{ url_for('dashboard') }}"><span class="glyphicon glyphicon-dashboard"></span> Dashboard</a></li>
+ <li><a href="{{ url_for('dashboard') }}"><span class="glyphicon glyphicon-dashboard"></span> {{ _('Dashboard') }}</a></li>
{% endif %}
- <li><a href="/about/">About</a></li>
- <li><a href="{{ url_for('logout') }}">Logout</a></li>
+ <li><a href="/about/">{{ _('About') }}</a></li>
+ <li><a href="{{ url_for('logout') }}">{{ _('Logout') }}</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<button class="btn btn-default btn-xs" type="submit"><span class="glyphicon glyphicon-search"></span></button> <b class="caret"></b>
diff --git a/pyaggr3g470r/templates/unread.html b/pyaggr3g470r/templates/unread.html
index e0ffd2dd..5194aaca 100644
--- a/pyaggr3g470r/templates/unread.html
+++ b/pyaggr3g470r/templates/unread.html
@@ -3,21 +3,21 @@
<div class="container">
{% if feeds|count == 0 %}
<div class="page-header">
- <h1>No unread articles</h1>
+ <h1>{{ _('No unread articles') }}</h1>
</div>
{% else %}
<div class="page-header">
- <h1>Unread articles <small>{{ nb_unread }}</small></h1>
+ <h1>{{ _('Unread articles') }} <small>{{ nb_unread }}</small></h1>
</div>
{% for feed in feeds|sort(attribute="title") %}
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h1>{{ feed.title|safe }}</h1>
- <a href="/articles/{{ feed.id }}/100"><i class="glyphicon glyphicon-th-list" title="More articles"></i></a>
- <a href="/feed/{{ feed.id }}"><i class="glyphicon glyphicon-info-sign" title="Details"></i></a>
- <a href="/edit_feed/{{ feed.id }}"><i class="glyphicon glyphicon-edit" title="Edit this feed"></i></a>
- <a href="/mark_as_read/{{ feed.id }}"><i class="glyphicon glyphicon-check" title="Mark all as read"></i></a>
- <h3>{{ feed.articles.all()|length }} unread articles.</h3>
+ <a href="/articles/{{ feed.id }}/100"><i class="glyphicon glyphicon-th-list" title="{{ _('More articles') }}"></i></a>
+ <a href="/feed/{{ feed.id }}"><i class="glyphicon glyphicon-info-sign" title="{{ _('Details') }}"></i></a>
+ <a href="/edit_feed/{{ feed.id }}"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this feed') }}"></i></a>
+ <a href="/mark_as_read/{{ feed.id }}"><i class="glyphicon glyphicon-check" title="{{ _('Mark all as read') }}"></i></a>
+ <h3>{{ feed.articles.all()|length }} {{ _('unread articles') }}.</h3>
</div>
</div>
{% for number in range(0, feed.articles.all()|length-(feed.articles.all()|length % 3), 3) %}
bgstack15