Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n #620

Draft
wants to merge 607 commits into
base: master
Choose a base branch
from
Draft

i18n #620

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
607 commits
Select commit Hold shift + click to select a range
4325d1d
Merged 'master' into 'en'.
github-actions[bot] Oct 14, 2021
66c0d0e
Merged 'master' into 'en'.
github-actions[bot] Oct 14, 2021
f1ca6dd
Merge branch 'master' into en
aeifn Oct 14, 2021
78efe87
Merge branch 'master' into en
aeifn Oct 14, 2021
a71f8f1
Merged 'master' into 'en'.
github-actions[bot] Oct 14, 2021
67da36b
Merged 'master' into 'en'.
github-actions[bot] Oct 14, 2021
9bfcb13
Merged 'master' into 'en'.
github-actions[bot] Oct 17, 2021
fb31817
Merged 'master' into 'en'.
github-actions[bot] Oct 18, 2021
eafd556
Merged 'master' into 'en'.
github-actions[bot] Oct 18, 2021
586c04b
Merged 'master' into 'en'.
github-actions[bot] Oct 18, 2021
f1327c7
Merged 'master' into 'en'.
github-actions[bot] Nov 6, 2021
1a90f03
Merge branch 'master' into en
aeifn Nov 9, 2021
3af5682
Merge branch 'master' into en
kabalin Nov 11, 2021
e60383b
Merge master into en
github-actions[bot] Nov 11, 2021
81c40ca
Merge master into en
github-actions[bot] Nov 12, 2021
2d52376
Merge master into en
github-actions[bot] Nov 12, 2021
84370dd
Merge master into en
github-actions[bot] Nov 12, 2021
0ea015a
Merge master into en
github-actions[bot] Nov 12, 2021
45b389e
Merge master into en
github-actions[bot] Nov 12, 2021
11e7f1c
Merge master into en
github-actions[bot] Nov 12, 2021
091c7b7
Merge master into en
github-actions[bot] Nov 17, 2021
461c227
Merge master into en
github-actions[bot] Nov 17, 2021
707ae8d
Merge master into en
github-actions[bot] Nov 17, 2021
64b23a2
Merge master into en
github-actions[bot] Nov 17, 2021
2f5d190
Merge master into en
github-actions[bot] Nov 18, 2021
77ff1f6
Merge master into en
github-actions[bot] Nov 18, 2021
64c128a
Merge master into en
github-actions[bot] Nov 19, 2021
7fcf32e
Merge master into en
github-actions[bot] Nov 25, 2021
52c0403
Merge master into en
github-actions[bot] Nov 25, 2021
b7728f6
Merge master into en
github-actions[bot] Dec 4, 2021
78cb366
Merge master into en
github-actions[bot] Dec 5, 2021
0a272c2
Merge master into en
github-actions[bot] Dec 5, 2021
4193b5e
Merge master into en
github-actions[bot] Dec 7, 2021
9f6a7ee
Merge branch 'master' into en
kabalin Dec 10, 2021
edb615c
Merge master into en
github-actions[bot] Dec 13, 2021
f8b53ea
Merge master into en
github-actions[bot] Dec 17, 2021
97cdc3d
Merge master into en
github-actions[bot] Dec 17, 2021
49ba4f2
Merge master into en
github-actions[bot] Dec 24, 2021
ce38f1e
Merge master into en
github-actions[bot] Dec 24, 2021
b320b99
Merge master into en
github-actions[bot] Dec 27, 2021
4604713
Merge master into en
github-actions[bot] Jan 5, 2022
80858bf
Merge master into en
github-actions[bot] Jan 21, 2022
1a40c9b
Merge master into en
github-actions[bot] Jan 21, 2022
d6dab65
Merge master into en
github-actions[bot] Jan 24, 2022
ffacb14
Merge master into en
github-actions[bot] Jan 24, 2022
f6f47e5
Include OSM attribution in About page.
kabalin Feb 2, 2022
239cfe8
Merge master into en
github-actions[bot] Feb 2, 2022
e7306d9
Merge pull request #452 from kabalin/about-odbl-en
kabalin Feb 2, 2022
6dfb3ed
Merge branch 'master' into en
aeifn Feb 6, 2022
6b9c1d6
Merge master into en
github-actions[bot] Feb 6, 2022
caacd29
Merge master into en
github-actions[bot] Feb 6, 2022
79c36a7
Merge master into en
github-actions[bot] Feb 8, 2022
7e2753a
Merge master into en
github-actions[bot] Feb 11, 2022
1c62bda
Merge master into en
github-actions[bot] Feb 11, 2022
cbda085
Merge master into en
github-actions[bot] Feb 15, 2022
99539b2
Merge master into en
github-actions[bot] Feb 17, 2022
ce4d051
Merge remote-tracking branch 'origin/master' into en
kabalin Feb 28, 2022
2ad75ac
Merge master into en
github-actions[bot] Mar 10, 2022
747f74f
Merge master into en
github-actions[bot] Mar 10, 2022
6e799ff
Merge master into en
github-actions[bot] Mar 18, 2022
120afb6
Merge master into en
github-actions[bot] Apr 4, 2022
e1fe93e
Merge master into en
github-actions[bot] Apr 19, 2022
7b1b70c
Merge master into en
github-actions[bot] Apr 19, 2022
b8fe842
Merge master into en
github-actions[bot] Jun 11, 2022
81adc83
Merge master into en
github-actions[bot] Jun 12, 2022
80bc4d2
Merge master into en
github-actions[bot] Jun 12, 2022
c395372
Merge master into en
github-actions[bot] Jun 18, 2022
9729742
Merge remote-tracking branch 'origin/master' into en
kabalin Jun 26, 2022
43f195b
Address CI issues following manual merge.
kabalin Jun 26, 2022
a99757c
Merge remote-tracking branch 'origin/master' into suspend-emails-en
kabalin Jul 3, 2022
552c493
Merge master into en
github-actions[bot] Jul 4, 2022
4aa0b5a
Merge remote-tracking branch 'origin/master' into en
kabalin Aug 9, 2022
4ef4c87
Fix merge conflict artefact.
kabalin Aug 9, 2022
e68735f
Merge master into en
github-actions[bot] Aug 9, 2022
6b6477e
Merge master into en
github-actions[bot] Aug 10, 2022
0eb7f3f
Merge master into en
github-actions[bot] Aug 25, 2022
2696bf9
Merge master into en
github-actions[bot] Aug 31, 2022
86ab2e5
Merge master into en
github-actions[bot] Sep 2, 2022
080b900
Merge master into en
github-actions[bot] Sep 2, 2022
978bbe7
Merge master into en
github-actions[bot] Sep 2, 2022
725b235
Merge master into en
github-actions[bot] Sep 9, 2022
815dff7
Remove rules module, refer to rules page in docs.
kabalin Sep 29, 2022
c3838dc
Merge pull request #500 from kabalin/docusaurus-en
kabalin Sep 30, 2022
19fc8bf
Merge remote-tracking branch 'origin/master' into en
kabalin Sep 30, 2022
f2fda17
Merge master into en
github-actions[bot] Oct 6, 2022
985ba37
Merge remote-tracking branch 'origin/master' into en
kabalin Oct 13, 2022
a4a247d
Add eslint changes from master and apply autofix.
kabalin Oct 14, 2022
0183198
Merge remote-tracking branch 'origin/master' into en
kabalin Oct 19, 2022
fe80465
Merge remote-tracking branch 'origin/master' into en
kabalin Oct 20, 2022
70e066d
Merge master into en
github-actions[bot] Oct 26, 2022
422c9f8
Merge master into en
github-actions[bot] Nov 10, 2022
c52ff99
Merge master into en
github-actions[bot] Nov 10, 2022
c33add5
Merge remote-tracking branch 'origin/master' into en
kabalin Nov 16, 2022
74c78bb
Merge master into en
github-actions[bot] Nov 22, 2022
057568a
Merge master into en
github-actions[bot] Dec 2, 2022
a207a3f
Merge master into en
github-actions[bot] Dec 2, 2022
9a80fda
Merge master into en
github-actions[bot] Dec 3, 2022
af80f36
Merge remote-tracking branch 'origin/master' into en
kabalin Dec 5, 2022
862b2b6
Merge master into en
github-actions[bot] Dec 6, 2022
02c0b0f
Merge master into en
github-actions[bot] Dec 6, 2022
d6f4e83
Merge master into en
github-actions[bot] Dec 8, 2022
c1ab780
Merge master into en
github-actions[bot] Dec 21, 2022
fde4a40
Merge master into en
github-actions[bot] Dec 22, 2022
c57e9fa
Merge master into en
github-actions[bot] Dec 22, 2022
a24f4c2
Merge master into en
github-actions[bot] Dec 22, 2022
e051ee0
Merge master into en
github-actions[bot] Dec 22, 2022
fc25318
Merge master into en
github-actions[bot] Dec 25, 2022
3ccf2d0
Merge master into en
github-actions[bot] Dec 25, 2022
dc5da23
Merge remote-tracking branch 'origin/master' into en
kabalin Dec 26, 2022
90c0430
Merge remote-tracking branch 'origin/master' into en
kabalin Dec 30, 2022
4901687
en: Fix plural form for user stats text.
kabalin Jan 4, 2023
731a7bd
Merge pull request #547 from kabalin/fix-plural-stats
kabalin Jan 4, 2023
fc637ed
Merge master into en
github-actions[bot] Jan 7, 2023
37b76e8
Merge master into en
github-actions[bot] Jan 8, 2023
5e17a04
Merge remote-tracking branch 'origin/master' into en
kabalin Jan 10, 2023
a651757
Merge remote-tracking branch 'origin/master' into en
kabalin Jan 17, 2023
d9676d3
Merge remote-tracking branch 'origin/master' into en
kabalin Jan 22, 2023
80fef69
Merge master into en
github-actions[bot] Jan 31, 2023
3fd6edb
Merge master into en
github-actions[bot] Jan 31, 2023
34f42c3
Merge master into en
github-actions[bot] Feb 1, 2023
17294c1
Merge master into en
github-actions[bot] Feb 4, 2023
9a97435
Merge remote-tracking branch 'origin/master' into en
kabalin Feb 6, 2023
01a4e18
Merge remote-tracking branch 'origin/master' into en
kabalin Feb 6, 2023
a56042c
Merge master into en
github-actions[bot] Feb 6, 2023
4cbf07e
Merge master into en
github-actions[bot] Feb 9, 2023
ee42069
Translate text block shown when photo coordiantes are not set.
kabalin Feb 9, 2023
1623322
Merge master into en
github-actions[bot] Feb 9, 2023
3d195e1
Merge master into en
github-actions[bot] Feb 11, 2023
3c42a2a
Merge master into en
github-actions[bot] Feb 12, 2023
f041592
Merge master into en
github-actions[bot] Feb 12, 2023
c30375f
Merge master into en
github-actions[bot] Feb 12, 2023
0e9dd66
Merge master into en
github-actions[bot] Feb 15, 2023
5441398
Merge remote-tracking branch 'origin/master' into en
kabalin Feb 19, 2023
8b81ef5
Merge master into en
github-actions[bot] Feb 20, 2023
3d77305
Merge master into en
github-actions[bot] Feb 20, 2023
e9ebd67
Merge master into en
github-actions[bot] Feb 20, 2023
db12fa5
Merge master into en
github-actions[bot] Feb 24, 2023
108d61f
Merge remote-tracking branch 'origin/master' into en
kabalin Feb 25, 2023
4e6f199
Merge master into en
github-actions[bot] Feb 27, 2023
5487ea5
Translate geolocation button tooltips.
kabalin Feb 27, 2023
25a2455
Merge master into en
github-actions[bot] Mar 12, 2023
68a5153
Merge remote-tracking branch 'origin/master' into en
kabalin Mar 26, 2023
2364fec
Merge master into en
github-actions[bot] Apr 2, 2023
20d8b1c
Merge master into en
github-actions[bot] Apr 2, 2023
f075d33
Merge master into en
github-actions[bot] Apr 24, 2023
326f9af
Merge master into en
github-actions[bot] Apr 27, 2023
ab664d0
Merge master into en
github-actions[bot] Apr 27, 2023
e3edfb4
Merge master into en
github-actions[bot] May 5, 2023
51af002
Merge master into en
github-actions[bot] May 24, 2023
d8fd6c5
Merge master into en
github-actions[bot] Jun 13, 2023
4b0529a
Merge remote-tracking branch 'origin/master' into en
kabalin Jun 15, 2023
16feb96
Merge master into en
github-actions[bot] Jun 16, 2023
65ed44f
Merge master into en
github-actions[bot] Jun 19, 2023
0aee213
Merge remote-tracking branch 'origin/master' into en
kabalin Jun 19, 2023
247f9ca
Merge master into en
github-actions[bot] Jul 7, 2023
7eef144
Merge master into en
github-actions[bot] Jul 9, 2023
239d19b
Merge master into en
github-actions[bot] Jul 9, 2023
a308b66
Merge master into en
github-actions[bot] Jul 9, 2023
4a117aa
Merge master into en
github-actions[bot] Jul 9, 2023
b7a4fae
Merge master into en
github-actions[bot] Jul 11, 2023
a7679fe
Merge master into en
github-actions[bot] Jul 18, 2023
8106f43
Merge master into en
github-actions[bot] Jul 28, 2023
78fe683
Merge master into en
github-actions[bot] Jul 28, 2023
eb7babb
Merge master into en
github-actions[bot] Aug 1, 2023
1052da3
Merge remote-tracking branch 'origin/master' into en
kabalin Aug 1, 2023
b09544a
Merge remote-tracking branch 'origin/master' into en
kabalin Aug 1, 2023
9bce37e
Merge master into en
github-actions[bot] Aug 1, 2023
1b6107d
Merge remote-tracking branch 'origin/master' into en
kabalin Aug 2, 2023
538b16d
Merge master into en
github-actions[bot] Aug 2, 2023
8d4ad8b
Merge master into en
github-actions[bot] Aug 2, 2023
b63f33c
Merge branch 'master' into en
aeifn Aug 26, 2023
12a3720
Merge master into en
github-actions[bot] Aug 26, 2023
04bffd6
Merge master into en
github-actions[bot] Aug 26, 2023
80316db
Merge master into en
github-actions[bot] Aug 30, 2023
0ee1cd1
Merge remote-tracking branch 'origin/master' into en
kabalin Aug 31, 2023
1c84c16
Merge master into en
github-actions[bot] Aug 31, 2023
da6242b
Merge master into en
github-actions[bot] Sep 2, 2023
a5db72b
Merge master into en
github-actions[bot] Sep 2, 2023
1115e0f
Merge master into en
github-actions[bot] Sep 6, 2023
2b23971
Merge master into en
github-actions[bot] Sep 6, 2023
dd62ac2
Add Makefile
aeifn Sep 6, 2023
1d6f1d8
Fix Makefile
aeifn Sep 6, 2023
773f53b
Merge master into en
github-actions[bot] Sep 6, 2023
add08e6
Merge master into en
github-actions[bot] Sep 8, 2023
f457a2f
Merge master into en
github-actions[bot] Sep 8, 2023
664eba0
Merge remote-tracking branch 'origin/master' into en
kabalin Sep 9, 2023
b9e9209
Merge master into en
github-actions[bot] Sep 10, 2023
393a8cf
Merge remote-tracking branch 'origin/master' into en
kabalin Oct 5, 2023
8346185
Merge master into en
github-actions[bot] Oct 9, 2023
1b1d5cf
Merge master into en
github-actions[bot] Oct 15, 2023
6ff92b8
Merge master into en
github-actions[bot] Oct 19, 2023
c91ae27
Merge master into en
github-actions[bot] Nov 2, 2023
a35b959
Merge master into en
github-actions[bot] Nov 4, 2023
efc96e3
Merge master into en
github-actions[bot] Nov 4, 2023
c97e345
Merge master into en
github-actions[bot] Nov 11, 2023
fa1a310
Merge master into en
github-actions[bot] Nov 15, 2023
c1fc474
Merge master into en
github-actions[bot] Nov 15, 2023
3b02604
Merge master into en
github-actions[bot] Nov 15, 2023
2b0342a
Change image name
aeifn Nov 15, 2023
923a1e0
Merge master into en
github-actions[bot] Nov 24, 2023
36083bf
Merge master into en
github-actions[bot] Nov 26, 2023
ee78bac
Translate strings following changes.
kabalin Nov 26, 2023
4bc6ec6
Merge master into en
github-actions[bot] Nov 27, 2023
85ca98b
Merge remote-tracking branch 'origin/master' into en
kabalin Nov 28, 2023
60cf3f8
Merge remote-tracking branch 'origin/master' into en
kabalin Nov 28, 2023
800d9cd
Merge master into en
github-actions[bot] Nov 28, 2023
b0f4cbf
Merge remote-tracking branch 'origin/master' into en
kabalin Dec 1, 2023
e97e7fd
Merge remote-tracking branch 'origin/master' into en
kabalin Dec 1, 2023
e25aedb
Merge master into en
github-actions[bot] Dec 1, 2023
9819942
Merge master into en
github-actions[bot] Dec 1, 2023
1eb13d8
Merge master into en
github-actions[bot] Dec 1, 2023
1870c66
Merge master into en
github-actions[bot] Dec 4, 2023
fe209a9
Merge master into en
github-actions[bot] Dec 5, 2023
c5751a7
Disable build on schedule
aeifn Dec 8, 2023
ab4f87f
Merge master into en
github-actions[bot] Dec 8, 2023
d7df486
Merge master into en
github-actions[bot] Dec 9, 2023
9466d76
Merge master into en
github-actions[bot] Dec 9, 2023
63a9648
Merge master into en
github-actions[bot] Dec 26, 2023
02ac482
Merge master into en
github-actions[bot] Dec 27, 2023
0760656
Merge master into en
github-actions[bot] Dec 27, 2023
7d8aa34
Merge master into en
github-actions[bot] Dec 27, 2023
e745f98
Merge master into en
github-actions[bot] Dec 28, 2023
3c12a5d
Merge branch 'master' into en
aeifn Dec 28, 2023
7a79117
Merge master into en
github-actions[bot] Dec 28, 2023
f2faf09
Do not actuallu run sentry for en branch
aeifn Dec 28, 2023
18f4ecd
Revert "Do not actuallu run sentry for en branch"
aeifn Dec 28, 2023
7c35cbc
2.0.41-en
aeifn Dec 28, 2023
cf770ef
Merge branch 'master' into en
aeifn Dec 28, 2023
971eb48
Removed broken nodejs badge
aeifn Dec 28, 2023
b8d0319
Merge master into en
github-actions[bot] Dec 28, 2023
5801264
Merge master into en
github-actions[bot] Dec 29, 2023
a98eb5d
Merge remote-tracking branch 'origin/master' into en
kabalin Jan 8, 2024
e65036c
Merge branch 'master' into en
aeifn Jan 8, 2024
253a39b
Merge branch 'master' into en
aeifn Jan 8, 2024
47ce2c4
Merge remote-tracking branch 'origin/master' into en
kabalin Jan 8, 2024
b270314
Update version job
aeifn Jan 8, 2024
c711cc6
Merge master into en
github-actions[bot] Jan 24, 2024
154da2b
Merge master into en
github-actions[bot] Feb 3, 2024
e09c2cd
Merge remote-tracking branch 'origin/master' into en
kabalin Mar 9, 2024
2607e90
Merge master into en
github-actions[bot] Mar 28, 2024
99f3ba2
Merge master into en
github-actions[bot] Apr 20, 2024
01d7203
Transalte comments feed panel visibility control tooltips.
kabalin Apr 20, 2024
d7363c2
Merge branch 'master' into en
aeifn May 14, 2024
6382fcb
Merge master into en
github-actions[bot] May 14, 2024
a86ebb5
Merge master into en
github-actions[bot] Jul 6, 2024
d52c3f2
Merge master into en
github-actions[bot] Jul 6, 2024
8e32bb4
Merge master into en
github-actions[bot] Jul 6, 2024
6e07aaa
Merge master into en
github-actions[bot] Jul 21, 2024
cb19de5
Merge master into en
github-actions[bot] Jul 26, 2024
42bac71
Merge master into en
github-actions[bot] Jul 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- name: version
run: |
npm version --no-git-tag-version $(node -p "require('./package.json').version")-${GITHUB_SHA::8}
npm version --no-git-tag-version $(node -p "require('./package.json').version")-en-${GITHUB_SHA::8}

