From c6597a12886d6c69af0b28fddabe70417f420295 Mon Sep 17 00:00:00 2001 From: clubdego974 Date: Fri, 14 Jul 2023 09:45:54 +0400 Subject: [PATCH 1/9] add translation tags Only for first two files, before all others --- league/templates/league/account.html | 50 +++++++++---------- league/templates/league/account_activity.html | 4 +- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/league/templates/league/account.html b/league/templates/league/account.html index 93209991..4e989b3a 100644 --- a/league/templates/league/account.html +++ b/league/templates/league/account.html @@ -28,7 +28,7 @@ {% block body_class %}user{% endblock %} -{% block title %}{% if user == request.user %}My{% else %}{{user.username}}{% endif %} profile{% endblock %} +{% block title %}{% if user == request.user %}{% trans "My profile" %}{% else %}{% blocktrans with username=user.username %}{{username}} profile{% endblocktrans %}{% endif %}{% endblock %} {% block heading %} {% get_meijin as meijin %} @@ -37,7 +37,7 @@

{% if user == meijin %} {% endif %} - {% if user == request.user %}My{% else %}{{user.username}}{% endif %} profile + {% if user == request.user %}{% trans "My profile" %}{% else %}{% blocktrans with username=user.username %}{{username}} profile{% endblocktrans %}{% endif %}

@@ -49,8 +49,8 @@

{% if user == meijin %}
-

{{user.username}} is OSR Meijin!

- He earned respect from all Open Study Room and a teaching game with Alexander Dinerchtein (3p). +

{% blocktrans with username=user.username %}{{username}} is OSR Meijin !{% endblocktrans %}

+ {% trans "He earned respect from all Open Study Room and a teaching game with Alexander Dinerchtein (3p)." %}"
{% endif %}
@@ -59,7 +59,7 @@

{% if user.profile.country %} {% endif %} - {{user.username}} infos + {% blocktrans with username=user.username %}{{username}} infos{% endblocktrans %} {% if request.user == user %} {% endif %} @@ -75,23 +75,23 @@

{% if won_divisions or won_tournaments %}
-

Trophys

+

{% trans "Trophys" %}

{% if won_divisions %}
-

Leagues

+

{% trans "Leagues" %}

{% for division in won_divisions %} -

{{division.league_event.end_time|date}}: Winner of {{division|division_link}}

+

{{division.league_event.end_time|date}}: {% blocktrans with division=division|division_link %}Winner of {{division}}{% endblocktrans %}

{% endfor %}
{% endif %} {% if won_tournaments %}
-

Tournaments

+

{% trans "Tournaments" %}

{% for tournament in won_tournaments %} -

{{tournament.end_time|date}}: Winner of {{tournament.name}}

+

{{tournament.end_time|date}}: {% trans "Winner of tournament" %} {{tournament.name}}

{% endfor %}
{% endif %} @@ -102,11 +102,11 @@

Tournaments

{% if players %}
-

{{user.username}} results of passed and open leagues

+

{% blocktrans with username=user.username %}{{username}} results of passed and open leagues{% endblocktrans %}

{% endblock %} @@ -76,8 +78,8 @@
- -

Latest news in our blog

+{% comment %}Translators : Latest news in our ... blog{% endcomment %} +

{% trans "Latest news in our" %} blog

{% for entry in entries %} @@ -137,7 +139,8 @@

-

In our forums

+ {% comment %}Translators : In our ... forums (plural) {% endcomment %} +

{% trans "In our" %} forums

{% last_topics request as topics %} {% for topic in topics %} @@ -170,12 +173,12 @@
-

OSR is made possible thanks to the support from friends and partners

+

{% trans "OSR is made possible thanks to the support from friends and partners" %}

{% sponsors %}
-

You can help OSR too!

+

{% trans "You can help OSR too!" %}

diff --git a/home/templates/home/includes/front_boxes.html b/home/templates/home/includes/front_boxes.html index 63ec2c9b..2b5515a3 100644 --- a/home/templates/home/includes/front_boxes.html +++ b/home/templates/home/includes/front_boxes.html @@ -1,36 +1,37 @@ +{% load i18n %}

- Study Go

+ {% trans "Study Go" %}
-

We provide a place to study go together. Review your games, study pro games, attend lectures, and more

- Join now ! +

{% trans "We provide a place to study go together. Review your games, study pro games, attend lectures, and more." %}

+ {% trans "Join now !" %}
-

Play Go

+

{% trans "Play Go" %}

-

Our league system allow you to play long serious games in a friendly yet competitive environement.

- Check out our league +

{% trans "Our league system allow you to play long serious games in a friendly yet competitive environement." %}

+ {% trans "Check out our league" %}
-

Together

+

{% trans "Together" %}

-

Run by and for an international go community. We would be delighted to hear your ideas or feedback.

- Visit our forums +

{% trans "Run by and for an international go community. We would be delighted to hear your ideas or feedback." %}

+ {% trans "Visit our forums" %}
diff --git a/home/templates/home/includes/front_boxes_members.html b/home/templates/home/includes/front_boxes_members.html index 2b48abef..f1f5d5fb 100644 --- a/home/templates/home/includes/front_boxes_members.html +++ b/home/templates/home/includes/front_boxes_members.html @@ -1,23 +1,23 @@ -{% load league_tags %} +{% load league_tags l10n i18n %}
{% if should_join %} -

Join a league

+

{% trans "Join a league" %}

{% else %} -

Play, chat and study now in our discord!

+

{% blocktrans %}Play, chat and study now in our discord!{% endblocktrans %}

{% endif %}
{% if should_join %} -

You can easily join a league in the league pages.

-

See how our leagues works here.

+

{% blocktrans %}You can easily join a league in the league pages.{% endblocktrans %}

+

{% blocktrans %}See how our leagues works here.{% endblocktrans %}

{% else %} {% if online_opponents %}

- Join the motivated OSR-community in our discord channel. Chat, arrange games and get your games reviewed. + {% blocktrans %}Join the motivated OSR-community in our discord channel. Chat, arrange games and get your games reviewed.{% endblocktrans %}

-

Your opponents online now:

+

{% trans "Your opponents online now:" %}

{% for user in online_opponents %} @@ -31,7 +31,7 @@

Play, chat and study now in our
{% if availables %} {% for available in availables %} -

{{available.user|user_link}} wants to play on the {{available.start|date:"j b"}} {{available.start|time}} -> {{available.end|time}}

+

{% blocktrans with available_user=available.user|user_link available_start_date=available.start|date:"j b" available_start_time=available.start|time available_end_time=available.end|time %}{{available_user}} wants to play on the {{available_start_date}} {{available_start_time}} -> {{available_end_time}}{% endblocktrans %}

{% endfor %} {% endif %} {% if not me_available %} -

Tell others when you are available so they can schedule games with you.

+

{% trans "Tell others when you are available so they can schedule games with you." %}

{% endif %} {% if game_requests > 0 %} -

You have {{game_requests}} game requests.

+

{% blocktrans with game_requests=game_requests %}You have {{game_requests}} game requests.{% endblocktrans %}

{% endif %} -

Manage all this here

+ {% comment %}Translators : this sentence append just after 'You have 'game_requests' game requests'{% endcomment %} +

{% blocktrans %}Manage all this here {% endblocktrans %}

-

Click here to see various way you can help OSR.

-

You can also just push the donate button.

+

{% blocktrans %}Click here to see various way you can help OSR.{% endblocktrans %}

+

{% trans "You can also just push the donate button." %}

diff --git a/home/templates/home/includes/homepage_intro.html b/home/templates/home/includes/homepage_intro.html index 3fbd6301..50045c6e 100644 --- a/home/templates/home/includes/homepage_intro.html +++ b/home/templates/home/includes/homepage_intro.html @@ -1,30 +1,31 @@ +{% load i18n %}
-

