Skip to content

Commit

Permalink
Merge pull request #63 from OpenPecha/feat/localization-bo
Browse files Browse the repository at this point in the history
some_left_out_changes
  • Loading branch information
Lungsangg authored Feb 17, 2024
2 parents e18ac10 + 09040e3 commit b169cda
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions static/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ body.hebrew #talmudicPeoplePage #textTocLink {
-o-user-select: none;
}
.interface-hebrew #textBrowser {
text-align: right;
direction: rtl;
text-align: left;
direction: ltr;
}
#textBrowser.absolute {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion static/css/s2.css
Original file line number Diff line number Diff line change
Expand Up @@ -6864,7 +6864,7 @@ But not to use a display block directive that might break continuous mode for ot
}
.toolsButton.systemTypeface .toolsButtonText span.int-he,
.toolsButton.systemTypeface .toolsButtonText span.he{
font-family: "Heebo", "Roboto", "Helvetica Neue", "Helvetica", sans-serif;
font-family: "JhomoLangma Sarchen", "Heebo", "Roboto", "Helvetica Neue", "Helvetica", sans-serif;
}
.toolsButton.textTypeface .toolsButtonText span.int-he,
.toolsButton.textTypeface .toolsButtonText span.he{
Expand Down
2 changes: 1 addition & 1 deletion static/js/AboutBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class AboutBox extends Component {
detailSection = (<div className="detailsSection">
<h2 className="aboutHeader">
<span className="int-en">About This Text</span>
<span className="int-he">אודות ספר זה</span>
<span className="int-he">ཆོས་མཛོད་འདིའི་སྐོར།</span>
</h2>
<div className="aboutTitle">
{d.title.stripHtml()}
Expand Down
12 changes: 6 additions & 6 deletions static/js/ConnectionsPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ class ConnectionsPanel extends Component {
// looked at
(this.props.masterPanelMode == "Sheet" && this.props.title !== "Sheet") ?
<>
<ToolsButton en="About this Source" he="אודות מקור זה" image="about-text.svg" urlConnectionsMode="About" onClick={() => this.props.setConnectionsMode("About")} />
<ToolsButton en="Translations" he="תרגומים" image="translation.svg" count={resourcesButtonCounts["translations"]} urlConnectionsMode="Translations" onClick={() => this.props.setConnectionsMode("Translations")} />
<ToolsButton en="About this Source" he="མ་ཕྱི་འདིའི་སྐོར།" image="about-text.svg" urlConnectionsMode="About" onClick={() => this.props.setConnectionsMode("About")} />
<ToolsButton en="Translations" he="འགྱུར་མ་ཁག" image="translation.svg" count={resourcesButtonCounts["translations"]} urlConnectionsMode="Translations" onClick={() => this.props.setConnectionsMode("Translations")} />
</>
:
null
Expand Down Expand Up @@ -791,17 +791,17 @@ const AboutSheetButtons = ({ setConnectionsMode, masterPanelSheetId }) => {

return (<div className="topToolsButtons">
{isOwner ?
<ToolsButton en="Publish Settings" he="הגדרות פרסום" image="about-text.svg" urlConnectionsMode="AboutSheet" onClick={() => setConnectionsMode("AboutSheet")} />
<ToolsButton en="Publish Settings" he="Publish Settings" image="about-text.svg" urlConnectionsMode="AboutSheet" onClick={() => setConnectionsMode("AboutSheet")} />
:
<ToolsButton en="About this Sheet" he="אודות דף המקורות" image="about-text.svg" urlConnectionsMode="AboutSheet" onClick={() => setConnectionsMode("AboutSheet")} />
<ToolsButton en="About this Sheet" he="ཤོག་ངོས་འདིའི་སྐོར།" image="about-text.svg" urlConnectionsMode="AboutSheet" onClick={() => setConnectionsMode("AboutSheet")} />
}
{showEditButton ?
<ToolsButton en="Edit" he="עריכה" image="note.svg" onClick={() => {
<ToolsButton en="Edit" he="རྩོམ་སྒྲིག" image="note.svg" onClick={() => {
window.location = `//${window.location.host}/sheets/${masterPanelSheetId}?editor=1`;
}} />
: null }

<ToolsButton en="Share" he="שיתוף" image="share.svg" onClick={() => setConnectionsMode("Share")} />
<ToolsButton en="Share" he="བརྒྱུད་སྐུར།" image="share.svg" onClick={() => setConnectionsMode("Share")} />
</div>);
}

Expand Down
2 changes: 1 addition & 1 deletion static/js/NavSidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ const SponsorADay = () => (
const AboutTextCategory = ({cats}) => {
const tocObject = Sefaria.tocObjectByCategories(cats);
const enTitle = "About " + tocObject.category;
const heTitle = "אודות " + tocObject.heCategory;
const heTitle = "སྐོར། " + tocObject.heCategory;

if ((Sefaria.interfaceLang === "hebrew" && !tocObject.heDesc) ||
(Sefaria.interfaceLang === "english" && !tocObject.enDesc)) {
Expand Down
8 changes: 4 additions & 4 deletions static/js/s1/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,11 +790,11 @@ sjs.textBrowser = {
"<div id='browserMessage'></div><br>" +
"<div id='browserOK' class='button disabled'>" +
"<span class='int-en'>OK</span>" +
"<span class='int-he'>אישור</span>" +
"<span class='int-he'>འགྲིག</span>" +
"</div>" +
(abs ? "<div id='browserCancel' class='button'>" +
"<span class='int-en'>Cancel</span>" +
"<span class='int-he'>ביטול</span>" +
"<span class='int-he'>ཕྱིར་འཐེན།</span>" +
"</div>" : "") +
"</div>" +
"</div>";
Expand Down Expand Up @@ -1011,7 +1011,7 @@ sjs.textBrowser = {
// Update the top path UI per the _path list.
var html = "<span class='browserNavHome browserPathItem' data-index='0'>" +
"<span class='int-en'>All Texts</span>" +
"<span class='int-he'>כל הטקסטים</span>" +
"<span class='int-he'>དཔེ་ཆ་ཡོངས་རྫོགས།</span>" +
"</span>";
for (var i = 0; i < this._path.length; i++) {
var name = sjs.interfaceLang == "he" ? Sefaria.hebrewTerm(this._path[i]) : this._path[i]
Expand Down Expand Up @@ -1131,7 +1131,7 @@ sjs.textBrowser = {
_setInitialMessage: function() {
sjs.textBrowser._setPreview("<div class='empty'>" +
"<span class='int-en'>Browse texts with the menu on the left.</span>" +
"<span class='int-he'>העזרו בתפריט המקורות מימין כדי לבחור את המקור שברצונכם להוסיף</span>" +
"<span class='int-he'>གཡོན་ངོས་ཀྱི་ཐོ་གཞུང་འདིའི་ནང་གི་དཔེ་ཆར་མིག་བཤེར་བྱོས།</span>" +
"</div>");
},
_handleNavClick: function() {
Expand Down

0 comments on commit b169cda

Please sign in to comment.