Skip to content

Commit

Permalink
Merge pull request #109 from OpenPecha/feat/translation-update
Browse files Browse the repository at this point in the history
Feat/translation update
  • Loading branch information
tenzinsamten authored Apr 13, 2024
2 parents b310240 + cabfef8 commit 876e462
Show file tree
Hide file tree
Showing 24 changed files with 2,122 additions and 994 deletions.
770 changes: 565 additions & 205 deletions locale/bo/LC_MESSAGES/django.po

Large diffs are not rendered by default.

770 changes: 565 additions & 205 deletions locale/en/LC_MESSAGES/django.po

Large diffs are not rendered by default.

Binary file modified locale/he/LC_MESSAGES/django.mo
Binary file not shown.
900 changes: 655 additions & 245 deletions locale/he/LC_MESSAGES/django.po

Large diffs are not rendered by default.

260 changes: 139 additions & 121 deletions sourcesheets/views.py

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@
<div class="container error static biReady">
<div class="inner">
<h1>
<span class="int-en">Page Not Found</span>
<span class="int-he">הדף שביקשת איננו נמצא</span>
<span class="int-en">{% trans "Page Not Found" %}</span>
<span class="int-he">{% trans "Page Not Found" %}</span>
</h1>
<p>
<span class="int-en">
The requested URL couldn't be found.
{% trans "The requested URL couldn't be found.
If you've arrived here from a link on another site,
you may want to let them know their link isn't working.
you may want to let them know their link isn't working." %}
</span>
<span class="int-he">
הדף המבוקש איננו נמצא. אם הגעת לכאן מקישור מאתר אחר, ייתכן ותרצה ליידע אותם כי הקישור שלהם איננו תקין.
{% trans "The requested URL couldn't be found.
If you've arrived here from a link on another site,
you may want to let them know their link isn't working." %}
</span>
</p>
</div>
Expand Down
16 changes: 9 additions & 7 deletions templates/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,24 @@
<div id="errorPage" class="biReady container error static">
<div class="inner">
<h1>
<span class="int-en">Internal Server Error</span>
<span class="int-he">שגיאה במערכת</span>
<span class="int-en">{% trans "Internal Server Error" %}</span>
<span class="int-he">{% trans "Internal Server Error" %}</span>
</h1>
<div class="section">
<p>
<span class="int-en">
Unfortunately, we've encountered an error.
{% trans "Unfortunately, we've encountered an error.
An email has been sent automatically to our developers.
If you have any questions about the problem,
or think you can help us figure out what went wrong,
please email our <a href="mailto:dev@sefaria.org" target="_blank">development team</a>.
please email our " %}<a href="mailto:dev@pecha.org" target="_blank"> {% trans "development team" %}</a>.
</span>
<span class="int-he">
לצערנו ארעה תקלה במערכת. מייל בעניין כבר נשלח אל המפתחים שלנו.
אם יש לכם שאלות נוספות לגבי התקלה,
או שביכלתכם להבין את התקלה ולעזור לאתר אותה, נשמח לשמוע <a href="mailto:[email protected]" target="_blank">במייל אל צוות המפתחים</a>.
{% trans "Unfortunately, we've encountered an error.
An email has been sent automatically to our developers.
If you have any questions about the problem,
or think you can help us figure out what went wrong,
please email our " %}<a href="mailto:[email protected]" target="_blank"> {% trans "development team" %}</a>.
</span>
</p>
</div>
Expand Down
8 changes: 4 additions & 4 deletions templates/account_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>
</div>
<div role="radio" data-value="weekly" class="toggleOption {% if profile.settings.email_notifications == "weekly" %} on{% endif %}" tabindex="{% if profile.settings.email_notifications == "weekly" %}0" aria-checked="true{% else %}-1" aria-checked="false{% endif %}">
<span class="int-en">{% trans "Weekly" %}</span>
<span class="int-he">བདུན་རེ་བཞིན།</span>
<span class="int-he">{% trans "Weekly" %}</span>
</div>
<div role="radio" data-value="never" class="toggleOption {% if profile.settings.email_notifications == "never" %} on{% endif %}" tabindex="{% if profile.settings.email_notifications == "never" %}0" aria-checked="true{% else %}-1" aria-checked="false{% endif %}">
<span class="int-en">{% trans "Never" %}</span>
Expand Down Expand Up @@ -93,7 +93,7 @@ <h1>
<div id="textualCustom" class="section">
<label class="control-elem">
<span class="int-en">{% trans "Preferred Custom (Weekly Haftarot)" %}</span>
<span class="int-he">བདམས་ཟིན་པའི་ལུགས་སྲོལ། (བདུན་རེའི་བསླབ་བྱ།)</span>
<span class="int-he">{% trans "Preferred Custom (Weekly Haftarot)" %}</span>
</label>
<div class="toggleSet toggleSetToggleBox blueStyle doubleOption control-elem" role="radiogroup">
<div role="radio" data-value="sephardi" class="toggleOption {% if profile.settings.textual_custom == "sephardi" %} on{% endif %}" tabindex="{% if profile.settings.textual_custom == "sephardi" %}0" aria-checked="true{% else %}-1" aria-checked="false{% endif %}">
Expand All @@ -110,7 +110,7 @@ <h1>
<div id="username-change" class="section">
<label class="control-elem">
<span class="int-en">{% trans "Account Email (This is used for login)" %}</span>
<span class="int-he">གློག་འཕྲིན་ཁ་བྱང་། (This is used for login)</span>
<span class="int-he">{% trans "Account Email (This is used for login)" %}</span>
</label>
<div id="username-change-display" class="form-section">
<input id="email-display" type="text" disabled="disabled" value="{{ user.email }}" />
Expand Down Expand Up @@ -152,7 +152,7 @@ <h1>
</div>
<div class="additional-info">
<span class="int-en">{% trans "You can link to a new Google Account the next time you export a sheet" %}</span>
<span class="int-he">ཐེངས་རྗེས་མར་ཁྱེད་ཀྱི་ཤོག་ངོས་ཕྱིར་འདྲེན་བྱེད་སྐབས་ཁྱེད་ཀྱིས་དགོས་དགུའི་ཁ་བྱང་གསར་པ་ཞིག་ལ་མཐུད་ཆོག</span>
<span class="int-he">{% trans "You can link to a new Google Account the next time you export a sheet" %}</span>
</div>
</div>
<div class="saveCancel">
Expand Down
12 changes: 6 additions & 6 deletions templates/activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@
<div class="inner">
{% if single %}
<h1>
<span class="int-en">Revision History of {{ ref|ref_link }}</a></span>
<span class="int-he">היסטורית עריכה {{ ref|he_ref_link }}</span>
<span class="int-en">{% trans "Revision History of" %} {{ ref|ref_link }}</a></span>
<span class="int-he">{% trans "Revision History of" %} {{ ref|he_ref_link }}</span>
</h1>
<h2>
<span class="int-en">{{ version }}</span>
<span class="int-he">{{ versionTitleInHebrew }}</span>
</h2>
{% elif for_user %}
<h1>
<span class="int-en">{{ profile.id|user_link }} | Public Activity</span>
<span class="int-he"{{ profile.id|user_link }} | פעילות גלויה></span>
<span class="int-en">{{ profile.id|user_link }}| {% trans "Public Activity" %}</span>
<span class="int-he">{{ profile.id|user_link }} | {% trans "Public Activity" %}</span>

</h1>
{% else %}
<h1>
<span class="int-en">Recent Activity on Sefaria</span>
<span class="int-he">פעילות אחרונה בספריא</span>
<span class="int-en">{% trans "Recent Activity on Sefaria" %}</span>
<span class="int-he">{% trans "Recent Activity on Sefaria" %}</span>
</h1>
{% endif %}
<div class="activityFilterSection sans-serif">
Expand Down
8 changes: 4 additions & 4 deletions templates/delete-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<div id="deleteSheet" class="static">
<div class="inner">
<h1>
<span class="int-en">Delete Sheet</span>
<span class="int-en">{% trans "Delete Sheet" %}</span>
</h1>
<h2> CAUTION THIS WILL DELETE THE SHEET ID YOU INPUT</h2>
<h3>IT CANNOT BE UNDONE.</h3>
<h2>{% trans "CAUTION THIS WILL DELETE THE SHEET ID YOU INPUT" %}</h2>
<h3>{% trans "IT CANNOT BE UNDONE." %}</h3>
<form method="post" autocomplete="off" if="delete-form" action="{% url "delete/sheet" %}">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="button control-elem">
<span class="int-en">Delete Sheet</span>
<span class="int-en">{% trans "Delete Sheet" %}</span>
</button>
</form>
</div>
Expand Down
29 changes: 10 additions & 19 deletions templates/discussions.html
Original file line number Diff line number Diff line change
@@ -1,53 +1,44 @@
{% extends "base.html" %}

{% load i18n %}
{% load sefaria_tags %}
{% load humanize %}

{% block title %}Discuss a Text on Sefaria{% endblock %}
{% block title %}{% trans "Discuss a Text on Sefaria" %}{% endblock %}

{% block content %}

<div id="discussionsPage" class="container">

<span class="row">
<span class="span12">
<h1>Discuss a Text on Sefaria</h1>
<h1>{% trans "Discuss a Text on Sefaria" %}</h1>
</span>
<span class="span6 offset3">
<div class="alert alert-error">
This is an <b>EXPERIMENTAL</b> feature. Please try it out and let us know what is <b>exciting</b> and what is <b>frustrating</b> about it!
{% trans "This is an <b>EXPERIMENTAL" %}</b>{% trans " feature. Please try it out and let us know what is" %} <b>{% trans "exciting" %}</b>{% trans " and what is" %} <b>{% trans "frustrating" %}</b>{% trans " about it!" %}
<a href="mailto:[email protected]" target="_blank" class="btn btn-mini">Send us Feedback</a>
</div>
</span>
</span>

<span class="row">
<span class="span6">
<h2>Choose a Text</h2>
<h2>{% trans "Choose a Text" %}</h2>
<!--<span class="btn btn-large btn-primary">Browse</span>-->
<div id="chooseText"></div>
</span>
<span class="span5">
<h2>Start a Discussion</h2>
<h2>{% trans "Start a Discussion" %}</h2>

<div>Anyone with the link below will be able to view and participate.</div>
<div>{% trans "Anyone with the link below will be able to view and participate." %}</div>
<!--<i id="discussLinkIcon" class="fa fa-link"></i> -->
<input id="discussLink" placeholder="choose a text to get your link" />
<br><br>
<a id="goLink" class='btn btn-large btn-primary' href='#'>Get Started</a>
<a id="goLink" class='btn btn-large btn-primary' href='#'>{% trans "Get Started" %}</a>
<br><br>
<!--
<div class="shareBox addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_google_plusone_share"></a>
<a class="addthis_button_gmail"></a>
<a class="addthis_button_email"></a>
</div>
-->
{% if discussions|length %}
<div>
<h3>Your Discussions</h3>
<h3>{% trans "Your Discussions" %}</h3>
{% for discussion in discussions %}
<div class="discussion">
{{ discussion|discussion_link }}
Expand All @@ -61,7 +52,7 @@ <h3>Your Discussions</h3>
</span>
</div>

{% include "elements/login_prompt.html" with msg="Please login to Start a Discussion." %}
{% include "elements/login_prompt.html" with msg={% trans "Please login to Start a Discussion." %} %}

{% endblock %}

Expand Down
2 changes: 1 addition & 1 deletion templates/edit_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h1 class="headerWithButtons" style="display: flex;flex-direction: column;">
<li><input value="" /></li>
{% endfor %}
</ul>
<div id="addEducation"><i class="fa fa-plus"></i><span class="int-en">{% trans "Add a line" %}</span><span class="int-he">ཐིག་ཕྲེང་ཞིག་ཞོག</span></div>
<div id="addEducation"><i class="fa fa-plus"></i><span class="int-en">{% trans "Add a line" %}</span><span class="int-he">{% trans "Add a line" %}</span></div>
</div>
</div>
<div id="aboutBox" class="control-elem">
Expand Down
Loading

0 comments on commit 876e462

Please sign in to comment.