Skip to content

Commit

Permalink
Merge pull request EGCETSII#67 from Villanueva-del-Trabuco-EGC/trad-i…
Browse files Browse the repository at this point in the history
…ng/framigdom

Traducción inglés de booth.html
  • Loading branch information
TheNeoStormZ authored Dec 17, 2022
2 parents b1ea3b2 + 2751e6b commit a362818
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions decide/booth/locale/en_US/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ msgstr "Decide"
msgid "logout"
msgstr "Logout"

msgid "logoutFrom"
msgstr "Logout from "

msgid "or"
msgstr "------or------"

msgid "vID"
msgstr "ID of Vote"

Expand All @@ -34,6 +40,9 @@ msgstr "Login"
msgid "LoginGitHub"
msgstr "Login with GitHub"

msgid "LoginTwitter"
msgstr "Login with Twitter"

msgid "LoginFacebook"
msgstr "Login with Facebook"

Expand Down
6 changes: 3 additions & 3 deletions decide/booth/templates/booth/booth.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ <h3>{% trans "vName" %}: [[ voting.name ]]</h3>
<!--LOGIN CON GITHUB-->

{% if not user.is_authenticated and not user.is_staff %}
<h2>------or------</h2>
<h2>{% trans "or" %}</h2>
<a id='githubButton' v-if="signup" href="{% url 'social:begin' 'github' %}?next={{ request.path }}" class="btn btn-secondary">
<span>{% trans "LoginGitHub" %}</span>
</a>

<a id='twitterButton' v-if="signup" href="{% url 'social:begin' 'twitter' %}?next={{ request.path }}" class="btn btn-secondary">
<span>Login with Twitter</span>
<span>{% trans "LoginTwitter" %}</span>
</a>

{% elif not user.is_staff %}
Expand All @@ -70,7 +70,7 @@ <h2>------or------</h2>
{% trans "vote_with" %} {{user.social_auth.get.provider}}
</b-button>
<a id='logoutButton' href="/booth/logout" v-if="signup" class="btn btn-danger">
<span>Logout from {{user.social_auth.get.provider}}</span>
<span>{% trans "logoutFrom" %}{{user.social_auth.get.provider}}</span>
</a>
{% endif %}

Expand Down

0 comments on commit a362818

Please sign in to comment.