Skip to content

Commit

Permalink
Merge pull request #497 from clubdego974/dev
Browse files Browse the repository at this point in the history
add translation tags
  • Loading branch information
climu authored Sep 28, 2023
2 parents 999f094 + e934bc2 commit e2e9069
Show file tree
Hide file tree
Showing 136 changed files with 845 additions and 799 deletions.
6 changes: 3 additions & 3 deletions community/templates/community/admin/community_create.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% extends 'league/admin/base.html' %}
{% load bootstrap3 league_tags%}
{% load bootstrap3 league_tags i18n %}
{% block heading %}
<div class="page-header">
<h1> Create a new Guest Community</h1>
<h1> {% trans "Create a new Guest Community" %}</h1>
</div>
{%endblock%}
{% block content %}
Expand All @@ -12,7 +12,7 @@ <h1> Create a new Guest Community</h1>
{% bootstrap_button "Save" button_type="submit" button_class="btn-primary" %}
</form>

<a class="btn btn-danger pull-right" href="/league/admin/">Cancel</a>
<a class="btn btn-danger pull-right" href="/league/admin/">{% trans "Cancel" %}</a>
{% endblock %}
{% block extra_css %}
{{ form.media.css }}
Expand Down
24 changes: 13 additions & 11 deletions community/templates/community/admin/community_list.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
{% extends 'league/admin/base.html' %}
{% load bootstrap3 league_tags%}
{% load bootstrap3 league_tags i18n %}
{% block heading %}
<div class="page-header">
<h1>Guest Communitys</h1>
<h1>{% trans "Guest Communitys" %}</h1>
</div>
{%endblock%}
{% block content %}

<div class="panel panel-default">

<div class="panel-heading">
<h3>List of Communitys
<h3>{% trans "List of Communitys" %}
<a href= "{% url 'community:admin_community_create' %}">
<button class="btn btn-success pull-right clearfix">
{%bootstrap_icon 'plus'%} Create new community
{%bootstrap_icon 'plus'%} {% trans "Create new community" %}
</button>
</a>
</h3>
</div>
<div class="panel-body">
<table id='community-table' class='table table-over' >
<thead>
<th>Name</th>
<th>Close</th>
<th>Private</th>
<th>Admins</th>
<th>Edit</th>
<th>Delete</th>
<th>{% trans "Name" %}</th>
{% comment %}Translators : CLOSE community{% endcomment %}
<th>{% trans "Close" %}</th>
{% comment %}Translators : PRIVATE community{% endcomment %}
<th>{% trans "Private" %}</th>
<th>{% trans "Admins" %}</th>
<th>{% trans "Edit" %}</th>
<th>{% trans "Delete" %}</th>
</thead>
<tbody>
{% for community in communitys%}
Expand All @@ -48,7 +50,7 @@ <h3>List of Communitys
{% csrf_token %}
<input type="hidden" name="action" value="delete_community" />
<button type="submit" class="btn btn-danger btn-xs " onclick="return confirm('Are you sure you want to delete this community?')">
{% bootstrap_icon 'remove-circle' %} Delete
{% bootstrap_icon 'remove-circle' %} {% trans "Delete" %}
</button>
</form>
</td>
Expand Down
6 changes: 3 additions & 3 deletions community/templates/community/admin/user_list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends 'full_width.html' %}
{% load bootstrap3 league_tags community_tags i18n%}
{% load bootstrap3 league_tags community_tags i18n %}
{% block heading %}
<div class="page-header">
<h1> {{community|community_link}} {% trans "members" %}</h1>
Expand All @@ -26,7 +26,7 @@ <h1> {{community|community_link}} {% trans "members" %}</h1>

<div class="panel panel-default">
<div class="panel-heading">
{% blocktrans with name=community.name %}All {{community.name}} members {% endblocktrans %}
{% blocktrans with community_name=community.name %}All {{community_name}} members {% endblocktrans %}
</div>
<table id="user-table" class="table">
<thead>
Expand All @@ -46,7 +46,7 @@ <h1> {{community|community_link}} {% trans "members" %}</h1>
<input type="hidden" name="action" value="quit">
<input type="hidden" name="next" value="{{request.path}}">
<button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('You are about to kick {{user.username}}. Allright?')">
{% bootstrap_icon "remove" %} {% trans "Kick !" %}
{% bootstrap_icon "remove" %} {% trans "Kick !" %}
</button>
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion community/templates/community/calendar_iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<!-- image for socials -->

