Skip to content

Commit 55eb89e

Browse files
authored
Merge pull request #894 from danielhjames/BK-2349
BK-2349 Interface string fixes from Flossmanuals FR, thanks Nicolas!
2 parents 64b21c3 + d5a8a9a commit 55eb89e

17 files changed

Lines changed: 89 additions & 80 deletions

File tree

lib/booki/locale/en/LC_MESSAGES/django.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: Booktype 2.4\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2018-05-09 10:15+0100\n"
10+
"POT-Creation-Date: 2018-07-16 18:04+0100\n"
1111
"PO-Revision-Date: 2014-12-29 15:53+0100\n"
1212
"Last-Translator: Daniel James <daniel.james@sourcefabric.org>\n"
1313
"Language-Team: Sourcefabric Localization <contact@sourcefabric.org>\n"
@@ -573,7 +573,8 @@ msgid "send a reply"
573573
msgstr ""
574574

575575
#: lib/booki/messaging/templates/messaging/post.html:11
576-
msgid "ago"
576+
#, python-format
577+
msgid "%(time_t)s \"ago\" "
577578
msgstr ""
578579

579580
#: lib/booki/messaging/templates/messaging/post.html:22

lib/booki/messaging/templates/messaging/post.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a class="action-button" href="{% url "view_profile" post.sender.as_user.username %}" onclick="$.bookiReply($('.post{{post.id}}')[0]);return false">{% trans "send a reply" %}</a>
99
<br />
1010
<div class="post-time">
11-
{{ post.timestamp|timesince }} {% trans "ago" %}
11+
{% blocktrans with time_t=post.timestamp|timesince %}{{time_t}} "ago" {% endblocktrans %}
1212
</div>
1313
{{ post.content_as_html|safe }}
1414
{% if post.attachment %}

lib/booktype/apps/account/templates/account/dashboard.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ <h2 class="box-title">{% trans "Recent Activity" %}</h2>
174174
<li>
175175
<figure><img src="{{ activity.image_url }}"></figure>
176176
<div class="list-info">
177-
<span class="time">{{ base_activ.modified|timesince }} {% trans "ago" %}</span>
177+
<span class="time">{% blocktrans with time_t=base_activ.modified|timesince %}{{time_t}} "ago" {% endblocktrans %}</span>
178178
<h4><a href="{% url 'accounts:view_profile' base_activ.user %}">{{ base_activ.user }}</a></h4>
179179
<p>
180180
{{ activity.verbose }}

lib/booktype/apps/account/templates/account/dashboard_create_book_modal.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ <h3>{% trans "Creation mode" %}</h3>
119119
<p>
120120
{% trans "No book skeletons yet." %}
121121
{% check_perm 'account.can_manage_book_skeletons' %}
122-
{% trans "You can manage them from the" %} <a href="{% url 'control_center:settings' %}#list-of-skeletons">{% trans "Control Center" %}</a>
122+
{% url 'control_center:settings' as t_url %}
123+
{% blocktrans %}You can manage them from the <a href="{{t_url}}#list-of-skeletons">Control Center</a>{% endblocktrans %}
123124
{% endcheck_perm %}
124125
</p>
125126
</div>

lib/booktype/apps/account/templates/account/dashboard_group_template.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ <h4>
88
</a> - {{ group.description }}
99
</h4>
1010
<span>
11-
{% trans "Members" %}: {{ group.members.count }}
12-
{% trans "Books" %}: {{ group.book_set.count }}
11+
{% trans "Members:" %} {{ group.members.count }}
12+
{% trans "Books:" %} {{ group.book_set.count }}
1313
</span>
1414
{% if can_delete %}
1515
<button type="button" class="btn btn-default btn-xs float-right" data-remote="{% url 'portal:delete_group' group.url_name %}" data-toggle="modal" data-target="#groupDeleteModal">

