diff --git a/core/forms.py b/core/forms.py index 043467f..75205e5 100644 --- a/core/forms.py +++ b/core/forms.py @@ -4,7 +4,7 @@ from .models import * -class TeamMakeForm(forms.ModelForm): +class TeamCreateForm(forms.ModelForm): class Meta: widgets = dict( name=forms.TextInput(attrs={"placeholder": "team name"}), diff --git a/core/locale/ja_JP/LC_MESSAGES/django.mo b/core/locale/ja_JP/LC_MESSAGES/django.mo index fdff195..9c54758 100644 Binary files a/core/locale/ja_JP/LC_MESSAGES/django.mo and b/core/locale/ja_JP/LC_MESSAGES/django.mo differ diff --git a/core/locale/ja_JP/LC_MESSAGES/django.po b/core/locale/ja_JP/LC_MESSAGES/django.po index 25a31d8..500bbad 100644 --- a/core/locale/ja_JP/LC_MESSAGES/django.po +++ b/core/locale/ja_JP/LC_MESSAGES/django.po @@ -2,13 +2,13 @@ # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. -# +# #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-12-09 22:30-0500\n" +"POT-Creation-Date: 2023-12-10 12:13-0500\n" "PO-Revision-Date: 2022-12-16 20:24+EST\n" "Last-Translator: にぃゆい <+@nyiyui.ca>\n" "Language-Team: LANGUAGE \n" @@ -41,23 +41,23 @@ msgstr "" msgid "ago" msgstr "" -#: .\core\templates\core\base.html:100 +#: .\core\templates\core\base.html:101 msgid "Home" msgstr "ホーム" -#: .\core\templates\core\base.html:107 +#: .\core\templates\core\base.html:108 msgid "Admin" msgstr "管理" -#: .\core\templates\core\base.html:112 +#: .\core\templates\core\base.html:113 msgid "current" msgstr "最新ヒント" -#: .\core\templates\core\base.html:116 .\core\templates\core\logout.html:6 +#: .\core\templates\core\base.html:117 .\core\templates\core\logout.html:6 msgid "Logout" msgstr "ログアウト" -#: .\core\templates\core\base.html:123 +#: .\core\templates\core\base.html:124 msgid "Login" msgstr "" @@ -170,15 +170,30 @@ msgstr "" "\n" "チームプレイ:%(team)s" -#: .\core\templates\core\index.html:45 .\core\templates\core\team_join.html:22 +#: .\core\templates\core\index.html:42 +#, fuzzy +#| msgid "invite members" +msgid "invite more team members" +msgstr "チームに招待" + +#: .\core\templates\core\index.html:44 +#, fuzzy +#| msgid "make a team" +msgid "leave team" +msgstr "チームを作る" + +#: .\core\templates\core\index.html:51 .\core\templates\core\team_join.html:22 msgid "join a team" msgstr "チームに参加" -#: .\core\templates\core\index.html:48 .\core\templates\core\team_new.html:21 -msgid "make a team" +#: .\core\templates\core\index.html:54 +#: .\core\templates\core\team_create.html:21 +#, fuzzy +#| msgid "make a team" +msgid "create a team" msgstr "チームを作る" -#: .\core\templates\core\index.html:55 +#: .\core\templates\core\index.html:61 msgid "" "\n" " no future scavenger hunt is scheduled, please check back later\n" @@ -203,24 +218,57 @@ msgstr "次のコードを見つけたよ:" msgid "change" msgstr "管理" -#: .\core\templates\core\qr.html:46 +#: .\core\templates\core\qr.html:47 msgid "your first hint is:" msgstr "最初のヒントは:" -#: .\core\templates\core\qr.html:48 +#: .\core\templates\core\qr.html:49 msgid "your next hint is:" msgstr "次のヒントは:" -#: .\core\templates\core\qr.html:71 +#: .\core\templates\core\qr.html:72 msgid "" "Oh ho? What lieth there? Tis the light at the end of the tunnel!
" "Congratulations valiant scavenger and thank you for playing!" msgstr "" -#: .\core\templates\core\qr.html:75 +#: .\core\templates\core\qr.html:77 msgid "Incorrect QR code, please read your hint again or contact an organizer" msgstr "" +#: .\core\templates\core\team.html:7 .\core\templates\core\team.html:18 +msgid "Team Information" +msgstr "" + +#: .\core\templates\core\team.html:20 +msgid "Team Name:" +msgstr "" + +#: .\core\templates\core\team.html:21 +#, fuzzy +#| msgid "Invite Members" +msgid "Team Members:" +msgstr "チームに招待" + +#: .\core\templates\core\team.html:22 +msgid "Current QR Code:" +msgstr "" + +#: .\core\templates\core\team.html:28 +msgid "Logic Puzzle Hints:" +msgstr "" + +#: .\core\templates\core\team.html:34 +msgid "You are not part of any team." +msgstr "" + +#: .\core\templates\core\team_create.html:6 +#: .\core\templates\core\team_leave.html:6 +#, fuzzy +#| msgid "make a team" +msgid "Create a Team" +msgstr "チームを作る" + #: .\core\templates\core\team_invite.html:7 msgid "Invite Members" msgstr "チームに招待" @@ -269,11 +317,13 @@ msgstr "チームの参加コードを入れるか" msgid "or, scan your team's QR code" msgstr "チームの二次元コードをスキャンしてにゃ" -#: .\core\templates\core\team_new.html:6 -#, fuzzy -#| msgid "make a team" -msgid "Make a Team" -msgstr "チームを作る" +#: .\core\templates\core\team_leave.html:21 +msgid "Are you sure you want to leave your team?" +msgstr "" + +#: .\core\templates\core\team_leave.html:28 +msgid "No" +msgstr "" #: .\core\utils\actions.py:33 msgid "Set selected users as a Logic Puzzle Setter" @@ -337,9 +387,20 @@ msgstr "チーム%(team_name)sに参加したにゃ" msgid "Team %(team_name)s is full." msgstr "チーム%(team_name)sはもう満杯だよ" -#: .\core\views\team.py:75 -#, python-format -msgid "Made team %(team_name)s" +#: .\core\views\team.py:66 +msgid "You are already in a team. Leave your current team to create a new one." +msgstr "" + +#: .\core\views\team.py:83 +#, fuzzy, python-format +#| msgid "Made team %(team_name)s" +msgid "Created team %(team_name)s" +msgstr "チーム%(team_name)sをつくったよ。" + +#: .\core\views\team.py:101 +#, fuzzy, python-format +#| msgid "Made team %(team_name)s" +msgid "Left team %(team_name)s" msgstr "チーム%(team_name)sをつくったよ。" #~ msgid "" diff --git a/core/templates/core/index.html b/core/templates/core/index.html index b230d42..abb9483 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -50,7 +50,7 @@

{% translate "join a team" %}
  • - {% translate "make a team" %} + {% translate "create a team" %}
  • {% endif %} diff --git a/core/templates/core/team_new.html b/core/templates/core/team_create.html similarity index 79% rename from core/templates/core/team_new.html rename to core/templates/core/team_create.html index 80392ad..dd3e467 100644 --- a/core/templates/core/team_new.html +++ b/core/templates/core/team_create.html @@ -3,7 +3,7 @@ {% load static %} {% block title %} -{% translate "Make a Team" %} +{% translate "Create a Team" %} {% endblock %} {% block extracss %} @@ -18,9 +18,9 @@ {% block body %}
    - {% translate "make a team" %} + {% translate "create a team" %}
    -
    + {% csrf_token %} {{ form }}
    diff --git a/core/templates/core/team_leave.html b/core/templates/core/team_leave.html index 9dff901..dab0c2c 100644 --- a/core/templates/core/team_leave.html +++ b/core/templates/core/team_leave.html @@ -3,7 +3,7 @@ {% load static %} {% block title %} - {% translate "Make a Team" %} + {% translate "Create a Team" %} {% endblock %} {% block extracss %} diff --git a/core/urls.py b/core/urls.py index e69c102..0ddb7f5 100644 --- a/core/urls.py +++ b/core/urls.py @@ -14,7 +14,7 @@ path("signal", qr.qr_signal, name="qr_signal"), path("team", team.team, name="team"), path("team/join/", team.join, name="join"), - path("team/make/", team.make, name="team_new"), + path("team/create/", team.create, name="team_create"), path("team/invite", team.invite, name="team_invite"), path("team/leave", team.leave, name="team_leave"), path("clues", puzzle.logic_clues, name="logic_clues"), diff --git a/core/views/team.py b/core/views/team.py index 95f58bb..e785d89 100644 --- a/core/views/team.py +++ b/core/views/team.py @@ -7,7 +7,7 @@ from django.views.decorators.http import require_http_methods from .qr import team_required, upcoming_hunt_required, block_if_current_hunt -from ..forms import TeamJoinForm, TeamMakeForm +from ..forms import TeamJoinForm, TeamCreateForm from ..models import Team, Invite, generate_invite_code, Hunt @@ -55,15 +55,15 @@ def join(request): @require_http_methods(["GET", "POST"]) @block_if_current_hunt @upcoming_hunt_required -def make(request): +def create(request): if request.method == "POST": - form = TeamMakeForm(request.POST) + form = TeamCreateForm(request.POST) if form.is_valid(): if request.user.in_team: messages.error( request, _( - "You are already in a team. Leave your current team to make a new one." + "You are already in a team. Leave your current team to create a new one." ), ) return redirect(reverse("team_leave")) @@ -80,13 +80,13 @@ def make(request): ) messages.success( request, - _("Made team %(team_name)s") + _("Created team %(team_name)s") % dict(team_name=form.cleaned_data["name"]), ) return redirect(reverse("index")) else: - form = TeamMakeForm() - return render(request, "core/team_new.html", dict(form=form)) + form = TeamCreateForm() + return render(request, "core/team_create.html", dict(form=form)) @login_required