Added a lot of i18n stuff

This commit is contained in:
Felipe Martín 2015-09-10 20:15:26 +02:00
parent d609b31586
commit 0bbc0ea097
24 changed files with 356 additions and 19 deletions

View File

@ -10,6 +10,109 @@ from django.utils.text import slugify
from amiibofindr.apps.amiibo.models import AmiiboCard, Collection
CARD_IMAGES = """
/amiibo-cards/assets/img/cards/NVL-C-MAAA-USZ-F0(0)001.png
/amiibo-cards/assets/img/cards/NVL-C-MAAB-USZ-F0(0)002.png
/amiibo-cards/assets/img/cards/NVL-C-MAAC-USZ-F0(0)003.png
/amiibo-cards/assets/img/cards/NVL-C-MAAD-USZ-F0(0)004.png
/amiibo-cards/assets/img/cards/NVL-C-MAAE-USZ-F0(0)005.png
/amiibo-cards/assets/img/cards/NVL-C-MAAF-USZ-F0(0)006.png
/amiibo-cards/assets/img/cards/NVL-C-MAAG-USZ-F0(0)007.png
/amiibo-cards/assets/img/cards/NVL-C-MAAH-USZ-F0(0)008.png
/amiibo-cards/assets/img/cards/NVL-C-MAAJ-USZ-F0(0)009.png
/amiibo-cards/assets/img/cards/NVL-C-MAAK-USZ-F0(0)010.png
/amiibo-cards/assets/img/cards/NVL-C-MAAL-USZ-F0(0)011.png
/amiibo-cards/assets/img/cards/NVL-C-MAAM-USZ-F0(0)012.png
/amiibo-cards/assets/img/cards/NVL-C-MAAN-USZ-F0(0)013.png
/amiibo-cards/assets/img/cards/NVL-C-MAAP-USZ-F0(0)014.png
/amiibo-cards/assets/img/cards/NVL-C-MAAQ-USZ-F0(0)015.png
/amiibo-cards/assets/img/cards/NVL-C-MAAR-USZ-F0(0)016.png
/amiibo-cards/assets/img/cards/NVL-C-MAAS-USZ-F0(0)017.png
/amiibo-cards/assets/img/cards/NVL-C-MAAT-USZ-F0(0)018.png
/amiibo-cards/assets/img/cards/NVL-C-MAAU-USZ-F0(0)019.png
/amiibo-cards/assets/img/cards/NVL-C-MAAV-USZ-F0(0)020.png
/amiibo-cards/assets/img/cards/NVL-C-MAAW-USZ-F0(0)021.png
/amiibo-cards/assets/img/cards/NVL-C-MAAX-USZ-F0(0)022.png
/amiibo-cards/assets/img/cards/NVL-C-MAAY-USZ-F0(0)023.png
/amiibo-cards/assets/img/cards/NVL-C-MAAZ-USZ-F0(0)024.png
/amiibo-cards/assets/img/cards/NVL-C-MABA-USZ-F0(0)025.png
/amiibo-cards/assets/img/cards/NVL-C-MABB-USZ-F0(0)026.png
/amiibo-cards/assets/img/cards/NVL-C-MABC-USZ-F0(0)027.png
/amiibo-cards/assets/img/cards/NVL-C-MABD-USZ-F0(0)028.png
/amiibo-cards/assets/img/cards/NVL-C-MABE-USZ-F0(0)029.png
/amiibo-cards/assets/img/cards/NVL-C-MABF-USZ-F0(0)030.png
/amiibo-cards/assets/img/cards/NVL-C-MABG-USZ-F0(0)031.png
/amiibo-cards/assets/img/cards/NVL-C-MABH-USZ-F0(0)032.png
/amiibo-cards/assets/img/cards/NVL-C-MABJ-USZ-F0(0)033.png
/amiibo-cards/assets/img/cards/NVL-C-MABK-USZ-F0(0)034.png
/amiibo-cards/assets/img/cards/NVL-C-MABL-USZ-F0(0)035.png
/amiibo-cards/assets/img/cards/NVL-C-MABM-USZ-F0(0)036.png
/amiibo-cards/assets/img/cards/NVL-C-MABN-USZ-F0(0)037.png
/amiibo-cards/assets/img/cards/NVL-C-MABP-USZ-F0(0)038.png
/amiibo-cards/assets/img/cards/NVL-C-MABQ-USZ-F0(0)039.png
/amiibo-cards/assets/img/cards/NVL-C-MABR-USZ-F0(0)040.png
/amiibo-cards/assets/img/cards/NVL-C-MABS-USZ-F0(0)041.png
/amiibo-cards/assets/img/cards/NVL-C-MABT-USZ-F0(0)042.png
/amiibo-cards/assets/img/cards/NVL-C-MABU-USZ-F0(0)043.png
/amiibo-cards/assets/img/cards/NVL-C-MABV-USZ-F0(0)044.png
/amiibo-cards/assets/img/cards/NVL-C-MABW-USZ-F0(0)045.png
/amiibo-cards/assets/img/cards/NVL-C-MABX-USZ-F0(0)046.png
/amiibo-cards/assets/img/cards/NVL-C-MABY-USZ-F0(0)047.png
/amiibo-cards/assets/img/cards/NVL-C-MABZ-USZ-F0(0)048.png
/amiibo-cards/assets/img/cards/NVL-C-MACA-USZ-F0(0)049.png
/amiibo-cards/assets/img/cards/NVL-C-MACB-USZ-F0(0)050.png
/amiibo-cards/assets/img/cards/NVL-C-MACC-USZ-F0(0)051.png
/amiibo-cards/assets/img/cards/NVL-C-MACD-USZ-F0(0)052.png
/amiibo-cards/assets/img/cards/NVL-C-MACE-USZ-F0(0)053.png
/amiibo-cards/assets/img/cards/NVL-C-MACF-USZ-F0(0)054.png
/amiibo-cards/assets/img/cards/NVL-C-MACG-USZ-F0(0)055.png
/amiibo-cards/assets/img/cards/NVL-C-MACH-USZ-F0(0)056.png
/amiibo-cards/assets/img/cards/NVL-C-MACJ-USZ-F0(0)057.png
/amiibo-cards/assets/img/cards/NVL-C-MACK-USZ-F0(0)058.png
/amiibo-cards/assets/img/cards/NVL-C-MACL-USZ-F0(0)059.png
/amiibo-cards/assets/img/cards/NVL-C-MACM-USZ-F0(0)060.png
/amiibo-cards/assets/img/cards/NVL-C-MACN-USZ-F0(0)061.png
/amiibo-cards/assets/img/cards/NVL-C-MACP-USZ-F0(0)062.png
/amiibo-cards/assets/img/cards/NVL-C-MACQ-USZ-F0(0)063.png
/amiibo-cards/assets/img/cards/NVL-C-MACR-USZ-F0(0)064.png
/amiibo-cards/assets/img/cards/NVL-C-MACS-USZ-F0(0)065.png
/amiibo-cards/assets/img/cards/NVL-C-MACT-USZ-F0(0)066.png
/amiibo-cards/assets/img/cards/NVL-C-MACU-USZ-F0(0)067.png
/amiibo-cards/assets/img/cards/NVL-C-MACV-USZ-F0(0)068.png
/amiibo-cards/assets/img/cards/NVL-C-MACW-USZ-F0(0)069.png
/amiibo-cards/assets/img/cards/NVL-C-MACX-USZ-F0(0)070.png
/amiibo-cards/assets/img/cards/NVL-C-MACY-USZ-F0(0)071.png
/amiibo-cards/assets/img/cards/NVL-C-MACZ-USZ-F0(0)072.png
/amiibo-cards/assets/img/cards/NVL-C-MADA-USZ-F0(0)073.png
/amiibo-cards/assets/img/cards/NVL-C-MADB-USZ-F0(0)074.png
/amiibo-cards/assets/img/cards/NVL-C-MADC-USZ-F0(0)075.png
/amiibo-cards/assets/img/cards/NVL-C-MADD-USZ-F0(0)076.png
/amiibo-cards/assets/img/cards/NVL-C-MADE-USZ-F0(0)077.png
/amiibo-cards/assets/img/cards/NVL-C-MADF-USZ-F0(0)078.png
/amiibo-cards/assets/img/cards/NVL-C-MADG-USZ-F0(0)079.png
/amiibo-cards/assets/img/cards/NVL-C-MADH-USZ-F0(0)080.png
/amiibo-cards/assets/img/cards/NVL-C-MADJ-USZ-F0(0)081.png
/amiibo-cards/assets/img/cards/NVL-C-MADK-USZ-F0(0)082.png
/amiibo-cards/assets/img/cards/NVL-C-MADL-USZ-F0(0)083.png
/amiibo-cards/assets/img/cards/NVL-C-MADM-USZ-F0(0)084.png
/amiibo-cards/assets/img/cards/NVL-C-MADN-USZ-F0(0)085.png
/amiibo-cards/assets/img/cards/NVL-C-MADP-USZ-F0(0)086.png
/amiibo-cards/assets/img/cards/NVL-C-MADQ-USZ-F0(0)087.png
/amiibo-cards/assets/img/cards/NVL-C-MADR-USZ-F0(0)088.png
/amiibo-cards/assets/img/cards/NVL-C-MADS-USZ-F0(0)089.png
/amiibo-cards/assets/img/cards/NVL-C-MADT-USZ-F0(0)090.png
/amiibo-cards/assets/img/cards/NVL-C-MADU-USZ-F0(0)091.png
/amiibo-cards/assets/img/cards/NVL-C-MADV-USZ-F0(0)092.png
/amiibo-cards/assets/img/cards/NVL-C-MADW-USZ-F0(0)093.png
/amiibo-cards/assets/img/cards/NVL-C-MADX-USZ-F0(0)094.png
/amiibo-cards/assets/img/cards/NVL-C-MADY-USZ-F0(0)095.png
/amiibo-cards/assets/img/cards/NVL-C-MADZ-USZ-F0(0)096.png
/amiibo-cards/assets/img/cards/NVL-C-MAEA-USZ-F0(0)097.png
/amiibo-cards/assets/img/cards/NVL-C-MAEB-USZ-F0(0)098.png
/amiibo-cards/assets/img/cards/NVL-C-MAEC-USZ-F0(0)099.png
/amiibo-cards/assets/img/cards/NVL-C-MAED-USZ-F0(0)100.png
""".split('\n')
class Command(BaseCommand):
collection_slug = 'animal-crossing'
@ -17,6 +120,7 @@ class Command(BaseCommand):
dice = {
'one': 1, 'two': 2, 'three': 3, 'four': 4, 'five': 5, 'six': 6,
}
card_image_domain = 'http://animal-crossing.com/amiibo-cards/'
def handle_image(self, image_url):
image = requests.get(image_url)
@ -43,6 +147,11 @@ class Command(BaseCommand):
amiibo.collection = collection
# amiibo.image = self.handle_image(item['cardphoto_link'])
else:
if amiibo.image:
amiibo.image.delete()
amiibo.image = self.handle_image('{}{}'.format(self.card_image_domain,
CARD_IMAGES[int(item['number_number'])]))
amiibo.dice = self.dice[item['dice_value'].lower()]
amiibo.rps = item['rps_value'].lower()

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
from django.conf import settings
from django.utils.translation import activate
class LanguageMiddleware:
def process_request(self, request):
languages = dict(settings.LANGUAGES)
accept_language = request.META.get('HTTP_ACCEPT_LANGUAGE', '')
if not accept_language:
return None
lang = accept_language.split(',')[0]
if '-' in lang:
lang = lang.split('-')[0]
if lang in languages:
activate(lang)
return None

