diff --git a/static/js/AddToSourceSheet.jsx b/static/js/AddToSourceSheet.jsx
index 3e79accee9..8662ed074e 100644
--- a/static/js/AddToSourceSheet.jsx
+++ b/static/js/AddToSourceSheet.jsx
@@ -51,11 +51,11 @@ class AddToSourceSheetBox extends Component {
setDefaultSheet() {
if (this.state.selectedSheet) { return; }
if (!Sefaria._uid) {
- this.setState({selectedSheet: {title: Sefaria._( "Your Sheet")}});
+ this.setState({selectedSheet: {title: Sefaria._( "sheet.your_sheet")}});
} else {
var sheets = Sefaria.sheets.userSheets(Sefaria._uid);
if (!sheets.length) {
- this.setState({selectedSheet: {title: Sefaria._( "Create a New Sheet")}});
+ this.setState({selectedSheet: {title: Sefaria._( "header.profileMenu.create_New_Sheet")}});
} else {
this.setState({selectedSheet: sheets[0]});
}
@@ -133,7 +133,7 @@ class AddToSourceSheetBox extends Component {
for (let i = 0; i < refs.length; i++) {
let ref = Sefaria.getRefFromCache(refs[i]);
if (ref && (Sefaria.isFullSegmentImage(ref.he) || Sefaria.isFullSegmentImage(ref.text))) {
- alert(Sefaria._( "We do not currently support adding images to source sheets."));
+ alert(Sefaria._( "sheet.message.do_not_support_adding_images_to_source_sheets"));
return false;
}
}
@@ -178,8 +178,8 @@ class AddToSourceSheetBox extends Component {
disallowedTagsMode: 'discard',
});
let titleRetval = {
- "en": `${sheetTitle} ${Sefaria._("Section")}${nodeID}`,
- "he": `${sheetTitle} ${Sefaria._("Section")}${nodeID}`
+ "en": `${sheetTitle} ${Sefaria._("section")}${nodeID}`,
+ "he": `${sheetTitle} ${Sefaria._("section")}${nodeID}`
}
if (refTitles){ //show the refs also of a source, just to be nice
titleRetval["en"] += `(${refTitles["en"]})`;
@@ -202,7 +202,7 @@ class AddToSourceSheetBox extends Component {
const sheets = Sefaria._uid ? Sefaria.sheets.userSheets(Sefaria._uid) : null;
let sheetsList = Sefaria._uid && sheets ? sheets.map((sheet) => {
let classes = classNames({dropdownOption: 1, noselect: 1, selected: this.state.selectedSheet && this.state.selectedSheet.id === sheet.id});
- let title = sheet.title ? sheet.title.stripHtml() : Sefaria._("Untitled Source Sheet");
+ let title = sheet.title ? sheet.title.stripHtml() : Sefaria._("sheet.untitled_sourc_sheet");
let selectSheet = this.selectSheet.bind(this, sheet);
return (
{title}
);
}) : (Sefaria._uid ?
: null);
@@ -218,11 +218,11 @@ class AddToSourceSheetBox extends Component {
{titleRef["he"]}
);
}
@@ -269,15 +269,15 @@ class ConfirmAddToSheet extends Component {
disallowedTagsMode: 'discard',
});
srefTitles = {
- "en": `${Sefaria._("Section from")} "${sheetTitle}"`,
- "he": `${Sefaria._("Section from")} "${sheetTitle}"`,
+ "en": `${Sefaria._("sheet.section_from")} "${sheetTitle}"`,
+ "he": `${Sefaria._("sheet.section_from")} "${sheetTitle}"`,
};
}
return (
@@ -304,7 +304,7 @@ class AddToSourceSheetWindow extends Component {
diff --git a/static/js/AdminEditor.jsx b/static/js/AdminEditor.jsx
index 5cb5087c6f..2048a887a2 100644
--- a/static/js/AdminEditor.jsx
+++ b/static/js/AdminEditor.jsx
@@ -12,25 +12,25 @@ const options_for_form = {
"English Description": {
label: "English Description",
field: "enDescription",
- placeholder: "Add a description.",
+ placeholder: Sefaria._("topic.admin.description"),
type: 'textarea',
markdown: true,
},
"Hebrew Description": {
label: "Tibetan Description",
field: "heDescription",
- placeholder: "Add a description.",
+ placeholder: Sefaria._("topic.admin.description"),
type: 'textarea',
markdown: true
},
"Prompt": {label: "Prompt", field: "prompt", placeholder: "Add a prompt.", type: 'textarea'},
"English Short Description": {
- label: "English Short Description for Table of Contents", field: "enCategoryDescription",
- placeholder: "Add a short description.", type: 'input'
+ label: Sefaria._("topic.admin.en_short_description"), field: "enCategoryDescription",
+ placeholder: Sefaria._("topic.admin.short_description"), type: 'input'
},
"Hebrew Short Description": {
- label: "Tibetan Short Description for Table of Contents", field: "heCategoryDescription",
- placeholder: "Add a short description.", type: 'input'
+ label: Sefaria._("topic.admin.bo_short_description"), field: "heCategoryDescription",
+ placeholder: Sefaria._("topic.admin.short_description"), type: 'input'
},
"English Alternate Titles": {
label: "English Alternate Titles", field: "enAltTitles",
diff --git a/static/js/BookPage.jsx b/static/js/BookPage.jsx
index d8e90394af..d1ff2e48f2 100644
--- a/static/js/BookPage.jsx
+++ b/static/js/BookPage.jsx
@@ -187,19 +187,19 @@ class BookPage extends Component {
const readButton = !this.state.indexDetails || this.isTextToc() || this.props.compare ? null :
Sefaria.lastPlaceForText(title) ?
- Continue Reading
+ text.button.continue_reading
:
- Start Reading
+ text.start_reading
const tabs = []
if (this.state.isContentVisible) {
- tabs.push({id: "contents", title: {en: "Contents", he: Sefaria._("Contents")}});
+ tabs.push({id: "contents", title: {en: Sefaria._("text.contents"), he: Sefaria._("text.contents")}});
}
if (this.isBookToc()){
- tabs.push({id: "versions", title: {en: "Versions", he: Sefaria._("Versions")}});
+ tabs.push({id: "versions", title: {en: Sefaria._("text.versions"), he: Sefaria._("text.versions")}});
}
const renderTab = t => (
@@ -254,7 +254,7 @@ class BookPage extends Component {
:
- Table of Contents
+ text.table_of_contents
}