diff --git a/community/templates/community/admin/community_create.html b/community/templates/community/admin/community_create.html index f4b2671e4..a8e0ad8e6 100644 --- a/community/templates/community/admin/community_create.html +++ b/community/templates/community/admin/community_create.html @@ -1,8 +1,8 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 league_tags%} +{% load bootstrap3 league_tags i18n %} {% block heading %} {%endblock%} {% block content %} @@ -12,7 +12,7 @@

Create a new Guest Community

{% bootstrap_button "Save" button_type="submit" button_class="btn-primary" %} -Cancel +{% trans "Cancel" %} {% endblock %} {% block extra_css %} {{ form.media.css }} diff --git a/community/templates/community/admin/community_list.html b/community/templates/community/admin/community_list.html index 760d9a371..ac818c540 100644 --- a/community/templates/community/admin/community_list.html +++ b/community/templates/community/admin/community_list.html @@ -1,8 +1,8 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 league_tags%} +{% load bootstrap3 league_tags i18n %} {% block heading %} {%endblock%} {% block content %} @@ -10,10 +10,10 @@

Guest Communitys

-

List of Communitys +

{% trans "List of Communitys" %}

@@ -21,12 +21,14 @@

List of Communitys
- - - - - - + + {% comment %}Translators : CLOSE community{% endcomment %} + + {% comment %}Translators : PRIVATE community{% endcomment %} + + + + {% for community in communitys%} @@ -48,7 +50,7 @@

List of Communitys {% csrf_token %} diff --git a/community/templates/community/admin/user_list.html b/community/templates/community/admin/user_list.html index 769539039..e698fa115 100644 --- a/community/templates/community/admin/user_list.html +++ b/community/templates/community/admin/user_list.html @@ -1,5 +1,5 @@ {% extends 'full_width.html' %} -{% load bootstrap3 league_tags community_tags i18n%} +{% load bootstrap3 league_tags community_tags i18n %} {% block heading %}

NameClosePrivateAdminsEditDelete{% trans "Name" %}{% trans "Close" %}{% trans "Private" %}{% trans "Admins" %}{% trans "Edit" %}{% trans "Delete" %}
@@ -46,7 +46,7 @@

{{community|community_link}} {% trans "members" %}

diff --git a/community/templates/community/calendar_iframe.html b/community/templates/community/calendar_iframe.html index b437755f1..52a8d364a 100644 --- a/community/templates/community/calendar_iframe.html +++ b/community/templates/community/calendar_iframe.html @@ -17,7 +17,7 @@ - {{community.name}} calendar + {% blocktrans with community_name=community.name %}{{community_name}} calendar{% endblocktrans %} diff --git a/community/templates/community/community_admin_update.html b/community/templates/community/community_admin_update.html index d3ed4451d..b4821027d 100644 --- a/community/templates/community/community_admin_update.html +++ b/community/templates/community/community_admin_update.html @@ -1,8 +1,8 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 league_tags%} +{% load bootstrap3 league_tags i18n %} {% block heading %} {%endblock%} {% block content %} diff --git a/community/templates/community/community_list.html b/community/templates/community/community_list.html index a03cb3229..68d0e4b22 100644 --- a/community/templates/community/community_list.html +++ b/community/templates/community/community_list.html @@ -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 %} {%endblock%} {% block content %}
-

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.

-

Below is the list of the public communities OSR is hosting. Joining a community will allow you to play in their leagues.

-

If you want your community to run some leagues using the OSR league system, contact us at openstudyroom@gmail.com.

+

{% 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." %}

+

{% trans "Below is the list of the public communities OSR is hosting. Joining a community will allow you to play in their leagues." %}

+

{% trans "If you want your community to run some leagues using the OSR league system, contact us at openstudyroom@gmail.com." %}

{% for community in communitys %}
diff --git a/community/templates/community/community_page.html b/community/templates/community/community_page.html index b43fef557..12f5848b7 100644 --- a/community/templates/community/community_page.html +++ b/community/templates/community/community_page.html @@ -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 %} @@ -79,7 +79,7 @@

{{community.name}} ({{community.slug}})

@@ -90,8 +90,10 @@

{{community.name}} ({{community.slug}})
-
@@ -114,7 +116,7 @@

{{community.name}} ({{community.slug}})

- - + + {% if admin %} - + {% endif %} diff --git a/community/templates/community/includes/new_user_table.html b/community/templates/community/includes/new_user_table.html index a3ea63249..9e40fa975 100644 --- a/community/templates/community/includes/new_user_table.html +++ b/community/templates/community/includes/new_user_table.html @@ -7,8 +7,8 @@
{% trans "username" %}OGS {% trans "username" %}KGS {% trans "username" %} {% trans "OGS username" %}{% trans "KGS username" %} EGF ID FFG ID Discord {% trans "leagues" %} {% trans "kick out" %}admin{% trans "admin" %}
- - + + diff --git a/community/templates/community/ranking_table.html b/community/templates/community/ranking_table.html index 262221895..3b57b806b 100644 --- a/community/templates/community/ranking_table.html +++ b/community/templates/community/ranking_table.html @@ -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 %} -

