Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
retypos-webclient
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eterfund
retypos-webclient
Commits
0ea5df44
Commit
0ea5df44
authored
Sep 06, 2018
by
Георгий Попов
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rewrite some localization. Move typo highlighting label to the left.
parent
9a199dd8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
17 deletions
+23
-17
Localization.js
src/Localization.js
+13
-15
Modal.css
src/Modal/Modal.css
+7
-0
index.js
src/Modal/index.js
+3
-2
No files found.
src/Localization.js
View file @
0ea5df44
...
@@ -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
:
"Comment
ary
"
,
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
corr
ected text length must be in range ({0}-{1})"
,
errorCorrectLength
:
"The
sel
ected 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"
,
}
}
...
...
src/Modal/Modal.css
View file @
0ea5df44
...
@@ -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
src/Modal/index.js
View file @
0ea5df44
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment