Compare commits

..

No commits in common. "02385dcd081966aa68a8fc0f8d69c5b5172ffaef" and "3ae80ca17f7aca054ce26e508467947cb5708a13" have entirely different histories.

19 changed files with 374 additions and 396 deletions

104
bot.py Normal file
View File

@ -0,0 +1,104 @@
import os
import discord
import discord.utils
import urllib.request, json
import asyncio
import json
import logging
TOKEN = os.getenv('DISCORD_TOKEN')
GUILD = '42ctf'
intents = discord.Intents.all()
client = discord.Client(intents=intents)
db_file = open('members.json', 'r')
users = json.load(db_file)
db_file.close()
logging.basicConfig(filename='bot.log', format='%(asctime)s %(message)s', level=logging.INFO)
guild = ''
roles = {}
def get_rank(token):
url = urllib.request.urlopen("https://www.42ctf.org/accounts/rank/" + token)
data = json.loads(url.read().decode())
rank = data['rank']
return rank
async def watch_roles():
global users
await client.wait_until_ready() # ensures cache is loaded
while not client.is_closed():
for member_id, token in users.items():
if (token == "0000"):
continue
member = discord.utils.get(guild.members, id=int(member_id))
rank = get_rank(token)
if rank == 1 and roles['top1'] not in member.roles:
await member.add_roles(roles['top1'])
await member.remove_roles(roles['top10'])
await member.remove_roles(roles['top50'])
elif rank > 1 and rank <= 10 and roles['top10'] not in member.roles:
await member.add_roles(roles['top10'])
await member.remove_roles(roles['top1'])
await member.remove_roles(roles['top50'])
elif rank > 10 and rank <= 50 and roles['top50'] not in member.roles:
await member.add_roles(roles['top50'])
await member.remove_roles(roles['top10'])
await member.remove_roles(roles['top1'])
elif rank > 50:
await member.remove_roles(roles['top1'])
await member.remove_roles(roles['top10'])
await member.remove_roles(roles['top50'])
await asyncio.sleep(60)
@client.event
async def on_ready():
global guild, roles
guild = discord.utils.get(client.guilds, name=GUILD)
roles['top10'] = discord.utils.get(guild.roles, id=801787467064672286)
roles['top1'] = discord.utils.get(guild.roles, id=798638767359524875)
roles['top50'] = discord.utils.get(guild.roles, id=803729539145924649)
logging.info('%s is connected to the following guild: %s(id: %d)', client.user, guild.name, guild.id)
client.loop.create_task(watch_roles())
@client.event
async def on_message(message):
global guild, roles
if message.author == client.user:
return
if '!connect' in message.content:
try:
user_token = message.content.split(' ')[1]
member = discord.utils.get(guild.members, name=message.author.name)
rank = get_rank(user_token)
users[str(member.id)] = user_token
logging.info("MESSAGE: from %s with token %s", message.author.name, user_token)
with open('members.json', 'w') as json_file:
json.dump(users, json_file)
if rank == 1:
await member.add_roles(roles['top1'])
response = "Congratulations, you're now Top 1. But for how long ?"
elif (rank <= 10):
await member.add_roles(roles['top10'])
response = "You've been granted the Top 10 role. Now, go away and flag !"
elif rank <= 50:
await member.add_roles(roles['top50'])
response = "You've been granted the Top 50 role. Now, go away and flag !"
else:
response = "No role for you now, but I'll keep watching you."
except IndexError:
response = 'usage: !connect 42ctf_token'
await message.author.create_dm()
await message.author.dm_channel.send(response)
client.run(TOKEN)

View File

@ -40,30 +40,7 @@
</div> </div>
</div> </div>
<div class="ctf-block">
<div class="ctf-head">
<h3>{% trans "Connected accounts" %}</h3>
</div> </div>
<div class="bloc-body">
<div class="d-flex">
{% if user.userprofileinfo.discord_id|length > 0 %}
<form action="{% url 'accounts:connections-disconnect-discord' %}" method='POST'
class="form-inline p-2">
{%csrf_token%}
<button class="btn btn-dark" type="submit">{% trans "Disconnect Discord" %}</button>
</form>
{% else %}
<form action="{% url 'accounts:connections-connect-discord' %}" method='POST'
class="form-inline p-2">
{%csrf_token%}
<button class="btn btn-dark" type="submit">{% trans "Connect Discord" %}</button>
</form>
{% endif %}
</div>
</div>
</div>
</div>
<div class="d-none d-md-block col-10 col-md-3 right-sidebar"> <div class="d-none d-md-block col-10 col-md-3 right-sidebar">
<ul class="list-group"> <ul class="list-group">
<li class="list-group-item">{{ user.username }}</li> <li class="list-group-item">{{ user.username }}</li>
@ -88,3 +65,4 @@
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -4,7 +4,6 @@ from django.views.decorators.http import require_POST
from django.views.defaults import bad_request from django.views.defaults import bad_request
from django.urls import reverse from django.urls import reverse
from django.shortcuts import redirect from django.shortcuts import redirect
from django.contrib.sites.models import Site
import os import os
oauth = OAuth() oauth = OAuth()
@ -24,9 +23,8 @@ oauth.register(
def connect(request): def connect(request):
if request.user.userprofileinfo.discord_id: if request.user.userprofileinfo.discord_id:
return bad_request(request, "Already connected") return bad_request(request, "Already connected")
site = Site.objects.get_current()
redirect_uri = reverse('accounts:connections-connect-discord-authorize') redirect_uri = reverse('accounts:connections-connect-discord-authorize')
redirect_uri = "https://" + site.domain + redirect_uri[3:] # remove language code redirect_uri = request.build_absolute_uri(redirect_uri)
print(redirect_uri) print(redirect_uri)
return oauth.discord.authorize_redirect(request, redirect_uri) return oauth.discord.authorize_redirect(request, redirect_uri)
@ -34,10 +32,7 @@ def connect(request):
def authorize(request): def authorize(request):
if request.user.userprofileinfo.discord_id: if request.user.userprofileinfo.discord_id:
return bad_request(request, "Already connected") return bad_request(request, "Already connected")
try:
token = oauth.discord.authorize_access_token(request) token = oauth.discord.authorize_access_token(request)
except:
return redirect('accounts:edit')
response = oauth.discord.get('users/@me', token=token) response = oauth.discord.get('users/@me', token=token)
response = response.json() response = response.json()
discord_id = response['id'] discord_id = response['id']

View File

@ -155,6 +155,17 @@ def profile(request, user_name):
return render(request,'accounts/profile.html', {'user':user_obj, 'solves':solves,'solved':solved,'catsDatas': catsDatas, 'pointDatas': pointDatas, return render(request,'accounts/profile.html', {'user':user_obj, 'solves':solves,'solved':solved,'catsDatas': catsDatas, 'pointDatas': pointDatas,
'rank': rank, 'score' : somme, 'member' : member, 'cats':cats}) 'rank': rank, 'score' : somme, 'member' : member, 'cats':cats})
def rank(request, token):
all_users = UserProfileInfo.objects.filter(score__gt=0).select_related().order_by('-score', 'last_submission_date', 'user__username')
rank = 1
for elem in all_users:
if elem.token == token:
break
rank += 1
data = {"rank": rank}
return JsonResponse(data)
@login_required @login_required
def delete_account(request): def delete_account(request):
if request.method == 'POST': if request.method == 'POST':
@ -171,14 +182,3 @@ def delete_account(request):
else: else:
return render(request, 'accounts/delete.html', {'deleted': False, 'bad_password': False} ) return render(request, 'accounts/delete.html', {'deleted': False, 'bad_password': False} )
def rank(request, token):
all_users = UserProfileInfo.objects.filter(score__gt=0).select_related().order_by('-score', 'last_submission_date', 'user__username')
rank = 1
for elem in all_users:
if elem.token == token:
break
rank += 1
data = {"rank": rank}
return JsonResponse(data)

View File

View File

@ -1,3 +0,0 @@
from django.contrib import admin
# Register your models here.

View File

@ -1,6 +0,0 @@
from django.apps import AppConfig
class ApiConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'api'

View File

@ -1,3 +0,0 @@
from django.db import models
# Create your models here.

View File

@ -1,3 +0,0 @@
from django.test import TestCase
# Create your tests here.

View File

@ -1,6 +0,0 @@
from django.urls import path
from . import views
urlpatterns = [
path('bot/discord', views.discord_bot, name='discord_bot'),
]

View File

@ -1,27 +0,0 @@
from django.shortcuts import render
from accounts.models import UserProfileInfo
from django.http import JsonResponse
import os
# Create your views here.
def discord_bot(request):
if request.method != 'GET':
return JsonResponse({'error':'bad request'})
token = request.GET.get('token')
auth_token = os.getenv('BOT_TOKEN')
if (token != auth_token or not auth_token):
return JsonResponse({'error':'not authorized'})
all_users = UserProfileInfo.objects.select_related().order_by('-score', 'last_submission_date', 'user__username')
data = {}
rank = 1
for user in all_users:
if user.discord_id:
data[user.discord_id] = rank
rank += 1
return JsonResponse(data)

View File

@ -8,6 +8,19 @@ from django.utils.translation import get_language
from math import log from math import log
from accounts.models import UserProfileInfo from accounts.models import UserProfileInfo
def get_description_by_lang(ctf):
lang = get_language()
ret = None
if lang == "fr":
ret = ctf.description
elif lang == "en":
ret = ctf.description_en
elif lang == "de":
ret = ctf.description_de
elif lang == "ru":
ret = ctf.description_ru
return ret
def actualize_points(ctf): def actualize_points(ctf):
if ctf.category.name == "-Intro-": if ctf.category.name == "-Intro-":
return return
@ -37,6 +50,7 @@ def ctf(request, cat_slug, ctf_slug):
ctf_info = get_object_or_404(CTF, slug=ctf_slug, event=None) ctf_info = get_object_or_404(CTF, slug=ctf_slug, event=None)
flagged = False flagged = False
solved_list = CTF_flags.objects.filter(ctf=ctf_info).order_by('flag_date') solved_list = CTF_flags.objects.filter(ctf=ctf_info).order_by('flag_date')
description = get_description_by_lang(ctf_info)
if request.user.is_authenticated: if request.user.is_authenticated:
if CTF_flags.objects.filter(user=request.user, ctf=ctf_info): if CTF_flags.objects.filter(user=request.user, ctf=ctf_info):
flagged = True flagged = True
@ -52,12 +66,12 @@ def ctf(request, cat_slug, ctf_slug):
profil.score += ctf_info.points profil.score += ctf_info.points
profil.save() profil.save()
actualize_points(ctf_info) actualize_points(ctf_info)
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'valitated': True, 'date': timezone.now()}) return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'valitated': True, 'description': description, 'date': timezone.now()})
else: else:
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'failed': True, 'date': timezone.now()}) return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'failed': True, 'description': description, 'date': timezone.now()})
else: else:
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'alvalitated': True, 'date': timezone.now()}) return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'alvalitated': True, 'description': description, 'date': timezone.now()})
else: else:
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'date': timezone.now()}) return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'description': description, 'date': timezone.now()})
else: else:
return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'alvalitated': flagged, 'date': timezone.now()}) return render(request, 'ctfs/ctf_info.html', { 'ctf' : ctf_info, 'solved_list': solved_list, 'alvalitated': flagged, 'description': description, 'date': timezone.now()})