{{community.slug}} player's rankings

+

{% blocktrans with community_slug=community.slug %}{{community_slug}} player's rankings{% endblocktrans %}

{% get_meijin as meijin %}
diff --git a/fullcalendar/templates/fullcalendar/admin_cal_event_list.html b/fullcalendar/templates/fullcalendar/admin_cal_event_list.html index d28d926a9..8b47fb795 100644 --- a/fullcalendar/templates/fullcalendar/admin_cal_event_list.html +++ b/fullcalendar/templates/fullcalendar/admin_cal_event_list.html @@ -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 %} {%endblock%} @@ -12,7 +12,7 @@

Events list

Categories @@ -23,7 +23,7 @@

Events list

Events diff --git a/fullcalendar/templates/fullcalendar/calendar_main_view.html b/fullcalendar/templates/fullcalendar/calendar_main_view.html index ee0650ea5..f6d505ac3 100644 --- a/fullcalendar/templates/fullcalendar/calendar_main_view.html +++ b/fullcalendar/templates/fullcalendar/calendar_main_view.html @@ -16,12 +16,12 @@ {% endblock %} -{% block title %}Calendar{% endblock %} +{% block title %}{% trans "Calendar" %}{% endblock %} {% block heading %} {% get_current_timezone as TIME_ZONE %} {%endblock%} diff --git a/fullcalendar/templates/fullcalendar/calevent_create_form.html b/fullcalendar/templates/fullcalendar/calevent_create_form.html index f9d510060..dd92da02c 100644 --- a/fullcalendar/templates/fullcalendar/calevent_create_form.html +++ b/fullcalendar/templates/fullcalendar/calevent_create_form.html @@ -1,18 +1,18 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 league_tags static tz %} -{% block title %}OSR league admin - Create new Event{% endblock %} +{% load bootstrap3 league_tags static tz i18n %} +{% block title %}{% trans "OSR league admin" %} - {% trans "Create new event" %}{% endblock %} {% block heading %} {%endblock%} {% block content %} {% timezone "UTC" %}
- Create new Event -
Please enter times in UTC/GMT time
+ {% trans "Create new event" %} +
{% trans "Please enter times in UTC/GMT time" %}
{% csrf_token %} {%bootstrap_form form %} diff --git a/fullcalendar/templates/fullcalendar/calevent_update_form.html b/fullcalendar/templates/fullcalendar/calevent_update_form.html index adea0d267..d2258cd9c 100644 --- a/fullcalendar/templates/fullcalendar/calevent_update_form.html +++ b/fullcalendar/templates/fullcalendar/calevent_update_form.html @@ -1,18 +1,18 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 league_tags static tz%} -{% block title %}OSR league admin - Edit an event{% endblock %} +{% load bootstrap3 league_tags static tz i18n %} +{% block title %}{% trans "OSR league admin" %} - {% trans "Edit an event" %}{% endblock %} {% block heading %} {%endblock%} {% block content %} {% timezone "UTC" %}
- Edit the event {{object.title}} -
Please enter times in UTC/GMT time with the format dd/mm/yyy hh:mm
+ {% blocktrans with object_title=object.title %}Edit the event {{object_title}}{% endblocktrans %} +
{% trans "Please enter times in UTC/GMT time with the format dd/mm/yyyy hh:mm" %}
{% csrf_token %} {%bootstrap_form form %} @@ -22,7 +22,7 @@

Edit the event {{object.title}}