<title>
{{community.name}} calendar
{% blocktrans with community_name=community.name %}{{community_name}} calendar{% endblocktrans %}
</title>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<link rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/fullcalendar.min.css' />
Expand Down
4 changes: 2 additions & 2 deletions community/templates/community/community_admin_update.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% extends 'league/admin/base.html' %}
{% load bootstrap3 league_tags%}
{% load bootstrap3 league_tags i18n %}
{% block heading %}
<div class="page-header">
<h1> Edit the {{community.name}} community</h1>
<h1> {% blocktrans with community_name=community.name %}Edit the {{community_name}} community{% endblocktrans %}</h1>
</div>
{%endblock%}
{% block content %}
Expand Down
14 changes: 7 additions & 7 deletions community/templates/community/community_list.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{% extends 'full_width.html' %}
{% load bootstrap3 community_tags forum_markup_tags%}
{% block title %}OSR - Communities {% endblock %}
{% load bootstrap3 community_tags forum_markup_tags i18n %}
{% block title %}OSR - {% trans "Communities" %} {% endblock %}
{% block heading %}
<div class="page-header">
<h1> List of all OSR communities</h1>
<h1> {% trans "List of all OSR communities" %}</h1>
</div>
{%endblock%}

{% block content %}
<div class="well">
<p>The Open Study Room have and always will be a project to help online go community organising and setting up go leagues.
With that in mind, we are very happy to host some league for other friendly go community.</p>
<p>Below is the list of the public communities OSR is hosting. Joining a community will allow you to play in their leagues.</p>
<p>If you want your community to run some leagues using the OSR league system, contact us at [email protected].</p>
<p>{% trans "The Open Study Room have and always will be a project to help online go community organising and setting up go leagues. " %}
{% trans "With that in mind, we are very happy to host some league for other friendly go community." %}</p>
<p>{% trans "Below is the list of the public communities OSR is hosting. Joining a community will allow you to play in their leagues." %}</p>
<p>{% trans "If you want your community to run some leagues using the OSR league system, contact us at [email protected]." %}</p>
</div>
{% for community in communitys %}
<div class="panel panel-default">
Expand Down
24 changes: 13 additions & 11 deletions community/templates/community/community_page.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends 'full_width.html' %}
{% load bootstrap3 league_tags static forum_markup_tags i18n tz%}
{% load bootstrap3 league_tags static forum_markup_tags i18n tz %}
{% block title %}OSR - {{community.name}}{% endblock %}
{% block extra_head_js %}
{% get_current_language as LANGUAGE_CODE %}
Expand Down Expand Up @@ -79,7 +79,7 @@ <h3> {{community.name}} ({{community.slug}})
<button type="submit" class="btn btn-success pull-right" onclick="return confirm('
{% blocktrans with name=community.name %}You are about to join the {{name}} community. Allright? {% endblocktrans %}
')">
{% bootstrap_icon "ok" %} {% trans "Join" %} {{community.name}} !
{% bootstrap_icon "ok" %} {% blocktrans with community_name=community.name %}Join {{community_name}} !{% endblocktrans %}
</button>
</div>
</form>
Expand All @@ -90,8 +90,10 @@ <h3> {{community.name}} ({{community.slug}})
<div class="form-group">
<input type="hidden" name="action" value="join">
<input type="hidden" name="next" value="{{request.path}}">
<button type="submit" class="btn btn-danger pull-right" onclick="return confirm('You are about to quit the {{community.name}} community. Allright?')">
{% bootstrap_icon "remove" %} {% trans "Quit" %} {{community.name}} !
<button type="submit" class="btn btn-danger pull-right" onclick="return confirm('
{% blocktrans with name=community.name %}You are about to quit the {{name}} community. Allright?{% endblocktrans %}
')">
{% bootstrap_icon "remove" %} {% blocktrans with community_name=community.name %}Quit {{community_name}} !{% endblocktrans %}
</button>
</div>
</form>
Expand All @@ -114,7 +116,7 @@ <h3> {{community.name}} ({{community.slug}})