View File

@ -4,4 +4,4 @@
チャレンジポイントは200から始まり、5より低くなることはありません。<br><br> チャレンジポイントは200から始まり、5より低くなることはありません。<br><br>
これにより、課題の実際の難易度をより良く反映できるようになると期待しています。期間限定イベントは、この変更の影響は受けません。 これにより、チャレンジの実際の難易度をより良く反映できるようになると期待しています。期間限定イベントは、この変更の影響は受けません。

View File

@ -1,8 +1,8 @@
SQLインジェクションについて学びたいと思ったことはありませんか<br> SQLインジェクションについて学びたいと思ったことはありませんか<br>
<br> <br>
<b><a class=profile_link href=https://www.42ctf.org/accounts/profile/aldubar>aldubar</a></b>が作成した全く新しい3つの課題を提供します。<br> <b><a class=profile_link href=https://www.42ctf.org/accounts/profile/aldubar>aldubar</a></b>が作成した全く新しい3つのチャレンジを提供します。<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_1'>Simple Question of Logic 1</a></b> (10 points)<br> - <b><a href='https://www.42ctf.org/ctfs/web/simple_question_1'>Simple Question of Logic 1</a></b> (10 points)<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_2'>Simple Question of Logic 2</a></b> (30 points)<br> - <b><a href='https://www.42ctf.org/ctfs/web/simple_question_2'>Simple Question of Logic 2</a></b> (30 points)<br>
- <b><a href='https://www.42ctf.org/ctfs/web/simple_question_3'>Simple Question of Logic 3</a></b> (40 points)<br> - <b><a href='https://www.42ctf.org/ctfs/web/simple_question_3'>Simple Question of Logic 3</a></b> (40 points)<br>
<br> <br>
新しい課題を提案するために、<a class="footer_imgs" href="https://discord.gg/DwZqPpA" target="_blank"><img src="/static/img/discord.png" width="30"></a>へいつでも連絡できることを忘れないでください! 新しいチャレンジを提案するために、<a class="footer_imgs" href="https://discord.gg/DwZqPpA" target="_blank"><img src="/static/img/discord.png" width="30"></a>へいつでも連絡できることを忘れないでください!

View File