Let's get better together

+

{% trans "Let's get better together" %}

Study Go

-

Ask stronger players to help review your games, study pro games or tsumego. We also organise lectures with strong teachers. The global idea is you get taught by the stronger while you teach the weaker.

-

See our study schedule in our calendar

+

{% trans "Ask stronger players to help review your games, study pro games or tsumego. We also organise lectures with strong teachers. The global idea is you get taught by the stronger while you teach the weaker." %}

+

{% trans "See our study schedule in our calendar" %}

-

Play Go

-

Playing long serious games is very important to improve. Our league system encourages you to do so in a friendly yet competitive environment. On top of that we reward our winners with cool prizes every month.

-

Check out our leagues

+

{% trans "Play Go" %}

+

{% trans "Playing long serious games is very important to improve. Our league system encourages you to do so in a friendly yet competitive environment. On top of that we reward our winners with cool prizes every month." %}

+

{% trans "Check out our leagues" %}

-

Together

-

We are a friendly active online community of Go players from all around the world. OSR is run by volunteers, community driven and all free for everyone to come enjoy the beautiful game of Go.

-

Come chat with us in our Discord

+

{% trans "Together" %}

+

{% trans "We are a friendly active online community of Go players from all around the world. OSR is run by volunteers, community driven and all free for everyone to come enjoy the beautiful game of Go." %}

+

{% trans "Come chat with us in our Discord" %}

@@ -33,7 +34,7 @@

Together

-Whether you are a beginner just learning the rules or a strong player, OSR can help your Go. + {% trans "Whether you are a beginner just learning the rules or a strong player, OSR can help your Go." %}"

-

Join now !

+

{% trans "Join now !" %}

diff --git a/home/templates/home/includes/prev_next.html b/home/templates/home/includes/prev_next.html index 34100151..5ed7d0d8 100644 --- a/home/templates/home/includes/prev_next.html +++ b/home/templates/home/includes/prev_next.html @@ -1,4 +1,4 @@ -{% load wagtailcore_tags %} +{% load wagtailcore_tags i18n %} {% if self.depth > 3 %}{# Previous and next buttons are not relevant for the home page and categories #} {% with prev=self.get_prev_siblings.live.first next=self.get_next_siblings.live.first %} @@ -7,13 +7,13 @@ diff --git a/home/templates/home/includes/related_links.html b/home/templates/home/includes/related_links.html index 467b880c..873776a3 100644 --- a/home/templates/home/includes/related_links.html +++ b/home/templates/home/includes/related_links.html @@ -1,10 +1,11 @@ +{% load i18n %} {% if related_links %}
-

Related links

+

{% trans "Related links" %}

    diff --git a/home/templates/home/includes/search_box.html b/home/templates/home/includes/search_box.html index 568f4bb4..ce614d4f 100644 --- a/home/templates/home/includes/search_box.html +++ b/home/templates/home/includes/search_box.html @@ -1,3 +1,4 @@ +{% load i18n %}
    @@ -5,7 +6,7 @@
    diff --git a/home/templates/home/includes/we_provide.html b/home/templates/home/includes/we_provide.html index 6d8a0d9f..6e821441 100644 --- a/home/templates/home/includes/we_provide.html +++ b/home/templates/home/includes/we_provide.html @@ -1,4 +1,6 @@ -

    We provide

    +{% load i18n %} +{% comment %}Translators : 'we provide' section, on the home page{% endcomment %} +

    {% trans "We provide" %}

    @@ -7,8 +9,8 @@

    We provide

    -

    OGS/KGS/Discord integration

    -

    See what opponents are online on those platform to find a game. Play your league games, write #OSR during the chat and that's it. Our website will collect it automatically.

    +

    {% trans "OGS/KGS/Discord integration" %}

    +

    {% blocktrans %}See what opponents are online on those platform to find a game. Play your league games, write #OSR during the chat and that's it. Our website will collect it automatically.{% endblocktrans %}

    @@ -19,8 +21,8 @@

    OGS/KGS/Discord integration

-

Teaching for everyone

-

Do you prefer a simul game with a strong dan? A lecture on a topic of your choosing? A teaching game? Let us know! We set it up with our teachers, record it and upload to our youtube channel.

+

{% trans "Teaching for everyone" %}

+

{% blocktrans %}Do you prefer a simul game with a strong dan? A lecture on a topic of your choosing? A teaching game? Let us know! We set it up with our teachers, record it and upload to our youtube channel.{% endblocktrans %}

@@ -35,8 +37,8 @@

Teaching for everyone

-

Prizes

-

Win a teaching game with a professional player, a game review by a strong dan or 10€ gift certificate at Guo Juan's internet go school. All that just by playing go!

+

{% trans "Prizes" %}

+

{% blocktrans %}Win a teaching game with a professional player, a game review by a strong dan or 10€ gift certificate at Guo Juan's internet go school. All that just by playing go!{% endblocktrans %}

@@ -47,8 +49,8 @@

Prizes

-

Plan your games

-

Plan your game in advance with your opponent using our game planner. It's easy to use and it adapts to timezones automatically.

+

{% trans "Plan your games" %}

+

{% blocktrans %}Plan your game in advance with your opponent using our game planner. It's easy to use and it adapts to timezones automatically.{% endblocktrans %}

From b5178cdbfd17c96cd4e49bdd1bbd80f22b579702 Mon Sep 17 00:00:00 2001 From: clubdego974 Date: Tue, 15 Aug 2023 08:12:13 +0400 Subject: [PATCH 5/9] Translation tags in "league\templates" --- league/templates/emails/email_confirm.txt | 5 +++ league/templates/emails/no_games.txt | 6 +++- league/templates/emails/welcome.txt | 6 +++- league/templates/league/admin/base.html | 15 ++++---- .../league/admin/create_all_profiles.html | 18 +++++----- .../league/admin/create_forfeit.html | 12 +++---- league/templates/league/admin/dashboard.html | 30 ++++++++-------- .../league/admin/download_ffg_tou.html | 6 ++-- league/templates/league/admin/event_list.html | 33 ++++++++++-------- league/templates/league/admin/events.html | 12 +++---- league/templates/league/admin/populate.html | 34 +++++++++---------- league/templates/league/admin/sgf_edit.html | 28 +++++++-------- league/templates/league/admin/sgf_list.html | 26 +++++++------- .../league/admin/update_all_profiles.html | 20 +++++------ .../admin/update_all_sgf_check_code.html | 22 ++++++------ .../league/admin/update_wont_play.html | 8 ++--- league/templates/league/admin/upload_sgf.html | 28 +++++++-------- .../league/admin/user_send_mail.html | 6 ++-- league/templates/league/admin/users.html | 20 +++++------ league/templates/league/archive.html | 30 ++++++++-------- league/templates/league/archives_games.html | 2 +- league/templates/league/archives_players.html | 29 ++++++++-------- league/templates/league/base.html | 4 +-- .../league/division_update_form.html | 6 ++-- league/templates/league/event.html | 15 ++++---- league/templates/league/games.html | 8 ++--- .../league/includes/admin_edit_divisions.html | 16 ++++----- .../league/includes/admin_league_form.html | 10 +++--- .../templates/league/includes/admin_nav.html | 11 +++--- league/templates/league/includes/event.html | 9 ++--- .../templates/league/includes/game_info.html | 4 +-- .../league/includes/game_table_view.html | 8 ++--- league/templates/league/includes/games.html | 2 +- .../league/includes/games_iframe.html | 10 +++--- league/templates/league/includes/league.html | 7 ++-- .../includes/no_profile_users_table.html | 14 ++++---- league/templates/league/includes/results.html | 5 +-- .../league/includes/results_ladder.html | 6 ++-- .../league/includes/results_league.html | 16 ++++----- .../templates/league/includes/sgf_errors.html | 10 +++--- .../templates/league/includes/user_infos.html | 10 +++--- .../league/includes/user_infos_member.html | 12 +++---- .../templates/league/includes/user_nav.html | 10 +++--- league/templates/league/includes/vs.html | 4 +-- .../league/leagueevent_create_form.html | 12 +++---- .../league/leagueevent_update_form.html | 24 ++++++------- league/templates/league/players.html | 2 +- league/templates/league/profile.html | 4 +-- league/templates/league/profile_update.html | 8 ++--- league/templates/league/random_game.html | 8 ++--- league/templates/league/results.html | 10 +++--- league/templates/league/results_iframe.html | 16 ++++----- league/templates/league/timezone_update.html | 16 ++++----- 53 files changed, 359 insertions(+), 334 deletions(-) diff --git a/league/templates/emails/email_confirm.txt b/league/templates/emails/email_confirm.txt index bb83e702..9bc7415e 100644 --- a/league/templates/emails/email_confirm.txt +++ b/league/templates/emails/email_confirm.txt @@ -1,3 +1,6 @@ +{% load l10n i18n tz %} +{% localize off %} +{% language 'en' %} Hello {{user.username}}, You registered on Open Study Room website on the {{user.date_joined | date:"d/m/Y"}} but you didn't confirm your email since then. @@ -9,3 +12,5 @@ You are more than welcome to register again. If you do, please don't forget to c Feel free to contact us at openstudyroom@gmail.com if you have any issue or question. openstudyroom.org +{% endlanguage %} +{% endlocalize %} diff --git a/league/templates/emails/no_games.txt b/league/templates/emails/no_games.txt index 72cf9fec..f3b40faf 100644 --- a/league/templates/emails/no_games.txt +++ b/league/templates/emails/no_games.txt @@ -1,8 +1,12 @@ +{% load i18n tz %} +{% localize off %} +{% language 'en' %} Hello {{user.username}}, - We noticed your registration, however we require that each user has played at least one game on KGS or OGS. We can see that you have not yet played any games there under the handle '{{user.kgs_username}}'(KGS) {%if user.profile.ogs_id > 0%} or '{{user.profile.ogs_username}}'(OGS){% endif %}. We do this to make sure that you are really a go player and not a robot. Please feel free to register again when you have played a game. openstudyroom.org +{% endlanguage %} +{% endlocalize %} diff --git a/league/templates/emails/welcome.txt b/league/templates/emails/welcome.txt index 1a8db77b..2890c7c3 100644 --- a/league/templates/emails/welcome.txt +++ b/league/templates/emails/welcome.txt @@ -1,4 +1,6 @@ -{% load i18n %} +{% load i18n tz %} +{% localize off %} +{% language 'en' %} Hello and welcome to the Open Study Room, {{user.username}}! You have just been accepted as an OSR member, and we are glad to have you onboard. @@ -11,3 +13,5 @@ You can now also use our forums and join our Discord server at https://discord.g Looking forward to see you there! openstudyroom.org +{% endlanguage %} +{% endlocalize %} diff --git a/league/templates/league/admin/base.html b/league/templates/league/admin/base.html index cdf508f3..c38ae1be 100644 --- a/league/templates/league/admin/base.html +++ b/league/templates/league/admin/base.html @@ -1,6 +1,7 @@ +{% load i18n %} {% extends "full_width.html" %} -{% block title %}OSR league admin{% endblock %} +{% block title %}{% trans "OSR league admin" %}{% endblock %} {%block page_intro %} {% if request.user.is_league_admin %} @@ -9,13 +10,13 @@ diff --git a/league/templates/league/admin/create_all_profiles.html b/league/templates/league/admin/create_all_profiles.html index 27e6a432..c9d72e00 100644 --- a/league/templates/league/admin/create_all_profiles.html +++ b/league/templates/league/admin/create_all_profiles.html @@ -2,24 +2,24 @@ {% load wagtailcore_tags %} {% load league_tags %} {% load bootstrap3 %} - -{% block title %}Update all sgfs{% endblock %} +{% load i18n %} +{% block title %}{% trans "Update all sgfs" %}{% endblock %} {% block heading %} {%endblock%} {% block content %}
-

Dear admin.

-

Please pay attention to this message and don't proceed before reading

-

In this page, you will create a profile for all users that don't have one.

-

If you don't understand what this is about, you should just leave this page.

-

If you have any doubt what so ever about wether you should continue or not, you should leave this page.

+

{% trans "Dear admin," %}

+

{% trans "Please pay attention to this message and don't proceed before reading." %}

+

{% trans "In this page, you will create a profile for all users that don't have one." %}

+

{% trans "If you don't understand what this is about, you should just leave this page." %}

+

{% trans "If you have any doubt what so ever about wether you should continue or not, you should leave this page." %}

diff --git a/league/templates/league/admin/create_forfeit.html b/league/templates/league/admin/create_forfeit.html index 575b53b6..4ccb47f5 100644 --- a/league/templates/league/admin/create_forfeit.html +++ b/league/templates/league/admin/create_forfeit.html @@ -1,10 +1,10 @@ {% extends 'full_width.html' %} -{% load bootstrap3 league_tags %} +{% load bootstrap3 league_tags i18n %} {% block title %} {{division.name}} edit {% endblock %} {% block heading %} {%endblock%} @@ -14,7 +14,7 @@

{{division.name}} - create forfeit

{% csrf_token %}
- + {% for player in division.get_results %} {% endfor %}
- +
diff --git a/league/templates/league/admin/dashboard.html b/league/templates/league/admin/dashboard.html index 7761fe3c..778a590f 100644 --- a/league/templates/league/admin/dashboard.html +++ b/league/templates/league/admin/dashboard.html @@ -1,9 +1,9 @@ {% extends "league/admin/base.html" %} -{% load wagtailcore_tags bootstrap3 community_tags %} -{% block title %}OSR league admin{% endblock %} +{% load wagtailcore_tags bootstrap3 community_tags l10n i18n %} +{% block title %}{% trans "OSR league admin" %}{% endblock %} {% block heading %} {%endblock%} {% block content %} @@ -13,20 +13,20 @@

Dashboard

{% include 'league/includes/no_profile_users_table.html' %} {% endif %}
-

List of new users

+

{% trans "List of new users" %}

- - - - - - - - - - + + + + + + + + + + {% for new_user in new_users %} @@ -87,7 +87,7 @@

Dashboard

- +

{% trans "Admin board" %} {% trans "Create new blog post" %}

diff --git a/league/templates/league/admin/download_ffg_tou.html b/league/templates/league/admin/download_ffg_tou.html index e4c5ac14..511f6319 100644 --- a/league/templates/league/admin/download_ffg_tou.html +++ b/league/templates/league/admin/download_ffg_tou.html @@ -1,12 +1,12 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 league_tags i18n l10n tz%} +{% load bootstrap3 league_tags i18n l10n tz %} -{% block title %}OSR league admin - Leagues{% endblock %} +{% block title %}{% trans "OSR league admin" %} - {% trans "Leagues" %}{% endblock %} {% block heading %} {%endblock%} {% block content %} diff --git a/league/templates/league/admin/event_list.html b/league/templates/league/admin/event_list.html index 6f311e38..38c6be7d 100644 --- a/league/templates/league/admin/event_list.html +++ b/league/templates/league/admin/event_list.html @@ -3,25 +3,28 @@ {% language 'en' %}
usernameemaildate joinedkgs_usernameogs_usernameCommunities interestDeleteemailNo gamesAccept{% trans "username" %}{% trans "email" %}{% trans "date joined" %}{% trans "KGS username" %}{% trans "OGS username" %}{% trans "Communities interest" %}{% trans "Delete" %}{% trans "email" %}{% trans "No games" %}{% trans "Accept" %}
- - - - - - - - - - - - - + + {% comment %}Translators : public (league) {% endcomment %} + + + + + + + + + + + + {% for event in events %} - - + {% comment %}Translators : OPEN / CLOSED (league) {% endcomment %} + + {% comment %}Translators : PUBLIC / PRIVATE (league) {% endcomment %} + diff --git a/league/templates/league/admin/events.html b/league/templates/league/admin/events.html index 8426e15e..537d5ad3 100644 --- a/league/templates/league/admin/events.html +++ b/league/templates/league/admin/events.html @@ -1,22 +1,22 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 league_tags%} -{% block title %}OSR league admin - league{% endblock %} +{% load bootstrap3 league_tags l10n i18n %} +{% block title %}{% trans "OSR league admin" %} - {% trans "League" %}{% endblock %} {% block heading %} {%endblock%} {% block content %}