View File

@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-09 23:25+0200\n"
"PO-Revision-Date: 2015-09-09 23:26+0200\n"
"POT-Creation-Date: 2015-09-10 19:56+0200\n"
"PO-Revision-Date: 2015-09-10 20:03+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
@ -193,6 +193,74 @@ msgstr "Añadir una dirección de email"
msgid "Add E-mail"
msgstr "Añadir email"
#: templates/account/email/email_confirmation_message.txt:1
#, python-format
msgid ""
"Hello from %(site_name)s!\n"
"\n"
"You're receiving this e-mail because user %(user_display)s at "
"%(site_domain)s has given yours as an e-mail address to connect their "
"account.\n"
"\n"
"To confirm this is correct, go to %(activate_url)s\n"
msgstr ""
"¡Hola desde %(site_name)s!\n"
"\n"
"Recibes este correo electrónico porque el usuario %(user_display)s en "
"%(site_domain)s nos ha dado esta dirección para vincular su cuenta. \n"
"\n"
"Para confirmar que esto es correcto, por favor accede a este enlace: "
"%(activate_url)s\n"
#: templates/account/email/email_confirmation_message.txt:7
#, python-format
msgid ""
"Thank you from %(site_name)s!\n"
"%(site_domain)s"
msgstr ""
"¡Un saludo desde %(site_name)s!\n"
"%(site_domain)s"
#: templates/account/email/email_confirmation_subject.txt:3
msgid "Please Confirm Your E-mail Address"
msgstr "Por favor confirma tu correo electrónico"
#: templates/account/email/password_reset_key_message.txt:1
#, python-format
msgid ""
"Hello from %(site_name)s!\n"
"\n"
"You're receiving this e-mail because you or someone else has requested a "
"password for your user account at %(site_domain)s.\n"
"It can be safely ignored if you did not request a password reset. Click the "
"link below to reset your password."
msgstr ""
"¡Hola desde %(site_name)s!\n"
"\n"
"Recibes este correo porque tu u otra persona ha solicitado la recuperación "
"de tu cuenta en %(site_domain)s.\n"
"Sigue el enlace a continuación para continuar con el restablecimiento de tu "
"contraseña."
#: templates/account/email/password_reset_key_message.txt:8
#, python-format
msgid "In case you forgot, your username is %(username)s."
msgstr ""
"En el caso de que te hayas olvidado, tu nombre de usuario es %(username)s."
#: templates/account/email/password_reset_key_message.txt:10
#, python-format
msgid ""
"Thank you for using %(site_name)s!\n"
"%(site_domain)s"
msgstr ""
"¡Gracias por usar %(site_name)s!\n"
"%(site_domain)s"
#: templates/account/email/password_reset_key_subject.txt:3
msgid "Password Reset E-mail"
msgstr "Correo electrónico"
#: templates/account/login.html:6 templates/account/login.html.py:13
#: templates/account/login.html:101
msgid "Sign In"
@ -231,6 +299,51 @@ msgstr "Recordarme"
msgid "Forgot Password?"
msgstr "He olvidado mi contraseña"
#: templates/account/messages/cannot_delete_primary_email.txt:2
#, python-format
msgid "You cannot remove your primary e-mail address (%(email)s)."
msgstr "No puedes eliminar tu dirección de correo primaria (%(email)s)."
#: templates/account/messages/email_confirmation_sent.txt:2
#, python-format
msgid "Confirmation e-mail sent to %(email)s."
msgstr "Correo electrónico de confirmación enviado a %(email)s."
#: templates/account/messages/email_confirmed.txt:2
#, python-format
msgid "You have confirmed %(email)s."
msgstr "El correo %(email)s ha sido confirmado."
#: templates/account/messages/email_deleted.txt:2
#, python-format
msgid "Removed e-mail address %(email)s."
msgstr "El correo electronico %(email)s ha sido eliminado."
#: templates/account/messages/logged_in.txt:4
#, python-format
msgid "Successfully signed in as %(name)s."
msgstr "Hola %(name)s, has iniciado sesión satisfactoriamente."
#: templates/account/messages/logged_out.txt:2
msgid "You have signed out."
msgstr "Has cerrado sesión."
#: templates/account/messages/password_changed.txt:2
msgid "Password successfully changed."
msgstr "Tu contraseña ha sido cambiada."
#: templates/account/messages/password_set.txt:2
msgid "Password successfully set."
msgstr "Tu contraseña ha sido fijada."
#: templates/account/messages/primary_email_set.txt:2
msgid "Primary e-mail address set."
msgstr "Establecido tu correo electrónico primario."
#: templates/account/messages/unverified_primary_email.txt:2
msgid "Your primary e-mail address must be verified."
msgstr "Tu dirección de correo electrónico primaria debe ser verificada."
#: templates/account/password_change.html:5
#: templates/account/password_change.html:10
#: templates/account/password_reset_from_key.html:5
@ -320,67 +433,87 @@ msgid ""
"Already have an account? Then please <a href=\"%(login_url)s\">sign in</a>."
msgstr "¿Ya tienes una cuenta? <a href=\"%(login_url)s\">Inicia sesión</a>."
#: templates/amiibo/amiibo-card.html:11
msgid "Number"
msgstr "Numero"
#: templates/amiibo/amiibo-card.html:15
msgid "Type"
msgstr "Tipo"
#: templates/amiibo/amiibo-card.html:19
msgid "RPS"
msgstr "PPT"
#: templates/amiibo/amiibo-card.html:23
msgid "Dice"
msgstr "Dado"
#: templates/amiibo/amiibo-figure.html:9 templates/amiibo/amiibo-figure.html:11
#: templates/amiibo/amiibo-figure.html:12
#, python-format
msgid "%(amiibo)s amiibo from %(collection)s in "
msgstr "%(amiibo)s amiibo de %(collection)s en "
#: templates/amiibo/amiibo-figure.html:44
#: templates/amiibo/amiibo-figure.html:46
msgid "Available for trade"
msgstr "Disponible para cambio"
#: templates/amiibo/amiibo-figure.html:46
#: templates/amiibo/amiibo-figure.html:48
msgid "I do not have it"
msgstr "No lo tengo"
#: templates/amiibo/amiibo-figure.html:50
#: templates/amiibo/amiibo-figure.html:52
msgid "I do not want this"
msgstr "No lo quiero"
#: templates/amiibo/amiibo-figure.html:52
#: templates/amiibo/amiibo-figure.html:63
#: templates/amiibo/amiibo-figure.html:54
#: templates/amiibo/amiibo-figure.html:65
msgid "I want this"
msgstr "Lo quiero"
#: templates/amiibo/amiibo-figure.html:54
#: templates/amiibo/amiibo-figure.html:64
#: templates/amiibo/amiibo-figure.html:56
#: templates/amiibo/amiibo-figure.html:66
msgid "or"
msgstr "o"
#: templates/amiibo/amiibo-figure.html:55
#: templates/amiibo/amiibo-figure.html:65
#: templates/amiibo/amiibo-figure.html:57
#: templates/amiibo/amiibo-figure.html:67
msgid "I have this"
msgstr "Lo tengo"
#: templates/amiibo/amiibo-figure.html:68
#: templates/amiibo/amiibo-figure.html:70
msgid "Register and star collecting amiibo!"
msgstr "¡Regístrate y empieza a coleccionar Amiibo!"
#: templates/amiibo/amiibo-figure.html:88
#: templates/amiibo/amiibo-figure.html:90
msgid "Shops"
msgstr "Tiendas"
#: templates/amiibo/amiibo-figure.html:102
#: templates/amiibo/amiibo-figure.html:104
msgid "Buy now for"
msgstr "Comprar ahora por"
#: templates/amiibo/amiibo-figure.html:109
#: templates/amiibo/amiibo-figure.html:111
msgid "No stock"
msgstr "Sin stock"
#: templates/amiibo/amiibo-figure.html:117
#: templates/amiibo/amiibo-figure.html:119
msgid "Updated"
msgstr "Actualizado"
#: templates/amiibo/amiibo-figure.html:120
#: templates/amiibo/amiibo-figure.html:122
msgid "This item had never been in stock"
msgstr "Este articulo nunca ha estado en stock"
#: templates/amiibo/amiibo-figure.html:126
#: templates/amiibo/amiibo-figure.html:128
msgid "This is a pack of various items"
msgstr "Este es un pack que contiene varios artículos"
#: templates/amiibo/amiibo-figure.html:138
msgid "No shops :("
msgstr "Sin tiendas :("
#: templates/amiibo/collection-cards.html:9 templates/amiibo/collection.html:29
msgid "Search..."
msgstr "Buscar…"
@ -421,6 +554,18 @@ msgstr "No tienes redes sociales asociadas a tu cuenta."
msgid "Add a 3rd Party Account"
msgstr "Asociar una red social"
#: templates/socialaccount/messages/account_connected.txt:2
msgid "The social account has been connected."
msgstr "La red social ha sido vinculada."
#: templates/socialaccount/messages/account_connected_other.txt:2
msgid "The social account is already connected to a different account."
msgstr "Esta red social esta vinculada a otra cuenta del sitio."
#: templates/socialaccount/messages/account_disconnected.txt:2
msgid "The social account has been disconnected."
msgstr "La red social ha sido desvinculada."
#: urls.py:36
msgid "^account/"
msgstr "^mi-cuenta/"

