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

404 [en, ru], edit [en, ru], keeping upd, fixes #1842

Merged
merged 8 commits into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions website/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"account_settings": "Account",
"admin_dashboard": "Admin Dashboard",
"back_to_dashboard": "Go back to the dashboard",
"bug_description": "If you were trying to contribute data but ended up here, please file a bug.",
"bug_button": "Report a Bug",
"cancel": "Cancel",
"chat": "Chat",
"confirm": "Confirm",
Expand All @@ -16,6 +18,7 @@
"delete": "Delete",
"discord": "Discord",
"docs": "Docs",
"edit": "Edit",
"faq": "FAQ",
"github": "GitHub",
"leaderboard": "Leaderboard",
Expand All @@ -33,6 +36,7 @@
"report_a_bug": "Report a Bug",
"review": "Review",
"send": "Send",
"sorry_404": "Sorry, the page you are looking for does not exist.",
"sign_in": "Sign In",
"sign_out": "Sign Out",
"skip": "Skip",
Expand Down
13 changes: 10 additions & 3 deletions website/public/locales/ru/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,31 @@
"account_settings": "Аккаунт",
"admin_dashboard": "Панель администратора",
"back_to_dashboard": "Вернуться назад",
"bug_description": "Если вы участвовали в сборе данных, но оказались здесь, пожалуйста, сообщите нам об ошибке.",
"bug_button": "Сообщить об Ошибке",
"cancel": "Отменить",
"chat": "Диалог",
"confirm": "Подтвердить",
"connect": "Присоединиться к нам",
"conversational": "Разговорный ИИ для каждого.",
"copied": "Скопировано",
"create_chat": "Создать новый диалог",
"dark_mode": "Темная тема",
"dashboard_home": "Главная страница",
"dashboard": "Главная",
"dashboard_home": "Главная страница",
"delete": "Удалить",
"discord": "Discord",
"docs": "Документация",
"edit": "Редактировать",
"github": "GitHub",
"faq": "FAQ",
"guidelines": "Руководство",
"leaderboard": "Рейтинг",
"legal": "Правовая информация",
"light_mode": "Светлая тема",
"loading": "Загрузка...",
"messages_dashboard": "Панель просмотра сообщений",
"messages": "Сообщения",
"messages_dashboard": "Панель просмотра сообщений",
"more_information": "Больше...",
"no": "Нет",
"output": "Действие",
Expand All @@ -32,6 +38,7 @@
"review": "Проверить",
"sign_in": "Вход",
"sign_out": "Выйти из аккаунта",
"sorry_404": "Извините, страница, которую вы ищете, не существует.",
"skip": "Пропустить",
"status_dashboard": "Панель состояния системы",
"stats": "Статистика",
Expand All @@ -44,7 +51,7 @@
"title": "Open Assistant",
"trollboard": "Доска позора",
"user_leaderboard": "Таблица лидеров",
"users_dashboard": "Панель управления пользователями",
"users": "Пользователи",
"users_dashboard": "Панель управления пользователями",
"yes": "Да"
}
16 changes: 16 additions & 0 deletions website/public/locales/ru/error.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"default": "Что-то пошло не так!",
"err_1000": "Неверный тип задания",
"err_1001": "Не удалось завершить задание",
"err_1002": "Не удалось распознать задание",
"err_1003": "Неверный тип ответа",
"err_1004": "Запрос на обмен данными не прошёл",
"err_1005": "Не удалось сгенерировать задание",
"err_1006": "Доступных заданий \"{{task_type}}\" сейчас нет.",
"err_1007": "Не удалось запросить наличие заданий",
"err_1008": "Сообщение слишком длинное",
"err_1009": "Вы уже писали сообщение с таким же содержанием",
"err_1010": "Вы отправляете пустой текст",
"err_1011": "Вы не можете ответить дваджы на одно сообщение",
"err_1012": "У вас слишком много ответов, находящихся на рассмотрении. Пожалуйста, повторите попытку через несколько минут."
}
5 changes: 4 additions & 1 deletion website/public/locales/ru/leaderboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"accepted_prompts": "Принятые запросы",
"daily": "За день",
"day": "День",
"good_rankings": "Хорошо оценённые (Good rankings)",
"good_rankings": "Хорошо оценённые",
"label": "Метки",
"labels_full": "Метки (полные)",
"labels_simple": "Метки (простые)",
Expand All @@ -12,6 +12,8 @@
"month": "Месяц",
"monthly": "За месяц",
"next": "Вперед",
"no_email": "(Email отсутствует)",
"no_username": "(Имя пользователя отсутствует)",
"overall": "Всего",
"previous": "Назад",
"prompt": "Запросы",
Expand All @@ -25,6 +27,7 @@
"top_5_contributors_today": "Топ 5 Пользователей за Сегодня",
"total": "Всего",
"user": "Пользователь",
"username": "Имя пользователя",
"view_all": "Посмотреть все",
"week": "Неделя",
"weekly": "За неделю",
Expand Down
2 changes: 1 addition & 1 deletion website/public/locales/ru/stats.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"aborted_low_grade": "Остановлено из-за низкой оценки",
"backlog_ranking": "Оцениваются (Приоритетные)",
"backlog_ranking": "Оцениваются (В резерве)",
"count": "Количество",
"growing": "В процессе",
"halted_by_moderator": "Отклонено модератором",
Expand Down
10 changes: 8 additions & 2 deletions website/src/components/Survey/TaskControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,14 @@ export const TaskControls = ({
</>
) : (
<>
<Tooltip label="Edit">
<IconButton size="lg" data-cy="edit" aria-label="edit" onClick={onEdit} icon={<Edit2 size="1em" />} />
<Tooltip label={t("edit")}>
<IconButton
size="lg"
data-cy="edit"
aria-label={t("edit")}
onClick={onEdit}
icon={<Edit2 size="1em" />}
/>
</Tooltip>
<SubmitButton
colorScheme="green"
Expand Down
8 changes: 5 additions & 3 deletions website/src/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { Box, Button, Center, Link, Text, theme, useColorModeValue } from "@chakra-ui/react";
import { useTranslation } from "next-i18next";
import { AlertTriangle } from "lucide-react";
import Head from "next/head";
import { EmptyState } from "src/components/EmptyState";
import { getTransparentHeaderLayout } from "src/components/Layout";
export { getDefaultStaticProps as getStaticProps } from "src/lib/default_static_props";

function Error() {
const { t } = useTranslation();
const iconColor = useColorModeValue(theme.colors.blue[500], theme.colors.blue[300]);
return (
<>
Expand All @@ -14,9 +16,9 @@ function Error() {
<meta name="404" content="Sorry, this page doesn't exist." />
</Head>
<Center flexDirection="column" gap="4" fontSize="lg" className="subpixel-antialiased oa-basic-theme">
<EmptyState text="Sorry, the page you are looking for does not exist." icon={AlertTriangle} />
<EmptyState text={t("sorry_404")} icon={AlertTriangle} />
<Box display="flex" flexDirection="column" alignItems="center" gap="2" mt="6">
<Text fontSize="sm">If you were trying to contribute data but ended up here, please file a bug.</Text>
<Text fontSize="sm">{t("bug_description")}</Text>
<Button
width="fit-content"
leftIcon={<AlertTriangle size={"1em"} color={iconColor} aria-hidden="false" />}
Expand All @@ -31,7 +33,7 @@ function Error() {
_hover={{ textDecoration: "none" }}
isExternal
>
Report a Bug
{t("bug_button")}
</Link>
</Button>
</Box>
Expand Down