- name: Install dependencies
run: npm ci
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
id: docker_meta_backend
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/pastvu/backend/ru
images: ${{ env.REGISTRY }}/pastvu/backend/en

- name: Build and push backend
id: docker_build_backend
Expand All @@ -75,7 +75,7 @@ jobs:
id: docker_meta_frontend
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/pastvu/frontend/ru
images: ${{ env.REGISTRY }}/pastvu/frontend/en

- name: Build and push frontend
id: docker_build_frontend
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
VERSION := $(shell node -p "require('./package.json').version")
BRANCH := $(shell git branch --show-current)
tag:
git tag v$(VERSION)-$(BRANCH)
107 changes: 54 additions & 53 deletions app/errors/intl.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,61 +4,62 @@
*/

export default {
DENY: 'У вас нет прав на это действие',
DENY: 'You do not have permission for this action',

BAD_PARAMS: 'Неверные параметры запроса',
BAD_PARAMS: 'Invalid request parameters',
BAD_BROWSER: 'Bad browser, we do not support it',

SESSION_CAN_REGET_REGISTERED_ONLY: 'Ошибка выборки пользователей',
SESSION_CAN_REGET_REGISTERED_ONLY: 'Error while selecting users',
SESSION_EXPIRED_ARCHIVE_NO_RESULT: 'Archive sessions error',
SESSION_NO_HEADERS: 'Bad request - no header or user agent',
SESSION_NOT_FOUND: 'Сессия не найдена',
SESSION_NOT_FOUND: 'Session was not found',

TIMEOUT: 'Превышено время ожидания',
UNHANDLED_ERROR: 'На сервере возникла ошибка',
COUNTER_ERROR: 'На сервере возникла ошибка',
TIMEOUT: 'Waiting time was exceeded',
UNHANDLED_ERROR: 'Error occurred on server',
COUNTER_ERROR: 'Error occurred on server',

NOTICE: 'Уведомление',
NOTICE: 'Notice',

NOT_FOUND: 'Ресурс не найден',
NOT_FOUND_USER: 'Пользователь не найден',
NO_SUCH_METHOD: 'Запрашиваемый метод не сушествует',
NO_SUCH_RESOURCE: 'Ресурс не найден',
NO_SUCH_PHOTO: 'Запрашиваемой фотографии не существует или она не доступна',
NO_SUCH_USER: 'Запрашиваемый пользователь не существует',
NO_SUCH_REGION: 'Такого региона не существует',
NO_SUCH_REGIONS: 'Таких регионов не существует',
NO_SUCH_NEWS: 'Такой новости не существует',
NOT_FOUND: 'Resource was not found',
NOT_FOUND_USER: 'User was not found',
NO_SUCH_METHOD: 'Requested method does not exist',
NO_SUCH_RESOURCE: 'Resource was not found',
NO_SUCH_PHOTO: 'Requested photo does not exist or it is not available to you',
NO_SUCH_USER: 'Requested user does not exist',
NO_SUCH_REGION: 'Requested region does not exist',
NO_SUCH_REGIONS: 'Requested regions don\'t exist',
NO_SUCH_NEWS: 'Requested news does not exist',

INPUT: 'Ошибка ввода',
INPUT_FIELD_REQUIRED: 'Обязтельное поле ввода',
INPUT_LOGIN_REQUIRED: 'Заполните имя пользователя',
INPUT_LOGIN_CONSTRAINT: 'Имя пользователя должно содержать от 3 до 15 латинских символов, начинаться с буквы и заканчиваться на букву или цифру.' +
'В состав слова могут входить цифры, точка, подчеркивание и тире',
INPUT_PASS_REQUIRED: 'Введите пароль',
INPUT_EMAIL_REQUIRED: 'Введите адрес email',
INPUT: 'Input error',
INPUT_FIELD_REQUIRED: 'Required input field',
INPUT_LOGIN_REQUIRED: 'Fill in the username',
INPUT_LOGIN_CONSTRAINT: 'Username should be between 3 and 15 characters long, it should start with a letter and end with a letter or digit. ' +
'Username may contain digits, dot, underline and hyphen characters.',
INPUT_PASS_REQUIRED: 'Enter password',
INPUT_EMAIL_REQUIRED: 'Enter email',

AUTHENTICATION: 'Ошибка аутентификации',
AUTHENTICATION_REGISTRATION: 'Ошибка аутентификации',
AUTHENTICATION_PASSCHANGE: 'Ошибка смены пароля',
AUTHENTICATION_DOESNT_MATCH: 'Неправильная пара логин-пароль',
AUTHENTICATION_MAX_ATTEMPTS: 'Ваш аккаунт временно заблокирован из-за превышения количества попыток ввода неверных данных',
AUTHENTICATION_NOT_ALLOWED: 'Указанному пользователю не разрешено заходить на сайт',
AUTHENTICATION_PASS_WRONG: 'Пароль не верен',
AUTHENTICATION_CURRPASS_WRONG: 'Текущий пароль не верен',
AUTHENTICATION_PASSWORDS_DONT_MATCH: 'Пароли не совпадают',
AUTHENTICATION_USER_EXISTS: 'Пользователь с таким именем уже зарегистрирован',
AUTHENTICATION_USER_DOESNT_EXISTS: 'Пользователя с таким логином или e-mail не существует',
AUTHENTICATION_EMAIL_EXISTS: 'Пользователь с таким email уже зарегистрирован',
AUTHENTICATION_KEY_DOESNT_EXISTS: 'Переданного вами ключа не существует',
AUTHENTICATION: 'Authentication error',
AUTHENTICATION_REGISTRATION: 'Authentication error',
AUTHENTICATION_PASSCHANGE: 'Password change error',
AUTHENTICATION_DOESNT_MATCH: 'Wrong login or password',
AUTHENTICATION_MAX_ATTEMPTS: 'Your account has been suspended due to exceeding the number of failed attempts',
AUTHENTICATION_NOT_ALLOWED: 'Specified user is not allowed to login',
AUTHENTICATION_PASS_WRONG: 'Wrong password',
AUTHENTICATION_CURRPASS_WRONG: 'Wrong current password',
AUTHENTICATION_PASSWORDS_DONT_MATCH: 'Passwords do not match',
AUTHENTICATION_USER_EXISTS: 'This user name is already registered',
AUTHENTICATION_USER_DOESNT_EXISTS: 'User with such password or e-mail does not exist',
AUTHENTICATION_EMAIL_EXISTS: 'User with this email is already registered',
AUTHENTICATION_KEY_DOESNT_EXISTS: 'The key you passed does not exist',

PHOTO_CHANGED: 'С момента обновления вами страницы, информация на ней была кем-то изменена',
PHOTO_NEED_REASON: 'Необходимо указать причину операции',
PHOTO_NEED_COORD: 'Фотография должна иметь координату или быть привязана к региону вручную',
PHOTO_NEED_TITLE: 'Необходимо заполнить название фотографии',
PHOTO_ANOTHER_STATUS: 'Фотография уже в другом статусе, обновите страницу',
PHOTO_YEARS_CONSTRAINT: 'Опубликованные фотографии должны иметь предполагаемую датировку в интервале 1826—2000гг.',
PAINTING_YEARS_CONSTRAINT: 'Опубликованные изображения должны иметь предполагаемую датировку в интервале 100 BC — 1980г.',
PHOTO_CONVERT_PROCEEDING: 'Вы уже отправили запрос и он еще выполняется. Попробуйте позже',
PHOTO_CHANGED: 'From the moment you had got the page, the information on it has been altered by someone',
PHOTO_NEED_REASON: 'You must specify the reason for the operation',
PHOTO_NEED_COORD: 'The photo must have coordinates or be tied to the region manually',
PHOTO_NEED_TITLE: 'You must fill in the name of the photo',
PHOTO_ANOTHER_STATUS: 'Photo is already in other status, refresh the page',
PHOTO_YEARS_CONSTRAINT: 'Published photos must be in the range of 1826-2000',
PAINTING_YEARS_CONSTRAINT: 'Published painting must be in the range of 100 BC — 1980 AD',
PHOTO_CONVERT_PROCEEDING: 'You have already sent a request and it is still running. try later',

REGION_PARENT_THE_SAME: 'Вы пытаетесь указать родителем его самого',
REGION_PARENT_DOESNT_EXISTS: 'Указанного родительского региона не существует',
Expand All @@ -73,9 +74,9 @@ export default {
REGION_SAVED_BUT_REFILL_CACHE: 'Сохранено, но возникла ошибка во время пересчета кэша регионов. Рекоммендуется перезагрузка сервера',
REGION_SELECT_LIMIT: 'Вы можете выбрать до 10 регионов',

COMMENT_NO_OBJECT: 'Комментируемого объекта не существует, или он находится в недоступном вам режиме',
COMMENT_NOT_ALLOWED: 'Операции с комментариями на этой странице запрещены',
COMMENT_DOESNT_EXISTS: 'Комментария не существует',
COMMENT_NO_OBJECT: 'Commented object does not exist or moderators changed it status, which is not available to you',
COMMENT_NOT_ALLOWED: 'Operations with the comments on this page are forbidden',
COMMENT_DOESNT_EXISTS: 'Comment does not exist',
COMMENT_WRONG_PARENT: 'Что-то не так с родительским комментарием. Возможно он был удален. Пожалуйста, обновите страницу',
COMMENT_TOO_LONG: 'Комментарий длиннее допустимого значения (12000)',
COMMENT_UNKNOWN_USER: 'Неизвестный пользователь в комментариях',
Expand All @@ -84,12 +85,12 @@ export default {
ADMIN_SUPER_CANT_BE_ASSIGNED: 'Суперадминистратор не может быть назначен через интерфейс управления пользователями',
ADMIN_ONLY_SUPER_CAN_ASSIGN: 'Только суперадминистратор может назначать администраторов',

CONVERT_PHOTOS_ALL: 'Ошибка отправки на конвертацию',
CONVERT_PHOTOS_ALL: 'Error sending for conversion',
CONVERT_PROMISE_GENERATOR: 'Ошибка выполнения операции в конвейере конвертации',

SETTING_DOESNT_EXISTS: 'Такой настройки не существует',
SETTING_DOESNT_EXISTS: 'Such setting does not exist',

MAIL_SEND: 'Ошибка отправки письма',
MAIL_WRONG: 'Неверный формат email, проверьте еще раз',
MAIL_IN_USE: 'Этот email уже используется другим пользователем',
MAIL_SEND: 'Error sending mail',
MAIL_WRONG: 'Wrong email, check it one more time',
MAIL_IN_USE: 'This email is already in use by another user',
};
3 changes: 2 additions & 1 deletion config/default.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ const ms = require('ms');
module.exports = {
env: 'development', // Enviroment: development, test, production
locales: ['en', 'ru'], // List of supported locales. First one is the default locale, if user transferred nothing
lang: 'ru', // Language: ru, en
lang: 'en', // Language: ru, en

admin: {
email: '',
},
Expand Down
26 changes: 13 additions & 13 deletions controllers/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,18 +165,18 @@ async function register({ login, email, pass, pass2 }) {
sender: 'noreply',
receiver: { alias: login, email },
bcc: config.admin.email,
subject: 'Подтверждение регистрации',
subject: 'Registration Confirmation',
head: true,
body: regTpl({
email,
login,
config,
confirmKey,
username: login,
greeting: 'Спасибо за регистрацию на проекте PastVu!',
linkvalid: `${human2d} (до ${moment.utc().add(ms2d).format('LLL')})`,
greeting: 'Thank you for the registering on PastVu!',
linkvalid: `${human2d} (till ${moment.utc().add(ms2d).format('LLL')})`,
}),
text: `Перейдите по следующей ссылке: ${config.client.origin}/confirm/${confirmKey}`,
text: `Click the following link: ${config.client.origin}/confirm/${confirmKey}`,
});
} catch (err) {
await User.deleteOne({ login }).exec();
Expand All @@ -186,8 +186,8 @@ async function register({ login, email, pass, pass2 }) {
}

return {
message: 'Учетная запись создана успешно. Для завершения регистрации следуйте инструкциям, ' +
'отправленным на указанный вами e-mail',
message: 'Account has been successfully created. To confirm registration, ' +
'follow the instructions sent to Your e-mail',
};
}

Expand Down Expand Up @@ -221,19 +221,19 @@ async function recall({ login }) {
sendMail({
sender: 'noreply',
receiver: { alias: user.login, email: user.email },
subject: 'Запрос на восстановление пароля',
subject: 'Password recovery request',
head: true,
body: recallTpl({
config,
confirmKey,
username: user.disp,
linkvalid: `${human2d} (до ${moment.utc().add(ms2d).format('LLL')})`,
linkvalid: `${human2d} (till ${moment.utc().add(ms2d).format('LLL')})`,
}),
text: `Перейдите по следующей ссылке: ${config.client.origin}/confirm/${confirmKey}`,
text: `Click the following link: ${config.client.origin}/confirm/${confirmKey}`,
});

return {
message: 'Запрос успешно отправлен. Для продолжения процедуры следуйте инструкциям, высланным на Ваш e-mail',
message: 'The data has been successfully sent. To restore the password, follow the instructions sent to Your e-mail',
};
}

Expand Down Expand Up @@ -274,7 +274,7 @@ async function passChangeRecall({ key, pass, pass2 }) {

await Promise.all([user.save(), confirm.deleteOne()]);

return { message: 'Новый пароль сохранен успешно' };
return { message: 'New password has been saved successfully' };
}

// Password changing in user's settings page with entering current password
Expand Down Expand Up @@ -302,7 +302,7 @@ async function passChange({ login, pass, passNew, passNew2 }) {
iAm.user.pass = passNew;
await iAm.user.save();

return { message: 'Новый пароль установлен успешно' };
return { message: 'Password has been changed successfully' };
}

// Check confirm key
Expand All @@ -325,7 +325,7 @@ async function checkConfirm({ key }) {
await Promise.all([user.save(), confirm.deleteOne()]);

return {
message: 'Спасибо, регистрация подтверждена! Теперь вы можете войти в систему, используя ваш логин и пароль',
message: 'Thank you! Your registration is confirmed. Now you can log in using your username and password',
type: 'noty',
};
}
Expand Down
2 changes: 1 addition & 1 deletion controllers/mail.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function send(options) {
'X-Laziness-level': 1000,
},
html: options.body,
text: options.text || 'Зайдите, чтобы посмотреть',
text: options.text || 'Visit to see',
};