@ -20,23 +20,23 @@ msgstr ""
#: accounts/templates/accounts/delete.html:8 #: accounts/templates/accounts/delete.html:8
msgid "Delete account" msgid "Delete account"
msgstr "アカウント削除" msgstr ""
#: accounts/templates/accounts/delete.html:11 #: accounts/templates/accounts/delete.html:11
msgid "Please confirm your password to delete your account." msgid "Please confirm your password to delete your account."
msgstr "アカウントを削除するには、パスワードを入力してください。" msgstr ""
#: accounts/templates/accounts/delete.html:12 #: accounts/templates/accounts/delete.html:12
msgid "Deleted accounts cannot be recovered." msgid "Deleted accounts cannot be recovered."
msgstr "削除されたアカウントは復元できません。" msgstr ""
#: accounts/templates/accounts/delete.html:15 #: accounts/templates/accounts/delete.html:15
msgid "Password inccorect." msgid "Password inccorect."
msgstr "パスワードが正しくありません。" msgstr ""
#: accounts/templates/accounts/delete.html:17 #: accounts/templates/accounts/delete.html:17
msgid "Your account has been deleted." msgid "Your account has been deleted."
msgstr "あなたのアカウントは削除されました。" msgstr ""
#: accounts/templates/accounts/delete.html:22 #: accounts/templates/accounts/delete.html:22
#: accounts/templates/accounts/login.html:19 #: accounts/templates/accounts/login.html:19
@ -44,22 +44,21 @@ msgstr "あなたのアカウントは削除されました。"
#: events/templates/events/create_team.html:27 #: events/templates/events/create_team.html:27
#: events/templates/events/join_team.html:32 #: events/templates/events/join_team.html:32
msgid "Password" msgid "Password"
msgstr "パスワード" msgstr ""
#: accounts/templates/accounts/edit.html:21 #: accounts/templates/accounts/edit.html:21
#: accounts/templates/accounts/login.html:18 #: accounts/templates/accounts/login.html:18
#: accounts/templates/accounts/register.html:22 #: accounts/templates/accounts/register.html:22
#: ctfs/templates/ctfs/ctf_info.html:63 #: ctfs/templates/ctfs/ctf_info.html:63 ctfs/templates/ctfs/ctfs_list.html:12
#: ctfs/templates/ctfs/ctfs_list.html:12
#: events/templates/events/ctf_info.html:65 #: events/templates/events/ctf_info.html:65
#: events/templates/events/event_info.html:64 #: events/templates/events/event_info.html:64
#: scoreboard/templates/scoreboard/scoreboard.html:13 #: scoreboard/templates/scoreboard/scoreboard.html:13
msgid "Username" msgid "Username"
msgstr "ユーザー名" msgstr ""
#: accounts/templates/accounts/edit.html:25 #: accounts/templates/accounts/edit.html:25
msgid "Email" msgid "Email"
msgstr "Eメール" msgstr ""
#: accounts/templates/accounts/edit.html:30 #: accounts/templates/accounts/edit.html:30
#: ctfs/templates/ctfs/ctf_info.html:64 #: ctfs/templates/ctfs/ctf_info.html:64
@ -67,41 +66,40 @@ msgstr "Eメール"
#: events/templates/events/event_info.html:65 #: events/templates/events/event_info.html:65
#: scoreboard/templates/scoreboard/scoreboard.html:14 #: scoreboard/templates/scoreboard/scoreboard.html:14
msgid "Website" msgid "Website"
msgstr "ウェブサイト" msgstr ""
#: accounts/templates/accounts/edit.html:36 #: accounts/templates/accounts/edit.html:36
#: events/templates/events/manage_team.html:29 #: events/templates/events/manage_team.html:29
msgid "Apply" msgid "Apply"
msgstr "適用する" msgstr ""
#: accounts/templates/accounts/edit.html:47 #: accounts/templates/accounts/edit.html:47
#: accounts/templates/accounts/profile.html:46 #: accounts/templates/accounts/profile.html:46
#: ctfs/templates/ctfs/ctf_info.html:65 #: ctfs/templates/ctfs/ctf_info.html:65 ctfs/templates/ctfs/ctfs_list.html:13
#: ctfs/templates/ctfs/ctfs_list.html:13
#: events/templates/events/event_info.html:66 #: events/templates/events/event_info.html:66
#: events/templates/events/event_info.html:89 #: events/templates/events/event_info.html:89
#: events/templates/events/manage_team.html:40 #: events/templates/events/manage_team.html:40
#: events/templates/events/team.html:45 #: events/templates/events/team.html:45
#: scoreboard/templates/scoreboard/scoreboard.html:15 #: scoreboard/templates/scoreboard/scoreboard.html:15
msgid "Score" msgid "Score"
msgstr "スコア" msgstr ""
#: accounts/templates/accounts/edit.html:55 #: accounts/templates/accounts/edit.html:55
#: accounts/templates/accounts/profile.html:60 #: accounts/templates/accounts/profile.html:60
msgid "Registered since" msgid "Registered since"
msgstr "登録日" msgstr ""
#: accounts/templates/accounts/edit.html:61 #: accounts/templates/accounts/edit.html:61
msgid "Delete my account" msgid "Delete my account"
msgstr "アカウント削除" msgstr ""
#: accounts/templates/accounts/login.html:13 #: accounts/templates/accounts/login.html:13
msgid "Please, verify your infos." msgid "Please, verify your infos."
msgstr "あなたの情報を確認してください。" msgstr ""
#: accounts/templates/accounts/login.html:22 #: accounts/templates/accounts/login.html:22
msgid "Reset password" msgid "Reset password"
msgstr "パスワード再設定" msgstr ""
#: accounts/templates/accounts/login.html:31 #: accounts/templates/accounts/login.html:31
#: accounts/templates/accounts/register.html:38 templates/base.html:97 #: accounts/templates/accounts/register.html:38 templates/base.html:97
@ -110,7 +108,7 @@ msgstr "パスワード再設定"
#: templates/registration/password_reset_done.html:18 #: templates/registration/password_reset_done.html:18
#: templates/registration/password_reset_form.html:26 #: templates/registration/password_reset_form.html:26
msgid "Login" msgid "Login"
msgstr "ログイン" msgstr ""
#: accounts/templates/accounts/login.html:32 #: accounts/templates/accounts/login.html:32
#: accounts/templates/accounts/register.html:37 #: accounts/templates/accounts/register.html:37
@ -119,37 +117,37 @@ msgstr "ログイン"
#: templates/registration/password_reset_done.html:19 #: templates/registration/password_reset_done.html:19
#: templates/registration/password_reset_form.html:27 #: templates/registration/password_reset_form.html:27
msgid "Sign up" msgid "Sign up"
msgstr "サインアップ" msgstr ""
#: accounts/templates/accounts/profile.html:10 #: accounts/templates/accounts/profile.html:10
msgid "Challenges Solved by" msgid "Challenges Solved by"
msgstr "解いた課題" msgstr ""
#: accounts/templates/accounts/profile.html:21 #: accounts/templates/accounts/profile.html:21
#: events/templates/events/team.html:20 #: events/templates/events/team.html:20
msgid "Challenge Name" msgid "Challenge Name"
msgstr "課題名" msgstr ""
#: accounts/templates/accounts/profile.html:22 #: accounts/templates/accounts/profile.html:22
#: events/templates/events/team.html:21 #: events/templates/events/team.html:21
msgid "Category" msgid "Category"
msgstr "カテゴリー" msgstr ""
#: accounts/templates/accounts/profile.html:23 #: accounts/templates/accounts/profile.html:23
#: events/templates/events/team.html:22 #: events/templates/events/team.html:22
msgid "Points" msgid "Points"
msgstr "ポイント" msgstr ""
#: accounts/templates/accounts/profile.html:24 #: accounts/templates/accounts/profile.html:24
#: ctfs/templates/ctfs/ctf_info.html:66 #: ctfs/templates/ctfs/ctf_info.html:66
#: events/templates/events/ctf_info.html:67 #: events/templates/events/ctf_info.html:67
#: events/templates/events/team.html:23 #: events/templates/events/team.html:23
msgid "Date" msgid "Date"
msgstr "日付" msgstr ""
#: accounts/templates/accounts/profile.html:39 #: accounts/templates/accounts/profile.html:39
msgid "It seems that this user has not solved any challenge yet..." msgid "It seems that this user has not solved any challenge yet..."
msgstr "まだ何も課題を解いていないようです..." msgstr ""
#: accounts/templates/accounts/profile.html:47 #: accounts/templates/accounts/profile.html:47
#: events/templates/events/event_info.html:63 #: events/templates/events/event_info.html:63
@ -158,471 +156,461 @@ msgstr "まだ何も課題を解いていないようです..."
#: events/templates/events/team.html:46 #: events/templates/events/team.html:46
#: scoreboard/templates/scoreboard/scoreboard.html:12 #: scoreboard/templates/scoreboard/scoreboard.html:12
msgid "Rank" msgid "Rank"
msgstr "ラング" msgstr ""
#: accounts/templates/accounts/profile.html:56 #: accounts/templates/accounts/profile.html:56
msgid "Status: Member" msgid "Status: Member"
msgstr "ステータス: メンバー" msgstr ""
#: accounts/templates/accounts/profile.html:58 #: accounts/templates/accounts/profile.html:58
msgid "Status: Visitor" msgid "Status: Visitor"
msgstr "ステータス: 訪問者" msgstr ""
#: accounts/templates/accounts/profile.html:64 #: accounts/templates/accounts/profile.html:64
#: events/templates/events/team.html:57 #: events/templates/events/team.html:57
msgid "Categories stats" msgid "Categories stats"
msgstr "カテゴリー別の統計" msgstr ""
#: accounts/templates/accounts/register.html:13 #: accounts/templates/accounts/register.html:13
msgid "Welcome !" msgid "Welcome !"
msgstr "ようこそ!" msgstr ""
#: accounts/templates/accounts/register.html:14 #: accounts/templates/accounts/register.html:14
msgid "Your account has been created." msgid "Your account has been created."
msgstr "アカウントが作成されました。" msgstr ""
#: accounts/templates/accounts/register.html:25 #: accounts/templates/accounts/register.html:25
msgid "Personal website" msgid "Personal website"
msgstr "個人サイト" msgstr ""
#: accounts/templates/accounts/register.html:26 #: accounts/templates/accounts/register.html:26
#: events/templates/events/event_info.html:119 #: events/templates/events/event_info.html:119
msgid "Register" msgid "Register"
msgstr "登録" msgstr ""
#: accounts/views/views.py:33 #: accounts/views/views.py:33
msgid "Your account was inactive." msgid "Your account was inactive."
msgstr "アカウントは無効です。" msgstr ""
#: accounts/views/views.py:52 #: accounts/views/views.py:52
msgid "" msgid ""
"The password must contain at least one letter and at least one digit or " "The password must contain at least one letter and at least one digit or "
"punctuation character." "punctuation character."
msgstr "" msgstr ""
"パスワードには、少なくとも1つの文字と、1つの数字または記号を含める必要があり"
"ます。"
#: accounts/views/views.py:54 #: accounts/views/views.py:54
msgid "A user with that email already exists." msgid "A user with that email already exists."
msgstr "そのEメールを持つユーザーがすでに存在しています。" msgstr ""
#: accounts/views/views.py:67 #: accounts/views/views.py:67
msgid "A user with that username already exists." msgid "A user with that username already exists."
msgstr "そのユーザー名はすでに存在しています。" msgstr ""
#: accounts/views/views.py:95 #: accounts/views/views.py:95
msgid "Email already taken." msgid "Email already taken."
msgstr "Eメールはすでに受信済みです。" msgstr ""
#: accounts/views/views.py:101 #: accounts/views/views.py:101
msgid "Username already taken." msgid "Username already taken."
msgstr "ユーザー名はすでに使用されています。" msgstr ""
#: accounts/views/views.py:105 events/views/teams.py:124 #: accounts/views/views.py:105 events/views/teams.py:124
msgid "Updated." msgid "Updated."
msgstr "更新しました。" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:12 #: ctfs/templates/ctfs/ctf_info.html:12
#: events/templates/events/ctf_info.html:12 #: events/templates/events/ctf_info.html:12
msgid "Published date" msgid "Published date"
msgstr "掲載日" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:16 #: ctfs/templates/ctfs/ctf_info.html:16
msgid "Challenge is not yet available." msgid "Challenge is not yet available."
msgstr "課題はまだ利用できません。" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:29 #: ctfs/templates/ctfs/ctf_info.html:29
#: events/templates/events/ctf_info.html:24 #: events/templates/events/ctf_info.html:24
msgid "Congratulation !" msgid "Congratulation !"
msgstr "おめでとうございます!" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:31 #: ctfs/templates/ctfs/ctf_info.html:31
#: events/templates/events/ctf_info.html:26 #: events/templates/events/ctf_info.html:26
msgid "Already flagged" msgid "Already flagged"
msgstr "すでにフラグが立っています" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:33 #: ctfs/templates/ctfs/ctf_info.html:33 ctfs/templates/ctfs/ctf_info.html:42
#: ctfs/templates/ctfs/ctf_info.html:42
#: events/templates/events/ctf_info.html:36 #: events/templates/events/ctf_info.html:36
#: events/templates/events/ctf_info.html:45 #: events/templates/events/ctf_info.html:45
msgid "Start the challenge" msgid "Start the challenge"
msgstr "チャレンジ開始" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:35 #: ctfs/templates/ctfs/ctf_info.html:35 ctfs/templates/ctfs/ctf_info.html:44
#: ctfs/templates/ctfs/ctf_info.html:44
#: events/templates/events/ctf_info.html:38 #: events/templates/events/ctf_info.html:38
#: events/templates/events/ctf_info.html:47 #: events/templates/events/ctf_info.html:47
msgid "Download" msgid "Download"
msgstr "ダウンロード" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:39 #: ctfs/templates/ctfs/ctf_info.html:39
#: events/templates/events/ctf_info.html:42 #: events/templates/events/ctf_info.html:42
msgid "Wrong flag ! You can do it !" msgid "Wrong flag ! You can do it !"
msgstr "フラグが違います!あなたならできる!" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:58 #: ctfs/templates/ctfs/ctf_info.html:58
#: events/templates/events/ctf_info.html:60 #: events/templates/events/ctf_info.html:60
msgid "Solved by" msgid "Solved by"
msgstr "解答者" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:82 #: ctfs/templates/ctfs/ctf_info.html:82
#: events/templates/events/ctf_info.html:90 #: events/templates/events/ctf_info.html:90
msgid "Nobody has solved this challenge yet." msgid "Nobody has solved this challenge yet."
msgstr "まだ誰もこの課題を解いていません。" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:89 #: ctfs/templates/ctfs/ctf_info.html:89
#: events/templates/events/ctf_info.html:97 #: events/templates/events/ctf_info.html:97
msgid "Author" msgid "Author"
msgstr "作成者" msgstr ""
#: ctfs/templates/ctfs/ctf_info.html:90 #: ctfs/templates/ctfs/ctf_info.html:90
#: events/templates/events/ctf_info.html:98 #: events/templates/events/ctf_info.html:98
msgid "Point reward" msgid "Point reward"
msgstr "獲得ポイント" msgstr ""
#: ctfs/templates/ctfs/ctfs_list.html:14 #: ctfs/templates/ctfs/ctfs_list.html:14
msgid "Solved" msgid "Solved"
msgstr "解決済み" msgstr ""
#: ctfs/templates/ctfs/ctfs_list.html:37 #: ctfs/templates/ctfs/ctfs_list.html:37
msgid "No ctf available for this category." msgid "No ctf available for this category."
msgstr "このカテゴリーにはCTFがありません。" msgstr ""
#: ctfs/templates/ctfs/ctfs_list.html:42 #: ctfs/templates/ctfs/ctfs_list.html:42
msgid "Categories" msgid "Categories"
msgstr "カテゴリー" msgstr ""
#: ctfs/templates/ctfs/ctfs_list.html:48 templates/base.html:54 #: ctfs/templates/ctfs/ctfs_list.html:48 templates/base.html:54
msgid "No category available." msgid "No category available."
msgstr "該当するカテゴリーはありません。" msgstr ""
#: events/templates/events/create_team.html:10 #: events/templates/events/create_team.html:10
#: events/templates/events/join_team.html:10 #: events/templates/events/join_team.html:10
msgid "This event starts at" msgid "This event starts at"
msgstr "このイベントは始まります。" msgstr ""
#: events/templates/events/create_team.html:17 #: events/templates/events/create_team.html:17
#: events/templates/events/join_team.html:17 #: events/templates/events/join_team.html:17
msgid "You need to be registered to the event." msgid "You need to be registered to the event."
msgstr "このイベントに登録する必要があります。" msgstr ""
#: events/templates/events/create_team.html:20 #: events/templates/events/create_team.html:20 events/views/teams.py:120
#: events/views/teams.py:120
msgid "Name already taken." msgid "Name already taken."
msgstr "名前はすでに使用されています。" msgstr ""
#: events/templates/events/create_team.html:26 #: events/templates/events/create_team.html:26
#: events/templates/events/join_team.html:31 #: events/templates/events/join_team.html:31
#: events/templates/events/manage_team.html:22 #: events/templates/events/manage_team.html:22
msgid "Team name" msgid "Team name"
msgstr "チーム名" msgstr ""
#: events/templates/events/create_team.html:28 #: events/templates/events/create_team.html:28
#: events/templates/events/create_team.html:49 #: events/templates/events/create_team.html:49
#: events/templates/events/join_team.html:54 #: events/templates/events/join_team.html:54
msgid "Create Team" msgid "Create Team"
msgstr "チーム作成" msgstr ""
#: events/templates/events/create_team.html:33 #: events/templates/events/create_team.html:33
#: events/templates/events/event_pwd.html:28 #: events/templates/events/event_pwd.html:28
#: events/templates/events/join_team.html:38 #: events/templates/events/join_team.html:38
msgid "You need to be logged to access this event." msgid "You need to be logged to access this event."
msgstr "このイベントにアクセスするには、ログインする必要があります。" msgstr ""
#: events/templates/events/create_team.html:42 #: events/templates/events/create_team.html:42
#: events/templates/events/event_info.html:113 #: events/templates/events/event_info.html:113
#: events/templates/events/event_pwd.html:36 #: events/templates/events/event_pwd.html:36
#: events/templates/events/join_team.html:47 #: events/templates/events/join_team.html:47
msgid "Starts at" msgid "Starts at"
msgstr "開始日" msgstr ""
#: events/templates/events/create_team.html:43 #: events/templates/events/create_team.html:43
#: events/templates/events/event_info.html:114 #: events/templates/events/event_info.html:114
#: events/templates/events/event_pwd.html:37 #: events/templates/events/event_pwd.html:37
#: events/templates/events/join_team.html:48 #: events/templates/events/join_team.html:48
msgid "Ends at" msgid "Ends at"
msgstr "終了日" msgstr ""
#: events/templates/events/create_team.html:47 #: events/templates/events/create_team.html:47
#: events/templates/events/event_info.html:129 #: events/templates/events/event_info.html:129
#: events/templates/events/join_team.html:52 #: events/templates/events/join_team.html:52
msgid "Manage my team" msgid "Manage my team"
msgstr "自分のチームを管理する" msgstr ""
#: events/templates/events/create_team.html:48 #: events/templates/events/create_team.html:48
#: events/templates/events/join_team.html:33 #: events/templates/events/join_team.html:33
#: events/templates/events/join_team.html:53 #: events/templates/events/join_team.html:53
msgid "Join Team" msgid "Join Team"
msgstr "チームに参加する" msgstr ""
#: events/templates/events/create_team.html:53 #: events/templates/events/create_team.html:53
#: events/templates/events/join_team.html:58 #: events/templates/events/join_team.html:58
msgid "Auto-matching" msgid "Auto-matching"
msgstr "自動マッチング" msgstr ""
#: events/templates/events/create_team.html:57 #: events/templates/events/create_team.html:57
#: events/templates/events/join_team.html:62 #: events/templates/events/join_team.html:62
msgid "Find me a team !" msgid "Find me a team !"
msgstr "チームを見つけよう!" msgstr ""
#: events/templates/events/ctf_info.html:10 #: events/templates/events/ctf_info.html:10
msgid "Event" msgid "Event"
msgstr "イベント" msgstr ""
#: events/templates/events/ctf_info.html:18 #: events/templates/events/ctf_info.html:18
msgid "" msgid ""
"No translation available. Please try another language (English or French)." "No translation available. Please try another language (English or French)."
msgstr "翻訳はありません。他の言語(英語またはフランス語)をお試しください。" msgstr ""
#: events/templates/events/ctf_info.html:28 #: events/templates/events/ctf_info.html:28
#: events/templates/events/event_info.html:18 #: events/templates/events/event_info.html:18
msgid "This event is over." msgid "This event is over."
msgstr "このイベントは終了しました。" msgstr ""
#: events/templates/events/ctf_info.html:30 #: events/templates/events/ctf_info.html:30
msgid "Error while processing your request. (Invalid Form)" msgid "Error while processing your request. (Invalid Form)"
msgstr "リクエストの処理中にエラーが発生しました(無効なフォーム)" msgstr ""
#: events/templates/events/ctf_info.html:32 #: events/templates/events/ctf_info.html:32
msgid "You must register to the event before submitting flags." msgid "You must register to the event before submitting flags."
msgstr "フラグを送信する前に、イベントへの登録が必要です。" msgstr ""
#: events/templates/events/ctf_info.html:34 #: events/templates/events/ctf_info.html:34
msgid "" msgid ""
"This is a team event, please create or join a team before submitting flags." "This is a team event, please create or join a team before submitting flags."
msgstr "" msgstr ""
"これはチームイベントです。フラグを送信する前に、チームを作成または参加をして"
"ください。"
#: events/templates/events/event_info.html:9 #: events/templates/events/event_info.html:9
msgid "Subscriptions is over." msgid "Subscriptions is over."
msgstr "申し込みは終了しました。" msgstr ""
#: events/templates/events/event_info.html:12 #: events/templates/events/event_info.html:12
#: events/templates/events/event_pwd.html:18 #: events/templates/events/event_pwd.html:18
msgid "You're already registered to this event." msgid "You're already registered to this event."
msgstr "すでにこのイベントに登録しています。" msgstr ""
#: events/templates/events/event_info.html:20 #: events/templates/events/event_info.html:20
#: events/templates/events/event_pwd.html:9 #: events/templates/events/event_pwd.html:9
msgid "This event start at" msgid "This event start at"
msgstr "このイベントの開始時間" msgstr ""
#: events/templates/events/event_info.html:30 #: events/templates/events/event_info.html:30
msgid "Challenges" msgid "Challenges"
msgstr "課題" msgstr ""
#: events/templates/events/event_info.html:47 #: events/templates/events/event_info.html:47
msgid "No challenges available." msgid "No challenges available."
msgstr "チャレンジできません。" msgstr ""
#: events/templates/events/event_info.html:51 #: events/templates/events/event_info.html:51
msgid "The event has not started yet." msgid "The event has not started yet."
msgstr "イベントはまだ始まっていません。" msgstr ""
#: events/templates/events/event_info.html:57 #: events/templates/events/event_info.html:57
msgid "ScoreBoard" msgid "ScoreBoard"
msgstr "スコアボード" msgstr ""
#: events/templates/events/event_info.html:88 #: events/templates/events/event_info.html:88
msgid "Team" msgid "Team"
msgstr "チーム" msgstr ""
#: events/templates/events/event_info.html:106 #: events/templates/events/event_info.html:106
msgid "No one have earn point yet, you gonna be the first ?" msgid "No one have earn point yet, you gonna be the first ?"
msgstr "まだ誰もポイントを獲得していませんが、あなたが最初に獲得しますか?" msgstr ""
#: events/templates/events/event_pwd.html:15 #: events/templates/events/event_pwd.html:15
#: events/templates/events/join_team.html:22 #: events/templates/events/join_team.html:22
msgid "Wrong password submited." msgid "Wrong password submited."
msgstr "パスワードが違います。" msgstr ""
#: events/templates/events/event_pwd.html:20 #: events/templates/events/event_pwd.html:20
msgid "This event is password protected" msgid "This event is password protected"
msgstr "このイベントはパスワードで保護されています。" msgstr ""
#: events/templates/events/event_pwd.html:21 #: events/templates/events/event_pwd.html:21
msgid "You need to submit the event password to gain access to this event." msgid "You need to submit the event password to gain access to this event."
msgstr "" msgstr ""
"このイベントにアクセスするには、イベントのパスワードを送信する必要がありま"
"す。"
#: events/templates/events/events_list.html:6 templates/base.html:61 #: events/templates/events/events_list.html:6 templates/base.html:61
msgid "Events" msgid "Events"
msgstr "イベント" msgstr ""
#: events/templates/events/events_list.html:38 #: events/templates/events/events_list.html:38
msgid "See more" msgid "See more"
msgstr "もっと見る" msgstr ""
#: events/templates/events/events_list.html:44 #: events/templates/events/events_list.html:44
msgid "No events available." msgid "No events available."
msgstr "該当するイベントはありません。" msgstr ""
#: events/templates/events/join_team.html:20 #: events/templates/events/join_team.html:20
msgid "Team does not exist." msgid "Team does not exist."
msgstr "チームが存在しません。" msgstr ""
#: events/templates/events/join_team.html:24 #: events/templates/events/join_team.html:24
msgid "Maximum size reached." msgid "Maximum size reached."
msgstr "最大サイズに達しました。" msgstr ""
#: events/templates/events/manage_team.html:26 #: events/templates/events/manage_team.html:26
msgid "Team password" msgid "Team password"
msgstr "チームのパスワード" msgstr ""
#: events/templates/events/manage_team.html:44 #: events/templates/events/manage_team.html:44
#: events/templates/events/team.html:49 #: events/templates/events/team.html:49
msgid "Members" msgid "Members"
msgstr "メンバー" msgstr ""
#: events/templates/events/manage_team.html:52 #: events/templates/events/manage_team.html:52
msgid "Leave Team" msgid "Leave Team"
msgstr "チームを離れる" msgstr ""
#: events/templates/events/manage_team.html:59 #: events/templates/events/manage_team.html:59
msgid "Open to automatching" msgid "Open to automatching"
msgstr "自動マッチングにする" msgstr ""
#: events/templates/events/manage_team.html:66 #: events/templates/events/manage_team.html:66
msgid "Close to automatching" msgid "Close to automatching"
msgstr "自動マッチングをやめる" msgstr ""
#: events/templates/events/team.html:38 #: events/templates/events/team.html:38
msgid "It seems that this team has not solved any challenge yet..." msgid "It seems that this team has not solved any challenge yet..."
msgstr "このチームは、まだ何も課題を解いていないようです..." msgstr ""
#: home/templates/home/home.html:21 #: home/templates/home/home.html:21
msgid "Weekly Top 5" msgid "Weekly Top 5"
msgstr "週間トップ5" msgstr ""
#: home/templates/home/home.html:48 #: home/templates/home/home.html:48
msgid "No article available." msgid "No article available."
msgstr "記事はありません。" msgstr ""
#: home/templates/home/home.html:53 #: home/templates/home/home.html:53
msgid "Latest challenges added" msgid "Latest challenges added"
msgstr "最新の追加課題" msgstr ""
#: home/templates/home/home.html:58 #: home/templates/home/home.html:58
msgid "points" msgid "points"
msgstr "ポイント" msgstr ""
#: home/templates/home/home.html:62 #: home/templates/home/home.html:62
msgid "No ctf available." msgid "No ctf available."
msgstr "取り組めるctfはありません。" msgstr ""
#: home/templates/home/home.html:66 #: home/templates/home/home.html:66
msgid "Latest Flags" msgid "Latest Flags"
msgstr "最新のフラグ" msgstr ""
#: home/templates/home/home.html:80 #: home/templates/home/home.html:80
msgid "Flags" msgid "Flags"
msgstr "フラグ" msgstr ""
#: home/templates/home/home.html:86 #: home/templates/home/home.html:86
msgid "Users" msgid "Users"
msgstr "ユーザー" msgstr ""
#: project/settings.py:115 #: project/settings.py:115
msgid "English" msgid "English"
msgstr "英語" msgstr ""
#: project/settings.py:116 #: project/settings.py:116
msgid "German" msgid "German"
msgstr "ドイツ語" msgstr ""
#: project/settings.py:117 #: project/settings.py:117
msgid "French" msgid "French"
msgstr "フランス語" msgstr ""
#: project/settings.py:118 #: project/settings.py:118
msgid "Russian" msgid "Russian"
msgstr "ロシア語" msgstr ""
#: project/settings.py:119 #: project/settings.py:119
msgid "Japanese" msgid "Japanese"
msgstr "日本語" msgstr ""
#: project/settings.py:120 #: project/settings.py:120
msgid "Spanish" msgid "Spanish"
msgstr "スペイン語" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:38 #: scoreboard/templates/scoreboard/scoreboard.html:38
msgid "First" msgid "First"
msgstr "最初" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:39 #: scoreboard/templates/scoreboard/scoreboard.html:39
msgid "Previous" msgid "Previous"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:43 #: scoreboard/templates/scoreboard/scoreboard.html:43
msgid "Page " msgid "Page "
msgstr "ページ" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:47 #: scoreboard/templates/scoreboard/scoreboard.html:47
msgid "Next" msgid "Next"
msgstr "" msgstr ""
#: scoreboard/templates/scoreboard/scoreboard.html:48 #: scoreboard/templates/scoreboard/scoreboard.html:48
msgid "Last" msgid "Last"
msgstr "最後" msgstr ""
#: templates/base.html:59 #: templates/base.html:59
msgid "Scoreboard" msgid "Scoreboard"
msgstr "スコアボード" msgstr ""
#: templates/base.html:64 #: templates/base.html:64
msgid "Resources" msgid "Resources"
msgstr "リソース" msgstr ""
#: templates/base.html:93 #: templates/base.html:93
msgid "Logout" msgid "Logout"
msgstr "ログアウト" msgstr ""
#: templates/base.html:100 #: templates/base.html:100
msgid "Sign Up" msgid "Sign Up"
msgstr "サインアップ" msgstr ""
#: templates/base.html:135 #: templates/base.html:135
msgid "Become a Patron!" msgid "Become a Patron!"
msgstr "支援者になる!" msgstr ""
#: templates/registration/password_reset_complete.html:11 #: templates/registration/password_reset_complete.html:11
msgid "Your new password has been set." msgid "Your new password has been set."
msgstr "新しいパスワードが設定されました。" msgstr ""
#: templates/registration/password_reset_confirm.html:20 #: templates/registration/password_reset_confirm.html:20
msgid "Your password cant be too similar to your other personal information." msgid "Your password cant be too similar to your other personal information."
msgstr "パスワードは、自身の個人情報と似すぎていてはいけません。" msgstr ""
#: templates/registration/password_reset_confirm.html:21 #: templates/registration/password_reset_confirm.html:21
msgid "Your password must contain at least 8 characters." msgid "Your password must contain at least 8 characters."
msgstr "パスワードには8文字以上が必要です。" msgstr ""
#: templates/registration/password_reset_confirm.html:22 #: templates/registration/password_reset_confirm.html:22
msgid "Your password cant be a commonly used password." msgid "Your password cant be a commonly used password."
msgstr "パスワードは、一般的に使われているものを使用しないでください。" msgstr ""
#: templates/registration/password_reset_confirm.html:23 #: templates/registration/password_reset_confirm.html:23
msgid "Your password cant be entirely numeric." msgid "Your password cant be entirely numeric."
msgstr "パスワードはすべて数字にはできません。" msgstr ""
#: templates/registration/password_reset_confirm.html:26 #: templates/registration/password_reset_confirm.html:26
msgid "Confirm" msgid "Confirm"
msgstr "確認" msgstr ""
#: templates/registration/password_reset_confirm.html:28 #: templates/registration/password_reset_confirm.html:28
msgid "Submit" msgid "Submit"
msgstr "送信" msgstr ""
#: templates/registration/password_reset_done.html:11 #: templates/registration/password_reset_done.html:11
msgid "" msgid ""
"We've emailed you instructions for setting your password. You should receive " "We've emailed you instructions for setting your password. You should receive "
"the email shortly!" "the email shortly!"
msgstr "" msgstr ""
"パスワードの設定方法をメールでお送りしました。まもなくメールが届くはずです!"
#: templates/registration/password_reset_form.html:16 #: templates/registration/password_reset_form.html:16
msgid "Reset" msgid "Reset"
msgstr "リセット" msgstr ""