View File

@ -66,6 +66,7 @@ MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'amiibofindr.apps.core.middleware.LanguageMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',

View File

@ -0,0 +1,8 @@
{% load account %}{% user_display user as user_display %}{% load i18n %}{% autoescape off %}{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Hello from {{ site_name }}!
You're receiving this e-mail because user {{ user_display }} at {{ site_domain }} has given yours as an e-mail address to connect their account.
To confirm this is correct, go to {{ activate_url }}
{% endblocktrans %}{% endautoescape %}
{% blocktrans with site_name=current_site.name site_domain=current_site.domain %}Thank you from {{ site_name }}!
{{ site_domain }}{% endblocktrans %}

View File

@ -0,0 +1 @@
{% include "account/email/email_confirmation_message.txt" %}

View File

@ -0,0 +1 @@
{% include "account/email/email_confirmation_subject.txt" %}

View File

@ -0,0 +1,4 @@
{% load i18n %}
{% autoescape off %}
{% blocktrans %}Please Confirm Your E-mail Address{% endblocktrans %}
{% endautoescape %}

View File

@ -0,0 +1,11 @@
{% load i18n %}{% blocktrans with site_name=site.name site_domain=site.domain %}Hello from {{ site_name }}!
You're receiving this e-mail because you or someone else has requested a password for your user account at {{ site_domain }}.
It can be safely ignored if you did not request a password reset. Click the link below to reset your password.{% endblocktrans %}
{{ password_reset_url }}
{% if username %}{% blocktrans %}In case you forgot, your username is {{ username }}.{% endblocktrans %}
{% endif %}{% blocktrans with site_name=site.name site_domain=site.domain %}Thank you for using {{ site_name }}!
{{ site_domain }}{% endblocktrans %}

View File

@ -0,0 +1,4 @@
{% load i18n %}
{% autoescape off %}
{% blocktrans %}Password Reset E-mail{% endblocktrans %}
{% endautoescape %}

View File

@ -0,0 +1,2 @@
{% load i18n %}
{% blocktrans %}You cannot remove your primary e-mail address ({{email}}).{% endblocktrans %}

View File

@ -0,0 +1,2 @@
{% load i18n %}
{% blocktrans %}Confirmation e-mail sent to {{email}}.{% endblocktrans %}

View File

@ -0,0 +1,2 @@
{% load i18n %}
{% blocktrans %}You have confirmed {{email}}.{% endblocktrans %}

View File

@ -0,0 +1,2 @@
{% load i18n %}
{% blocktrans %}Removed e-mail address {{email}}.{% endblocktrans %}

View File

@ -0,0 +1,4 @@
{% load account %}
{% load i18n %}
{% user_display user as name %}
{% blocktrans %}Successfully signed in as {{name}}.{% endblocktrans %}

View File

@ -0,0 +1,2 @@
{% load i18n %}
{% blocktrans %}You have signed out.{% endblocktrans %}

View File

@ -0,0 +1,3 @@
{% load i18n %}
{% blocktrans %}Password successfully changed.{% endblocktrans %}

View File

@ -0,0 +1,3 @@
{% load i18n %}
{% blocktrans %}Password successfully set.{% endblocktrans %}

View File

@ -0,0 +1,2 @@
{% load i18n %}
{% blocktrans %}Primary e-mail address set.{% endblocktrans %}

View File

@ -0,0 +1,2 @@
{% load i18n %}
{% blocktrans %}Your primary e-mail address must be verified.{% endblocktrans %}

View File

@ -17,7 +17,7 @@
</div>
<div class="ui label">
{% trans "RPS" %}
<div class="detail">{{ amiibo.get_rps_display }}</div>
<div class="detail">{% trans amiibo.get_rps_display %}</div>
</div>
<div class="ui label">
{% trans "Dice" %}

View File

@ -0,0 +1,2 @@
{% load i18n %}
{% blocktrans %}The social account has been connected.{% endblocktrans %}

View File

@ -0,0 +1,2 @@
{% load i18n %}
{% blocktrans %}The social account is already connected to a different account.{% endblocktrans %}

View File

@ -0,0 +1,2 @@
{% load i18n %}
{% blocktrans %}The social account has been disconnected.{% endblocktrans %}