lib/booktype/apps/edit/templates/edit/panel_settings.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ <h4>
135135
{% trans "Roles" %}
136136
</h4>
137137
<div class="roles">
138-
{% trans "This book doesn't contain invited people. Please invite people in your " %}
139-
<a target="_blank" href="{% url "accounts:view_profile" request.user.username %}">{% trans "Dashboard" %}</a>.
138+
{% url "accounts:view_profile" request.user.username as t_url%}
139+
{% blocktrans %}This book doesn't contain invited people. Please invite people in your <a target="_blank" href="{{t_url}}">Dashboard</a>.{% endblocktrans %}
140140
</div>
141141
</script>

lib/booktype/apps/edit/templates/edit/settings/_roles.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ <h4><a target="_blank" href="{% url 'accounts:view_profile' user.username %}">{{
5151
</tr>
5252
{% empty %}
5353

54-
{% trans "This book doesn't contain invited people. Please invite people in your " %}
55-
54+
{% url "accounts:view_profile" request.user.username as t_url %}
55+
{% blocktrans %}This book doesn't contain invited people. Please invite people in your <a target="_blank" href="{{t_url}}">Dashboard</a>.{% endblocktrans %}
5656
{% endfor %}
5757
</tbody>
5858
</table>

lib/booktype/apps/portal/templates/portal/all_groups.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h2 class="box-title">
3030
{% endif %}
3131
{% endif %}
3232
<h4><a href="{% url "portal:group" group.url_name %}">{{ group.name }}</a> - {{ group.description }}</h4>
33-
<span>{% trans "Members" %}: {{ group.members.all.count }} {% trans "Books" %}: {{ group.num_books }}</span>
33+
<span>{% trans "Members:" %} {{ group.members.all.count }} {% trans "Books:" %} {{ group.num_books }}</span>
3434
</div>
3535
</li>
3636
{% empty %}
@@ -69,7 +69,7 @@ <h2 class="box-title">{% trans "Active groups" %}</h2>
6969
<figure><img src="{{ active_group.small_group_image }}" /></figure>
7070
<div class="list-info">
7171
<h4><a href="{% url "portal:group" active_group.url_name %}">{{ active_group.name }}</a> - {{ active_group.description }}</h4>
72-
<span>{% trans "Members" %}: {{ active_group.members.all.count }} {% trans "Books" %}: {{ active_group.num_books }}</span>
72+
<span>{% trans "Members:" %} {{ active_group.members.all.count }} {% trans "Books:" %} {{ active_group.num_books }}</span>
7373
</div>
7474
</li>
7575
{% empty %}
@@ -93,7 +93,7 @@ <h2 class="box-title">{% trans "New groups" %}</h2>
9393
{% endif %}
9494
{% endif %}
9595
<h4><a href="{% url "portal:group" group.url_name %}">{{ group.name }}</a> - {{ group.description }}</h4>
96-
<span>{% trans "Members" %}: {{ group.num_members }} {% trans "Books" %}: {{ group.num_books }}</span>
96+
<span>{% trans "Members:" %} {{ group.num_members }} {% trans "Books:" %} {{ group.num_books }}</span>
9797
</div>
9898
</li>
9999
{% empty %}

lib/booktype/apps/portal/templates/portal/books.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ <h2 class="box-title">{% trans "Recent Activity" %}</h2>
112112
<li>
113113
<figure><img src="{% url "view_profilethumbnail" activity.user %}?width=48" alt="{{ activity.user }}"></figure>
114114
<div class="list-info">
115-
<span class="time">{{ activity.modified|timesince}} {% trans "ago" %}</span>
115+
<span class="time">{% blocktrans with time_t=_activity.modified|timesince %}{{time_t}} "ago" {% endblocktrans %}</span>
116116
<h4>
117117
{% has_perm 'account.can_view_user_info' as access %}
118118
{% if access or request.user == activity.user %}

lib/booktype/apps/portal/templates/portal/group.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
<h2 class="box-title">{{ user_group.name }}</h2>
2020
<p>{{ user_group.description }}</p>
2121
<p>
22-
{% trans "Members" %}: {{ user_group.num_members }} <br>
23-
{% trans "Books" %}: {{ user_group.num_books }}
22+
{% trans "Members:" %} {{ user_group.num_members }} <br>
23+
{% trans "Books:" %} {{ user_group.num_books }}
2424
</p>
2525
</div>
2626

0 commit comments

Comments
 (0)