- List of OSR leagues + {% trans "List of OSR leagues" %}

- Community leagues are blue
+ {% trans "Community leagues are blue" %}
{% include "league/admin/event_list.html" with events=events %}
diff --git a/league/templates/league/admin/populate.html b/league/templates/league/admin/populate.html index 1ffe58a3..e79870a3 100644 --- a/league/templates/league/admin/populate.html +++ b/league/templates/league/admin/populate.html @@ -1,27 +1,27 @@ {% extends "full_width.html" %} -{% load bootstrap3 league_tags%} -{% block title %}OSR league admin{% endblock %} +{% load bootstrap3 league_tags i18n %} +{% block title %}{% trans "OSR league admin" %}{% endblock %} {% block content %} {% csrf_token %}
-

Rollover overview

+

{% trans "Rollover overview" %}"/h4>

-

You are populating {{to_event}} with players from {{from_event}}

-

Out of {{from_event.number_players}} players, {{from_event.number_actives_players}} were active and {{from_event.number_inactives_players}} will get drop.

-

The minimum number of games to stay in the league is set to {{from_event.min_matchs}}

+

{% blocktrans with to_event=to_event from_event=from_event %}You are populating {{to_event}} with players from {{from_event}} {% endblocktrans %}

+

{% blocktrans with from_event_number_players=from_event.number_players from_event_number_actives_players=from_event.number_actives_players from_event_number_inactives_players=from_event.number_inactives_players %}Out of {{from_event_number_players}} players, {{from_event_number_actives_players}} were active and {{from_event_number_inactives_players}} will get drop.{% endblocktrans %}

+

{% blocktrans with from_event_min_matchs=from_event.min_matchs %} The minimum number of games to stay in the league is set to {{from_event_min_matchs}}.{% endblocktrans %}

{%if preview%} {%endif%}
@@ -38,18 +38,18 @@ {% for division in divisions %}
{{division.name}} -
{{division.number_players}} players | {{division.number_games}} games
+
{{division.number_players}} players | {{division.number_games}} {% trans "games" %}
StatusPublic?NameBeginEndCommunityPlayers#Divisions#Gamesppwpplmin matchcopy{% trans "Status" %}{% trans "Public?" %}{% trans "Name" %}{% trans "Begin" %}{% trans "End" %}{% trans "Community" %}{% trans "Players" %}{% trans "#Divisions" %}{% trans "#Games" %}{% trans "ppw" %}{% trans "ppl" %}{% trans "min match" %}{% trans "copy" %}
{% if event.is_open %} Open {% else %} Closed {% endif %}{% if event.is_public %} public {% else %} Private {% endif %} {% if event.is_open %} {% trans "Open" %} {% else %} {% trans "Closed" %} {% endif %}{% if event.is_public %} {% trans "Public" %} {% else %} {% trans "Private" %} {% endif %} {{ event.name }} {{ event.begin_time | date:"M d, Y" }} {{ event.end_time | date:"M d, Y" }}
- - - - - + + + + + @@ -79,7 +79,7 @@
- {{to_event}} preview + {{to_event}} {% trans "preview" %} {% for division, players in new_players.items %}
{{division}} @@ -89,8 +89,8 @@
RankPlayerScoreGamesNext{% trans "Rank" %}{% trans "Player" %}{% trans "Score" %}{% trans "Games" %}{% trans "Next" %}
- - + + diff --git a/league/templates/league/admin/sgf_edit.html b/league/templates/league/admin/sgf_edit.html index d2d7f327..c230ae67 100644 --- a/league/templates/league/admin/sgf_edit.html +++ b/league/templates/league/admin/sgf_edit.html @@ -1,10 +1,10 @@ {% extends "league/admin/base.html" %} -{% load bootstrap3 wgo_tags league_tags%} +{% load bootstrap3 wgo_tags league_tags l10n i18n %} {% block title %}Edit a sgf{% endblock %} {% block heading %} {%endblock%} {% block content %} @@ -13,7 +13,7 @@

{{sgf.wplayer}} vs {{sgf.bplayer}} the {{sgf.date |date:"M d, Y"}}

@@ -22,16 +22,16 @@

{{sgf.wplayer}} vs {{sgf.bplayer}} the {{sgf.date |date:"M d, Y"}}

{% csrf_token %} {% if preview %}
- +
{% endif %}
@@ -46,31 +46,31 @@

{{sgf.wplayer}} vs {{sgf.bplayer}} the {{sgf.date |date:"M d, Y"}}

- + - + - + - + - + - + - + diff --git a/league/templates/league/admin/sgf_list.html b/league/templates/league/admin/sgf_list.html index be780f1e..d53e446a 100644 --- a/league/templates/league/admin/sgf_list.html +++ b/league/templates/league/admin/sgf_list.html @@ -1,41 +1,41 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 league_tags%} +{% load bootstrap3 league_tags l10n i18n %} {% block heading %} {%endblock%} {% block content %}
- Upload a sgf + {% trans "Upload a sgf" %}
{% csrf_token %}
- List of all OSR sgfs + {% trans "List of all OSR sgfs" %}
PlayerPrevious division{% trans "Player" %}{% trans "Previous division" %}
{{sgf.pk}}
White{% trans "White" %} {{sgf.wplayer}}
Black{% trans "Black" %} {{sgf.bplayer}}
Date{% trans "Date" %} {{sgf.date |date:"M d, Y"}}
Result{% trans "Result" %} {{sgf.result}}
Type{% trans "Type" %} {{sgf.game_type}}
p_status{% trans "p_status" %} {{sgf.p_status | p_status}}
Download {% trans "Download" %} {% bootstrap_icon 'save' %}
- - - - - - - - + + + + + + + + {% for sgf in sgfs%} diff --git a/league/templates/league/admin/update_all_profiles.html b/league/templates/league/admin/update_all_profiles.html index 6352b857..d5328a97 100644 --- a/league/templates/league/admin/update_all_profiles.html +++ b/league/templates/league/admin/update_all_profiles.html @@ -1,25 +1,25 @@ {% extends "full_width.html" %} -{% load wagtailcore_tags %} +{% load wagtailcore_tags i18n %} {% load league_tags %} {% load bootstrap3 %} {% block body_class %}user{% endblock %} -{% block title %}Update all sgfs check code{% endblock %} +{% block title %}{% trans "Update all sgfs check code" %}{% endblock %} {% block heading %} {%endblock%} {% block content %}
-

Dear admin.

-

Please pay attention to this message and don't proceed before reading

-

In this page, can update some profiles datas.

-

If you don't understand what this is about, you should just leave this page.

