Skip to content

Commit

Permalink
localization 03
Browse files Browse the repository at this point in the history
  • Loading branch information
Lungsangg committed Feb 16, 2024
1 parent fa688a8 commit 0636eeb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
38 changes: 19 additions & 19 deletions static/js/ConnectionsPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,10 @@ class ConnectionsPanel extends Component {
masterPanelSheetId={this.props.masterPanelSheetId}
/> :
<div className="topToolsButtons">
<ToolsButton en="About this Text" he="אודות הטקסט" image="about-text.svg" urlConnectionsMode="About" onClick={() => this.props.setConnectionsMode("About")} />
<ToolsButton en="Table of Contents" he="תוכן העניינים" image="text-navigation.svg" urlConnectionsMode="Navigation" onClick={() => this.props.setConnectionsMode("Navigation")} />
<ToolsButton en="Search in this Text" he="חיפוש בטקסט" image="compare.svg" urlConnectionsMode="SidebarSearch" onClick={() => this.props.setConnectionsMode("SidebarSearch")} />
<ToolsButton en="Translations" he="תרגומים" image="translation.svg" urlConnectionsMode="Translations" onClick={() => this.props.setConnectionsMode("Translations")} count={resourcesButtonCounts.translations} />
<ToolsButton en="About this Text" he="ཆོས་མཛོད་འདིའི་སྐོར།" image="about-text.svg" urlConnectionsMode="About" onClick={() => this.props.setConnectionsMode("About")} />
<ToolsButton en="Table of Contents" he="རེའུ་མིག" image="text-navigation.svg" urlConnectionsMode="Navigation" onClick={() => this.props.setConnectionsMode("Navigation")} />
<ToolsButton en="Search in this Text" he="ཆོས་མཛོད་འདིའི་ནང་ཚོལ།" image="compare.svg" urlConnectionsMode="SidebarSearch" onClick={() => this.props.setConnectionsMode("SidebarSearch")} />
<ToolsButton en="Translations" he="འགྱུར་མ་ཁག" image="translation.svg" urlConnectionsMode="Translations" onClick={() => this.props.setConnectionsMode("Translations")} count={resourcesButtonCounts.translations} />
</div>
}
{showConnectionSummary ?
Expand Down Expand Up @@ -739,11 +739,11 @@ const ResourcesList = ({ masterPanelMode, setConnectionsMode, counts }) => {
// A list of Resources in addition to connection
return (
<div className="toolButtonsList">
<ToolsButton en="Sheets" he="דפי מקורות" image="sheet.svg" count={counts["sheets"]} urlConnectionsMode="Sheets" onClick={() => setConnectionsMode("Sheets")} />
<ToolsButton en="Web Pages" he="דפי אינטרנט" image="webpages.svg" count={counts["webpages"]} urlConnectionsMode="WebPages" onClick={() => setConnectionsMode("WebPages")} />
<ToolsButton en="Topics" he="נושאים" image="hashtag-icon.svg" count={counts["topics"]} urlConnectionsMode="Topics" onClick={() => setConnectionsMode("Topics")} alwaysShow={Sefaria.is_moderator} />
<ToolsButton en="Manuscripts" he="כתבי יד" image="manuscripts.svg" count={counts["manuscripts"]} urlConnectionsMode="manuscripts" onClick={() => setConnectionsMode("manuscripts")} />
<ToolsButton en="Torah Readings" he="קריאה בתורה" image="torahreadings.svg" count={counts["audio"]} urlConnectionsMode="Torah Readings" onClick={() => setConnectionsMode("Torah Readings")} />
<ToolsButton en="Sheets" he="ཤོག་ངོས།" image="sheet.svg" count={counts["sheets"]} urlConnectionsMode="Sheets" onClick={() => setConnectionsMode("Sheets")} />
<ToolsButton en="Web Pages" he="དྲ་ངོས་ཁག" image="webpages.svg" count={counts["webpages"]} urlConnectionsMode="WebPages" onClick={() => setConnectionsMode("WebPages")} />
<ToolsButton en="Topics" he="བཇོད་གཞི།" image="hashtag-icon.svg" count={counts["topics"]} urlConnectionsMode="Topics" onClick={() => setConnectionsMode("Topics")} alwaysShow={Sefaria.is_moderator} />
<ToolsButton en="Manuscripts" he="Manuscripts" image="manuscripts.svg" count={counts["manuscripts"]} urlConnectionsMode="manuscripts" onClick={() => setConnectionsMode("manuscripts")} />
<ToolsButton en="Pecha Readings" he="དཔེ་ཆ་ཀློག་མཁན།" image="torahreadings.svg" count={counts["audio"]} urlConnectionsMode="Torah Readings" onClick={() => setConnectionsMode("Torah Readings")} />
</div>
);
}
Expand All @@ -756,13 +756,13 @@ const ToolsList = ({ setConnectionsMode, toggleSignUpModal, openComparePanel, co
// A list of Resources in addition to connection
return (
<div className="toolButtonsList">
<ToolsButton en="Add to Sheet" he="הוספה לדף מקורות" image="sheetsplus.svg" onClick={() => !Sefaria._uid ? toggleSignUpModal(SignUpModalKind.AddToSheet) : setConnectionsMode("Add To Sheet", { "addSource": "mainPanel" })} />
<ToolsButton en="Dictionaries" he="מילונים" image="dictionaries.svg" urlConnectionsMode="Lexicon" onClick={() => setConnectionsMode("Lexicon")} />
{openComparePanel ? <ToolsButton en="Compare Text" he="טקסט להשוואה" image="compare-panel.svg" onClick={openComparePanel} /> : null}
<ToolsButton en="Notes" he="הערות" image="notes.svg" alwaysShow={true} count={counts["notes"]} urlConnectionsMode="Notes" onClick={() => !Sefaria._uid ? toggleSignUpModal(SignUpModalKind.Notes) : setConnectionsMode("Notes")} />
{masterPanelMode !== "Sheet" ? <ToolsButton en="Share" he="שיתוף" image="share.svg" onClick={() => setConnectionsMode("Share")} /> : null}
<ToolsButton en="Feedback" he="משוב" image="feedback.svg" onClick={() => setConnectionsMode("Feedback")} />
<ToolsButton en="Advanced" he="כלים מתקדמים" image="advancedtools.svg" onClick={() => setConnectionsMode("Advanced Tools")} />
<ToolsButton en="Add to Sheet" he="ཤོག་ངོས་ནང་སྣོན།" image="sheetsplus.svg" onClick={() => !Sefaria._uid ? toggleSignUpModal(SignUpModalKind.AddToSheet) : setConnectionsMode("Add To Sheet", { "addSource": "mainPanel" })} />
<ToolsButton en="Dictionaries" he="ཚིག་མཛོད།" image="dictionaries.svg" urlConnectionsMode="Lexicon" onClick={() => setConnectionsMode("Lexicon")} />
{openComparePanel ? <ToolsButton en="Compare Text" he="ཆོས་མཛོད་གཤིབ་བསྡུར།" image="compare-panel.svg" onClick={openComparePanel} /> : null}
<ToolsButton en="Notes" he="མཆན།" image="notes.svg" alwaysShow={true} count={counts["notes"]} urlConnectionsMode="Notes" onClick={() => !Sefaria._uid ? toggleSignUpModal(SignUpModalKind.Notes) : setConnectionsMode("Notes")} />
{masterPanelMode !== "Sheet" ? <ToolsButton en="Share" he="བརྒྱུད་བསྐུར།" image="share.svg" onClick={() => setConnectionsMode("Share")} /> : null}
<ToolsButton en="Feedback" he="བསམ་འཆར།" image="feedback.svg" onClick={() => setConnectionsMode("Feedback")} />
<ToolsButton en="Advanced" he="ཞིབ་ཕྲ།" image="advancedtools.svg" onClick={() => setConnectionsMode("Advanced Tools")} />
</div>
);
}
Expand Down Expand Up @@ -1302,9 +1302,9 @@ const AdvancedToolsList = ({srefs, canEditText, currVersions, setConnectionsMode

return (
<div>
<ToolsButton en="Add Translation" he="הוספת תרגום" image="tools-translate.svg" onClick={addTranslation} />
<ToolsButton en="Add Connection" he="הוספת קישור לטקסט אחר" image="tools-add-connection.svg" onClick={() => !Sefaria._uid ? toggleSignUpModal(SignUpModalKind.AddConnection) : setConnectionsMode("Add Connection")} />
{editText ? (<ToolsButton en="Edit Text" he="עריכת טקסט" image="tools-edit-text.svg" onClick={editText} />) : null}
<ToolsButton en="Add Translation" he="འགྱུར་མ་གསར་སྣོན།" image="tools-translate.svg" onClick={addTranslation} />
<ToolsButton en="Add Connection" he="འབྲེལ་ཡོད་གསར་སྣོན།" image="tools-add-connection.svg" onClick={() => !Sefaria._uid ? toggleSignUpModal(SignUpModalKind.AddConnection) : setConnectionsMode("Add Connection")} />
{editText ? (<ToolsButton en="Edit Text" he="ཆོས་མཛོད་རྩོམ་སྒྲིག" image="tools-edit-text.svg" onClick={editText} />) : null}
</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions static/js/ConnectionsPanelHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ConnectionsPanelHeader extends Component {
if (this.props.connectionsMode === "Resources") {
// Top Level Menu
title = <div className="connectionsHeaderTitle sans-serif">
<InterfaceText text={{en: "Resources" , he:"קישורים וכלים" }} />
<InterfaceText text={{en: "Resources" , he:"རྒྱུ་ཆ་རྣམས།" }} />
</div>;

} else if ((this.props.previousCategory && this.props.connectionsMode === "TextList") || previousMode) {
Expand Down Expand Up @@ -87,7 +87,7 @@ class ConnectionsPanelHeader extends Component {
</EnglishText>
<HebrewText>
<i className="fa fa-chevron-right"></i>
קישורים וכלים
རྒྱུ་ཆ་རྣམས།
</HebrewText>
</InterfaceText>
</a>;
Expand Down
2 changes: 1 addition & 1 deletion static/js/NavSidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ const AboutTopics = ({hideTitle}) => (
<ModuleTitle>About Topics</ModuleTitle> }
<InterfaceText>
<HebrewText>
דפי הנושא מציגים מקורות נבחרים מארון הספרים היהודי עבור אלפי נושאים. ניתן לדפדף לפי קטגוריה או לחפש לפי נושא ספציפי, ובסרגל הצד מוצגים הנושאים הפופולריים ביותר ואלה הקשורים אליהם. הקליקו ושוטטו בין הנושאים השונים כדי ללמוד עוד.
བརྗོད་གཞིའི་ཤོག་ངོས་ཀྱིས་གཙོ་བོ་ཆེད་འདེམ་བྱས་པའི་བརྗོད་གཞི་སྟོང་ཕྲག་མང་པོའི་རྒྱུ་ཆ་རྣམས་བརྗོད་བྱའི་སྒོ་ནས་རིགས་སོ་སོར་དབྱེ་བའི་སྡེ་ཚན་གསལ་སྟོན་བྱེད་པ་ཡིན། དེའི་ཕྱིར་ཁྱེད་ཀྱིས་སྡེ་ཚན་རེ་རེ་བྱས་ཏེ་གཟིགས་ཐུབ་ཅིང་། བྱེ་བྲག་གིས་འཚོལ་ཞིབ་བྱེད་པ་ཡང་ན་བརྗོད་གཞི་རྒྱུགས་ཆེ་ཤོས་རྣམས་དང་དེ་འབྲེལ་གྱི་རྒྱུ་ཆ་ཁག་གཟིགས་ཞིབ་ཀྱང་བྱེད་ཆོག་པ་ཡིན།
</HebrewText>
<EnglishText>
Topics Pages present a curated selection of various genres of sources on thousands of chosen subjects. You can browse by category, search for something specific, or view the most popular topics — and related topics — on the sidebar. Explore and click through to learn more.
Expand Down
4 changes: 2 additions & 2 deletions static/js/TranslationsBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ const TranslationsHeader = () => (
<div className="translationsDesc sans-serif">
<InterfaceText>
<EnglishText>Pecha acquires translations to enrich your learning experience. Preview or choose a different translation below.</EnglishText>
<HebrewText>ספריא עושה מאמצים להוסיף תרגומים שונים לספרים כדי להעשיר את חווית הלמידה שלכם. כאן ניתן להחליף לתרגום אחר או לראות תצוגה מקדימה שלו לצד הטקסט הנוכחי.</HebrewText>
<HebrewText>དཔེ་ཆ་དྲ་ཚིག་གིས་འགྱུར་མ་ཁག་བཟོས་ཏེ་སྦྱོང་ཡག་ལ་རོག་རམ་བྱེད་ཐུབ་ གཤམ་འོག་ལ་སྐད་ཡིག་གཞན་འདེམ་རོགས་།</HebrewText>
</InterfaceText>
<a href="/sheets/511573" target="_blank" className="inTextLink">
<InterfaceText>
<EnglishText>Learn more ›</EnglishText>
<HebrewText>למידע נוסף</HebrewText>
<HebrewText> མུ་མཐུད་གཟིགས་་</HebrewText>
</InterfaceText>
</a>
</div>
Expand Down

0 comments on commit 0636eeb

Please sign in to comment.