View File

@ -38,7 +38,6 @@ INSTALLED_APPS = [
'scoreboard.apps.ScoreboardConfig', 'scoreboard.apps.ScoreboardConfig',
'resources.apps.ResourcesConfig', 'resources.apps.ResourcesConfig',
'django.contrib.sites', 'django.contrib.sites',
'api.apps.ApiConfig',
] ]
MIDDLEWARE = [ MIDDLEWARE = [

View File

@ -24,7 +24,6 @@ urlpatterns = [
path('', include('home.urls')), path('', include('home.urls')),
path('set_lang/<str:lang_code>', home.views.set_language, name="set_language"), path('set_lang/<str:lang_code>', home.views.set_language, name="set_language"),
path('dashboard/secret/admin', admin.site.urls), path('dashboard/secret/admin', admin.site.urls),
path('api/', include('api.urls'))
] ]
urlpatterns += i18n_patterns( urlpatterns += i18n_patterns(

View File

@ -20,11 +20,11 @@ msgstr ""
#: resources/templates/resources/42ctf.html:7 #: resources/templates/resources/42ctf.html:7
msgid "What is 42CTF ?" msgid "What is 42CTF ?"
msgstr "42CTFとは" msgstr ""
#: resources/templates/resources/42ctf.html:10 #: resources/templates/resources/42ctf.html:10
msgid "A short introduction to CTF" msgid "A short introduction to CTF"
msgstr "CTFについての簡単な紹介" msgstr ""
#: resources/templates/resources/42ctf.html:11 #: resources/templates/resources/42ctf.html:11
msgid "" msgid ""
@ -32,172 +32,144 @@ msgid ""
"participants have to solve challenges of various categories to gain points " "participants have to solve challenges of various categories to gain points "
"and progress on the scoreboard." "and progress on the scoreboard."
msgstr "" msgstr ""
"42CTFとは、Capture The Flagの略です。サイバーセキュリティの競技会のことで、参"
"加者は様々なカテゴリーの課題を解決してポイントを獲得し、スコアボードでの順位"
"を上げていきます。"
#: resources/templates/resources/42ctf.html:12 #: resources/templates/resources/42ctf.html:12
msgid "" msgid ""
"The challenges require participants to find sort of passwords called \"flags" "The challenges require participants to find sort of passwords called \"flags"
"\" and to submit them on the platform." "\" and to submit them on the platform."
msgstr "" msgstr ""
"この課題では、参加者は\"フラグ\"と呼ばれるパスワードを見つけて、プラット"
"フォームに送信することになっています。"
#: resources/templates/resources/42ctf.html:15 #: resources/templates/resources/42ctf.html:15
msgid "Functionment of 42CTF" msgid "Functionment of 42CTF"
msgstr "42CTFの機能紹介" msgstr ""
#: resources/templates/resources/42ctf.html:16 #: resources/templates/resources/42ctf.html:16
msgid "42CTF is what we call a permanent CTF." msgid "42CTF is what we call a permanent CTF."
msgstr "42CTFは、いわゆる永続的CTFです。" msgstr ""
#: resources/templates/resources/42ctf.html:17 #: resources/templates/resources/42ctf.html:17
msgid "Except from the" msgid "Except from the"
msgstr "こちらを除き" msgstr ""
#: resources/templates/resources/42ctf.html:17 #: resources/templates/resources/42ctf.html:17
msgid "events" msgid "events"
msgstr "(イベント)" msgstr ""
#: resources/templates/resources/42ctf.html:17 #: resources/templates/resources/42ctf.html:17
msgid "challenges are available on the platform without time limitations." msgid "challenges are available on the platform without time limitations."
msgstr "時間制限なしにプラットフォーム上でチャレンジ可能です。" msgstr ""
#: resources/templates/resources/42ctf.html:18 #: resources/templates/resources/42ctf.html:18
msgid "The registration on 42CTF is open to everyone, 42 students or not." msgid "The registration on 42CTF is open to everyone, 42 students or not."
msgstr "42CTFへの登録は、42の学生であるかどうかに関わらず、誰でも可能です。" msgstr ""
#: resources/templates/resources/42ctf.html:19 #: resources/templates/resources/42ctf.html:19
msgid "" msgid ""
"Events may or may not be open. If you would like to organize an event on " "Events may or may not be open. If you would like to organize an event on "
"42CTF, feel free to contact us." "42CTF, feel free to contact us."
msgstr "" msgstr ""
"イベントは開催する場合としない場合があります。42CTFでのイベント開催をご希望の"
"方は、お気軽にお問い合わせください。"
#: resources/templates/resources/42ctf.html:22 #: resources/templates/resources/42ctf.html:22
msgid "42CTF Team" msgid "42CTF Team"
msgstr "42CTFチーム" msgstr ""
#: resources/templates/resources/42ctf.html:23 #: resources/templates/resources/42ctf.html:23
msgid "42CTF is managed by 42 students." msgid "42CTF is managed by 42 students."
msgstr "42CTFは42の学生によって運営されています。" msgstr ""
#: resources/templates/resources/42ctf.html:24 #: resources/templates/resources/42ctf.html:24
msgid "You can meet the team on" msgid "You can meet the team on"
msgstr "こちらでチームに会えます:" msgstr ""
#: resources/templates/resources/42ctf.html:25 #: resources/templates/resources/42ctf.html:25
msgid "" msgid ""
"Challenges are created by various contributors, not necessarily 42 students." "Challenges are created by various contributors, not necessarily 42 students."
msgstr "課題は42の学生だけではなく、様々な協力者によって作られます。" msgstr ""
#: resources/templates/resources/42ctf.html:26 #: resources/templates/resources/42ctf.html:26
msgid "" msgid ""
"Anyone is welcome to submit their own challenges, either on the permanent " "Anyone is welcome to submit their own challenges, either on the permanent "
"CTF or for a specific event." "CTF or for a specific event."
msgstr "" msgstr ""
"常設のCTFでも、特定のイベントでも、誰でも自身が作成した課題を提出することがで"
"きます。"
#: resources/templates/resources/create_challenge.html:7 #: resources/templates/resources/create_challenge.html:7
msgid "Create new challenges" msgid "Create new challenges"
msgstr "新しい課題を作成する" msgstr ""
#: resources/templates/resources/create_challenge.html:10 #: resources/templates/resources/create_challenge.html:10
msgid "If you want to create new challenges for 42CTF, send us a message on " msgid "If you want to create new challenges for 42CTF, send us a message on "
msgstr "" msgstr ""
"42CTFの新しい課題を作成したい方は、こちらでメッセージを送ってください"
#: resources/templates/resources/create_challenge.html:11 #: resources/templates/resources/create_challenge.html:11
msgid "If your challenge is offline, then you don't have to ask us in advance." msgid "If your challenge is offline, then you don't have to ask us in advance."
msgstr "オフラインでの課題であれば、事前にご相談いただく必要はありません。" msgstr ""
#: resources/templates/resources/create_challenge.html:12 #: resources/templates/resources/create_challenge.html:12
msgid "" msgid ""
"If your challenge is online (for example web or pwn), then you should give " "If your challenge is online (for example web or pwn), then you should give "
"us a short description of what you want to do." "us a short description of what you want to do."
msgstr "" msgstr ""
"課題がオンラインの場合webやpwn、何をしたいのかを簡単に説明してくださ"
"い。"
#: resources/templates/resources/create_challenge.html:13 #: resources/templates/resources/create_challenge.html:13
msgid "" msgid ""
"We may be able to help you or to give you resources such as dockerfiles." "We may be able to help you or to give you resources such as dockerfiles."
msgstr "" msgstr ""
"私たちがお手伝いをさせていただいたり、dockerfileなどのリソースを提供させてい"
"ただく場合があります。"
#: resources/templates/resources/create_challenge.html:14 #: resources/templates/resources/create_challenge.html:14
msgid "We plan to make those resources publicly available in a near future." msgid "We plan to make those resources publicly available in a near future."
msgstr "近日、これらのリソースを公開する予定です。" msgstr ""
#: resources/templates/resources/donate.html:7 #: resources/templates/resources/donate.html:7
msgid "Donate" msgid "Donate"
msgstr "寄付" msgstr ""
#: resources/templates/resources/donate.html:10 #: resources/templates/resources/donate.html:10
msgid "Become a 42CTF member" msgid "Become a 42CTF member"
msgstr "42CTFのメンバーになる" msgstr ""
#: resources/templates/resources/donate.html:11 #: resources/templates/resources/donate.html:11
msgid "" msgid ""
"42CTF is a non-profit organization with a legal status under the french law " "42CTF is a non-profit organization with a legal status under the french law "
"(Association loi 1901)." "(Association loi 1901)."
msgstr "" msgstr ""
"42CTFは、フランスの法律Association loi 1901に基づく法的地位を有する非営利"
"団体です。"
#: resources/templates/resources/donate.html:12 #: resources/templates/resources/donate.html:12
msgid "You can support us by becoming a member and paying a fee of 15 euros." msgid "You can support us by becoming a member and paying a fee of 15 euros."
msgstr "" msgstr ""
"メンバーになって、15ユーロの会費を払うことで、私たちをサポートすることができ"
"ます。"
#: resources/templates/resources/donate.html:13 #: resources/templates/resources/donate.html:13
msgid "Membership is then granted for 1 year." msgid "Membership is then granted for 1 year."
msgstr "その後、1年間のメンバーシップが付与されます。" msgstr ""
#: resources/templates/resources/donate.html:15 #: resources/templates/resources/donate.html:15
msgid "When you become a member, you gain the following advantages:" msgid "When you become a member, you gain the following advantages:"
msgstr "会員になると、以下のようなメリットがあります:" msgstr ""
#: resources/templates/resources/donate.html:16 #: resources/templates/resources/donate.html:16
msgid "" msgid ""
"A different color for your pseudo in the scoreboard, to let everyone know " "A different color for your pseudo in the scoreboard, to let everyone know "
"you're a member." "you're a member."
msgstr "" msgstr ""
"スコアボードに表示されるアカウント名の色が変わり、メンバーであることが誰にで"
"もわかるように。"
#: resources/templates/resources/donate.html:17 #: resources/templates/resources/donate.html:17
msgid "" msgid ""
"The possibility to play again past CTF, with challenges no longer available, " "The possibility to play again past CTF, with challenges no longer available, "
"in the form of private events with the people of your choice." "in the form of private events with the people of your choice."
msgstr "" msgstr ""
"チャレンジができなくなった過去のCTFを、好きな人とプライベートイベントの形で再"
"びチャレンジできる可能性。"
#: resources/templates/resources/donate.html:18 #: resources/templates/resources/donate.html:18
msgid "" msgid ""
"Ex: you played Welcome CTF 2021, and want to play it again with your friends " "Ex: you played Welcome CTF 2021, and want to play it again with your friends "
"during one weekend." "during one weekend."
msgstr "" msgstr ""
"例Welcome CTF 2021 に一度チャレンジして、週末に友達ともう一度チャレンジした"
"いと思っている方。"
#: resources/templates/resources/donate.html:19 #: resources/templates/resources/donate.html:19
msgid "Or you didn't play Welcome CTF 2021 because you were not eligible." msgid "Or you didn't play Welcome CTF 2021 because you were not eligible."
msgstr "" msgstr ""
"または、Welcome CTF 2021 への参加資格がなかったため、チャレンジできなかった"
"方。"
#: resources/templates/resources/donate.html:22 #: resources/templates/resources/donate.html:22
msgid "More advantages may come later, and you can submit us your ideas." msgid "More advantages may come later, and you can submit us your ideas."
msgstr "" msgstr ""
"もっと多くの利点があるかもしれませんし、あなたのアイデアを私たちに提供してい"
"ただくことも可能です。"
#: resources/templates/resources/donate.html:23 #: resources/templates/resources/donate.html:23
msgid "" msgid ""
@ -205,105 +177,91 @@ msgid ""
"will be equivalent to organize paid events, and we want 42CTF to remain FREE " "will be equivalent to organize paid events, and we want 42CTF to remain FREE "
"for all." "for all."
msgstr "" msgstr ""
"しかし、メンバーのみ参加できる期間限定CTFを開催することはありません。これは、"
"有料のイベントを開催することと同義であり、私たちは42CTFがすべての人にとって無"
"料であることを望んでいます。"
#: resources/templates/resources/donate.html:26 #: resources/templates/resources/donate.html:26
msgid "Donate to 42CTF" msgid "Donate to 42CTF"
msgstr "42CTFに寄付する" msgstr ""
#: resources/templates/resources/donate.html:27 #: resources/templates/resources/donate.html:27
msgid "" msgid ""
"You can donate to 42CTF or pay your membership with the following means:" "You can donate to 42CTF or pay your membership with the following means:"
msgstr "" msgstr ""
"42CTFへのご寄付やメンバーシップのお支払いは、以下の手段で行うことができます"
#: resources/templates/resources/donate.html:46 #: resources/templates/resources/donate.html:46
msgid "" msgid ""
"If you would like us to add another payment method or if you want to pay in " "If you would like us to add another payment method or if you want to pay in "
"cash, send us a message !" "cash, send us a message !"
msgstr "" msgstr ""
"他のお支払い方法や現金でのお支払いをご希望の場合は、メッセージをお送りくださ"
"い。"
#: resources/templates/resources/donate.html:48 #: resources/templates/resources/donate.html:48
msgid "" msgid ""
"If you're paying for your membership, don't forget to send us your first and " "If you're paying for your membership, don't forget to send us your first and "
"last name, as well as your 42CTF pseudo." "last name, as well as your 42CTF pseudo."
msgstr "" msgstr ""
"メンバーシップをお支払いになる場合は、氏名と42CTFのアカウント名を忘れずにお送"
"りください。"
#: resources/templates/resources/donate.html:49 #: resources/templates/resources/donate.html:49
msgid "" msgid ""
"We will only use thoe data to keep track of our members and grant you " "We will only use thoe data to keep track of our members and grant you "
"advantages, and we will never communicate them to any third party." "advantages, and we will never communicate them to any third party."
msgstr "" msgstr ""
"これらのデータは、メンバーの管理と特典の付与のためにのみ使用し、第三者に提供"
"することはありません。"
#: resources/templates/resources/edit.html:7 #: resources/templates/resources/edit.html:7
msgid "Edit this page" msgid "Edit this page"
msgstr "このページの編集" msgstr ""
#: resources/templates/resources/edit.html:12 #: resources/templates/resources/edit.html:12
msgid "" msgid ""
"More information coming soon, but as you can guess it involves making a pull " "More information coming soon, but as you can guess it involves making a pull "
"request to your favorite" "request to your favorite"
msgstr "" msgstr ""
"詳細は近日中にお知らせしますが、お察しの通り、以下にプルリクエストをすること"
"になります:"
#: resources/templates/resources/tools.html:7 #: resources/templates/resources/tools.html:7
msgid "Recommended Tools" msgid "Recommended Tools"
msgstr "おすすめのツール" msgstr ""
#: resources/templates/resources/tools.html:10 #: resources/templates/resources/tools.html:10
msgid "To get you started, we built a VM that you can simply import in" msgid "To get you started, we built a VM that you can simply import in"
msgstr "手始めに、Virtual BoxでインストールするだけのVMを構築しました" msgstr ""
#: resources/templates/resources/tools.html:10 #: resources/templates/resources/tools.html:10
msgid "with a bunch of useful tools." msgid "with a bunch of useful tools."
msgstr "便利なツールを使用しました。" msgstr ""
#: resources/templates/resources/tools.html:11 #: resources/templates/resources/tools.html:11
msgid "You can dowload this OVA" msgid "You can dowload this OVA"
msgstr "このOVAはこちらからダウンロードできます" msgstr ""
#: resources/templates/resources/tools.html:11 #: resources/templates/resources/tools.html:11
msgid "here" msgid "here"
msgstr "こちら" msgstr ""
#: resources/templates/resources/tools.html:13 #: resources/templates/resources/tools.html:13
msgid "Here are the tools installed on the VM:" msgid "Here are the tools installed on the VM:"
msgstr "以下に、VMにインストールされたツールを紹介します" msgstr ""
#: resources/templates/resources/tools.html:22 #: resources/templates/resources/tools.html:22
msgid "" msgid ""
"If you want to solve the challenges on your own machine, we recommend you to " "If you want to solve the challenges on your own machine, we recommend you to "
"use a Linux operating system." "use a Linux operating system."
msgstr "" msgstr ""
"自分のマシンで課題にチャレンジしたい場合は、Linux OSを使用することをお勧めし"
"ます。"
#: resources/templates/resources/tools.html:23 #: resources/templates/resources/tools.html:23
msgid "" msgid ""
"Most of the reverse challenges are ELF binaries and won't run on Mac OS or " "Most of the reverse challenges are ELF binaries and won't run on Mac OS or "
"Windows." "Windows."
msgstr "ReversingのほとんどはELFバイナリで、Mac OSやWindowsでは動作しません。" msgstr ""
#: resources/templates/resources/tools.html:25 #: resources/templates/resources/tools.html:25
msgid "Additionnaly, you will need the following languages interpreters:" msgid "Additionnaly, you will need the following languages interpreters:"
msgstr "さらに、以下の言語のインタプリタが必要です。" msgstr ""
#: resources/templates/resources/translate.html:7 #: resources/templates/resources/translate.html:7
msgid "Translate 42CTF" msgid "Translate 42CTF"
msgstr "42CTFを翻訳" msgstr ""
#: resources/templates/resources/translate.html:10 #: resources/templates/resources/translate.html:10
msgid "42CTF source code is publicly available on this" msgid "42CTF source code is publicly available on this"
msgstr "42CTFのソースコードはこのサイトで公開されています。" msgstr ""
#: resources/templates/resources/translate.html:11 #: resources/templates/resources/translate.html:11
msgid "" msgid ""
@ -311,27 +269,21 @@ msgid ""
"contribute if you want to help us, by making the platform always more " "contribute if you want to help us, by making the platform always more "
"accessible." "accessible."
msgstr "" msgstr ""
"翻訳にはプログラミングのスキルは必要ありません。プラットフォームをより使いや"
"すくすることで、私たちに貢献したいとお考えの方には良い方法です。"
#: resources/templates/resources/translate.html:12 #: resources/templates/resources/translate.html:12
msgid "We have a" msgid "We have a"
msgstr "こちらがあります。:" msgstr ""
#: resources/templates/resources/translate.html:12 #: resources/templates/resources/translate.html:12
msgid "" msgid ""
"describing how to translate pages with the Django internalization module." "describing how to translate pages with the Django internalization module."
msgstr "" msgstr ""
"djangoのinternalizationモジュールを使ってページを翻訳する方法を説明したもので"
"す。"
#: resources/templates/resources/translate.html:13 #: resources/templates/resources/translate.html:13
msgid "" msgid ""
"We invite you to read it to know all the details, but it merely requires you " "We invite you to read it to know all the details, but it merely requires you "
"to edit text files, so you see, no programming skills required ;)" "to edit text files, so you see, no programming skills required ;)"
msgstr "" msgstr ""
"詳細はぜひ読んでいただきたいのですが、単にテキストファイルを編集するだけなの"
"で、プログラミングのスキルは必要ありません ;)"
#: resources/templates/resources/translate.html:14 #: resources/templates/resources/translate.html:14
msgid "" msgid ""
@ -339,10 +291,7 @@ msgid ""
"then open a pull request so that we can merge your contributions into our " "then open a pull request so that we can merge your contributions into our "
"repository." "repository."
msgstr "" msgstr ""
"gitリポジトリをフォークしていただき、変更を加えてプッシュし、プルリクエストを"
"作成していただくことで、皆さんの貢献を私たちのリポジトリにマージすることがで"
"きます。"
#: resources/templates/resources/translate.html:15 #: resources/templates/resources/translate.html:15
msgid "Don't hesitate to reach for help on" msgid "Don't hesitate to reach for help on"
msgstr "躊躇せずに、こちらで助けを求めてください。:" msgstr ""