-

If you have any doubt what so ever about wether you should continue or not, you should leave this page.

-

If you just did read the code of views.update_all_profiles and understand what you are doing, you may proceed

+

{% trans "Dear admin," %}

+

{% trans "Please pay attention to this message and don't proceed before reading." %}

+

{% trans "In this page, can update some profiles datas." %}

+

{% trans "If you don't understand what this is about, you should just leave this page." %}

+

{% trans "If you have any doubt what so ever about wether you should continue or not, you should leave this page." %}

+

{% trans "If you just did read the code of views.update_all_profiles and understand what you are doing, you may proceed." %}

Back to admin @@ -30,7 +30,7 @@

Update all sgfs check code

diff --git a/league/templates/league/admin/update_all_sgf_check_code.html b/league/templates/league/admin/update_all_sgf_check_code.html index 3df6bf27..08431b3c 100644 --- a/league/templates/league/admin/update_all_sgf_check_code.html +++ b/league/templates/league/admin/update_all_sgf_check_code.html @@ -1,28 +1,28 @@ {% extends "full_width.html" %} -{% load wagtailcore_tags %} +{% load wagtailcore_tags i18n %} {% load league_tags %} {% load bootstrap3 %} {% block body_class %}user{% endblock %} -{% block title %}Update all sgfs check code{% endblock %} +{% block title %}{% trans "Update all sgfs check code" %}{% endblock %} {% block heading %} {%endblock%} {% block content %}
-

Dear admin.

-

Please pay attention to this message and don't proceed before reading

-

In this page, you can rescan all sgf in our db and update their check_code.

-

If you don't understand what this is about, you should just leave this page.

-

If you have any doubt what so ever about wether you should continue or not, you should leave this page.

-

If you just changed our check_code and positively want to update all sgf check code, you may proceed.

+

