diff --git a/frontend/src/pages/LeaderBoard.vue b/frontend/src/pages/LeaderBoard.vue index 14cc7fad..e5064388 100644 --- a/frontend/src/pages/LeaderBoard.vue +++ b/frontend/src/pages/LeaderBoard.vue @@ -2,15 +2,15 @@
-

Таблица лидеров

-

Рейтинг участников по набранным очкам

+

{{__('Leader board')}}

+

{{__('Rating of participants by points scored')}}

-

Ваша позиция

+

{{__('Your position')}}

@@ -32,32 +32,32 @@
#{{ currentUserPosition }}
-
место
+
{{__('position')}}
-
- До {{ nextPosition }} места нужно: -
-
- +{{ pointsToNext }} очков - - {{ nextPositionPoints - currentUser.points }} осталось - -
-
-
-
- 🎉 Вы занимаете первое место в своей группе! -
-
+
+ {{ __('To reach :position place:', { position: nextPosition }) }} +
+
+ +{{ pointsToNext }} {{ __('points') }} + + {{ nextPositionPoints - currentUser.points }} {{ __('left') }} + +
+
+
+
+ 🎉 {{ __('You are in first place in your group!') }} +
+
-

Лучший в категории

+

{{ __('The best in the group') }}

@@ -78,7 +78,7 @@
{{ topUserInGroup?.points || 0 }}
-
очков
+
{{ __('points') }}
@@ -116,7 +116,7 @@

{{ getGroupStats(group.role).count }}

-

участников

+

{{ __('members') }}

@@ -129,7 +129,7 @@

- * Бонусные баллы рассчитываются как 1 балл за каждые 100 очков активности (максимум 10) + {{ __('* Bonus points are calculated as 1 point for every 100 activity points (maximum 10)!') }}

@@ -178,7 +178,7 @@
-
Бонус
+
{{ __('Bonus') }}
{{ user.bonus }} @@ -187,7 +187,7 @@
-
Очки
+
{{ __('Points') }}
{{ user.points }}
@@ -201,7 +201,7 @@ class="text-center py-12 text-gray-500" >
🏆
-

Пока нет участников в этой категории

+

{{ __('There are no participants in this category yet.') }}

@@ -218,9 +218,9 @@ const { userResource, allUsers } = store // Группы ролей которые нас интересуют const roleGroups = [ - { role: 'LMS Student', label: 'Студенты' }, - { role: 'Course Creator', label: 'Преподаватели' }, - { role: 'LMS Schoolchild', label: 'Школьники' } + { role: 'LMS Student', label: __('Students') }, + { role: 'Course Creator', label: __('Teachers') }, + { role: 'LMS Schoolchild', label: __('Schoolchildren') } ] // Определяем группу текущего пользователя @@ -245,7 +245,7 @@ const logsResource = createResource({ limit_page_length: 10000 }, auto: false, - onError: (err) => console.error("Ошибка загрузки Energy Point Log:", err) + onError: (err) => console.error("Error loading Energy Point Log:", err) }) const leaderboard = ref([]) diff --git a/frontend/src/pages/Test.vue b/frontend/src/pages/Test.vue index 14cc7fad..6a956efd 100644 --- a/frontend/src/pages/Test.vue +++ b/frontend/src/pages/Test.vue @@ -1,439 +1,7 @@ - - - - diff --git a/lms/locale/ru.po b/lms/locale/ru.po index db45b62d..42c94ad6 100644 --- a/lms/locale/ru.po +++ b/lms/locale/ru.po @@ -7571,3 +7571,67 @@ msgstr "Дополнительно при поступлении в МПГУ" #: frontend/scr/pages/MyPoints.vue:91 msgid "maximum of 10 points" msgstr "максимум 10 баллов" + +#: frontend/scr/pages/LeaderBoard.vue:5 +msgid "Leader board" +msgstr "Таблица лидеров" + +#: frontend/scr/pages/LeaderBoard.vue:6 +msgid "Rating of participants by points scored" +msgstr "Рейтинг участников по набранным баллам" + +#: frontend/scr/pages/LeaderBoard.vue:13 +msgid "Your position" +msgstr "Ваша позиция" + +#: frontend/scr/pages/LeaderBoard.vue:35 +msgid "position" +msgstr "место" + +#: frontend/src/pages/LeaderBoard.vue:42 +msgid "To reach :position place:" +msgstr "До :position места нужно:" + +#: frontend/src/pages/LeaderBoard.vue:45 +msgid "points" +msgstr "баллов" + +#: frontend/src/pages/LeaderBoard.vue:47 +msgid "left" +msgstr "осталось" + +#: frontend/src/pages/LeaderBoard.vue:53 +msgid "You are in first place in your group!" +msgstr "Вы занимаете первое место в своей группе!" + +#: frontend/src/pages/LeaderBoard.vue:60 +msgid "The best in the group" +msgstr "Лучший в группе" + +#: frontend/src/pages/LeaderBoard.vue:119 +msgid "members" +msgstr "участников" + +#: frontend/src/pages/LeaderBoard.vue:132 +msgid "* Bonus points are calculated as 1 point for every 100 activity points (maximum 10)" +msgstr "* Бонусные баллы рассчитываются как 1 балл за каждые 100 очков активности (максимум 10)" + +#: frontend/src/pages/LeaderBoard.vue:181 +msgid "Bonus" +msgstr "Бонус" + +#: frontend/src/pages/LeaderBoard.vue:204 +msgid "There are no participants in this category yet." +msgstr "Пока нет участников в этой категории" + +#: frontend/src/pages/LeaderBoard.vue:13 +msgid "Students" +msgstr "Студенты" + +#: frontend/src/pages/LeaderBoard.vue:13 +msgid "Teachers" +msgstr "Преподаватели" + +#: frontend/src/pages/LeaderBoard.vue:13 +msgid "Schoolchildren" +msgstr "Школьники"