{% csrf_token %}
diff --git a/fullcalendar/templates/fullcalendar/category_create_form.html b/fullcalendar/templates/fullcalendar/category_create_form.html index b2f879f51..cd8502a3c 100644 --- a/fullcalendar/templates/fullcalendar/category_create_form.html +++ b/fullcalendar/templates/fullcalendar/category_create_form.html @@ -1,10 +1,10 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 %} -{% block title %}OSR league admin - Create new Category{% endblock %} +{% load bootstrap3 i18n %} +{% block title %}{% trans "OSR league admin" %} - {% trans "Create new category" %}{% endblock %} {% block heading %} {%endblock%} {% block content %} diff --git a/fullcalendar/templates/fullcalendar/category_update_form.html b/fullcalendar/templates/fullcalendar/category_update_form.html index e49d3dbe4..f0bca648f 100644 --- a/fullcalendar/templates/fullcalendar/category_update_form.html +++ b/fullcalendar/templates/fullcalendar/category_update_form.html @@ -1,10 +1,10 @@ {% extends 'league/admin/base.html' %} -{% load bootstrap3 %} -{% block title %}OSR league admin - Edit a Category{% endblock %} +{% load bootstrap3 i18n %} +{% block title %}{% trans "OSR league admin" %} - {% trans "Edit a category" %}{% endblock %} {% block heading %} {%endblock%} {% block content %} diff --git a/fullcalendar/templates/fullcalendar/event_list_sidebar.html b/fullcalendar/templates/fullcalendar/event_list_sidebar.html index 20dfc2252..a1ccec0ee 100644 --- a/fullcalendar/templates/fullcalendar/event_list_sidebar.html +++ b/fullcalendar/templates/fullcalendar/event_list_sidebar.html @@ -1,10 +1,10 @@ -{%load tz calendar_tags%} +{%load tz calendar_tags l10n i18n %} {% get_current_timezone as TIME_ZONE %}
{% trans "username" %} OGS {% trans "username" %} KGS {% trans "username" %} {% trans "OGS username" %} {% trans "KGS username" %} {% trans "reject" %} {% trans "accept" %}
- - - - + + + + diff --git a/fullcalendar/templates/fullcalendar/includes/admin_event_table.html b/fullcalendar/templates/fullcalendar/includes/admin_event_table.html index 94f74cc14..19df41057 100644 --- a/fullcalendar/templates/fullcalendar/includes/admin_event_table.html +++ b/fullcalendar/templates/fullcalendar/includes/admin_event_table.html @@ -1,16 +1,16 @@ -{% load bootstrap3 league_tags static tz%} +{% load bootstrap3 league_tags static tz %} {% load l10n i18n %} {% localize off %} {% timezone "UTC" %} {% language 'en' %}
NameColor EditDelete{% trans "Name" %}{% trans "Color" %} {% trans "Edit" %}{% trans "Delete" %}
- - - - - - + + + + + + @@ -31,7 +31,7 @@ {% csrf_token %} diff --git a/fullcalendar/templates/fullcalendar/includes/cal-modal.html b/fullcalendar/templates/fullcalendar/includes/cal-modal.html index 4bb1098ad..44978e518 100644 --- a/fullcalendar/templates/fullcalendar/includes/cal-modal.html +++ b/fullcalendar/templates/fullcalendar/includes/cal-modal.html @@ -1,3 +1,4 @@ +{% load i18n %} diff --git a/fullcalendar/templates/fullcalendar/includes/event_list.html b/fullcalendar/templates/fullcalendar/includes/event_list.html index 760e79d15..df8552a7e 100644 --- a/fullcalendar/templates/fullcalendar/includes/event_list.html +++ b/fullcalendar/templates/fullcalendar/includes/event_list.html @@ -1,6 +1,6 @@ -{%load tz calendar_tags%} +{%load tz calendar_tags l10n i18n %} {% get_current_timezone as TIME_ZONE %} -

OSR Events ({{TIME_ZONE}})

+

{% blocktrans with TIME_ZONE=TIME_ZONE %}OSR Events ({{TIME_ZONE}}){% endblocktrans %}

{% get_now as now %} {% public_events as public_events%}
3 %} class="pre-scrollable" {% endif %}> @@ -11,7 +11,7 @@

OSR Events ({{TIME_ZONE}})

{% if cal_event.start.date == now.date %} - Today ! + {% trans "Today !" %} {% else %} {{cal_event.start|date:"d, M"}} {% endif %} diff --git a/fullcalendar/templates/fullcalendar/includes/modal.html b/fullcalendar/templates/fullcalendar/includes/modal.html index 1d737ebf9..2c7e73e87 100644 --- a/fullcalendar/templates/fullcalendar/includes/modal.html +++ b/fullcalendar/templates/fullcalendar/includes/modal.html @@ -1,22 +1,24 @@ -{% load calendar_tags %} +{% load calendar_tags i18n %}

TitleBegin Time (UTC/24h)End Time (UTC/24h)Category EditDelete{% trans "Title" %}{% trans "Begin Time (UTC/24h)" %}{% trans "End Time (UTC/24h)" %}{% trans "Category" %} {% trans "Edit" %}{% trans "Delete" %}
- + {% comment %}Translators : start date and time of the event{% endcomment %} + - + {% comment %}Translators : end date and time of the event{% endcomment %} +
START :{% trans "START :" %}
END :{% trans "END :" %}
@@ -24,7 +26,7 @@ diff --git a/home/templates/home/home_page.html b/home/templates/home/home_page.html index fe386d582..53ba21558 100644 --- a/home/templates/home/home_page.html +++ b/home/templates/home/home_page.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% load static i18n wagtailcore_tags wagtailimages_tags puput_tags compress wagtailroutablepage_tags league_tags osr_tags tz%} +{% load static l10n i18n wagtailcore_tags wagtailimages_tags puput_tags compress wagtailroutablepage_tags league_tags osr_tags tz %} {% load comments comments_xtd %} {% block extra_css %} @@ -20,12 +20,14 @@
{{discord_presence_count}} - + {% comment %}Translators : the sentence that appears at the top left of the home page{% endcomment %} +
{{games.total}} - + {% comment %}Translators : the sentence that appears at the top left of the home page +
{% 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 63ec2c9b6..2b5515a3c 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 2b48abef9..f1f5d5fb0 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 3fbd63019..50045c6e1 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 34100151f..5ed7d0d82 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 467b880c3..873776a30 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 568f4bb43..ce614d4ff 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 6d8a0d9f3..6e8214417 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 %}

diff --git a/league/templates/emails/email_confirm.txt b/league/templates/emails/email_confirm.txt index bb83e702c..9bc7415e2 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 72cf9fec4..f3b40faf4 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 1a8db77b4..2890c7c37 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/account.html b/league/templates/league/account.html index 93209991f..4e989b3a5 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 %}