Skip to content

Commit

Permalink
Fixed (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lungsangg authored Dec 9, 2024
2 parents a5cfe56 + 3bd38cb commit 082b3c3
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion static/js/ConnectionFilters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class CategoryFilter extends Component {
<div className={innerClasses} data-name={this.props.category}>
<span className="filterInner">
<span className="filterText">
<ContentText text={{en:this.props.showBooks ? `${Sefaria._("common.all")} ${this.props.category}` : this.props.category, he:this.props.showBooks ? `${Sefaria._("common.all")} ${this.props.heCategory}` : this.props.heCategory}} />
<ContentText text={{en:this.props.showBooks ? `${Sefaria._("connection_panel.related_text.all_commentary")}` : `${Sefaria._("text.commentary")}` , he:this.props.showBooks ? `${Sefaria._("connection_panel.related_text.all_commentary")} ` : `${Sefaria._("text.commentary")}` }} />
<span className="connectionsCount"> ({this.props.count})</span>
</span>
<span className="en">
Expand Down
2 changes: 1 addition & 1 deletion static/js/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Footer extends Component {

return (
<div id="version_number" className="flex flex-col items-center">
<InterfaceText>website.pecha.version</InterfaceText>
{/* <InterfaceText>website.pecha.version</InterfaceText> */}
{/* Install PWA Button */}
<button id="install-pwa-button" className="pwa-install-button flex items-center">
<InterfaceText className={"pwa_download_label"}>pwa.download_button.label</InterfaceText>
Expand Down
2 changes: 1 addition & 1 deletion static/js/ReaderPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,7 @@ class ReaderDisplayOptionsMenu extends Component {
let languageToggle = this.showLangaugeToggle() ? (
<ToggleSet
ariaLabel="Language toggle"
label={Sefaria._("Language")}
label={Sefaria._("text.reader_option_menu.language")}
name="language"
options={languageOptions}
setOption={this.props.setOption}
Expand Down
4 changes: 2 additions & 2 deletions static/js/SidebarSearch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const SidebarSearch = ({ title, updateAppliedOptionSort, navigatePanel, sidebarS
<>
<SearchButton onClick={handleSearchButtonClick} />
<input className={inputClasses}
placeholder={Sefaria._("Search in this text")}
placeholder={Sefaria._("connection_panel.search_in_this_text")}
id="searchQueryInput"
maxLength={75}
onKeyUp={
Expand All @@ -111,7 +111,7 @@ const SidebarSearch = ({ title, updateAppliedOptionSort, navigatePanel, sidebarS
}
}
}
title={Sefaria._("Search in this text")} />
title={Sefaria._("connection_panel.search_in_this_text")} />
</>
}

Expand Down
3 changes: 2 additions & 1 deletion static/js/sefaria/localizationLanguage/chinese.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"pwa.download_button.label":"安装 PECHA 应用",
"text.reader_option_menu.layout": "布局",
"common.loading": "加载中...",
"text.reader_option_menu.language": "语言",
"website.pecha.version": "版本: 1.4.0",
"common.version": "版本",
"common.log_in": "登录",
Expand Down Expand Up @@ -618,7 +619,7 @@
"category.parent_category": "父类别",
"category.message.cannot_delete_content": "无法删除有内容的类别。",
"common.load_more": "加载更多",
"common.all": "全部",
"connection_panel.related_text.all_commentary": "全部注释",
"message.success_created_new_connection": "成功!您已创建了新连接。",
"connection_panel.about_the_source": "关于此来源",
"note.go_to_my_note": "前往我的笔记",
Expand Down
3 changes: 2 additions & 1 deletion static/js/sefaria/localizationLanguage/english.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"pwa.download_button.label":"INSTALL PECHA APP",
"text.reader_option_menu.layout": "Layout",
"common.loading": "Loading...",
"text.reader_option_menu.language": "Language",
"website.pecha.version": "Version: 1.4.0",
"common.version": "Version",
"common.log_in": "Log in",
Expand Down Expand Up @@ -623,7 +624,7 @@
"category.parent_category":"Parent Category",
"category.message.cannot_delete_content":"Cannot delete a category with contents.",
"common.load_more":"Load More",
"common.all":"All",
"connection_panel.related_text.all_commentary":"All Commentary",
"message.success_created_new_connection":"Success! You've created a new connection.",
"connection_panel.about_the_source":"About this Source",
"note.go_to_my_note":"Go to My Notes",
Expand Down
5 changes: 3 additions & 2 deletions static/js/sefaria/localizationLanguage/tibetan.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

"pwa.download_button.label":"དཔེ་ཆ་མརྙན་ཆས་ཕབ་ལེན་བྱོས།",
"text.reader_option_menu.layout": "ཁྱད་ཆོས།",
"text.reader_option_menu.language": "སྐད་ཡིག།",
"common.loading": "ལེན་བཞིན་པ་་་",
"website.pecha.version": "ཐོན་རིམ།: ༡་༤་༠",
"common.version": "འགྱུར་མའམ་དཔེ་རྒྱུན།",
Expand Down Expand Up @@ -147,7 +148,7 @@
"common.share": "བརྒྱུད་སྐུར་གྱིས།",
"common.share_link": "བརྒྱུད་བསྐུར་བྱེད་ས།",
"common.share_on_fb":"ངོ་དེབ་ལ་བརྒྱུད་བསྐུར་གྱིས།",
"common.share_on_x":"X ཐོག་ནས་མཉམ་སྤྱོད་བྱེད",
"common.share_on_x":"X ལ་བརྒྱུད་བསྐུར་གྱིས",
"common.share_by_email":"གློག་ཕྲིན་ནས་བརྒྱུད་བསྐུར་གྱིས།",
"bilingual":"སྐད་གཉིས་ཤན་སྦྱར།",
"english": "ཨིན་ཇི།",
Expand Down Expand Up @@ -620,7 +621,7 @@
"category.parent_category":"ཕ་མའི་སྡེ་ཚན།",
"category.message.cannot_delete_content":"སྡེ་ཚན་གྱི་ནང་གསེས་བསལ་མི་ཐུབ།",
"common.load_more": "འདི་ལས་མང་།",
"common.all":"ཐམས་ཅད་དང་",
"connection_panel.related_text.all_commentary":"འགྲེལ་བ་ཐམས་ཅད",
"message.success_created_new_connection":"ལམ་ལྷོང་། ཁྱེད་ཀྱིས་འབྲེལ་ལམ་གསར་པ་ཞིག་བསྐྲུན་ཡོད།",
"connection_panel.about_the_source":"མ་ཕྱི་འདིའི་སྐོར།",
"note.go_to_my_note": "མཆན་ཡོད་ས་ལ་འགྲོ།",
Expand Down
2 changes: 1 addition & 1 deletion templates/account_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1>
<label class="control-elem">
<span class="{{ language_font_class }}">{% trans "Notification Frequency (Maximum)" %}</span>
</label>
<div class="toggleSet toggleSetToggleBox blueStyle tripleOption control-elem" role="radiogroup">
<div class="toggleSet toggleSetToggleBox blueStyle tripleOption control-elem" role="radiogroup" style="white-space:nowrap">
<div role="radio" data-value="daily" class="toggleOption {% if profile.settings.email_notifications == "daily" %} on{% endif %}" tabindex="{% if profile.settings.email_notifications == "daily" %}0" aria-checked="true{% else %}-1" aria-checked="false{% endif %}">
<span class="{{ language_font_class }}">{% trans "Daily" %}</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
});
</script>

<script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="b5a8d317-af7b-4b83-8801-84e6658f1f6e";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
{% comment %} <script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="b5a8d317-af7b-4b83-8801-84e6658f1f6e";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script> {% endcomment %}


<!-- <script src="{% static 'js/pwa_app_installer.js' %}"></script> -->
Expand Down

0 comments on commit 082b3c3

Please sign in to comment.