{% trans "Dear admin," %

+

{% trans "Please pay attention to this message and don't proceed before reading." %

+

{% trans "In this page, you can rescan all sgf in our db and update their check_code." %

+

{% trans "If you don't understand what this is about, you should just leave this page." %

+

{% trans "If you have any doubt what so ever about wether you should continue or not, you should leave this page." %

+

{% trans "If you just changed our check_code and positively want to update all sgf check code, you may proceed." %

@@ -30,7 +30,7 @@

Update all sgfs check code

diff --git a/league/templates/league/admin/update_wont_play.html b/league/templates/league/admin/update_wont_play.html index 1ff04e30..28391dce 100644 --- a/league/templates/league/admin/update_wont_play.html +++ b/league/templates/league/admin/update_wont_play.html @@ -1,10 +1,10 @@ {% extends 'full_width.html' %} -{% load bootstrap3 league_tags %} -{% block title %} {{division.name}} edit {% endblock %} +{% load bootstrap3 league_tags i18n %} +{% block title %} {% blocktrans with division_name=division.name %}{{division_name}} edit{% endblocktrans %} {% endblock %} {% block heading %} {%endblock%} diff --git a/league/templates/league/admin/upload_sgf.html b/league/templates/league/admin/upload_sgf.html index f5a0fec3..c30624f7 100644 --- a/league/templates/league/admin/upload_sgf.html +++ b/league/templates/league/admin/upload_sgf.html @@ -1,37 +1,37 @@ {% extends "league/admin/base.html" %} -{% load bootstrap3 wgo_tags league_tags %} -{% block title %}Upload a sgf{% endblock %} +{% load bootstrap3 wgo_tags league_tags l10n i18n %} +{% block title %}{% trans "Upload a sgf" %}{% endblock %} {% block heading%} {%endblock%} {% block content %}
{%if sgf.league_valid %} {% endif %}
{%if sgf.league_valid %} -

Your sgf is valid !

-

Check details below and click save sgf to add it to the database

+

{% trans "Your sgf is valid!" %}

+

{% trans "Check details below and click save sgf to add it to the database." %}

{% else %} -

Your sgf didn't pass the test. Check details below.

+

{% trans "Your sgf didn't pass the test. Check details below." %}

{% endif %}
@@ -42,23 +42,23 @@

Your sgf didn't pass the test. Check details below.

Id Date WhiteBLackResult Type League valid?p_statusEdit {% trans "Date" %} {% trans "White" %}{% trans "Black" %}{% trans "Result" %} {% trans "Type" %} {% trans "League valid?" %}{% trans "p_status" %}{% trans "Edit" %}
- + - + - + - + - + diff --git a/league/templates/league/admin/user_send_mail.html b/league/templates/league/admin/user_send_mail.html index 19e2f71a..f9e81b67 100644 --- a/league/templates/league/admin/user_send_mail.html +++ b/league/templates/league/admin/user_send_mail.html @@ -1,9 +1,9 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 league_tags%} -{% block title %}OSR league admin - send mail{% endblock %} +{% load bootstrap3 league_tags i18n %} +{% block title %}{% trans "OSR league admin" %} - {% trans "Send mail" %}{% endblock %} {% block heading %} {%endblock%} {% block content %} diff --git a/league/templates/league/admin/users.html b/league/templates/league/admin/users.html index 62291d77..e93e73b4 100644 --- a/league/templates/league/admin/users.html +++ b/league/templates/league/admin/users.html @@ -1,15 +1,15 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 league_tags%} +{% load bootstrap3 league_tags %} {% load l10n i18n tz %} -{% block title %}OSR league admin - Users{% endblock %} +{% block title %}{% trans "OSR league admin" %} - {% trans "Users" %}{% endblock %} {% block heading %} {%endblock%} @@ -24,12 +24,12 @@

All OSR users from {{event}} in {{division}}

White{% trans "White" %} {{sgf.wplayer}}
Black{% trans "Black" %} {{sgf.bplayer}}
Date{% trans "Date" %} {{sgf.date |date:"M d, Y"}}
Result{% trans "Result" %} {{sgf.result}}
Type{% trans "Type" %} {{sgf.game_type}}
- - - - - - + + + + + + {% for user in users %} diff --git a/league/templates/league/archive.html b/league/templates/league/archive.html index ecb4390e..0c7b1892 100644 --- a/league/templates/league/archive.html +++ b/league/templates/league/archive.html @@ -1,36 +1,38 @@ {% extends "league/base.html" %} {% load league_tags l10n i18n %} -{% block title %}OSR league - Archives{% endblock %} +{% block title %}{% trans "OSR league" %} - {% trans "Archives" %}{% endblock %} {% block content %} -
This table show all leagues (past and present) of the Open Study Room. Open leagues are green, primary leagues are higlighted.
+
{% blocktrans %}This table show all leagues (past and present) of the Open Study Room. Open leagues are green, primary leagues are higlighted.{% endblocktrans %}
{% localize off %} {% language 'en' %}
UserKGS usernameOGS usernameSend emailSet meijinDate joined{% trans "User" %}{% trans "KGS username" %}{% trans "OGS username" %}{% trans "Send email" %}{% trans "Set meijin" %}{% trans "Date joined" %}
- - - - - - - + {% comment %}Translators: Begin time is a date{% endcomment %} + + {% comment %}Translators: End time is a date{% endcomment %} + + + + + + {% for event in events %} diff --git a/league/templates/league/archives_games.html b/league/templates/league/archives_games.html index 4ce2f1c9..826cc44c 100644 --- a/league/templates/league/archives_games.html +++ b/league/templates/league/archives_games.html @@ -1,7 +1,7 @@ {% extends "league/base.html" %} {% load league_tags wgo_tags l10n i18n static %} -{% block title %}Archives - Games {% if sgf %}- {{sgf.black.username}} vs {{sgf.white.username}} {%endif %}{% endblock %} +{% block title %}{% trans "Archives" %} - {% trans "Games" %} {% if sgf %}- {{sgf.black.username}} vs {{sgf.white.username}} {%endif %}{% endblock %} {% block extra_head_js %} diff --git a/league/templates/league/includes/games_iframe.html b/league/templates/league/includes/games_iframe.html index 183699d1..46df4438 100644 --- a/league/templates/league/includes/games_iframe.html +++ b/league/templates/league/includes/games_iframe.html @@ -1,14 +1,14 @@ -{% load wagtailcore_tags league_tags%} +{% load wagtailcore_tags league_tags l10n i18n %} {# generate a table from a game queryset #} {# don't forget to add the extrajs when including this ! #}
Begin timeEnd timeNameType# Divisions# Players# games {% trans "Begin time" %}{% trans "End time" %}{% trans "Name" %}{% trans "Type" %}# {% trans "Divisions" %}# {% trans "Players" %}# {% trans "Games" %}
- - - - + + + + {% for game in games %} diff --git a/league/templates/league/includes/league.html b/league/templates/league/includes/league.html index a0c15d16..036e3fe4 100644 --- a/league/templates/league/includes/league.html +++ b/league/templates/league/includes/league.html @@ -1,3 +1,4 @@ +{% load l10n i18n %}
datewhiteblackresult{% trans "date" %}{% trans "white" %}{% trans "black" %}{% trans "result" %}
- - - - - + + + + + {% for u in no_profile_users %} diff --git a/league/templates/league/includes/results.html b/league/templates/league/includes/results.html index 10b94120..ad8a2f15 100644 --- a/league/templates/league/includes/results.html +++ b/league/templates/league/includes/results.html @@ -1,3 +1,4 @@ +{% load i18n %}
usernameemailCommunities interestDeleteCreate profile{% trans "username" %{% trans "email" %{% trans "Communities interest" %{% trans "Delete" %{% trans "Create profile" %
- - + + {% for player in players %} {% endfor %} diff --git a/league/templates/league/includes/results_ladder.html b/league/templates/league/includes/results_ladder.html index 1da06d5e..76a09af4 100644 --- a/league/templates/league/includes/results_ladder.html +++ b/league/templates/league/includes/results_ladder.html @@ -1,12 +1,12 @@ -{% load league_tags %} +{% load league_tags i18n %} {% get_meijin as meijin %}
player score{% trans "player" %} {% trans "score" %} {{ player.kgs_username }}
- - + + {% for player in results %}
playerscore{% trans "player" %}{% trans "score" %}
{{ player.user.username }}
diff --git a/league/templates/league/includes/results_league.html b/league/templates/league/includes/results_league.html index f51aff18..3436d4a5 100644 --- a/league/templates/league/includes/results_league.html +++ b/league/templates/league/includes/results_league.html @@ -1,17 +1,17 @@ -{% load league_tags %} +{% load league_tags i18n %} {% get_meijin as meijin %}
- - - - - - - + + + + + + + diff --git a/league/templates/league/includes/sgf_errors.html b/league/templates/league/includes/sgf_errors.html index a1ce327d..fecbab8c 100644 --- a/league/templates/league/includes/sgf_errors.html +++ b/league/templates/league/includes/sgf_errors.html @@ -1,9 +1,9 @@ -{% load league_tags%} +{% load league_tags i18n %} {% if sgf.league_valid %}
- This SGF is valid for those events: + {% trans "This SGF is valid for those events:" %}
rankplayerscorewinslossgamesResults{% trans "rank" %}{% trans "player" %}{% trans "score" %}{% trans "wins" %}{% trans "loss" %}{% trans "games" %}{% trans "results" %}
{% for event in valid_events %} @@ -14,7 +14,7 @@ {% else %}
- This SGF is valid for no events + {% trans "This SGF is valid for no events." %}
{% endif %} @@ -22,13 +22,13 @@
- Not valid events + {% trans "Not valid events." %}
{% for dict in errors %} {% if dict.errors %} {% if dict.league is None %} - + {% else %} {% endif %} diff --git a/league/templates/league/includes/user_infos.html b/league/templates/league/includes/user_infos.html index efbe6e07..5645b5cc 100644 --- a/league/templates/league/includes/user_infos.html +++ b/league/templates/league/includes/user_infos.html @@ -10,14 +10,14 @@ {% endif %} {% if user.profile.kgs_username %} -

KGS Username: +

{% trans "KGS Username:" %} {{user.profile.kgs_username}} {% if user.profile.kgs_rank %}({{user.profile.kgs_rank}}){% endif %}

{% endif %} {% if user.profile.ogs_id > 0 %} -

OGS Username: +

{% trans "OGS Username:" %} {{user.profile.ogs_username}} {% if user.profile.ogs_rank %}({{user.profile.ogs_rank}}){% endif %} @@ -25,11 +25,11 @@ {% endif %} {% if user.profile.go_quest_username %} -

Go Quest Username: {{user.profile.go_quest_username}}

+

{% trans "Go Quest Username:" %} {{user.profile.go_quest_username}}

{% endif %} {% if discord_user %} -

Discord username : +

{% trans "Discord username:" %} {% if discord_user.avatar %} {% endif %} @@ -39,7 +39,7 @@ {% endif %}

{% elif request.user == user %} -

Click this button to link your discord account with your OSR account: {% bootstrap_icon "user"%} +

{% trans "Click this button to link your discord account with your OSR account:" %} {% bootstrap_icon "user"%} {% endif %} {% if user.profile.egf_id %} diff --git a/league/templates/league/includes/user_infos_member.html b/league/templates/league/includes/user_infos_member.html index ae4069f4..ce5f080b 100644 --- a/league/templates/league/includes/user_infos_member.html +++ b/league/templates/league/includes/user_infos_member.html @@ -9,13 +9,13 @@

{{user.profile.bio|safe|rendered}}

{% endif %} {% if user.profile.kgs_username %} -

KGS Username: +

{% trans "KGS Username:" %} {{user.profile.kgs_username}} {% if user.profile.kgs_rank %}({{user.profile.kgs_rank}}){% endif %}

{% endif %} {% if user.profile.ogs_id > 0 %} -

OGS Username: +

{% trans "OGS Username:" %} {{user.profile.ogs_username}} {% if user.profile.ogs_rank %}({{user.profile.ogs_rank}}){% endif %} @@ -23,7 +23,7 @@ {% endif %} {% if discord_user %} -

Discord username : +

{% trans "Discord username:" %} {% if discord_user.avatar %} {% endif %} @@ -33,7 +33,7 @@ {% endif %}

{% elif request.user == user %} -

Click this button to link your discord account with your OSR account: {% bootstrap_icon "user"%} +

{% trans "Click this button to link your discord account with your OSR account:" %} {% bootstrap_icon "user"%} {% endif %} @@ -42,7 +42,7 @@ {% if user != request.user %} -

Your results against {{user.username}}.

+

{% blocktrans with username=user.username %}Your results against {{username}}.{% endblocktrans %}

{% if sgfs_links %} @@ -68,7 +68,7 @@

Your results against {{user.username}}.

{% else %} -
You didn't play any games against each other yet.
+
{% trans "You didn't play any games against each other yet." %}
{% endif %} {% endif %} diff --git a/league/templates/league/includes/user_nav.html b/league/templates/league/includes/user_nav.html index 5a89e03e..af89b646 100644 --- a/league/templates/league/includes/user_nav.html +++ b/league/templates/league/includes/user_nav.html @@ -3,7 +3,7 @@ {% if request.user.is_authenticated %} {% if user == request.user%} @@ -23,16 +23,16 @@ {% else %} {% endif %} {% endif %} diff --git a/league/templates/league/includes/vs.html b/league/templates/league/includes/vs.html index 24260ed6..bdd3097c 100644 --- a/league/templates/league/includes/vs.html +++ b/league/templates/league/includes/vs.html @@ -2,7 +2,7 @@ {% if user != request.user %} -

Your results against {{user.username}}.

+

{% blocktrans with username=user.username %}Your results against {{username}}.{% endblocktrans %}

{% if sgfs_links %} @@ -28,7 +28,7 @@

Your results against {{user.username}}.

{% else %} -
You didn't play any games against each other yet.
+
{% trans "You didn't play any games against each other yet." %}
{% endif %} {% endif %} diff --git a/league/templates/league/leagueevent_create_form.html b/league/templates/league/leagueevent_create_form.html index 4c420434..3c79444e 100644 --- a/league/templates/league/leagueevent_create_form.html +++ b/league/templates/league/leagueevent_create_form.html @@ -1,13 +1,13 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 league_tags tz%} -{% block title %}OSR league admin - Create new Event{% endblock %} +{% load bootstrap3 league_tags tz i18n %} +{% block title %}{% trans "OSR league admin" %} - {% trans "Create new event" %}{% endblock %} {% block heading %} @@ -17,9 +17,9 @@

{% if copy_from%} - Copy {{copy_from}} league + {% blocktrans with league_copy_from=copy_from %}Copy {{league_copy_from}} league{% endblocktrans %} {% else %} - Create new League + {% trans "Create new league" %} {% endif %} {% include 'league/includes/admin_league_form.html' %} diff --git a/league/templates/league/leagueevent_update_form.html b/league/templates/league/leagueevent_update_form.html index 47712574..77c1bee0 100644 --- a/league/templates/league/leagueevent_update_form.html +++ b/league/templates/league/leagueevent_update_form.html @@ -1,12 +1,12 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 league_tags i18n l10n tz%} +{% load bootstrap3 league_tags i18n l10n tz %} -{% block title %}OSR league admin - Leagues{% endblock %} +{% block title %}{% trans "OSR league admin" %} - {% trans "Leagues" %}{% endblock %} {% block heading %} {%endblock%} {% block content %} @@ -18,18 +18,18 @@

Edit League "{{ object.name }}"

{% if object.number_players == 0 and object.number_divisions > 0%}
-

Populate empty event

+

{% trans "Populate empty event" %}

- This event has no player in it. You can populate it easily from a previous event : + {% trans "This event has no player in it. You can populate it easily from a previous event:" %}"
- + {% endif %}
{% csrf_token %} {% include 'league/includes/admin_league_form.html' %} diff --git a/league/templates/league/players.html b/league/templates/league/players.html index b24489a0..b50f80b7 100644 --- a/league/templates/league/players.html +++ b/league/templates/league/players.html @@ -33,7 +33,7 @@ {% include 'league/includes/league_nav.html' with active='players' %}
- {% trans "This table show all users who" %} {% if not event.is_open %}{% trans "played" %}{% else %} {% trans "play" %}{% endif %} {% trans "in the" %} {{event.name}}. + {% trans "This table show all users who" %} {% if not event.is_open %}{% trans "played" %}{% else %}{% trans "play" %}{% endif %} {% blocktrans with event_name=event.name %}in the {{event_name}}{% endblocktrans %}.
diff --git a/league/templates/league/profile.html b/league/templates/league/profile.html index 4c9511ad..b042a216 100644 --- a/league/templates/league/profile.html +++ b/league/templates/league/profile.html @@ -1,12 +1,12 @@ {% extends "board_base.html" %} -{% load i18n bootstrap3%} +{% load i18n bootstrap3 %} {% block sub_title %}{% trans "Edit forum profile" %}{% endblock sub_title %} {% block breadcrumb %}{%endblock%} {% block heading %} {%endblock%} diff --git a/league/templates/league/profile_update.html b/league/templates/league/profile_update.html index 4dceae7c..4453c81b 100644 --- a/league/templates/league/profile_update.html +++ b/league/templates/league/profile_update.html @@ -1,12 +1,12 @@ {% extends 'full_width.html' %} -{% load bootstrap3 league_tags%} +{% load bootstrap3 league_tags i18n %} -{% block title %}OSR league admin - Leagues{% endblock %} +{% block title %}{% trans "OSR league admin" %} - {% trans "Leagues" %}{% endblock %} {% block heading %} {%endblock%} {% block content %} @@ -22,7 +22,7 @@

Edit your profile

-Please make sure all the league games you have played so far are on the results before changing your KGS or OGS usernames. +{% trans "Please make sure all the league games you have played so far are on the results before changing your KGS or OGS usernames." %}
{%bootstrap_field form.ogs_username %} {%bootstrap_field form.kgs_username %} diff --git a/league/templates/league/random_game.html b/league/templates/league/random_game.html index 9f72054b..41429ad3 100644 --- a/league/templates/league/random_game.html +++ b/league/templates/league/random_game.html @@ -1,6 +1,6 @@ {% extends 'full_width.html' %} -{% load bootstrap3 league_tags tz static%} -{% block title %}OSR league - random game{% endblock %} +{% load bootstrap3 league_tags tz static l10n i18n %} +{% block title %}{% trans "OSR league" %} - {% trans "Random game" %}{% endblock %} {% block extra_head_js%} @@ -11,7 +11,7 @@ {% block heading %} {% endblock %} @@ -34,7 +34,7 @@

{% if sgf %}
- {{sgf.white | user_link:meijin}} vs {{sgf.black | user_link:meijin}} on {{sgf.date}} link + {% blocktrans with sgf_white=sgf.white | user_link:meijin sgf_black=sgf.black | user_link:meijin sgf_date=sgf.date %}{{sgf_white}} vs {{sgf_black}} on {{sgf_date}} {% endblocktrans %} link
{% endif %} {% endblock %} diff --git a/league/templates/league/results.html b/league/templates/league/results.html index 5a3a1663..e282ef17 100644 --- a/league/templates/league/results.html +++ b/league/templates/league/results.html @@ -1,6 +1,6 @@ {% extends "league/base.html" %} {% load tz static league_tags bootstrap3 i18n forum_markup_tags osr_tags %} -{% block title %}{{event}}- {% trans "results" %}{% endblock %} +{% block title %}{{event}} - {% trans "Results" %}{% endblock %} {% block content %} @@ -61,15 +61,15 @@

{% if can_edit_division_infos or admin %} - + {% endif %} {% if admin %} - + - + {% endif %}

@@ -79,7 +79,7 @@
{{division.informations|safe|rendered}}
{% endif %} {% if not event.community %} -

OSR is made possible thanks to the support from friends and partners

+

{% trans "OSR is made possible thanks to the support from friends and partners" %}

{% sponsors %} {% endif %} {% endblock %} diff --git a/league/templates/league/results_iframe.html b/league/templates/league/results_iframe.html index 99a81223..ca9bc8ef 100644 --- a/league/templates/league/results_iframe.html +++ b/league/templates/league/results_iframe.html @@ -68,12 +68,12 @@

- - - - - - + + + + + + @@ -106,8 +106,8 @@ - - + + {% for player in results %} {% endfor %} diff --git a/league/templates/league/timezone_update.html b/league/templates/league/timezone_update.html index 10dac3b1..51a438d0 100644 --- a/league/templates/league/timezone_update.html +++ b/league/templates/league/timezone_update.html @@ -1,7 +1,6 @@ {% extends "full_width.html" %} - -{% load bootstrap3 static calendar_tags %} -{% block title %} My profile - Timezone{% endblock %} +{% load bootstrap3 static calendar_tags i18n %} +{% block title %} {% trans "My profile" %} - {% trans "Timezone" %}{% endblock %} {% block extra_css %} @@ -9,7 +8,7 @@ {% block heading %} {%endblock%} {% block content %} @@ -19,20 +18,21 @@

My profile - Timezone

-According to your setting your local time should be {{now}}. +{% trans "According to your setting your local time should be" %} {{now}}.

- Setting a timezone for your profile will allow our website to adapt the time to your local timezone everywhere: forum, messages, events... + {% trans "Setting a timezone for your profile will allow our website to adapt the time to your local timezone everywhere: forum, messages, events..." %}

- If no timezone is set, we show times in UTC. + {% comment %}Translators : If no timezone is set, we show times in ... UTC{% endcomment %} + {% trans "If no timezone is set, we show times in" %} UTC.

{% bootstrap_form form %}
From 86197bc54307e5dec96a4c2600d4643cdfc06edd Mon Sep 17 00:00:00 2001 From: clubdego974 Date: Tue, 15 Aug 2023 08:13:13 +0400 Subject: [PATCH 6/9] Translation tags in "openstudyroom\templates" --- openstudyroom/templates/404.html | 6 +++--- openstudyroom/templates/500.html | 7 ++++--- openstudyroom/templates/account/login.html | 8 ++++---- openstudyroom/templates/account/logout.html | 8 ++++---- .../templates/account/password_change.html | 10 +++++----- .../templates/account/password_reset.html | 8 ++++---- .../templates/account/password_reset_done.html | 8 ++++---- .../account/password_reset_from_key.html | 2 +- .../account/password_reset_from_key_done.html | 7 ++++--- .../templates/account/signup_closed.html | 6 +++--- .../templates/account/verification_sent.html | 14 +++++++------- openstudyroom/templates/base.html | 2 +- openstudyroom/templates/board_base.html | 2 +- openstudyroom/templates/menu.html | 18 +++++++++--------- openstudyroom/templates/sidebar.html | 2 +- 15 files changed, 55 insertions(+), 53 deletions(-) diff --git a/openstudyroom/templates/404.html b/openstudyroom/templates/404.html index 07086319..08bc7c20 100644 --- a/openstudyroom/templates/404.html +++ b/openstudyroom/templates/404.html @@ -1,9 +1,9 @@ {% extends "full_width.html" %} - +{% load i18n %} {% block body_class %}template-404{% endblock %} {% block content %} -

Page not found

+

{% trans "Page not found" %}

-

Sorry, this page could not be found.

+

{% trans "Sorry, this page could not be found." %}

{% endblock %} diff --git a/openstudyroom/templates/500.html b/openstudyroom/templates/500.html index 2a5be4cb..c72cf56a 100644 --- a/openstudyroom/templates/500.html +++ b/openstudyroom/templates/500.html @@ -1,3 +1,4 @@ +{% load i18n %} @@ -6,12 +7,12 @@ - Internal server error + {% trans "Internal server error" %} -

Internal server error

+

{% trans "Internal server error" %}

-

Sorry, there seems to be an error. Please try again soon.

+

{% trans "Sorry, there seems to be an error. Please try again soon." %}

diff --git a/openstudyroom/templates/account/login.html b/openstudyroom/templates/account/login.html index e513e68e..c438cba6 100644 --- a/openstudyroom/templates/account/login.html +++ b/openstudyroom/templates/account/login.html @@ -2,11 +2,11 @@ {% load account %} -{% load bootstrap3 %} -{% block title %}Log in {% endblock %} +{% load bootstrap3 i18n %} +{% block title %}{% trans "Log in" %} {% endblock %} {% block heading %} {% endblock %} @@ -20,7 +20,7 @@

Log in to an existing account

{% endif %} - Forgot your password? + {% trans "Forgot your password?" %}
diff --git a/openstudyroom/templates/account/logout.html b/openstudyroom/templates/account/logout.html index 7dafd52e..ea76d764 100644 --- a/openstudyroom/templates/account/logout.html +++ b/openstudyroom/templates/account/logout.html @@ -1,10 +1,10 @@ {% extends "full_width.html" %} -{% load bootstrap3 %} +{% load bootstrap3 i18n %} {% block heading %} {% endblock %} {% block content %} @@ -13,8 +13,8 @@

Log out

{% csrf_token %} -

Are you sure you want to log out?

- +

{% trans "Are you sure you want to log out?" ?}

+
diff --git a/openstudyroom/templates/account/password_change.html b/openstudyroom/templates/account/password_change.html index eb975a34..9582c56f 100644 --- a/openstudyroom/templates/account/password_change.html +++ b/openstudyroom/templates/account/password_change.html @@ -1,14 +1,14 @@ {% extends "full_width.html" %} -{% load bootstrap3 %} +{% load bootstrap3 i18n %} {% block body_class %}account account-password{% endblock %} -{% block title %} Change password{% endblock %} +{% block title %} {% trans "Change password" %}{% endblock %} {% block heading %} {%endblock%} {% block content %} @@ -19,11 +19,11 @@

{{user.username}} profile

- Change password + {% trans "Change password" %}
{% csrf_token %} {% bootstrap_form form %} - +
diff --git a/openstudyroom/templates/account/password_reset.html b/openstudyroom/templates/account/password_reset.html index ef416913..e1720375 100644 --- a/openstudyroom/templates/account/password_reset.html +++ b/openstudyroom/templates/account/password_reset.html @@ -5,10 +5,10 @@ {% load account %} {% user_display request.user as user_display %} -{% block title %}Reset your password{% endblock %} +{% block title %}{% trans "Reset your password" %}{% endblock %} {% block heading %} {%endblock%} {% block content %} @@ -16,14 +16,14 @@

Reset your password

-

Forgotten your password? Enter your email address below, and we'll send you an email allowing you to reset it.

+

{% trans "Forgotten your password? Enter your email address below, and we'll send you an email allowing you to reset it." %}

{% csrf_token %} {% bootstrap_form form %}
diff --git a/openstudyroom/templates/account/password_reset_done.html b/openstudyroom/templates/account/password_reset_done.html index f08297a3..6e6a06a8 100644 --- a/openstudyroom/templates/account/password_reset_done.html +++ b/openstudyroom/templates/account/password_reset_done.html @@ -1,14 +1,14 @@ {% extends "full_width.html" %} -{% load account %} -{% block title %}Password reset email sent{% endblock %} +{% load account i18n %} +{% block title %}{% trans "Password reset email sent" %}{% endblock %} {% block heading %} {%endblock%} {% block content %} -

We have sent you an email. If you do not receive it within a few minutes, you should contact us.

+

{% trans "We have sent you an email. If you do not receive it within a few minutes, you should contact us." %}

{% if user.is_authenticated %} {% include "account/snippets/already_logged_in.html" %} diff --git a/openstudyroom/templates/account/password_reset_from_key.html b/openstudyroom/templates/account/password_reset_from_key.html index 21a0143f..c82a5075 100644 --- a/openstudyroom/templates/account/password_reset_from_key.html +++ b/openstudyroom/templates/account/password_reset_from_key.html @@ -3,7 +3,7 @@ {% load bootstrap3 %} {% load i18n %} -{% block title %}{% if token_fail %}Bad token{% else %}{% trans "Change Password" %}{% endif %}{% endblock %} +{% block title %}{% if token_fail %}{% trans "Bad token" %}{% else %}{% trans "Change Password" %}{% endif %}{% endblock %} {% block heading %}
Global errors
{% trans "Global errors" %}
{{ dict.league |event_link}}
playerscorewinslossgamesResults{% trans "player" %}{% trans "score" %}{% trans "wins" %}{% trans "loss" %}{% trans "games" %}{% trans "results" %}
playerscore{% trans "player" %}{% trans "score" %}
{{player.user}}