|
@@ -11,7 +11,7 @@ import CustomizeLayoutOption from './CustomizeLayoutOption';
|
|
|
class CustomizeLayoutOptions extends React.Component {
|
|
class CustomizeLayoutOptions extends React.Component {
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
- const { adminCustomizeContainer } = this.props;
|
|
|
|
|
|
|
+ const { t, adminCustomizeContainer } = this.props;
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div className="row">
|
|
<div className="row">
|
|
@@ -20,14 +20,13 @@ class CustomizeLayoutOptions extends React.Component {
|
|
|
layoutType="crowi-plus"
|
|
layoutType="crowi-plus"
|
|
|
isSelected={adminCustomizeContainer.state.currentLayout === 'growi'}
|
|
isSelected={adminCustomizeContainer.state.currentLayout === 'growi'}
|
|
|
onSelected={() => adminCustomizeContainer.switchLayoutType('growi')}
|
|
onSelected={() => adminCustomizeContainer.switchLayoutType('growi')}
|
|
|
- labelHtml={'GROWI Enhanced Layout <small class="text-success">(Recommended)</small>'}
|
|
|
|
|
|
|
+ labelHtml={`GROWI Enhanced Layout <small class="text-success">${t('customize_page.recommended')}</small>`}
|
|
|
>
|
|
>
|
|
|
- {/* TODO i18n */}
|
|
|
|
|
- <h4>Simple and Clear</h4>
|
|
|
|
|
|
|
+ <h4>{t('customize_page.layout_description.growi_title')}</h4>
|
|
|
<ul>
|
|
<ul>
|
|
|
- <li>Full screen layout and thin margins/paddings</li>
|
|
|
|
|
- <li>Show and post comments at the bottom of the page</li>
|
|
|
|
|
- <li>Affix Table-of-contents</li>
|
|
|
|
|
|
|
+ <li>{t('customize_page.layout_description.growi_text1')}</li>
|
|
|
|
|
+ <li>{t('customize_page.layout_description.growi_text2')}</li>
|
|
|
|
|
+ <li>{t('customize_page.layout_description.growi_text3')}</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</CustomizeLayoutOption>
|
|
</CustomizeLayoutOption>
|
|
|
</div>
|
|
</div>
|
|
@@ -39,12 +38,11 @@ class CustomizeLayoutOptions extends React.Component {
|
|
|
onSelected={() => adminCustomizeContainer.switchLayoutType('kibela')}
|
|
onSelected={() => adminCustomizeContainer.switchLayoutType('kibela')}
|
|
|
labelHtml="Kibela Like Layout"
|
|
labelHtml="Kibela Like Layout"
|
|
|
>
|
|
>
|
|
|
- {/* TODO i18n */}
|
|
|
|
|
- <h4>Easy Viewing Structure</h4>
|
|
|
|
|
|
|
+ <h4>{t('customize_page.layout_description.kibela_title')}</h4>
|
|
|
<ul>
|
|
<ul>
|
|
|
- <li>Center aligned contents</li>
|
|
|
|
|
- <li>Show and post comments at the bottom of the page</li>
|
|
|
|
|
- <li>Affix Table-of-contents</li>
|
|
|
|
|
|
|
+ <li>{t('customize_page.layout_description.kibela_text1')}</li>
|
|
|
|
|
+ <li>{t('customize_page.layout_description.kibela_text2')}</li>
|
|
|
|
|
+ <li>{t('customize_page.layout_description.kibela_text3')}</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</CustomizeLayoutOption>
|
|
</CustomizeLayoutOption>
|
|
|
</div>
|
|
</div>
|
|
@@ -56,12 +54,11 @@ class CustomizeLayoutOptions extends React.Component {
|
|
|
onSelected={() => adminCustomizeContainer.switchLayoutType('crowi')}
|
|
onSelected={() => adminCustomizeContainer.switchLayoutType('crowi')}
|
|
|
labelHtml="Crowi Classic Layout"
|
|
labelHtml="Crowi Classic Layout"
|
|
|
>
|
|
>
|
|
|
- {/* TODO i18n */}
|
|
|
|
|
- <h4>Separated Functions</h4>
|
|
|
|
|
|
|
+ <h4>{t('customize_page.layout_description.crowi_title')}</h4>
|
|
|
<ul>
|
|
<ul>
|
|
|
- <li>Collapsible Sidebar</li>
|
|
|
|
|
- <li>Show and post comments in Sidebar</li>
|
|
|
|
|
- <li>Collapsible Table-of-contents</li>
|
|
|
|
|
|
|
+ <li>{t('customize_page.layout_description.crowi_text1')}</li>
|
|
|
|
|
+ <li>{t('customize_page.layout_description.crowi_text2')}</li>
|
|
|
|
|
+ <li>{t('customize_page.layout_description.crowi_text3')}</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</CustomizeLayoutOption>
|
|
</CustomizeLayoutOption>
|
|
|
</div>
|
|
</div>
|