1
1
{% extends "base_community.html" %}
2
- {% load humanize %}
2
+ {% load humanize i18n %}
3
3
4
4
{% block title %}{% firstof user_obj.profile.name user_obj.username %}{% endblock %}
5
5
6
6
{% block content-related %}
7
- < h1 class ="visuallyhidden "> Additional Information</ h1 >
7
+ < h1 class ="visuallyhidden "> {% translate " Additional Information" %} </ h1 >
8
8
< div role ="complementary ">
9
9
< h2 >
10
10
{% if user_obj == user %}
11
- This is you!
11
+ {% translate " This is you!" %}
12
12
{% else %}
13
- Is this you?
13
+ {% translate " Is this you?" %}
14
14
{% endif %}
15
15
</ h2 >
16
16
17
- < p > Need to edit something? Here's how:</ p >
17
+ < p > {% translate " Need to edit something? Here's how:" %} </ p >
18
18
< ul >
19
- < li > < a href ="{% url 'edit_profile' %} "> Edit your name and email here.</ a > </ li >
20
- < li >
19
+ < li > < a href ="{% url 'edit_profile' %} "> {% translate " Edit your name and email here." %} </ a > </ li >
20
+ < li > {% blocktranslate trimmed %}
21
21
The image is the < a href ="https://en.gravatar.com/ "> Gravatar</ a > linked
22
22
to the email address you signed up with. You can change the image over
23
23
at < a href ="https://en.gravatar.com/ "> Gravatar</ a > . If you see a robot, that's
24
24
because you don't have a Gravatar yet.
25
- (Robots provided by < a href ="https://robohash.org/ "> Robohash</ a > .)
25
+ (Robots provided by < a href ="https://robohash.org/ "> Robohash</ a > .){% endblocktranslate %}
26
26
</ li >
27
- < li >
27
+ < li > {% blocktranslate trimmed %}
28
28
The rest of the data is read-only for the time being. If you see
29
29
outrageous errors, please file an issue on
30
- < a href ="https://github.com/django/code.djangoproject.com/issues/new " target ="_blank "> GitHub</ a > .
30
+ < a href ="https://github.com/django/code.djangoproject.com/issues/new " target ="_blank "> GitHub</ a > .{% endblocktranslate %}
31
31
</ li >
32
32
</ ul >
33
33
</ div >
34
34
{% endblock %}
35
35
36
36
{% block content %}
37
- < div class ="user-info ">
37
+ < div class ="user-info ">
38
38
< img class ='avatar ' width ='150 ' height ='150 '
39
39
src ="https://secure.gravatar.com/avatar/{{ email_hash }}?s=150&d=https%3A%2F%2Frobohash.org%2F{{ email_hash }}%3Fset%3Dset3%26size%3D150x150 ">
40
40
43
43
</ h1 >
44
44
45
45
{% if stats %}
46
- < h2 > Lies, damned lies, and statistics:</ h2 >
46
+ < h2 > {% translate " Lies, damned lies, and statistics:" %} </ h2 >
47
47
< ul >
48
48
{% for stat, value in stats.items %}
49
49
< li > {{ stat }}: {{ value|intcomma }}.</ li >
@@ -53,7 +53,7 @@ <h2>Lies, damned lies, and statistics:</h2>
53
53
54
54
{% with user_obj.owned_feeds.all as feeds %}
55
55
{% if feeds %}
56
- < h2 > Community feeds:</ h2 >
56
+ < h2 > {% translate " Community feeds:" %} </ h2 >
57
57
< ul >
58
58
{% for f in feeds %}
59
59
< li > < a href ="{{ f.public_url }} "> {{ f.title }}</ a > </ li >
0 commit comments