Commit fdd2a50b7e5c44e1d1b5c402b4bc8172481f8b34

Authored by filipecmedeiros
1 parent 217976ba

Adding template tag trans where was supposed to be [Issue #223]

Showing 37 changed files with 167 additions and 167 deletions   Show diff stats
app/templates/home.html
... ... @@ -66,7 +66,7 @@
66 66 {% block sidebar %}
67 67 <div class="panel panel-primary navigation">
68 68 <div class="panel-heading">
69   - <h4>Menu</h4>
  69 + <h4>{% trans 'Menu' %}</h4>
70 70 </div>
71 71 <div class="panel-body">
72 72 <ul class="nav nav-pills nav-stacked">
... ...
app/templates/home_student.html
... ... @@ -45,7 +45,7 @@
45 45 {% endif %}
46 46 <div class="panel panel-default">
47 47 <div class="panel-body">
48   - His course has notified a new activity!
  48 + {% trans 'His course has notified a new activity!' %}
49 49 </div>
50 50 <div class="panel-footer">
51 51 Go
... ... @@ -53,7 +53,7 @@
53 53 </div>
54 54 <div class="panel panel-default">
55 55 <div class="panel-body">
56   - His teacher has notified a new material!
  56 + {% trans 'His teacher has notified a new material!' %}
57 57 </div>
58 58 <div class="panel-footer">
59 59 Go
... ... @@ -61,10 +61,10 @@
61 61 </div>
62 62 <div class="panel panel-default">
63 63 <div class="panel-body">
64   - You have a new guardian!
  64 + {% trans 'You have a new guardian!' %}
65 65 </div>
66 66 <div class="panel-footer">
67   - Go
  67 + {% trans 'Go' %}
68 68 </div>
69 69 </div>
70 70 {% endblock %}
... ...
app/templates/home_teacher_student_content.html
... ... @@ -11,7 +11,7 @@
11 11 </div>
12 12 <div class="col-xs-10 col-md-11">
13 13 <h4 class="resource_inline"><b>{{ notification.actor.username }}</b></h4>
14   - <p class="resource_inline">{{notification.message}} em : <a href="{% url 'core:notification_read' notification.id %}">{{ notification.action_resource.resource.name }}</a></p>
  14 + <p class="resource_inline">{{notification.message}} {% trans 'at' %} : <a href="{% url 'core:notification_read' notification.id %}">{{ notification.action_resource.resource.name }}</a></p>
15 15 <p class="timePost"><i> {{ notification.datetime|timesince }} {% trans "ago" %} </i></p>
16 16 </div>
17 17 </div>
... ...
core/templates/base.html
... ... @@ -70,14 +70,14 @@
70 70 <li class="" data-toggle="tooltip" data-placement="bottom" title data-original-title="notifications">
71 71 <a class="dropdown-toggle" data-toggle="dropdown"> <span id="notification-count" class="badge notification-count">{{notifications.count}}</span><i class="fa fa-bell" aria-hidden="true"></i></a>
72 72 <ul id="notification-dropdown" class="dropdown-menu">
73   - <li class="dropdown-header">Notifications</li>
  73 + <li class="dropdown-header"> {% trans 'Notifications' %}</li>
74 74 {% include "notifications.html" %}
75 75  
76 76 <li>
77 77 <a onclick="getNotifications(5)">
78 78 <div id="notification-see-more" class="list-group-item">
79 79 <div class="row-content">
80   - <p class="list-group-item-text">See More</p>
  80 + <p class="list-group-item-text">{% trans 'See More' %}</p>
81 81 </div>
82 82 </a>
83 83 </li>
... ... @@ -130,12 +130,12 @@
130 130  
131 131 <div class="panel panel-primary navigation">
132 132 <div class="panel-heading">
133   - <h3 class="panel-title">Category</h3>
  133 + <h3 class="panel-title">{% trans 'Category' %}</h3>
134 134 </div>
135 135 <div class="panel-body">
136 136 <ul class="nav nav-pills nav-stacked">
137   - <li><a href="{% url 'course:create_cat' %}">Create Category</a></li>
138   - <li><a href="{% url 'course:manage_cat' %}">List Category</a></li>
  137 + <li><a href="{% url 'course:create_cat' %}">{% trans 'Create Category'%}</a></li>
  138 + <li><a href="{% url 'course:manage_cat' %}">{% trans 'List Category' %}</a></li>
139 139 </ul>
140 140 </div>
141 141 </div>
... ...
core/templates/guest.html
... ... @@ -64,14 +64,14 @@
64 64 <li class="" data-toggle="tooltip" data-placement="bottom" title data-original-title="notifications">
65 65 <a class="dropdown-toggle" data-toggle="dropdown"> <span id="notification-count" class="badge notification-count">{{notifications.count}}</span><i class="fa fa-bell" aria-hidden="true"></i></a>
66 66 <ul id="notification-dropdown" class="dropdown-menu">
67   - <li class="dropdown-header">Notifications</li>
  67 + <li class="dropdown-header">{% trans 'Notifications' %}</li>
68 68 {% include "notifications.html" %}
69 69  
70 70 <li>
71 71 <a onclick="getNotifications(5)">
72 72 <div id="notification-see-more" class="list-group-item">
73 73 <div class="row-content">
74   - <p class="list-group-item-text">See More</p>
  74 + <p class="list-group-item-text">{% trans 'See More' %}</p>
75 75 </div>
76 76 </a>
77 77 </li>
... ... @@ -92,7 +92,7 @@
92 92 {% block sidebar %}
93 93 <div class="panel panel-primary navigation">
94 94 <div class="panel-heading">
95   - <h4>Menu</h4>
  95 + <h4>{% trans 'Menu' %}</h4>
96 96 </div>
97 97 <div class="panel-body">
98 98 <ul class="nav nav-pills nav-stacked">
... ... @@ -121,7 +121,7 @@
121 121  
122 122 <div class="col-md-12">
123 123 <div class="btn-group btn-group-justified btn-group-raised">
124   - <a href="?category=all" class="btn btn-raised btn-info">Todos</a>
  124 + <a href="?category=all" class="btn btn-raised btn-info">{% trans 'All' %}</a>
125 125 {% for category in categories %}
126 126 <a href="?category={{category.name}}" class="btn btn-raised btn-primary">{{category.name}}</a>
127 127 {% endfor %}
... ... @@ -144,12 +144,12 @@
144 144 </div>
145 145  
146 146 <div class="panel-body">
147   - <p><b>Course Name: </b>{{course.name}}</p>
148   - <p><b>Begining: </b>{{course.init_date}}</p>
149   - <p><b>End: </b>{{course.end_date}}</p>
150   - <p><b>Professor: </b>{{course.professors.name}}</p>
  147 + <p><b>{% trans 'Course Name'%}: </b>{{course.name}}</p>
  148 + <p><b>{% trans 'Begining'%}: </b>{{course.init_date}}</p>
  149 + <p><b>{% trans 'End' %}: </b>{{course.end_date}}</p>
  150 + <p><b>{% trans 'Professor' %}: </b>{{course.professors.name}}</p>
151 151 <p>
152   - <b>Description:</b>
  152 + <b>{% trans 'Description' %}:</b>
153 153 <i>
154 154 {{course.content}}
155 155 </i>
... ...
core/templates/lembrar_senha.html
... ... @@ -37,7 +37,7 @@ Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título
37 37  
38 38  
39 39  
40   - <title>Projeto Amadeus</title>
  40 + <title>{% trans 'Amadeus Project' %}</title>
41 41  
42 42 <meta http-equiv="Cache-Control" content="no-cache, no-store" />
43 43  
... ... @@ -62,7 +62,7 @@ Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título
62 62 <form name="logonForm" method="post" action="/amadeuslms/validateLogin.do">
63 63 <dt><input type="text" name="login" maxlength="15" size="15" value="" class="inputlogin"> </dt>
64 64 <dt><input type="password" name="password" maxlength="15" size="15" value="" class="inputlogin">&nbsp;
65   - <br /><a href="{% url 'index' %}" name="logonForm" class="button">Entrar</a></dt>
  65 + <br /><a href="{% url 'index' %}" name="logonForm" class="button">{% trans 'Enter' %}</a></dt>
66 66 </form>
67 67 <script type="text/javascript" language="JavaScript">
68 68 <!--
... ... @@ -98,23 +98,23 @@ Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título
98 98  
99 99 <div id="institutional_menu">
100 100  
101   - <span><a href="/amadeuslms/fProject.do" target="_blank">O Projeto</a></span>
  101 + <span><a href="/amadeuslms/fProject.do" target="_blank">{% trans 'O Projeto' %}</a></span>
102 102 <span>&nbsp;|&nbsp;</span>
103   - <span><a href="/amadeuslms/fCCTE.do" target="_blank">Grupo CCTE</a></span>
  103 + <span><a href="/amadeuslms/fCCTE.do" target="_blank">{% trans 'Grupo CCTE' %}</a></span>
104 104 </div>
105 105 <div id="pTitle" class="pTitle">
106   - <h2>Lembrar senha</h2>
  106 + <h2>{% trans 'Lembrar senha' %}</h2>
107 107 </div>
108 108 <div id="pBreadCrumbs" class="pBreadCrumbs">
109 109 <ul id="breadcrumb">
110   - <li><a href="{% url 'home' %}">Página Inicial</a></li>
111   - <li>Lembrar senha</li>
  110 + <li><a href="{% url 'home' %}">{% trans 'Página Inicial' %}</a></li>
  111 + <li>{%trans 'Lembrar senha' %}</li>
112 112 </ul>
113 113 </div>
114 114 <div id="pLeftMenu" class="pLeftMenu">
115 115 <div id="side_menu_1">
116 116 <ul id="menu_sessoes">
117   - <li><a href="{% url 'create_account' %}" class="insert">Nova conta</a></li>
  117 + <li><a href="{% url 'create_account' %}" class="insert">{% trans 'Nova conta' %}</a></li>
118 118 </ul>
119 119 </div>
120 120 </div>
... ... @@ -123,9 +123,9 @@ Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título
123 123  
124 124  
125 125 <form name="remindPasswordForm" method="post" action="/amadeuslms/remindPassword.do">
126   - <dt>Endereço de e-mail</dt>
  126 + <dt>{% trans 'Endereço de e-mail' %}</dt>
127 127 <dd><input type="text" name="email" value="" class="formfield2" id="username"></dd>
128   - <dd class="description">Seu endereço de e-mail (exemplo@mail.com)</dd>
  128 + <dd class="description">{% trans 'Seu endereço de e-mail (exemplo@mail.com)' %}</dd>
129 129 <dt class="field"><input type="submit" name="remindPassword" value="Enviar e-mail" class="button"></dt>
130 130 </form>
131 131 <script type="text/javascript" language="JavaScript">
... ... @@ -160,7 +160,7 @@ Você deve ter recebido uma cópia da Licença Pública Geral GNU, sob o título
160 160  
161 161  
162 162 <div id="footnote">
163   - <dl><dd>Copyright Amadeus. Todos os direitos reservados<dd></dl>
  163 + <dl><dd>{% trans 'Copyright Amadeus. Todos os direitos reservados' %}<dd></dl>
164 164 </div>
165 165  
166 166 </div>
... ...
core/templates/registration/passwor_reset_email.html
1   -To initiate the password reset process for your {{ user.get_username }} TestSite Account,
2   -click the link below:
  1 +{% trans 'To initiate the password reset process for your {{ user.get_username }} TestSite Account,
  2 +click the link below:' %}
3 3  
4 4 {% block reset_link %}
5 5 {{ protocol }}://{{ domain }}{% url 'core:password_reset_confirm' uidb64=uid token=token %}
6 6  
7 7 {% endblock %}
8 8  
9   -If clicking the link above doesn't work, please copy and paste the URL in a new browser
  9 +{% trans 'If clicking the link above doesnt work, please copy and paste the URL in a new browser
10 10 window instead.
11 11  
12 12  
13 13 Sincerely,
14   -Amadeus.
  14 +Amadeus.' %}
... ...
core/templates/registration/password_reset_subject.txt
1 1 {% load i18n %}{% autoescape off %}
2   -{% blocktrans %}Password reset on {{ site_name }}{% endblocktrans %}
  2 +{% blocktrans %}{% trans 'Password reset on' %} {{ site_name }}{% endblocktrans %}
3 3 {% endautoescape %}
... ...
courses/templates/category/create.html
... ... @@ -27,25 +27,25 @@
27 27  
28 28 <div class="panel panel-primary navigation">
29 29 <div class="panel-heading">
30   - <h3 class="panel-title">Actions</h3>
  30 + <h3 class="panel-title">{% trans 'Actions' %}</h3>
31 31 </div>
32 32 <div class="panel-body">
33 33 <ul class="nav nav-pills nav-stacked">
34   - <li><a href="javascript:void(0)">Replicate Course</a></li>
35   - <li><a href="{% url 'course:create' %}">Create Course</a></li>
36   - <li><a href="{% url 'course:create_cat' %}">Create Category</a></li>
  34 + <li><a href="javascript:void(0)">{% trans 'Replicate Course' %}</a></li>
  35 + <li><a href="{% url 'course:create' %}">{% trans 'Create Course' %}</a></li>
  36 + <li><a href="{% url 'course:create_cat' %}">{% trans 'Create Category' %}</a></li>
37 37 </ul>
38 38 </div>
39 39 </div>
40 40  
41 41 <div class="panel panel-primary navigation">
42 42 <div class="panel-heading">
43   - <h3 class="panel-title">Category</h3>
  43 + <h3 class="panel-title">{% trans 'Category' %}</h3>
44 44 </div>
45 45 <div class="panel-body">
46 46 <ul class="nav nav-pills nav-stacked">
47   - <li><a href="{% url 'course:create_cat' %}">Create Category</a></li>
48   - <li><a href="{% url 'course:manage_cat' %}">List Category</a></li>
  47 + <li><a href="{% url 'course:create_cat' %}">{% trans 'Create Category' %}</a></li>
  48 + <li><a href="{% url 'course:manage_cat' %}">{% trans 'List Category' %}</a></li>
49 49 </ul>
50 50 </div>
51 51 </div>
... ...
courses/templates/category/index.html
... ... @@ -28,25 +28,25 @@
28 28  
29 29 <div class="panel panel-primary navigation">
30 30 <div class="panel-heading">
31   - <h3 class="panel-title">Actions</h3>
  31 + <h3 class="panel-title">{% trans 'Actions' %}</h3>
32 32 </div>
33 33 <div class="panel-body">
34 34 <ul class="nav nav-pills nav-stacked">
35   - <li><a href="javascript:void(0)">Replicate Course</a></li>
36   - <li><a href="{% url 'course:create' %}">Create Course</a></li>
37   - <li><a href="{% url 'course:create_cat' %}">Create Category</a></li>
  35 + <li><a href="javascript:void(0)">{% trans 'Replicate Course' %}</a></li>
  36 + <li><a href="{% url 'course:create' %}">{% trans 'Create Course' %}</a></li>
  37 + <li><a href="{% url 'course:create_cat' %}">{% trans 'Create Category' %}</a></li>
38 38 </ul>
39 39 </div>
40 40 </div>
41 41  
42 42 <div class="panel panel-primary navigation">
43 43 <div class="panel-heading">
44   - <h3 class="panel-title">Category</h3>
  44 + <h3 class="panel-title">{% trans 'Category' %}</h3>
45 45 </div>
46 46 <div class="panel-body">
47 47 <ul class="nav nav-pills nav-stacked">
48   - <li><a href="{% url 'course:create_cat' %}">Create Category</a></li>
49   - <li><a href="{% url 'course:manage_cat' %}">List Category</a></li>
  48 + <li><a href="{% url 'course:create_cat' %}">{% trans 'Create Category' %}</a></li>
  49 + <li><a href="{% url 'course:manage_cat' %}">{% trans 'List Category' %}</a></li>
50 50 </ul>
51 51 </div>
52 52 </div>
... ...
courses/templates/category/update.html
... ... @@ -28,24 +28,24 @@
28 28  
29 29 <div class="panel panel-primary navigation">
30 30 <div class="panel-heading">
31   - <h3 class="panel-title">Actions</h3>
  31 + <h3 class="panel-title">{% trans 'Actions' %}</h3>
32 32 </div>
33 33 <div class="panel-body">
34 34 <ul class="nav nav-pills nav-stacked">
35   - <li><a href="javascript:void(0)">Replicate Course</a></li>
36   - <li><a href="{% url 'course:create' %}">Create Course</a></li>
37   - <li><a href="{% url 'course:create_cat' %}">Create Category</a></li>
  35 + <li><a href="javascript:void(0)">{% trans 'Replicate Course' %}</a></li>
  36 + <li><a href="{% url 'course:create' %}">{% trans 'Create Course' %}</a></li>
  37 + <li><a href="{% url 'course:create_cat' %}">{% trans 'Create Category' %}</a></li>
38 38 </ul>
39 39 </div>
40 40 </div>
41 41 <div class="panel panel-primary navigation">
42 42 <div class="panel-heading">
43   - <h3 class="panel-title">Category</h3>
  43 + <h3 class="panel-title">{% trans 'Category' %}</h3>
44 44 </div>
45 45 <div class="panel-body">
46 46 <ul class="nav nav-pills nav-stacked">
47   - <li><a href="{% url 'course:create_cat' %}">Create Category</a></li>
48   - <li><a href="{% url 'course:manage_cat' %}">List Category</a></li>
  47 + <li><a href="{% url 'course:create_cat' %}">{% trans 'Create Category' %}</a></li>
  48 + <li><a href="{% url 'course:manage_cat' %}">{% trans 'List Category' %}</a></li>
49 49 </ul>
50 50 </div>
51 51 </div>
... ...
courses/templates/course/course_card.html
... ... @@ -28,10 +28,10 @@
28 28 </div>
29 29 <div class="panel-collapse collapseOne-{{course.slug}} collapse in" role="tabpanel" aria-labelledby="headingOne" aria-expanded="true" aria-hidden="false" tabindex="0">
30 30 <div class="panel-body">
31   - <p><b>Course Name: </b>{{course.name}}</p>
32   - <p><b>Coordinator: </b>{{course.professors.all.0}}</p>
  31 + <p><b>{% trans 'Course Name' %}: </b>{{course.name}}</p>
  32 + <p><b>{% trans 'Coordinator' %}: </b>{{course.professors.all.0}}</p>
33 33 <p>
34   - <b>Description:</b>
  34 + <b>{% trans 'Description' %}:</b>
35 35 <i>
36 36 {{course.content}}
37 37 </i>
... ...
courses/templates/course/create.html
... ... @@ -26,7 +26,7 @@
26 26 <input type="text" readonly="" class="form-control" placeholder="Choose your photo..."/>
27 27 <span class="input-group-btn input-group-sm">
28 28 <button type="button" class="btn btn-fab btn-fab-mini">
29   - <i class="material-icons">attach_file</i>
  29 + <i class="material-icons">{% trans 'attach_file' %}</i>
30 30 </button>
31 31 </span>
32 32 </div>
... ...
courses/templates/course/index.html
... ... @@ -33,7 +33,7 @@
33 33 <input type="search" class="form-control" placeholder="Search Courses" name="q" id="searchbox"></div>
34 34 <span class="input-group-btn input-group-sm">
35 35 <button type="button" class="btn btn-fab btn-fab-mini">
36   - <i class="material-icons">search</i>
  36 + <i class="material-icons">{% trans 'search' %}</i>
37 37 </button>
38 38 </span>
39 39 </div>
... ...
courses/templates/course/replicate.html
... ... @@ -15,86 +15,86 @@
15 15 <div class="card-body">
16 16 <form method="post" action="" enctype="multipart/form-data">{% csrf_token %}
17 17 <div class="form-group is-fileinput">
18   - <label for="id_name">Name</label>
  18 + <label for="id_name">{% trans 'Name' %}</label>
19 19  
20 20  
21 21 <input class="form-control" id="id_name" maxlength="100" name="name" type="text" required="" value="{{course.name}}">
22 22  
23   - <span class="help-block">Course name</span>
  23 + <span class="help-block">{% trans 'Course name' %}</span>
24 24  
25 25 </div>
26 26  
27 27 <div class="form-group is-fileinput">
28   - <label for="id_objectivies">Objectives</label>
  28 + <label for="id_objectivies">{% trans 'Objectives' %}</label>
29 29  
30 30 <textarea class="form-control" cols="80" id="id_objectivies" name="objectivies" rows="5">{{course.objectivies}}</textarea>
31 31  
32   - <span class="help-block">Course objective</span>
  32 + <span class="help-block">{% trans 'Course objective' %}</span>
33 33  
34 34 </div>
35 35  
36 36 <div class="form-group is-fileinput">
37   - <label for="id_content">Content</label>
  37 + <label for="id_content">{% trans 'Content' %}</label>
38 38  
39 39  
40 40 <textarea class="form-control" cols="80" id="id_content" name="content" rows="5">{{course.content}}</textarea>
41 41  
42   - <span class="help-block">Course modules</span>
  42 + <span class="help-block">{% trans 'Course modules' %}</span>
43 43  
44 44 </div>
45 45  
46 46 <div class="form-group is-fileinput">
47   - <label for="id_max_students">Number of studets maximum</label>
  47 + <label for="id_max_students">{% trans 'Number of studets maximum' %}</label>
48 48  
49 49  
50 50 <input class="form-control" id="id_max_students" min="0" name="max_students" type="number" value="{{course.max_students}}">
51 51  
52   - <span class="help-block">Max number of students that a class can have</span>
  52 + <span class="help-block">{% trans 'Max number of students that a class can have' %}</span>
53 53  
54 54 </div>
55 55  
56 56 <div class="form-group is-fileinput">
57   - <label for="id_init_register_date">Course registration start date</label>
  57 + <label for="id_init_register_date">{% trans 'Course registration start date' %}</label>
58 58  
59 59  
60 60 <input type="date" class="form-control" name="init_register_date" value="None" min="2016-10-24">
61 61  
62   - <span class="help-block">Date that starts the registration period of the course (dd/mm/yyyy)</span>
  62 + <span class="help-block">{% trans 'Date that starts the registration period of the course (dd/mm/yyyy)' %}</span>
63 63  
64 64 </div>
65 65  
66 66 <div class="form-group is-fileinput">
67   - <label for="id_end_register_date">Course registration end date</label>
  67 + <label for="id_end_register_date">{% trans 'Course registration end date' %}</label>
68 68  
69 69  
70 70 <input type="date" class="form-control" name="end_register_date" value="None" min="2016-10-24">
71 71  
72   - <span class="help-block">Date that ends the registration period of the course (dd/mm/yyyy)</span>
  72 + <span class="help-block">{% trans 'Date that ends the registration period of the course (dd/mm/yyyy)' %}</span>
73 73  
74 74 </div>
75 75  
76 76 <div class="form-group is-fileinput">
77   - <label for="id_init_date">Course start date</label>
  77 + <label for="id_init_date">{% trans 'Course start date' %}</label>
78 78  
79 79  
80 80 <input type="date" class="form-control" name="init_date" value="None" min="2016-10-24">
81 81  
82   - <span class="help-block">Date that the course starts (dd/mm/yyyy)</span>
  82 + <span class="help-block">{% trans 'Date that the course starts (dd/mm/yyyy)' %}</span>
83 83  
84 84 </div>
85 85  
86 86 <div class="form-group is-fileinput">
87   - <label for="id_end_date">Course end date</label>
  87 + <label for="id_end_date">{% trans 'Course end date' %}</label>
88 88  
89 89  
90 90 <input type="date" class="form-control" name="end_date" value="None" min="2016-10-24">
91 91  
92   - <span class="help-block">Date that the course ends (dd/mm/yyyy)</span>
  92 + <span class="help-block">{% trans 'Date that the course ends (dd/mm/yyyy)' %}</span>
93 93  
94 94 </div>
95 95  
96 96 <div class="form-group is-fileinput">
97   - <label for="id_image">Imagem</label>
  97 + <label for="id_image">{% trans 'Imagem' %}</label>
98 98  
99 99  
100 100 <input class="form-control" id="id_image" name="image" type="file">
... ... @@ -102,17 +102,17 @@
102 102 <input type="text" readonly="" class="form-control" placeholder="Choose your photo...">
103 103 <span class="input-group-btn input-group-sm">
104 104 <button type="button" class="btn btn-fab btn-fab-mini">
105   - <i class="material-icons">attach_file</i>
  105 + <i class="material-icons">{% trans 'attach_file' %}</i>
106 106 </button>
107 107 </span>
108 108 </div>
109 109  
110   - <span class="help-block">Representative image of the course</span>
  110 + <span class="help-block">{% trans 'Representative image of the course' %}</span>
111 111  
112 112 </div>
113 113  
114 114 <div class="form-group is-fileinput">
115   - <label for="id_category">CourseCategory</label>
  115 + <label for="id_category">{% trans 'CourseCategory' %}</label>
116 116  
117 117  
118 118 <select class="form-control" id="id_category" name="category" required="">
... ... @@ -121,7 +121,7 @@
121 121 {% endfor %}
122 122 </select>
123 123  
124   - <span class="help-block">CourseCategory which the course belongs</span>
  124 + <span class="help-block">{% trans 'CourseCategory which the course belongs' %}</span>
125 125  
126 126 </div>
127 127  
... ...
courses/templates/course/update.html
... ... @@ -25,7 +25,7 @@
25 25 <input type="text" readonly="" class="form-control" placeholder="Choose your photo..."/>
26 26 <span class="input-group-btn input-group-sm">
27 27 <button type="button" class="btn btn-fab btn-fab-mini">
28   - <i class="material-icons">attach_file</i>
  28 + <i class="material-icons">{% trans 'attach_file' %}</i>
29 29 </button>
30 30 </span>
31 31 </div>
... ...
courses/templates/course/view.html
... ... @@ -50,10 +50,10 @@
50 50 </div>
51 51 </div>
52 52 <div class="panel-body">
53   - <p><b>Course Name: </b>{{course.name}}</p>
54   - <p><b>Coordinator: </b>{{course.professors}}</p>
  53 + <p><b>{% trans 'Course Name' %}: </b>{{course.name}}</p>
  54 + <p><b>{% trans 'Coordinator' %}: </b>{{course.professors}}</p>
55 55 <p>
56   - <b>Description:</b>
  56 + <b>{% trans 'Description' %}:</b>
57 57 <i>
58 58 {{course.description}}
59 59 </i>
... ... @@ -126,8 +126,8 @@
126 126 <i class="fa fa-ellipsis-v fa-2x" aria-hidden="true"></i>
127 127 </button>
128 128 <ul class="dropdown-menu" aria-labelledby="moreActions">
129   - <li><a href="javascript:void(0)" data-toggle="modal" data-target="#myModal3"><i class="fa fa-pencil fa-fw" aria-hidden="true"></i>&nbsp; Replicate</a></li>
130   - <li><a href="javascript:void(0)" data-toggle="modal" data-target="#removeSubject2"><i class="fa fa-trash fa-fw" aria-hidden="true"></i>&nbsp; Remove</a></li>
  129 + <li><a href="javascript:void(0)" data-toggle="modal" data-target="#myModal3"><i class="fa fa-pencil fa-fw" aria-hidden="true"></i>&nbsp; {% trans 'Replicate' %}</a></li>
  130 + <li><a href="javascript:void(0)" data-toggle="modal" data-target="#removeSubject2"><i class="fa fa-trash fa-fw" aria-hidden="true"></i>&nbsp; {% trans 'Remove' %}</a></li>
131 131 </ul>
132 132 </div>
133 133 </div>
... ... @@ -179,8 +179,8 @@
179 179 <i class="fa fa-ellipsis-v fa-2x" aria-hidden="true"></i>
180 180 </button>
181 181 <ul class="dropdown-menu" aria-labelledby="moreActions">
182   - <li><a href="javascript:void(0)" data-toggle="modal" data-target="#myModal3"><i class="fa fa-pencil fa-fw" aria-hidden="true"></i>&nbsp; Replicate</a></li>
183   - <li><a href="javascript:void(0)" data-toggle="modal" data-target="#removeSubject2"><i class="fa fa-trash fa-fw" aria-hidden="true"></i>&nbsp; Remove</a></li>
  182 + <li><a href="javascript:void(0)" data-toggle="modal" data-target="#myModal3"><i class="fa fa-pencil fa-fw" aria-hidden="true"></i>&nbsp; {% trans 'Replicate' %}</a></li>
  183 + <li><a href="javascript:void(0)" data-toggle="modal" data-target="#removeSubject2"><i class="fa fa-trash fa-fw" aria-hidden="true"></i>&nbsp; {% trans 'Remove' %}</a></li>
184 184 </ul>
185 185 </div>
186 186 </div>
... ...
courses/templates/subject/form_view_teacher.html
... ... @@ -49,13 +49,13 @@
49 49 <div class="row">
50 50 <div class="col-xs-6 col-md-6">
51 51 <div class="resource_inline">
52   - <h4>Material</h4>
  52 + <h4>{% trans 'Material' %}</h4>
53 53 </div>
54 54 <div class="resource_inline">
55 55 <div class="dropdown">
56 56 <a href="#" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-plus-circle fa-lg" aria-hidden="true"></i></a>
57 57 <ul class="dropdown-menu" aria-labelledby="dLabel">
58   - <li><a href=" javascript:get_modal_link('{% url 'course:links:create_link' topic.slug %}', '#createLinksModal','#divModalLink') ">Create a Link<div class="ripple-container"><div class="ripple ripple-on ripple-out" style="left: 54.5312px; top: 22px; background-color: rgb(0, 150, 136); transform: scale(20);"></div></div></a></li>
  58 + <li><a href=" javascript:get_modal_link('{% url 'course:links:create_link' topic.slug %}', '#createLinksModal','#divModalLink') ">{% trans 'Create a Link' %}<div class="ripple-container"><div class="ripple ripple-on ripple-out" style="left: 54.5312px; top: 22px; background-color: rgb(0, 150, 136); transform: scale(20);"></div></div></a></li>
59 59 <li>
60 60 <a href="javascript:get_modal_file('{% url 'course:file:create_file' topic.slug %}', '#fileModal', '#divModalFile')">
61 61 {% trans "Create a file" %}
... ... @@ -76,7 +76,7 @@
76 76 </div>
77 77 <div class="col-xs-4 col-md-4">
78 78 <div class="resource_inline">
79   - <h4>Activities</h4>
  79 + <h4>{% trans 'Activities' %}</h4>
80 80 </div>
81 81 <div class="resource_inline">
82 82 <div class="dropdown">
... ... @@ -100,23 +100,23 @@
100 100 </div>
101 101 <div class="editation" style="display: none">
102 102 <div class="form-group">
103   - <label class="control-label" for="focusedInput2">Name Topic</label>
  103 + <label class="control-label" for="focusedInput2">{% trans 'Name Topic' %}</label>
104 104 <input type="text" class="form-control" value="Topic 1">
105 105 </div>
106 106 <div class="form-group is-empty">
107   - <label class="control-label" for="focusedInput2">Description</label>
  107 + <label class="control-label" for="focusedInput2">{% trans 'Description' %}</label>
108 108 <textarea class="form-control" rows="3" id="textArea"></textarea>
109 109 </div>
110 110 <div class="row">
111 111 <div class=" col-xs-6 col-md-4">
112 112 <div class="resource_inline">
113   - <h4>Material</h4>
  113 + <h4>{% trans 'Material' %}</h4>
114 114 </div>
115 115 <div class="resource_inline">
116 116 <div class="dropdown">
117 117 <a href="#" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-plus-circle fa-lg" aria-hidden="true"></i></a>
118 118 <ul class="dropdown-menu" aria-labelledby="dLabel">
119   - <li><a href="javascript:get_modal_link('{% url 'course:links:create_link' topic.slug %}', '#createLinksModal','#divModalLink')">Create a Link</a></li>
  119 + <li><a href="javascript:get_modal_link('{% url 'course:links:create_link' topic.slug %}', '#createLinksModal','#divModalLink')">{% trans 'Create a Link' %}</a></li>
120 120 <li>
121 121 <a href="#">
122 122 {% trans "Create a file" %}
... ... @@ -136,13 +136,13 @@
136 136 </div>
137 137 <div class="col-xs-4 col-md-offset-1 col-md-4">
138 138 <div class="resource_inline">
139   - <h4>Activities</h4>
  139 + <h4>{% trans 'Activities' %}</h4>
140 140 </div>
141 141 <div class="resource_inline">
142 142 <div class="dropdown">
143 143 <a href="#" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-plus-circle fa-lg" aria-hidden="true"></i></a>
144 144 <ul class="dropdown-menu" aria-labelledby="dLabel">
145   - <li>Qualquer coisa</li>
  145 + <li>{% trans 'Anything' %}</li>
146 146 </ul>
147 147 </div>
148 148 </div>
... ... @@ -156,8 +156,8 @@
156 156 </div>
157 157 <div class="form-group">
158 158 <div class="col-md-10">
159   - <button type="button" class="btn btn-raised btn-default edit_card_end">Cancel</button>
160   - <button type="submit" class="btn btn-raised btn-primary edit_card_end">Submit</button>
  159 + <button type="button" class="btn btn-raised btn-default edit_card_end">{% trans 'Cancel' %}</button>
  160 + <button type="submit" class="btn btn-raised btn-primary edit_card_end">{% trans 'Submit' %}</button>
161 161 </div>
162 162 </div>
163 163 </div>
... ... @@ -174,11 +174,11 @@
174 174 <h4 class="modal-title"></h4>
175 175 </div>
176 176 <div class="modal-body">
177   - <p>Delete your Topic?</p>
  177 + <p>{% trans 'Delete your Topic?' %}</p>
178 178 </div>
179 179 <div class="modal-footer">
180 180  
181   - <a href="" target="_self"><button type="button" class="btn btn-primary">Confirm</button></a>
  181 + <a href="" target="_self"><button type="button" class="btn btn-primary">{% trans 'Confirm' %}</button></a>
182 182  
183 183 </div>
184 184 </div>
... ... @@ -197,32 +197,32 @@
197 197 <div class="modal-content">
198 198 <div class="modal-header">
199 199 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
200   - <h4 class="modal-title" id="myModalLabel">Material EMBED</h4>
  200 + <h4 class="modal-title" id="myModalLabel">{% trans 'Material EMBED' %}</h4>
201 201 </div>
202 202 <div class="modal-body">
203 203 <div class="form-group is-empty">
204   - <label for="inputEmail" class="col-md-2 control-label">Name:</label>
  204 + <label for="inputEmail" class="col-md-2 control-label">{% trans 'Name' %}:</label>
205 205 <div class="col-md-10">
206 206 <input type="text" class="form-control" id="inputEmail" placeholder="Name">
207 207 </div>
208 208 </div>
209 209 <form class="form-horizontal">
210 210 <div class="form-group is-empty">
211   - <label for="textArea" class="col-md-2 control-label">Code:</label>
  211 + <label for="textArea" class="col-md-2 control-label">{% trans 'Code' %}:</label>
212 212  
213 213 <div class="col-md-10">
214 214 <textarea class="form-control" rows="2" id="textArea"></textarea>
215   - <span class="help-block">Material description</span>
  215 + <span class="help-block">{% trans 'Material description' %}</span>
216 216 </div>
217 217 </div>
218 218 <div class="form-group is-empty">
219   - <label for="number" class="col-md-2 control-label">Height</label>
  219 + <label for="number" class="col-md-2 control-label">{% trans 'Height' %}</label>
220 220 <div class="col-md-4">
221 221 <input type="number" class="form-control" id="inputNumber" placeholder="Heiht">
222 222 </div>
223 223 </div>
224 224 <div class="form-group is-empty">
225   - <label for="number" class="col-md-2 control-label">Weight</label>
  225 + <label for="number" class="col-md-2 control-label">{% trans 'Weight' %}</label>
226 226 <div class="col-md-4">
227 227 <input type="number" class="form-control" id="inputNumber" placeholder="Weight">
228 228 </div>
... ... @@ -235,7 +235,7 @@
235 235 <button type="button" class="btn btn-danger btn-raised" data-dismiss="modal">Close</button>-->
236 236  
237 237 <!-- Put curtom buttons here!!! -->
238   - <button type="button" class="btn btn-primary btn-raised">Confirm</button>
  238 + <button type="button" class="btn btn-primary btn-raised">{% trans 'Confirm' %}</button>
239 239 </div>
240 240 </div>
241 241 </div>
... ... @@ -254,27 +254,27 @@
254 254 <form class="form-horizontal">
255 255  
256 256 <fieldset>
257   - <legend>Atividade Proposta</legend>
  257 + <legend>{% trans 'Atividade Proposta' %}</legend>
258 258 <div class="form-group is-empty">
259   - <label for="NameIn" class="col-md-2 control-label">Name:</label>
  259 + <label for="NameIn" class="col-md-2 control-label">{% trans 'Name' %}:</label>
260 260 <div class="col-md-10">
261 261 <input type="text" id="NameIn" class="form-control">
262 262 </div>
263 263 </div>
264 264 <div class="form-group is-empty">
265   - <label for="DescIn" class="col-md-2 control-label">Describe:</label>
  265 + <label for="DescIn" class="col-md-2 control-label">{% trans 'Describe' %}:</label>
266 266 <div class="col-md-10">
267 267 <textarea class="form-control" id="DescIn" rows="2"></textarea>
268 268 </div>
269 269 </div>
270 270 <div class="form-group is-empty">
271   - <label for="DateIn" class="col-md-2 control-label">Opening: </label>
  271 + <label for="DateIn" class="col-md-2 control-label">{% trans 'Opening' %}: </label>
272 272 <div class="col-md-10">
273 273 <input type="text" id="DateIn" class="form-control date-picker" requerid="">
274 274 </div>
275 275 </div>
276 276 <div class="form-group is-empty">
277   - <label for="DateIn" class="col-md-2 control-label">Ending: </label>
  277 + <label for="DateIn" class="col-md-2 control-label">{% trans 'Ending' %}: </label>
278 278 <div class="col-md-10">
279 279 <input type="text" id="DateIn" class="form-control date-picker" requerid="">
280 280 </div>
... ... @@ -283,15 +283,15 @@
283 283 <div class="col-md-offset-2 col-md-10">
284 284 <div class="checkbox">
285 285 <label>
286   - <input type="checkbox"><span class="checkbox-material"><span class="check"></span></span> Send Later
  286 + <input type="checkbox"><span class="checkbox-material"><span class="check"></span></span> {% trans 'Send Later' %}
287 287 </label>
288 288 </div>
289 289 </div>
290 290 </div>
291 291 <div class="form-group">
292 292 <div class="col-md-10 col-md-offset-2">
293   - <button type="button" class="btn btn-default">Cancel</button>
294   - <button type="submit" class="btn btn-primary">Submit</button>
  293 + <button type="button" class="btn btn-default">{% trans 'Cancel' %}</button>
  294 + <button type="submit" class="btn btn-primary">{% trans 'Submit' %}</button>
295 295 </div>
296 296 </div>
297 297  
... ...
courses/templates/subject/poll_item_actions.html
... ... @@ -6,9 +6,9 @@
6 6 {% for poll in polls %}
7 7 {% professor_subject poll.topic.subject request.user as permission%}
8 8 {% if permission %}
9   - <li id="poll_{{poll.slug}}"><i class="material-icons">poll</i> <a href="javascript:modal.get('{% url 'course:poll:update_poll' poll.slug %}','#poll','#modal_poll');">{{ poll.name }}</a><a href="javascript:modal.get('{% url 'course:poll:delete_poll' poll.slug %}','#poll','#modal_poll');"><span class="glyphicon glyphicon-remove"></span></a></li>
  9 + <li id="poll_{{poll.slug}}"><i class="material-icons">{% trans 'poll' %}</i> <a href="javascript:modal.get('{% url 'course:poll:update_poll' poll.slug %}','#poll','#modal_poll');">{{ poll.name }}</a><a href="javascript:modal.get('{% url 'course:poll:delete_poll' poll.slug %}','#poll','#modal_poll');"><span class="glyphicon glyphicon-remove"></span></a></li>
10 10 {% else %}
11   - <li id="poll_{{poll.slug}}"><i class="material-icons">poll</i> <a href="javascript:modal.get('{% url 'course:poll:view_poll' poll.slug %}','#poll','#modal_poll');">{{ poll.name }}</a></li>
  11 + <li id="poll_{{poll.slug}}"><i class="material-icons">{% trans 'poll' %}</i> <a href="javascript:modal.get('{% url 'course:poll:view_poll' poll.slug %}','#poll','#modal_poll');">{{ poll.name }}</a></li>
12 12 {% endif %}
13 13 {% endfor %}
14 14 {# <button class="btn btn-primary btn-raised" onclick="javascript:modal.get('{% url 'course:poll:create_poll' topic.slug%}','#poll','#modal_poll');">{% trans '+ Create Poll' %}</button> #}
... ...
courses/templates/topic/index.html
... ... @@ -34,15 +34,15 @@
34 34 {% if user|has_role:'professor' %}
35 35 <div class="panel panel-primary navigation">
36 36 <div class="panel-heading">
37   - <h3 class="panel-title">Actions</h3>
  37 + <h3 class="panel-title">{% trans 'Actions' %}</h3>
38 38 </div>
39 39 <div class="panel-body">
40 40 <ul class="nav nav-pills nav-stacked">
41   - <li><a href="javascript:void(0)">Participants</a></li>
42   - <li><a href="javascript:void(0)">Replicate subject</a></li>
43   - <li><a href="javascript:void(0)">Create subject</a></li>
44   - <li><a href="javascript:void(0)">Edit subject</a></li>
45   - <li><a href="javascript:void(0)">Remove subject</a></li>
  41 + <li><a href="javascript:void(0)">{% trans 'Participants' %}</a></li>
  42 + <li><a href="javascript:void(0)">{% trans 'Replicate subject' %}</a></li>
  43 + <li><a href="javascript:void(0)">{% trans 'Create subject' %}</a></li>
  44 + <li><a href="javascript:void(0)">{% trans 'Edit subject' %}</a></li>
  45 + <li><a href="javascript:void(0)">{% trans 'Remove subject' %}</a></li>
46 46 </ul>
47 47 </div>
48 48 </div>
... ... @@ -109,12 +109,12 @@
109 109 <div class="panel-body">
110 110 <div class="row">
111 111 <div class="col-md-4">
112   - <i class="fa fa-file-archive-o fa-lg" aria-hidden="true">Atividade.doc</i>
  112 + <i class="fa fa-file-archive-o fa-lg" aria-hidden="true">{% trans 'Atividade.doc' %}</i>
113 113 </div>
114 114 {% professor_subject subject user as permi_test%}
115 115 {% if permi_test %}
116 116 <div class="col-md-4">
117   - <label> Nota:</label>
  117 + <label> {% trans 'Nota' %}:</label>
118 118 <input type="number" step="0.01">
119 119 </div>
120 120 {% else %}
... ... @@ -124,7 +124,7 @@
124 124 <div class="form-group {% if form.pdf.errors %} has-error {% endif %}">
125 125 {{ form.as_p }}
126 126 </div>
127   - <button type="submit" class="btn btn-success" id="send_button">Enviar</button>
  127 + <button type="submit" class="btn btn-success" id="send_button">{% trans 'Enviar' %}</button>
128 128 </div>
129 129 {% endif %}
130 130 </div>
... ...
exam/templates/exam/gap_filling_question.html
1 1 <div class="form-group" id="gapFilling" style="display: none;">
2   - <p>Gap Filling Question</p>
  2 + <p>{% trans 'Gap Filling Question' %}</p>
3 3 </div>
... ...
exam/templates/exam/multiple_choice_question.html
1 1 <div class="form-group" id="multipleChoice">
2 2  
3   - <label for="questionName" class="col-md-2 control-label">Question</label>
  3 + <label for="questionName" class="col-md-2 control-label">{% trans 'Question' %}</label>
4 4  
5 5  
6 6 <div class="col-md-10">
... ... @@ -10,7 +10,7 @@
10 10  
11 11 </div>
12 12 <div class="form-group">
13   - <label for="alternative" class="col-md-2 control-label">Alternatives</label>
  13 + <label for="alternative" class="col-md-2 control-label">{% trans 'Alternatives' %}</label>
14 14 <div class="col-md-10" id="radios">
15 15 <div class="radio radio-primary">
16 16 <label>
... ... @@ -29,7 +29,7 @@
29 29 <!-- new alternative button -->
30 30 <div class="form-group">
31 31 <div class="col-md-12 col-md-offset-2">
32   - <button type="button" class="btn btn-primary" id="newAlternative">New Alternative</button>
  32 + <button type="button" class="btn btn-primary" id="newAlternative">{% trans 'New Alternative' %]</button>
33 33 </div>
34 34 </div>
35 35 <div class="form-group">
... ...
files/templates/files/create_file.html
... ... @@ -65,14 +65,14 @@
65 65  
66 66 <div class="form-group">
67 67 <div class="col-md-12 text-center">
68   - <p><b>The file size shouldn't exceed 10MB</b></p>
  68 + <p><b>{% trans 'The file size shouldnt exceed 10MB' %}</b></p>
69 69 </div>
70 70 </div>
71 71  
72 72 <div class="form-group">
73 73 <div class="col-md-12">
74 74 <button type="button" class="btn btn-danger btn-raised" data-dismiss="modal">{% trans "Close" %}</button>
75   - <button class="btn btn-raised btn-primary" type="submit">Submit</button>
  75 + <button class="btn btn-raised btn-primary" type="submit">{% trans 'Submit' %}</button>
76 76 </div>
77 77 </div>
78 78 </fieldset>
... ...
files/templates/files/delete_file.html
... ... @@ -32,7 +32,7 @@
32 32 <div class="form-group">
33 33 <div class="col-md-12">
34 34 <button type="button" class="btn btn-danger btn-raised" data-dismiss="modal">{% trans "Close" %}</button>
35   - <button class="btn btn-raised btn-primary" type="submit">Delete</button>
  35 + <button class="btn btn-raised btn-primary" type="submit">{% trans 'Delete' %}</button>
36 36 </div>
37 37 </div>
38 38 </fieldset>
... ...
files/templates/files/update_file.html
... ... @@ -70,14 +70,14 @@
70 70  
71 71 <div class="form-group">
72 72 <div class="col-md-12 text-center">
73   - <p><b>The file size shouldn't exceed 10MB</b></p>
  73 + <p><b>{% trans 'The file size shouldnt exceed 10MB' %}</b></p>
74 74 </div>
75 75 </div>
76 76  
77 77 <div class="form-group">
78 78 <div class="col-md-12">
79 79 <button type="button" class="btn btn-danger btn-raised" data-dismiss="modal">{% trans "Close" %}</button>
80   - <button class="btn btn-raised btn-primary" type="submit">Submit</button>
  80 + <button class="btn btn-raised btn-primary" type="submit">{% trans 'Submit' %}</button>
81 81 </div>
82 82 </div>
83 83 </fieldset>
... ...
forum/templates/forum/forum_list.html
... ... @@ -56,7 +56,7 @@
56 56 {% endif %}
57 57 <span class="input-group-btn">
58 58 <button type="submit" class="btn btn-fab btn-fab-mini">
59   - <i class="material-icons">send</i>
  59 + <i class="material-icons">{% trans 'send' %}</i>
60 60 </button>
61 61 </span>
62 62 </div>
... ...
forum/templates/forum/forum_view.html
... ... @@ -88,7 +88,7 @@
88 88 {% endif %}
89 89 <span class="input-group-btn">
90 90 <button type="submit" class="btn btn-fab btn-fab-mini">
91   - <i class="material-icons">send</i>
  91 + <i class="material-icons">{% trans 'send' %}</i>
92 92 </button>
93 93 </span>
94 94 </div>
... ...
forum/templates/post/post_list.html
... ... @@ -8,7 +8,7 @@
8 8 {{ post.user }}
9 9 <div class="pull-right">
10 10 <a href="javascript:answer('{{ post.id }}', '{% url 'course:forum:reply_post' %}');">
11   - <i class="material-icons">reply</i>
  11 + <i class="material-icons">{% trans 'reply' %}</i>
12 12 </a>
13 13 {% if request.user|has_role:'system_admin' or request.user == post.user %}
14 14 {% csrf_token %}
... ...
forum/templates/post/post_load_more_render.html
... ... @@ -8,7 +8,7 @@
8 8 {{ post.user }}
9 9 <div class="pull-right">
10 10 <a href="javascript:answer('{{ post.id }}', '{% url 'course:forum:reply_post' %}');">
11   - <i class="material-icons">reply</i>
  11 + <i class="material-icons">{% trans 'reply' %}</i>
12 12 </a>
13 13 {% if request.user|has_role:'system_admin' or request.user == post.user %}
14 14 {% csrf_token %}
... ...
forum/templates/post/post_render.html
... ... @@ -6,7 +6,7 @@
6 6 {{ post.user }}
7 7 <div class="pull-right">
8 8 <a href="javascript:answer('{{ post.id }}', '{% url 'course:forum:reply_post' %}');">
9   - <i class="material-icons">reply</i>
  9 + <i class="material-icons">{% trans 'reply' %}</i>
10 10 </a>
11 11 {% if request.user|has_role:'system_admin' or request.user|has_role:'professor' and request.user == post.user %}
12 12 {% csrf_token %}
... ...
forum/templates/post_answers/post_answer_form.html
... ... @@ -35,7 +35,7 @@
35 35 {% else %}
36 36 <span class="input-group-btn">
37 37 <button type="submit" class="btn btn-fab btn-fab-mini">
38   - <i class="material-icons">send</i>
  38 + <i class="material-icons">{% trans 'send' %}</i>
39 39 </button>
40 40 </span>
41 41 {% endif %}
... ...
links/templates/links/create_link.html
... ... @@ -6,7 +6,7 @@
6 6 <div class="modal-content">
7 7 <div class="modal-header">
8 8 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
9   - <h4 class="modal-title" id="createLink">Create a New Link</h4>
  9 + <h4 class="modal-title" id="createLink">{% trans 'Create a New Link' %}</h4>
10 10 </div>
11 11 <div class="modal-body">
12 12 <!-- Card -->
... ... @@ -31,8 +31,8 @@
31 31 {% render_field field class='form-control' %}
32 32 {% endfor %}
33 33 <div class="form-group">
34   - <a href="javascript:void(0)" class="btn btn-raised btn-default" data-dismiss="modal">Cancel</a>
35   - <button class="btn btn-raised btn-primary" type="submit">Submit</button>
  34 + <a href="javascript:void(0)" class="btn btn-raised btn-default" data-dismiss="modal">{% trans 'Cancel' %}</a>
  35 + <button class="btn btn-raised btn-primary" type="submit">{% trans 'Submit' %]</button>
36 36 </div>
37 37 <!-- .end Card -->
38 38 </div>
... ...
links/templates/links/delete_link.html
... ... @@ -7,12 +7,12 @@
7 7 <h4 class="modal-title"></h4>
8 8 </div>
9 9 <div class="modal-body">
10   - <p>Do you really want to delete this link?</p>
  10 + <p>{% trans 'Do you really want to delete this link?' %}</p>
11 11 </div>
12 12 <div class="modal-footer">
13 13 <!-- -->
14   - <button type="button" class="btn btn-primary btn-default" data-dismiss="modal">Cancel</button>
15   - <a href="http://www.google.com" target="_self"><button type="button" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">Confirm</button></a>
  14 + <button type="button" class="btn btn-primary btn-default" data-dismiss="modal">{% trans 'Cancel' %}</button>
  15 + <a href="http://www.google.com" target="_self"><button type="button" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">{% trans 'Confirm' %}</button></a>
16 16  
17 17 </div>
18 18 </div>
... ...
links/templates/links/update_link.html
... ... @@ -4,25 +4,25 @@
4 4 <div class="modal-content">
5 5 <div class="modal-header">
6 6 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
7   - <h4 class="modal-title" id="myModalLabel">Links</h4>
  7 + <h4 class="modal-title" id="myModalLabel">{% trans 'Links' %}</h4>
8 8 </div>
9 9 <div class="modal-body">
10 10 <!-- Card -->
11 11 <div class="form-group">
12   - <label class="control-label" for="inputDefault">Name</label>
  12 + <label class="control-label" for="inputDefault">{% trans 'Name' %}</label>
13 13 <input value="Python" type="text" class="form-control" id="inputDefault">
14 14 </div>
15 15 <div class="form-group">
16   - <label class="control-label" for="inputDefault">Url</label>
  16 + <label class="control-label" for="inputDefault">{% trans 'URL' %}</label>
17 17 <input value="https://www.python.org/" type="text" class="form-control" id="inputDefault">
18 18 </div>
19 19 <div class="form-group is-empty">
20   - <label class="control-label" for="inputDefault">Descrição</label>
  20 + <label class="control-label" for="inputDefault">{% trans 'Descrição' %}</label>
21 21 <textarea class="form-control" rows="3"></textarea>
22 22 </div>
23 23 <div class="form-group">
24   - <a href="javascript:void(0)" class="btn btn-raised btn-default" data-dismiss="modal">Cancel</a>
25   - <a href="javascript:void(0)" class="btn btn-raised btn-primary">Submit</a>
  24 + <a href="javascript:void(0)" class="btn btn-raised btn-default" data-dismiss="modal">{% trans 'Cancel' %}</a>
  25 + <a href="javascript:void(0)" class="btn btn-raised btn-primary">{% trans 'Submit' %}</a>
26 26 </div>
27 27 <!-- .end Card -->
28 28 </div>
... ...
links/templates/links/view_link.html
... ... @@ -5,7 +5,7 @@
5 5 <div class="modal-content">
6 6 <div class="modal-header">
7 7 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
8   - <h4 class="modal-title" id="myModalLabel">Link</h4>
  8 + <h4 class="modal-title" id="myModalLabel">{% trans 'Link' %}</h4>
9 9 </div>
10 10 <div class="modal-body">
11 11 <!-- Card -->
... ... @@ -14,7 +14,7 @@
14 14 <div class="card-block">
15 15 <b class="card-title">{{link.name}}</b><p></p>
16 16 <p class="card-text"> </p><p>{{link.link_description}}</p>
17   - <a href="{{ link.link_url }}" class="btn btn-primary">Read more</a>
  17 + <a href="{{ link.link_url }}" class="btn btn-primary">{% trans 'Read more' %}</a>
18 18 </div>
19 19 </article>
20 20 <!-- .end Card -->
... ...
users/templates/list_users.html
... ... @@ -12,7 +12,7 @@
12 12 {% block sidebar %}
13 13 <div class="panel panel-primary navigation">
14 14 <div class="panel-heading">
15   - <h5>Menu</h5>
  15 + <h5>{% trans 'Menu' %}</h5>
16 16 </div>
17 17 <div class="panel-body">
18 18 <ul class="nav nav-pills nav-stacked">
... ... @@ -42,7 +42,7 @@
42 42 </div>
43 43 <div class="col-md-1 col-sm-1 col-xs-1">
44 44 <button type="submit" class="btn btn-fab btn-fab-mini">
45   - <i class="material-icons">search</i>
  45 + <i class="material-icons">Search</i>
46 46 </button>
47 47 </div>
48 48 </div>
... ... @@ -81,14 +81,14 @@
81 81 <div class="modal-content">
82 82 <div class="modal-header">
83 83 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
84   - <h4 class="modal-title" id="DeleteModalLabel">Confirm delete</h4>
  84 + <h4 class="modal-title" id="DeleteModalLabel">{% trans 'Confirm delete' %}</h4>
85 85 </div>
86 86 <div class="modal-body">
87   - Are you sure you want to delete the user <b>{{acc.name}}</b>?
  87 + {% trans 'Are you sure you want to delete the user' %} <b>{{acc.name}}</b>?
88 88 </div>
89 89 <div class="modal-footer">
90   - <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
91   - <button type="button" class="btn btn-primary"> <a href="{% url 'users:delete' acc.username %}">Delete</a></button>
  90 + <button type="button" class="btn btn-default" data-dismiss="modal">{% trans 'Cancel' %}</button>
  91 + <button type="button" class="btn btn-primary"> <a href="{% url 'users:delete' acc.username %}">{% trans 'Delete' %}</a></button>
92 92 </div>
93 93 </div>
94 94 </div>
... ...
users/templates/users/remove_account.html
... ... @@ -25,8 +25,8 @@
25 25 <div class="row">
26 26 <div class="col-md-12">
27 27 <div class="well well-lg">
28   - <h2>Voce tem certeza que deseja remover esta conta?</h2>
29   - <p>Todos os seus dados serão removidos e não haverá como recupera-los posteriormente.</p>
  28 + <h2>{% trans 'Voce tem certeza que deseja remover esta conta?' %}</h2>
  29 + <p>{% trans 'Todos os seus dados serão removidos e não haverá como recupera-los posteriormente.' %}</p>
30 30 <div class="row">
31 31 <div class="col-md-3 col-sm-2 col-xs-2">
32 32 <a href="#" class="btn btn-raised btn-block btn-success" >{% trans 'Remove' %}</a>
... ...