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
Show 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'
export
const
i18n
=
new
LocalizedStrings
({
ru
:
{
modalTitle
:
"Система исправления опечаток Etersoft"
,
modalInfo
:
"Пожалуйста, введите исправленный вариант и комментарий (необязательно) "
+
"для отправки отчёта об опечатке на сервер"
,
modalCorrectLabel
:
"Исправленный вариант"
,
modalInfo
:
"Отредактируйте Ваш вариант текста"
,
modalCorrectLabel
:
"Ваш вариант"
,
modalCorrectHelp
:
"Модераторы проверят исправления и внесут поправки в текст"
,
modalTypoLabel
:
"
Текст с ошибкой
"
,
modalTypoLabel
:
"
Выделенный текст
"
,
modalCommentPlaceholder
:
`Например, "опечатка"`
,
modalCommentLabel
:
"Пояснения к исправлению"
,
errorSelectionLength
:
"
Опечатка должна быть длиной от {0} до {1} символов"
,
modalCommentLabel
:
"Пояснения к исправлению
(необязательно)
"
,
errorSelectionLength
:
"
Длина выделенного текста должна быть от {0} до {1} символов"
,
errorCorrectLength
:
"Исправление должно быть длиной от {0} до {1} символов"
,
errorDoesNotDistinct
:
"Исправленный вариант идентичен исходному"
,
errorTooOften
:
"Вы отправляете исправления слишком часто"
,
...
...
@@ -19,21 +18,20 @@ export const i18n = new LocalizedStrings({
messageSuccess
:
"Благодарим за отправку опечатки. Мы уже работаем над её исправлением!"
,
errorFormContainsErrors
:
"Форма отправки содержит ошибки!"
,
errorSendFailture
:
"Не удалось отправить исправление. Мы уже работаем над решением проблемы!"
,
typoHighlightingEnable
:
"
Включить подсветку ошибок
"
,
typoHighlightingEnable
:
"
Проверка правописания на странице
"
,
typoHighlightingEnabled
:
"Подсветка опечаток на странице включена"
,
typoHighlightingDisabled
:
"Подсветка опечаток на странице выключена"
,
},
en
:
{
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 "
+
"to send the correction to the server."
,
modalCorrectLabel
:
"Corrected text"
,
modalCorrectHelp
:
"Moderators will check your proposal corretion and fix it!"
,
modalTypoLabel
:
"The typo"
,
modalInfo
:
"Edit your variant of the text"
,
modalCorrectLabel
:
"Your variant"
,
modalCorrectHelp
:
"Moderators will check your proposal correction and fix it!"
,
modalTypoLabel
:
"Selected text"
,
modalCommentPlaceholder
:
`"A typo", for example`
,
modalCommentLabel
:
"Comment
ary
"
,
modalCommentLabel
:
"Comment
(optional)
"
,
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"
,
errorTooOften
:
"You are sending correction requests too often"
,
close
:
"Close"
,
...
...
@@ -41,7 +39,7 @@ export const i18n = new LocalizedStrings({
messageSuccess
:
"Thank you for a typo submitting! We are already working on this report!"
,
errorFormContainsErrors
:
"The form contains errors!"
,
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"
,
typoHighlightingDisabled
:
"Typo highlighting disabled on this page"
,
}
...
...
src/Modal/Modal.css
View file @
0ea5df44
...
...
@@ -19,3 +19,9 @@
.lang-switcher
{
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 {
<
/Modal.Body
>
<
Modal
.
Footer
>
<
Checkbox
onChange
=
{
this
.
onContentEditableCheckboxChanged
}
checked
=
{
this
.
state
.
contentEditable
}
>
<
Checkbox
className
=
"typo-highlighting-checkbox"
onChange
=
{
this
.
onContentEditableCheckboxChanged
}
checked
=
{
this
.
state
.
contentEditable
}
>
{
i18n
.
typoHighlightingEnable
}
<
/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
.
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