<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#leagues">{% trans "Leagues" %}</a></li>
<li><a data-toggle="tab" href="#tournaments">{% trans "tournaments" %}</a></li>
<li><a data-toggle="tab" href="#tournaments">{% trans "Tournaments" %}</a></li>
<li><a data-toggle="tab" href="#games" id="games_tab">{% trans "Games" %}</a></li>
<li><a data-toggle="tab" href="#members">{% trans "Members" %}</a></li>
<li><a data-toggle="tab" href="#activity">{% trans "Activity" %}</a></li>
Expand All @@ -128,7 +130,7 @@ <h3> {{community.name}} ({{community.slug}})
<div id="leagues" class="panel panel-default tab-pane fade in active">
<div class="panel-heading clearfix">
<h3>
{% blocktrans with name=community.name %}All {{name}} leagues {% endblocktrans %}
{% blocktrans with community_name=community.name %}All {{community_name}} leagues {% endblocktrans %}
{% if admin %}
<a href="{% url 'community:create_league' community.pk %}">
<button class="btn btn-success pull-right">
Expand All @@ -145,7 +147,7 @@ <h3>

<div id="games" class="panel panel-default tab-pane fade in">
<div class="panel-heading">
<h3>{{community.name}} {% trans "Games" %}</h3>
<h3>{% blocktrans with community_name=community.name %}{{community_name}} games{% endblocktrans %}</h3>
</div>
<div class ="row">
<div class="col-md-4">
Expand All @@ -171,7 +173,7 @@ <h3>{{community.name}} {% trans "Games" %}</h3>
<div id="tournaments" class="panel panel-default tab-pane fade">
<div class="panel-heading clearfix">
<h3>
{% blocktrans with name=community.name %}All {{name}} tournaments {% endblocktrans %}
{% blocktrans with community_name=community.name %}All {{community_name}} tournaments {% endblocktrans %}
{% if admin %}
<a href="{% url 'community:create_tournament' community.pk %}">
<button class="btn btn-success pull-right">
Expand All @@ -189,7 +191,7 @@ <h3>

<div id="members" class="panel panel-default tab-pane fade">
<div class="panel-heading clearfix">
<h3> {% blocktrans with name=community.name %}All {{name}} members {% endblocktrans %} </h3>
<h3> {% blocktrans with community_name=community.name %}All {{community_name}} members {% endblocktrans %} </h3>
{% if admin %}
<div class="pull-right">
{% trans "Invite a user" %}
Expand Down Expand Up @@ -217,7 +219,7 @@ <h3> {% blocktrans with name=community.name %}All {{name}} members {% endblocktr
Categories
<a href="{%url 'community:create_category' community.pk %}">
<button class="btn btn-xs btn-success pull-right clearfix">
{%bootstrap_icon 'plus'%} Create a new category
{%bootstrap_icon 'plus'%} {% trans "Create a new category" %}
</button>
</a>
</legend>
Expand All @@ -227,7 +229,7 @@ <h3> {% blocktrans with name=community.name %}All {{name}} members {% endblocktr
Events
<a href="{%url 'community:create_event' community.pk %}">
<button class="btn btn-xs btn-success pull-right clearfix">
{%bootstrap_icon 'plus'%} Create a new event
{%bootstrap_icon 'plus'%} {% trans "Create a new event" %}
</button>
</a>
</legend>
Expand Down
8 changes: 4 additions & 4 deletions community/templates/community/community_ranking.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% extends 'league/admin/base.html' %}
{% load bootstrap3 league_tags%}
{% load bootstrap3 league_tags i18n %}

{% block heading %}
<div class="page-header">
<h1>{{ community.name }} - ranking</h1>
<h1>{{ community.name }} - {% trans "Ranking" %}</h1>
</div>
{%endblock%}

Expand All @@ -12,10 +12,10 @@ <h1>{{ community.name }} - ranking</h1>
<div class="panel panel-default">

<div class="panel-heading">
<h3>Generate league ranking file</h3>
<h3>{% trans "Generate league ranking file" %}</h3>
</div>
<div class="panel-body">
<p>Select a period when the leagues have been played</p>
<p>{% trans "Select a period when the leagues have been played" %}</p>
<br/>
<form action="{% url 'community:community_ranking' community.slug %}" method="POST">
{% csrf_token %}
Expand Down
6 changes: 3 additions & 3 deletions community/templates/community/community_update.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% extends 'full_width.html' %}
{% load bootstrap3 league_tags community_tags%}
{% load bootstrap3 league_tags community_tags i18n %}
{% block heading %}
<div class="page-header">
<h1> Edit the {{community|community_link}} community</h1>
<h1> {% blocktrans with community_link=community|community_link %}Edit the {{community_link}} community{% endblocktrans %}</h1>
</div>
{%endblock%}
{% block content %}
Expand All @@ -12,7 +12,7 @@ <h1> Edit the {{community|community_link}} community</h1>
</form>
<a href="{% url 'community:community_page' community.slug %}">
<button class="btn btn-danger pull-right">
Cancel
{% trans "Cancel" %}
</button>
</a>

