Skip to content

Commit

Permalink
Merge pull request #59 from OpenPecha/feat/localization-bo
Browse files Browse the repository at this point in the history
localization_03
  • Loading branch information
Lungsangg authored Feb 16, 2024
2 parents 0fb613f + fa688a8 commit e230d01
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions static/js/Misc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class ProfilePic extends Component {
<input type="file" className="profile-pic-input-file" id="profile-pic-input-file" onChange={this.onSelectFile} onClick={(event)=> { event.target.value = null}}/>
<label htmlFor="profile-pic-input-file" className={classNames({resourcesLink: 1, blue: showDefault})}>
<span className="int-en">{ showDefault ? "Add Picture" : "Upload New" }</span>
<span className="int-he">{ showDefault ? "הוספת תמונה" : "עדכון תמונה" }</span>
<span className="int-he">{ showDefault ? "འདྲ་པར་སྣོན།" : "གསར་པ་ནང་འཇུག་བྱོས།" }</span>
</label>
</div>) : null
}
Expand Down Expand Up @@ -1984,15 +1984,15 @@ class LoginPrompt extends Component {
<div className="loginPrompt">
<div className="loginPromptMessage">
<span className="int-en">Please log in to use this feature.</span>
<span className="int-he">עליך להיות מחובר בכדי להשתמש באפשרות זו.</span>
<span className="int-he">ཁྱད་ཆོས་འདི་བེད་སྤྱོད་གཏོང་ཆེད་ནང་འཛུལ་བྱེད་རོགས།</span>
</div>
<a className="button" href={"/login" + nextParam}>
<span className="int-en">Log In</span>
<span className="int-he">התחברות</span>
<span className="int-he">ནང་འཛུལ།</span>
</a>
<a className="button" href={"/register" + nextParam}>
<span className="int-en">Sign Up</span>
<span className="int-he">הרשמה</span>
<span className="int-he">ཞུགས་ཐོ་གསར་འགོད།</span>
</a>
</div>);
}
Expand Down Expand Up @@ -2558,7 +2558,7 @@ Dropdown.propTypes = {
class LoadingMessage extends Component {
render() {
var message = this.props.message || "Loading...";
var heMessage = this.props.heMessage || "טוען מידע...";
var heMessage = this.props.heMessage || "ཏོག་ཙམ་སྒུག་རོགས།...";
var classes = "loadingMessage sans-serif " + (this.props.className || "");
return (<div className={classes}>
<InterfaceText>
Expand Down
2 changes: 1 addition & 1 deletion static/js/NavSidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ const StayConnected = () => { // TODO: remove? looks like we are not using this
<ModuleTitle>Stay Connected</ModuleTitle>
<InterfaceText>Get updates on new texts, learning resources, features, and more.</InterfaceText>
<br />
<NewsletterSignUpForm context="sidebar" />
{/*<NewsletterSignUpForm context="sidebar" />*/}

<a target="_blank" className="button small white appButton iconOnly" href={fbURL}>
<img src="/static/icons/facebook.svg" alt={Sefaria._("Sefaria on Facebook")} />
Expand Down
8 changes: 4 additions & 4 deletions static/js/UserProfile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class UserProfile extends Component {
{ id: "collections", text: "Collections", icon: "/static/icons/collection.svg" },
{ id: "followers", text: "Followers", invisible: true },
{ id: "following", text: "Following", invisible: true },
{ id: "torah-tracker", text: "Torah Tracker", invisible: Sefaria._uid !== props.profile.id, icon: "/static/icons/chart-icon.svg", href: "/torahtracker", applink: true, justifyright: true}
{ id: "torah-tracker", text: "Buddhist Text Tracker", invisible: Sefaria._uid !== props.profile.id, icon: "/static/icons/chart-icon.svg", href: "/torahtracker", applink: true, justifyright: true}
];
if (showNotes) {
tabs.splice(2, 0, { id: "notes", text: Sefaria._("Notes"), icon: "/static/icons/note.svg" });
Expand Down Expand Up @@ -605,16 +605,16 @@ const ProfileSummary = ({ profile:p, follow, openFollowers, openFollowing, toggl
<div className="profile-actions">
<a href="/settings/profile" className="resourcesLink sans-serif">
<span className="int-en">Edit Profile</span>
<span className="int-he">עריכת פרופיל</span>
<span className="int-he">སྙིང་བསྡུས་རྩོམ་སྒྲིག</span>
</a>
<a href="/settings/account" className="resourcesLink sans-serif profile-settings">
<img src="/static/icons/settings.svg" alt="Profile Settings" />
<span className="int-en">Settings</span>
<span className="int-he">הגדרות</span>
<span className="int-he">སྒྲིག་འགོད་ཁག</span>
</a>
<a href="/logout" className="button transparent logoutLink">
<span className="int-en">Log Out</span>
<span className="int-he">ניתוק</span>
<span className="int-he">ཕྱིར་ཐོན།</span>
</a>
</div>) : (
<div className="profile-actions">
Expand Down
10 changes: 5 additions & 5 deletions templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ <h1 id="profileName">{{ profile.first_name }} {{ profile.last_name }}</h1>
{% if profile.id != request.user.id %}
<div id="messageMe" class="button white control-elem">
<span class="int-en">Message</span>
<span class="int-he">שלח הודעה</span>
<span class="int-he"> </span>
</div>
<div id="followMe" class="{% if following %}following{% else %}follow{% endif %} button blue control-elem">
<span class="int-en">
Expand All @@ -80,15 +80,15 @@ <h1 id="profileName">{{ profile.first_name }} {{ profile.last_name }}</h1>
<span class="en unfollow">Unfollow</span>
</span>
<span class="int-he">
<span class="he follow">עקוב</span>
<span class="he state following">עוקב</span>
<span class="he unfollow">הפסק לעקוב</span>
<span class="he follow">རྗེས་འཇུག་བྱོས།</span>
<span class="he state following">རྗེས་འཇུག་བྱེད་པ།</span>
<span class="he unfollow">རྗེས་འཇུག་ཕྱིར་འཐེན།</span>
</span>
</div>
{% endif %}
{% if profile.id == request.user.id %}
<a id="editProfile" href="/settings/profile" class="button int-en">Edit Profile</a>
<a id="editProfile" href="/settings/profile" class="button int-he">עריכת פרופיל</a>
<a id="editProfile" href="/settings/profile" class="button int-he">སྙིང་བསྡུས་རྩོམ་སྒྲིག </a>
{% endif %}
</div>
</div>
Expand Down

0 comments on commit e230d01

Please sign in to comment.