Rewrite some localization. Move typo highlighting label to the left.

parent 9a199dd8
...@@ -3,14 +3,13 @@ import LocalizedStrings from 'react-localization' ...@@ -3,14 +3,13 @@ import LocalizedStrings from 'react-localization'
export const i18n = new LocalizedStrings({ export const i18n = new LocalizedStrings({
ru: { ru: {
modalTitle: "Система исправления опечаток Etersoft", modalTitle: "Система исправления опечаток Etersoft",
modalInfo: "Пожалуйста, введите исправленный вариант и комментарий (необязательно) " + modalInfo: "Отредактируйте Ваш вариант текста",
"для отправки отчёта об опечатке на сервер", modalCorrectLabel: "Ваш вариант",
modalCorrectLabel: "Исправленный вариант",
modalCorrectHelp: "Модераторы проверят исправления и внесут поправки в текст", modalCorrectHelp: "Модераторы проверят исправления и внесут поправки в текст",
modalTypoLabel: "Текст с ошибкой", modalTypoLabel: "Выделенный текст",
modalCommentPlaceholder: `Например, "опечатка"`, modalCommentPlaceholder: `Например, "опечатка"`,
modalCommentLabel: "Пояснения к исправлению", modalCommentLabel: "Пояснения к исправлению (необязательно)",
errorSelectionLength: "Опечатка должна быть длиной от {0} до {1} символов", errorSelectionLength: "Длина выделенного текста должна быть от {0} до {1} символов",
errorCorrectLength: "Исправление должно быть длиной от {0} до {1} символов", errorCorrectLength: "Исправление должно быть длиной от {0} до {1} символов",
errorDoesNotDistinct: "Исправленный вариант идентичен исходному", errorDoesNotDistinct: "Исправленный вариант идентичен исходному",
errorTooOften: "Вы отправляете исправления слишком часто", errorTooOften: "Вы отправляете исправления слишком часто",
...@@ -19,21 +18,20 @@ export const i18n = new LocalizedStrings({ ...@@ -19,21 +18,20 @@ export const i18n = new LocalizedStrings({
messageSuccess: "Благодарим за отправку опечатки. Мы уже работаем над её исправлением!", messageSuccess: "Благодарим за отправку опечатки. Мы уже работаем над её исправлением!",
errorFormContainsErrors: "Форма отправки содержит ошибки!", errorFormContainsErrors: "Форма отправки содержит ошибки!",
errorSendFailture: "Не удалось отправить исправление. Мы уже работаем над решением проблемы!", errorSendFailture: "Не удалось отправить исправление. Мы уже работаем над решением проблемы!",
typoHighlightingEnable: "Включить подсветку ошибок", typoHighlightingEnable: "Проверка правописания на странице",
typoHighlightingEnabled: "Подсветка опечаток на странице включена", typoHighlightingEnabled: "Подсветка опечаток на странице включена",
typoHighlightingDisabled: "Подсветка опечаток на странице выключена", typoHighlightingDisabled: "Подсветка опечаток на странице выключена",
}, },
en: { en: {
modalTitle: "Typo correction system Etersoft", modalTitle: "Typo correction system Etersoft",
modalInfo: "Please, type in a correct variant to the input field bellow and optional commentary. Than press the send button " + modalInfo: "Edit your variant of the text",
"to send the correction to the server.", modalCorrectLabel: "Your variant",
modalCorrectLabel: "Corrected text", modalCorrectHelp: "Moderators will check your proposal correction and fix it!",
modalCorrectHelp: "Moderators will check your proposal corretion and fix it!", modalTypoLabel: "Selected text",
modalTypoLabel: "The typo",
modalCommentPlaceholder: `"A typo", for example`, modalCommentPlaceholder: `"A typo", for example`,
modalCommentLabel: "Commentary", modalCommentLabel: "Comment (optional)",
errorSelectionLength: "The text length must be in range ({0}-{1})", errorSelectionLength: "The text length must be in range ({0}-{1})",
errorCorrectLength: "The corrected text length must be in range ({0}-{1})", errorCorrectLength: "The selected text length must be in range ({0}-{1})",
errorDoesNotDistinct: "The original and corrected text are the same", errorDoesNotDistinct: "The original and corrected text are the same",
errorTooOften: "You are sending correction requests too often", errorTooOften: "You are sending correction requests too often",
close: "Close", close: "Close",
...@@ -41,7 +39,7 @@ export const i18n = new LocalizedStrings({ ...@@ -41,7 +39,7 @@ export const i18n = new LocalizedStrings({
messageSuccess: "Thank you for a typo submitting! We are already working on this report!", messageSuccess: "Thank you for a typo submitting! We are already working on this report!",
errorFormContainsErrors: "The form contains errors!", errorFormContainsErrors: "The form contains errors!",
errorSendFailture: "Failed to send request. We are fixing a problem!", errorSendFailture: "Failed to send request. We are fixing a problem!",
typoHighlightingEnable: "Typo highlighting on page", typoHighlightingEnable: "Typo highlighting on this page",
typoHighlightingEnabled: "Typo highlighting enabled on this page", typoHighlightingEnabled: "Typo highlighting enabled on this page",
typoHighlightingDisabled: "Typo highlighting disabled on this page", typoHighlightingDisabled: "Typo highlighting disabled on this page",
} }
......
...@@ -18,4 +18,10 @@ ...@@ -18,4 +18,10 @@
.lang-switcher { .lang-switcher {
float: left; float: left;
}
.typo-highlighting-checkbox {
float: left;
width: 100%;
text-align: left;
} }
\ No newline at end of file
...@@ -225,10 +225,11 @@ class TypoModal extends Component { ...@@ -225,10 +225,11 @@ class TypoModal extends Component {
</Modal.Body> </Modal.Body>
<Modal.Footer> <Modal.Footer>
<Checkbox onChange={this.onContentEditableCheckboxChanged} checked={this.state.contentEditable}> <Checkbox className="typo-highlighting-checkbox" onChange={this.onContentEditableCheckboxChanged}
checked={this.state.contentEditable}>
{i18n.typoHighlightingEnable} {i18n.typoHighlightingEnable}
</Checkbox> </Checkbox>
<LangSwitcher activeLanguage={this.state.language} onLangChanged={this.onLangChanged} languages={this.languages}></LangSwitcher> <LangSwitcher activeLanguage={this.state.language} onLangChanged={this.onLangChanged} languages={this.languages}/>
<Button onClick={this.handleClose}>{i18n.close}</Button> <Button onClick={this.handleClose}>{i18n.close}</Button>
<Button onClick={this.submitTypo} bsStyle="primary">{i18n.saveChanges}</Button> <Button onClick={this.submitTypo} bsStyle="primary">{i18n.saveChanges}</Button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment