Skip to content

Commit

Permalink
Language: Internal: transform translation variables to gettext for te…
Browse files Browse the repository at this point in the history
…mplates - refs BT#21777
  • Loading branch information
NicoDucou committed Jul 3, 2024
1 parent 46aaff5 commit 81f148a
Show file tree
Hide file tree
Showing 46 changed files with 178 additions and 178 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<table class="table promotions">
<thead class="title">
<th>{{ 'Promotions' | get_lang }}</th>
<th>{{ 'StudyCycle' | get_lang }} </th>
<th>{{ 'Semester' | get_lang }} </th>
<th>{{ 'Courses' | get_lang }} </th>
</thead>
{% for promotions in item.career %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
({{ gradebook_category.courseCode }})
{% endif %}
</h3>
{{ 'MinimumGradebookToValidate' | get_lang }} : {{ min_to_validate }}
{{ 'Minimum to validate' | get_lang }} : {{ min_to_validate }}
<br/>
{{ 'MandatoryCourses' | get_lang }}
{% for course in mandatory_courses %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<tr>
<th>{{ 'Name' | get_lang }}</th>
<th>{{ 'Course' | get_lang }}</th>
<th>{{ 'Actions' | get_lang }} </th>
<th>{{ 'Detail' | get_lang }} </th>
</tr>
</thead>
{% for item in gradebook_list %}
Expand Down
12 changes: 6 additions & 6 deletions public/main/template/default/admin/resource_sequence.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
</script>
<div class="panel panel-default">
<div class="panel-body">
<div class="section-title-sequence">{{ 'SequenceSelection' | get_lang }}</div>
<div class="section-title-sequence">{{ 'Sequence selection' | get_lang }}</div>
<div class="row">
<div class="col-md-6">
{{ create_sequence }}
Expand All @@ -273,7 +273,7 @@

<div class="panel panel-default">
<div class="panel-body">
<div class="section-title-sequence">{{ 'SequenceConfiguration' | get_lang }}</div>
<div class="section-title-sequence">{{ 'Sequence configuration' | get_lang }}</div>
<div class="row">

{{ configure_sequence }}
Expand All @@ -283,11 +283,11 @@
</div>
<div class="panel panel-default">
<div class="panel-body">
<div class="section-title-sequence">{{ 'SequencePreview' | get_lang }}</div>
<div class="section-title-sequence">{{ 'Sequence preview' | get_lang }}</div>
<div class="row">
<div class="col-md-9">
<h4 class="title-sequence">
{{ 'ItemsTheReferenceDependsOn' | get_lang }}
{{ 'Items the reference depends on' | get_lang }}
</h4>
<div id="parents">
</div>
Expand All @@ -300,13 +300,13 @@
<div class="border-sequence">
<div class="arrow-sequence"></div>
</div>
<h4 class="title-sequence">{{ 'Dependencies' | get_lang }}</h4>
<h4 class="title-sequence">{{ 'Items that depend on the reference' | get_lang }}</h4>
<div id="children">
</div>

</div>
<div class="col-md-3">
<h4 class="title-sequence">{{ 'GraphDependencyTree' | get_lang }}</h4>
<h4 class="title-sequence">{{ 'Dependency tree' | get_lang }}</h4>
<div id="show_graph"></div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<th>{{ 'Course' | get_lang }}</th>
{% endif %}
<th>{{ 'Coach' | get_lang }}</th>
<th class="text-center">{{ 'TotalTime' | get_lang }}</th>
<th class="text-center">{{ 'Total time' | get_lang }}</th>
</tr>
</thead>
<tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
<table class="table table-hover table-striped">
<thead>
<tr>
<th>{{ 'OfficialCode'|get_lang }}</th>
<th>{{ 'CoachName'|get_lang }}</th>
<th>{{ 'TimeSpentOnThePlatform'|get_lang }}</th>
<th>{{ 'FirstLoginInPlatform'|get_lang }}</th>
<th>{{ 'LatestLoginInPlatform'|get_lang }}</th>
<th>{{ 'Code'|get_lang }}</th>
<th>{{ 'Coach name'|get_lang }}</th>
<th>{{ 'Time spent in portal'|get_lang }}</th>
<th>{{ 'First login in platform'|get_lang }}</th>
<th>{{ 'Latest login in platform'|get_lang }}</th>

{% for course_code in courses %}
<th>{{ course_code }}</th>
<th>{{ 'NumberOfWorks'|get_lang }}</th>
<th>{{ 'LastWork'|get_lang }}</th>
<th>{{ 'TimeReportForCourseX'|get_lang|format(course_code) }}</th>
<th>{{ 'Number of works'|get_lang }}</th>
<th>{{ 'Last work'|get_lang }}</th>
<th>{{ 'Time report for course %s'|get_lang|format(course_code) }}</th>
{% endfor %}
</tr>
</thead>
Expand All @@ -38,17 +38,17 @@
<table class="table table-hover table-striped">
<thead>
<tr>
<th>{{ 'OfficialCode'|get_lang }}</th>
<th>{{ 'Code'|get_lang }}</th>
<th>{{ 'Name'|get_lang }}</th>
<th>{{ 'TimeSpentOnThePlatform'|get_lang }}</th>
<th>{{ 'FirstLoginInPlatform'|get_lang }}</th>
<th>{{ 'LatestLoginInPlatform'|get_lang }}</th>
<th>{{ 'Time spent in portal'|get_lang }}</th>
<th>{{ 'First login in platform'|get_lang }}</th>
<th>{{ 'Latest login in platform'|get_lang }}</th>

{% for course in row.courses %}
<th>{{ course.code }}</th>
<th>{{ 'NumberOfWorks'|get_lang }}</th>
<th>{{ 'LastWork'|get_lang }}</th>
<th>{{ 'TimeReportForCourseX'|get_lang|format(course_code) }}</th>
<th>{{ 'Number of works'|get_lang }}</th>
<th>{{ 'Last work'|get_lang }}</th>
<th>{{ 'Time report for course %s'|get_lang|format(course_code) }}</th>
{% endfor %}
</tr>
</thead>
Expand Down
4 changes: 2 additions & 2 deletions public/main/template/default/agenda/planification.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<tr>
<th class="col-session">{{ 'Session'|get_lang }}</th>
{% for i in 1..52 %}
<th class="col-week text-center" title="{{ 'WeekX'|get_lang|format(i) }}"><span>{{ i }}</span></th>
<th class="col-week text-center" title="{{ 'Week %s'|get_lang|format(i) }}"><span>{{ i }}</span></th>
{% endfor %}
</tr>
</thead>
Expand Down Expand Up @@ -65,7 +65,7 @@
</div>
{% else %}
<div class="alert alert-warning">
{{ 'ThereIsNotStillASession'|get_lang }}
{{ 'There are no sessions available'|get_lang }}
</div>
{% endif %}
{% endautoescape %}
Expand Down
2 changes: 1 addition & 1 deletion public/main/template/default/auth/hrm_courses.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</div>
<div class="panel-body">
{% if not user.course_list %}
<div class="alert alert-warning">{{ 'UserHasNoCourse'|get_lang }}</div>
<div class="alert alert-warning">{{ 'This user is not subscribed to any course'|get_lang }}</div>
{% else %}
{{ user.course_list }}
{% endif %}
Expand Down
16 changes: 8 additions & 8 deletions public/main/template/default/auth/session_catalog.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="col-md-6">
<form method="post" action="{{ _p.web_self }}?action=display_sessions">
<div class="form-group">
<label>{{ "ByDate"|get_lang }}</label>
<label>{{ 'By date'|get_lang }}</label>
<div class="input-group">
<input type="date" name="date" id="date" title="{{ 'Date'|get_lang }}"
class="form-control" value="{{ search_date }}" readonly>
Expand All @@ -30,9 +30,9 @@
</div>
<div class="col-md-6">
<form method="post" action="{{ _p.web_self }}?action=search_tag">
<label>{{ "ByTag"|get_lang }}</label>
<label>{{ 'By tag'|get_lang }}</label>
<div class="input-group">
<input type="text" name="search_tag" title="{{ 'ByTag'|get_lang }}" class="form-control"
<input type="text" name="search_tag" title="{{ 'By tag'|get_lang }}" class="form-control"
value="{{ search_tag }}"/>
<span class="input-group-btn">
<button class="btn btn--plain" type="submit">
Expand Down Expand Up @@ -72,7 +72,7 @@
<a href="{{ coach.url }}" class="ajax" data-title="{{ coach.name }}">
{{ coach.name }}
</a>
<p>{{ 'SessionGeneralCoach'|get_lang }}</p>
<p>{{ 'Session general coach'|get_lang }}</p>
</div>
{% endfor %}
{% endif %}
Expand Down Expand Up @@ -105,7 +105,7 @@
<div class="btn-group btn-group-sm" role="group">
{% if not item.sequences is empty %}
<a class="btn btn--primary btn-sm" role="button"
title="{{ 'SeeSequences'|get_lang }}" data-toggle="popover"
title="{{ 'See sequences'|get_lang }}" data-toggle="popover"
id="session-{{ item.id }}-sequences">
<i class="fas fa-sitemap"></i>
</a>
Expand All @@ -128,7 +128,7 @@
{% for sequence in item.sequences %}
content += '<p class="lead">{{ sequence.title }}</p>';
{% if sequence.requirements %}
content += '<p><em class="fa fa-sort-amount-desc"></em> {{ 'RequiredSessions'|get_lang }}</p>';
content += '<p><em class="fa fa-sort-amount-desc"></em> {{ 'Required sessions'|get_lang }}</p>';
content += '<ul>';
{% for requirement in sequence.requirements %}
Expand All @@ -141,7 +141,7 @@
{% endif %}
{% if sequence.dependencies %}
content += '<p><em class="fa fa-sort-amount-desc"></em> {{ 'DependentSessions'|get_lang }}</p>';
content += '<p><em class="fa fa-sort-amount-desc"></em> {{ 'Dependent sessions'|get_lang }}</p>';
content += '<ul>';
{% for dependency in sequence.dependencies %}
Expand All @@ -158,7 +158,7 @@
{% endif %}
{% endfor %}
{% else %}
content = "{{ 'NoDependencies'|get_lang }}";
content = "{{ 'No dependencies'|get_lang }}";
{% endif %}
return content;
Expand Down
4 changes: 2 additions & 2 deletions public/main/template/default/blog/blog.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<p>
{{ item.extract }}
<button type="button" class="btn btn-link btn-read-more" data-id="{{ item.id_post }}">
{{ 'ReadMore'|get_lang }}
{{ 'Read more...'|get_lang }}
</button>
</p>
</div>
Expand Down Expand Up @@ -88,7 +88,7 @@
</div>
<div id="task-blog" class="card">
<div class="card-body">
<h5 class="card-title">{{ 'MyTasks'|get_lang }}</h5>
<h5 class="card-title">{{ 'My tasks'|get_lang }}</h5>
{{ task }}
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions public/main/template/default/blog/post.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<div class="card" id="blog-header">
<div class="panel-heading">
<div id="post-action" class="text-right">
<div class="btn-group btn-group-sm" role="group" aria-label="{{ 'Actions'|get_lang }}">
<div class="btn-group btn-group-sm" role="group" aria-label="{{ 'Detail'|get_lang }}">
{{ post.actions }}
</div>
</div>
Expand All @@ -78,7 +78,7 @@
</li>
<li class="comments">
<i class="fa fa-comment-o"
aria-hidden="true"></i> {{ 'XComments'|get_lang|format(post.n_comments) }}
aria-hidden="true"></i> {{ '%s comments'|get_lang|format(post.n_comments) }}
</li>
<li class="autor">
<i class="fa fa-user" aria-hidden="true"></i>
Expand All @@ -102,7 +102,7 @@
{{ post.frm_rating ?: '' }}
</article>
<div class="comments-post">
<h3 class="title">{{ 'XComments'|get_lang|format(post.n_comments) }}</h3>
<h3 class="title">{{ '%s comments'|get_lang|format(post.n_comments) }}</h3>
<div id="list-comments" class="media-list">
{% for item in post.comments %}
{{ nested.comment_template(item) }}
Expand Down Expand Up @@ -142,7 +142,7 @@
</div>
<div id="task-blog" class="card">
<div class="card-body">
<h5 class="card-title">{{ 'MyTasks'|get_lang }}</h5>
<h5 class="card-title">{{ 'My tasks'|get_lang }}</h5>
{{ task }}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% if is_allowed_to_edit %}
<div class="btn-toolbar actions-bar" >
<div class="btn-group">
<a href="{{root}}&amp;action=listing" class="btn btn--plain" title="{{'ImportCSV'|get_lang}}">
<a href="{{root}}&amp;action=listing" class="btn btn--plain" title="{{'Import CSV'|get_lang}}">
<em class="size-32 icon-back"></em>
</a>
</div>
Expand All @@ -25,7 +25,7 @@
{% if type.question %}
<div class="normal-message">
<div>
<strong>{{'QuestionPlan'|get_lang}}</strong>
<strong>{{'Help'|get_lang}}</strong>
</div>
{{type.question}}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<div class="btn-toolbar actions-bar" >
<div class="btn-group">
<a href="{{root}}&amp;action=listing" class="btn" title="{{'ImportCSV'|get_lang}}">
<a href="{{root}}&amp;action=listing" class="btn" title="{{'Import CSV'|get_lang}}">
<em class="size-32 icon-back"></em>
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<script>
$(function() {
$(".btn--primary").click(function() {
$("#loader").html('<div class="wobblebar-loader"></div><p> {{ 'ProcessingImportPleaseDontCloseThisWindowThisActionMayTakeLongTimePlaseWait' | get_lang }} </p>');
$("#loader").html('<div class="wobblebar-loader"></div><p> {{ 'Processing the import... Please don't close this window. This process may take a considerable amount of time. Please be patient.' | get_lang }} </p>');
});
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion public/main/template/default/dashboard/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{% endfor %}
{% else %}
<div class="alert alert-info" role="alert">
{{ 'YouHaveNotEnabledBlocks'| get_lang }}
{{ 'You haven't enabled any block'| get_lang }}
</div>
{% endif %}
</div>
Expand Down
4 changes: 2 additions & 2 deletions public/main/template/default/document/recycle.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<tr>
<th>{{ 'Path' | get_lang }}</th>
<th>{{ 'Size' | get_lang }}</th>
<th>{{ 'Actions' | get_lang }}</th>
<th>{{ 'Detail' | get_lang }}</th>
</tr>
{% for file in files %}
<tr>
Expand All @@ -43,6 +43,6 @@
{% endfor %}
</table>
{% else %}
{{ 'NoData' | get_lang }}
{{ 'No data available' | get_lang }}
{% endif %}

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="question-reading-comprehension-overlay"></div>
{% if exercise_type == 1 %} {# all in one page #}
<button type="button" class="btn btn--plain btn-lg" id="question-{{ id }}-start">
{{ 'StartTimeWindow'|get_lang }}
{{ 'Start'|get_lang }}
<span class="fa fa-play" aria-hidden="true"></span>
</button>
{% endif %}
Expand Down
Loading

0 comments on commit 81f148a

Please sign in to comment.