if (Array.isArray(options.attachments) && options.attachments.length) {
Expand Down
6 changes: 3 additions & 3 deletions controllers/photo.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,9 @@ async function give(params) {
}
}

const regionFields = photo.geo ? ['cid', 'title_local'] :
const regionFields = photo.geo ? ['cid', 'title_en'] :
// If photo has no coordinates, additionally take home position of regions
{ _id: 0, cid: 1, title_local: 1, center: 1, bbox: 1, bboxhome: 1 };
{ _id: 0, cid: 1, title_en: 1, center: 1, bbox: 1, bboxhome: 1 };

const regions = await this.call('region.getObjRegionList', { obj: photo, fields: regionFields, fromDb: !photo.geo });

Expand Down Expand Up @@ -3299,7 +3299,7 @@ async function giveObjHist({ cid, fetchId, showDiff }) {

// If regions exists, get theirs objects
if (Object.keys(regions).length) {
result.regions = regionController.fillRegionsHash(regions, ['cid', 'title_local']);
result.regions = regionController.fillRegionsHash(regions, ['cid', 'title_en']);
}

// If reasons exists, get theirs headers
Expand Down
4 changes: 2 additions & 2 deletions controllers/region.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ export const genObjsShortRegionsArr = function (objs, showlvls = ['r0', 'r1'], d
}

if (Object.keys(shortRegionsHash).length) {
fillRegionsHash(shortRegionsHash, ['cid', 'title_local']);
fillRegionsHash(shortRegionsHash, ['cid', 'title_en']);
} else {
shortRegionsHash = undefined;
}
Expand Down Expand Up @@ -1390,7 +1390,7 @@ async function give(data) {
children = [];

for (const cid of childrenCids) {
const { cdate, udate, title_local: title, childLen } = regionCacheHash[cid];
const { cdate, udate, title_en: title, childLen } = regionCacheHash[cid];

children.push({ cid, cdate, udate, title, childLen, childrenCount: _.size(regionsChildrenArrHash[cid]) || undefined });
}
Expand Down
5 changes: 3 additions & 2 deletions controllers/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ function meta(req) {
} else if (!_.isEmpty(photo.regions)) {
// If there in no description, create it as regions names
desc = og.desc = twitter.desc = photo.regions.reduceRight(
(result, region, index) => result + region.title_local + (index ? ', ' : ''), ''

(result, region, index) => result + region.title_en + (index ? ', ' : ''), ''
);
} else {
desc = '';
Expand Down Expand Up @@ -307,7 +308,7 @@ export function bindRoutes(app) {
res.statusCode = 200;
res.render('status/badbrowser', {
agent: req.browser && req.browser.agent,
title: 'Вы используете устаревшую версию браузера',
title: 'You are using outdated browser',
});
});

Expand Down
Loading