Expand Down
8 changes: 4 additions & 4 deletions community/templates/community/create_league.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% extends 'full_width.html' %}
{% load bootstrap3 league_tags%}
{% block title %}{{community.name}} - Create new league{% endblock %}
{% load bootstrap3 league_tags i18n %}
{% block title %}{{community.name}} - {% trans "Create new league" %}{% endblock %}
{% block heading %}
<div class="page-header">
<h1>{{community.name}} - Create new league</h1>
<h1>{{community.name}} - {% trans "Create new league" %}</h1>
</div>
{%endblock%}
{% block content %}
<div class="row">
<div class="col-md-4">
<legend>Create new league </legend>
<legend>{% trans "Create new league" %} </legend>
<form action="" method="POST">{% csrf_token %}
{% bootstrap_form form %}
{% bootstrap_button "Save" button_type="submit" button_class="btn-primary" %}
Expand Down
10 changes: 5 additions & 5 deletions community/templates/community/includes/members_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ <h4 class="modal-title" id="userLeagueModalTitle"></h4>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="userLeagueModalSave">Save changes</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" id="userLeagueModalSave">{% trans "Save changes" %}</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">{% trans "Close" %}</button>
</div>
</div>
</div>
Expand All @@ -36,15 +36,15 @@ <h4 class="modal-title" id="userLeagueModalTitle"></h4>
<table id="members-table" class="table">
<thead>
<th>{% trans "username" %}</th>
<th>OGS {% trans "username" %}</th>
<th>KGS {% trans "username" %} </th>
<th>{% trans "OGS username" %}</th>
<th>{% trans "KGS username" %} </th>
{% if admin %}
<th> EGF ID </th>
<th> FFG ID </th>
<th> Discord </th>
<th>{% trans "leagues" %}</th>
<th>{% trans "kick out" %}</th>
<th>admin</th>
<th>{% trans "admin" %}</th>
{% endif %}
</thead>
<tbody>
Expand Down
4 changes: 2 additions & 2 deletions community/templates/community/includes/new_user_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<table class="table">
<thead>
<th>{% trans "username" %}</th>
<th> OGS {% trans "username" %} </th>
<th> KGS {% trans "username" %} </th>
<th> {% trans "OGS username" %} </th>
<th> {% trans "KGS username" %} </th>
<th> {% trans "reject" %}</th>
<th> {% trans "accept" %}</th>

Expand Down
4 changes: 2 additions & 2 deletions community/templates/community/ranking_table.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
{% load tz static league_tags bootstrap3 i18n %}
{% load datatable_tags %}

{% block title %}Ranking{% endblock %}
{% block title %}{% trans "Ranking" %}{% endblock %}
{% block content %}

<h1>{{community.slug}} player's rankings</h1>
<h1>{% blocktrans with community_slug=community.slug %}{{community_slug}} player's rankings{% endblocktrans %}</h1>
{% get_meijin as meijin %}

<div class="container">
Expand Down
10 changes: 5 additions & 5 deletions fullcalendar/templates/fullcalendar/admin_cal_event_list.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% extends 'league/admin/base.html' %}
{% load bootstrap3 league_tags static tz%}
{% block title %}OSR league admin - Events list{% endblock %}
{% load bootstrap3 league_tags static tz l10n i18n %}
{% block title %}{% trans "OSR league admin" %} - {% trans "Events list" %}{% endblock %}
{% block heading %}
<div class="page-header">
<h1>Events list</h1>
<h1>{% trans "Events list" %}</h1>
</div>
{%endblock%}

Expand All @@ -12,7 +12,7 @@ <h1>Events list</h1>
Categories
<a href="{%url 'calendar:create_category'%}">
<button class="btn btn-xs btn-success pull-right clearfix">
{%bootstrap_icon 'plus'%} Create a new category
{%bootstrap_icon 'plus'%} {% trans "Create a new category" %}
</button>
</a>
</legend>
Expand All @@ -23,7 +23,7 @@ <h1>Events list</h1>
Events
<a href="{%url 'calendar:create_cal_event'%}">
<button class="btn btn-xs btn-success pull-right clearfix">
{%bootstrap_icon 'plus'%} Create a new event
{%bootstrap_icon 'plus'%} {% trans "Create a new event" %}
</button>
</a>
</legend>
Expand Down
Loading

0 comments on commit e2e9069

Please sign in to comment.