Move some strings to copy

This commit is contained in:
Franc Camps-Febrer
2019-01-17 11:13:10 -05:00
parent 68d43ad9a2
commit 20ef17e775
2 changed files with 7 additions and 19 deletions

View File

@@ -103,22 +103,6 @@ class Toolbar extends React.Component {
);
}
renderToolbarTabs() {
const title = copy[this.props.language].toolbar.title;
const isTags = this.props.tags && (Object.keys(this.props.tags.children) > 0);
return (
<div className="toolbar">
<div className="toolbar-header"><p>{title}</p></div>
<div className="toolbar-tabs">
{/*this.renderToolbarTab(0, 'search')*/}
{this.renderToolbarTab(0, 'Focus stories')}
{this.renderToolbarTab(1, 'Explore freely')}
</div>
</div>
)
}
renderToolbarPanels() {
let classes = (this.state._selected >= 0) ? 'toolbar-panels' : 'toolbar-panels folded';
return (
@@ -151,6 +135,8 @@ class Toolbar extends React.Component {
renderToolbarTabs() {
const title = copy[this.props.language].toolbar.title;
const narratives_label = copy[this.props.language].toolbar.narratives_label;
const tags_label = copy[this.props.language].toolbar.tags_label;
const isTags = this.props.tags && this.props.tags.children;
return (
@@ -158,8 +144,8 @@ class Toolbar extends React.Component {
<div className="toolbar-header"><p>{title}</p></div>
<div className="toolbar-tabs">
{/*this.renderToolbarTab(0, 'search')*/}
{this.renderToolbarTab(0, 'Narratives', 'timeline')}
{(isTags) ? this.renderToolbarTab(1, 'Explore by tag', 'style') : ''}
{this.renderToolbarTab(0, narratives_label, 'timeline')}
{(isTags) ? this.renderToolbarTab(1, tags_label, 'style') : ''}
</div>
<ToolbarBottomActions
sites={{

View File

@@ -108,12 +108,14 @@
"placeholder": "Search"
}
},
"narrative_panel_title": "Focus narratives",
"narratives_label": "Narratives",
"narrative_summary": "Here you can follow some curated stories we have found in the data.",
"categories": "Categories",
"tags": "Tags",
"tags_label": "Tags",
"explore_by_tag__title": "Explore by tag or category",
"explore_by_tag__description": "Selecting tags or categories, you'll see only those events that are tagged accordingly. If you select nothing, as well as everything, all data will be displayed."
},
"timeline": {
"zooms": [