220 lines
14 KiB
SQL
220 lines
14 KiB
SQL
-- +goose Up
|
|
-- Dump translations from database
|
|
|
|
-- Components
|
|
INSERT INTO components (id, name) VALUES
|
|
(1, 'be'),
|
|
(2, 'login'),
|
|
(3, 'verify_email'),
|
|
(100, 'email'),
|
|
(101, 'error'),
|
|
(102, 'auth'),
|
|
(103, 'email'),
|
|
(300, 'general'),
|
|
(301, 'validate_error'),
|
|
(302, 'repo_chart') ON CONFLICT DO NOTHING;
|
|
|
|
-- Scope
|
|
INSERT INTO scopes (id, name) VALUES (1, 'Backend') ON CONFLICT DO NOTHING;
|
|
|
|
-- Translations
|
|
|
|
-- Component: be
|
|
INSERT INTO translations (lang_id, scope_id, component_id, "key", data) VALUES
|
|
(1, 1, 1, 'langs_loaded', NULL),
|
|
(1, 1, 1, 'langs_not_loaded', NULL),
|
|
(1, 1, 1, 'message_nok', NULL),
|
|
(1, 1, 1, 'message_ok', NULL),
|
|
(1, 1, 1, 'translations_loaded', NULL),
|
|
(1, 1, 1, 'translations_not_loaded', NULL),
|
|
(2, 1, 1, 'langs_loaded', NULL),
|
|
(2, 1, 1, 'langs_not_loaded', NULL),
|
|
(2, 1, 1, 'message_nok', NULL),
|
|
(2, 1, 1, 'message_ok', NULL),
|
|
(2, 1, 1, 'translations_loaded', NULL),
|
|
(2, 1, 1, 'translations_not_loaded', NULL),
|
|
(3, 1, 1, 'langs_loaded', NULL),
|
|
(3, 1, 1, 'langs_not_loaded', NULL),
|
|
(3, 1, 1, 'message_nok', NULL),
|
|
(3, 1, 1, 'message_ok', NULL),
|
|
(3, 1, 1, 'translations_loaded', NULL),
|
|
(3, 1, 1, 'translations_not_loaded', NULL) ON CONFLICT DO NOTHING;
|
|
|
|
-- Component: email
|
|
INSERT INTO translations (lang_id, scope_id, component_id, "key", data) VALUES
|
|
(1, 1, 100, 'langs_loaded', NULL),
|
|
(1, 1, 100, 'langs_not_loaded', NULL),
|
|
(1, 1, 100, 'message_nok', NULL),
|
|
(1, 1, 100, 'message_ok', NULL),
|
|
(1, 1, 100, 'translations_loaded', NULL),
|
|
(1, 1, 100, 'translations_not_loaded', NULL),
|
|
(2, 1, 100, 'langs_loaded', NULL),
|
|
(2, 1, 100, 'langs_not_loaded', NULL),
|
|
(2, 1, 100, 'message_nok', NULL),
|
|
(2, 1, 100, 'message_ok', NULL),
|
|
(2, 1, 100, 'translations_loaded', NULL),
|
|
(2, 1, 100, 'translations_not_loaded', NULL),
|
|
(3, 1, 100, 'langs_loaded', NULL),
|
|
(3, 1, 100, 'langs_not_loaded', NULL),
|
|
(3, 1, 100, 'message_nok', NULL),
|
|
(3, 1, 100, 'message_ok', NULL),
|
|
(3, 1, 100, 'translations_loaded', NULL),
|
|
(3, 1, 100, 'translations_not_loaded', NULL) ON CONFLICT DO NOTHING;
|
|
|
|
-- Component: error
|
|
INSERT INTO translations (lang_id, scope_id, component_id, "key", data) VALUES
|
|
(1, 1, 101, 'err_bad_paging', 'zła paginacja'),
|
|
(1, 1, 101, 'err_bad_quarter_attribute', 'nieprawidłowy atrybut quarter'),
|
|
(1, 1, 101, 'err_bad_repo_id_attribute', 'nieprawidłowy atrybut repoID'),
|
|
(1, 1, 101, 'err_bad_year_attribute', 'nieprawidłowy atrybut year'),
|
|
(1, 1, 101, 'err_email_exists', 'adres e-mail zajęty'),
|
|
(1, 1, 101, 'err_email_not_verified', 'adres e-mail nie został zweryfikowany'),
|
|
(1, 1, 101, 'err_email_password_required', 'wymagany jest adres e-mail i hasło'),
|
|
(1, 1, 101, 'err_email_required', 'Adres e-mail jest wymagany'),
|
|
(1, 1, 101, 'err_first_last_name_required', 'imię i nazwisko są wymagane'),
|
|
(1, 1, 101, 'err_internal_server_error', 'błąd wewnętrzny serwera'),
|
|
(1, 1, 101, 'err_invalid_body', 'nieprawidłowy tekst zapytania'),
|
|
(1, 1, 101, 'err_invalid_credentials', 'nieprawidłowy adres e-mail lub hasło'),
|
|
(1, 1, 101, 'err_invalid_password', 'hasło musi mieć co najmniej 10 znaków i zawierać co najmniej jedną małą literę, jedną wielką literę i jedną cyfrę'),
|
|
(1, 1, 101, 'err_invalid_repo_id', 'niedostępne repo id'),
|
|
(1, 1, 101, 'err_invalid_reset_token', 'nieprawidłowy token'),
|
|
(1, 1, 101, 'err_invalid_token', 'nieprawidłowy token'),
|
|
(1, 1, 101, 'err_invalid_verification_token', 'nieprawidłowy token'),
|
|
(1, 1, 101, 'err_not_authenticated', 'nie uwierzytelniono'),
|
|
(1, 1, 101, 'err_passwords_do_not_match', 'hasła nie pasują'),
|
|
(1, 1, 101, 'err_refresh_token_required', 'wymagany jest token odświeżania'),
|
|
(1, 1, 101, 'err_reset_token_expired', 'token wygasł'),
|
|
(1, 1, 101, 'err_token_expired', 'token wygasł'),
|
|
(1, 1, 101, 'err_token_password_required', 'wymagane są token i hasło'),
|
|
(1, 1, 101, 'err_token_required', 'wymagany jest token'),
|
|
(1, 1, 101, 'err_user_inactive', 'konto użytkownika jest nieaktywne'),
|
|
(1, 1, 101, 'err_user_not_found', 'użytkownik nie został znaleziony'),
|
|
(1, 1, 101, 'err_verification_token_expired', 'token weryfikacyjny wygasł'),
|
|
(2, 1, 101, 'err_bad_paging', 'bad paging'),
|
|
(2, 1, 101, 'err_bad_quarter_attribute', 'bad quarter attribute'),
|
|
(2, 1, 101, 'err_bad_repo_id_attribute', 'bad repoID attribute'),
|
|
(2, 1, 101, 'err_bad_year_attribute', 'bad year attribute'),
|
|
(2, 1, 101, 'err_email_exists', 'email already exists'),
|
|
(2, 1, 101, 'err_email_not_verified', 'email not verified'),
|
|
(2, 1, 101, 'err_email_password_required', 'email and password are required'),
|
|
(2, 1, 101, 'err_email_required', 'email is required'),
|
|
(2, 1, 101, 'err_first_last_name_required', 'first and last name is required'),
|
|
(2, 1, 101, 'err_internal_server_error', 'internal server error'),
|
|
(2, 1, 101, 'err_invalid_body', 'invalid request body'),
|
|
(2, 1, 101, 'err_invalid_credentials', 'invalid email or password'),
|
|
(2, 1, 101, 'err_invalid_password', 'password must be at least 10 characters long and contain at least one lowercase letter, one uppercase letter, and one digit'),
|
|
(2, 1, 101, 'err_invalid_repo_id', 'inaccessible repo id'),
|
|
(2, 1, 101, 'err_invalid_reset_token', 'invalid reset token'),
|
|
(2, 1, 101, 'err_invalid_token', 'invalid token'),
|
|
(2, 1, 101, 'err_invalid_verification_token', 'invalid verification token'),
|
|
(2, 1, 101, 'err_not_authenticated', 'not authenticated'),
|
|
(2, 1, 101, 'err_passwords_do_not_match', 'passwords do not match'),
|
|
(2, 1, 101, 'err_refresh_token_required', 'refresh token is required'),
|
|
(2, 1, 101, 'err_reset_token_expired', 'reset token has expired'),
|
|
(2, 1, 101, 'err_token_expired', 'token has expired'),
|
|
(2, 1, 101, 'err_token_password_required', 'token and password are required'),
|
|
(2, 1, 101, 'err_token_required', 'token is required'),
|
|
(2, 1, 101, 'err_user_inactive', 'user account is inactive'),
|
|
(2, 1, 101, 'err_user_not_found', 'user not found'),
|
|
(2, 1, 101, 'err_verification_token_expired', 'verification token has expired'),
|
|
(3, 1, 101, 'err_bad_paging', 'špatné stránkování'),
|
|
(3, 1, 101, 'err_bad_quarter_attribute', 'atribut špatné čtvrtiny'),
|
|
(3, 1, 101, 'err_bad_repo_id_attribute', 'špatný atribut repoID'),
|
|
(3, 1, 101, 'err_bad_year_attribute', 'atribut špatného roku'),
|
|
(3, 1, 101, 'err_email_exists', 'e-mail již existuje'),
|
|
(3, 1, 101, 'err_email_not_verified', 'e-mail nebyl ověřen'),
|
|
(3, 1, 101, 'err_email_password_required', 'je vyžadován e-mail a heslo'),
|
|
(3, 1, 101, 'err_email_required', 'e-mail je povinný'),
|
|
(3, 1, 101, 'err_first_last_name_required', 'křestní jméno a příjmení je povinné'),
|
|
(3, 1, 101, 'err_internal_server_error', 'interní chyba serveru'),
|
|
(3, 1, 101, 'err_invalid_body', 'neplatné tělo požadavku'),
|
|
(3, 1, 101, 'err_invalid_credentials', 'neplatný e-mail nebo heslo'),
|
|
(3, 1, 101, 'err_invalid_password', 'heslo musí mít alespoň 10 znaků a musí obsahovat alespoň jedno malé písmeno, jedno velké písmeno a jednu číslici'),
|
|
(3, 1, 101, 'err_invalid_repo_id', 'nepřístupné ID úložiště'),
|
|
(3, 1, 101, 'err_invalid_reset_token', 'neplatný resetovací token'),
|
|
(3, 1, 101, 'err_invalid_token', 'neplatný token'),
|
|
(3, 1, 101, 'err_invalid_verification_token', 'neplatný ověřovací token'),
|
|
(3, 1, 101, 'err_not_authenticated', 'neověřeno'),
|
|
(3, 1, 101, 'err_passwords_do_not_match', 'hesla se neshodují'),
|
|
(3, 1, 101, 'err_refresh_token_required', 'Je vyžadován token pro obnovení'),
|
|
(3, 1, 101, 'err_reset_token_expired', 'Platnost resetovacího tokenu vypršela'),
|
|
(3, 1, 101, 'err_token_expired', 'platnost tokenu vypršela'),
|
|
(3, 1, 101, 'err_token_password_required', 'je vyžadován token a heslo'),
|
|
(3, 1, 101, 'err_token_required', 'je vyžadován token'),
|
|
(3, 1, 101, 'err_user_inactive', 'uživatelský účet je neaktivní'),
|
|
(3, 1, 101, 'err_user_not_found', 'uživatel nenalezen'),
|
|
(3, 1, 101, 'err_verification_token_expired', 'platnost ověřovacího tokenu vypršela') ON CONFLICT DO NOTHING;
|
|
|
|
-- Component: auth
|
|
INSERT INTO translations (lang_id, scope_id, component_id, "key", data) VALUES
|
|
(1, 1, 102, 'auth_if_account_exists', 'jeśli konto o tym adresie e-mail istnieje, został wysłany link do resetowania hasła'),
|
|
(1, 1, 102, 'auth_logged_out_successfully', 'wylogowano pomyślnie'),
|
|
(1, 1, 102, 'auth_password_reset_successfully', 'pomyślnie zresetowano hasło'),
|
|
(1, 1, 102, 'auth_registration_successful', 'rejestracja pomyślna, proszę zweryfikować swój adres e-mail'),
|
|
(2, 1, 102, 'auth_if_account_exists', 'if an account with that email exists, a password reset link has been sent'),
|
|
(2, 1, 102, 'auth_logged_out_successfully', 'logged out successfully'),
|
|
(2, 1, 102, 'auth_password_reset_successfully', 'password reset successfully'),
|
|
(2, 1, 102, 'auth_registration_successful', 'registration successful, please verify your email'),
|
|
(3, 1, 102, 'auth_if_account_exists', 'Pokud účet s danou e-mailovou adresou existuje, byl odeslán odkaz pro resetování hesla.'),
|
|
(3, 1, 102, 'auth_logged_out_successfully', 'úspěšně odhlášen/a'),
|
|
(3, 1, 102, 'auth_password_reset_successfully', 'úspěšné obnovení hesla'),
|
|
(3, 1, 102, 'auth_registration_successful', 'Registrace úspěšná, prosím ověřte svůj e-mail') ON CONFLICT DO NOTHING;
|
|
|
|
-- Component: email
|
|
INSERT INTO translations (lang_id, scope_id, component_id, "key", data) VALUES
|
|
(1, 1, 103, 'email_admin_notification_title', 'Admin notification title'),
|
|
(1, 1, 103, 'email_footer', 'Wszelkie prawa zastrzeżone.'),
|
|
(1, 1, 103, 'email_greeting', 'Witaj,'),
|
|
(1, 1, 103, 'email_ignore', 'Jeśli nie jesteś właścicielem tego konta, prosimy o zignorowanie maila.'),
|
|
(1, 1, 103, 'email_ignore_reset', 'Jeśli nie chcesz zmieniać hasła, prosimy o zignorowanie maila. Twoje hasło pozostanie niezmienione.'),
|
|
(1, 1, 103, 'email_or_copy', 'Bądź przekopiuj poniższy link do przeglądarki:'),
|
|
(1, 1, 103, 'email_password_reset_message1', 'Otrzymaliśmy prośbę o zresetowanie Twojego hasła. Aby utworzyć nowe hasło, kliknij w poniższy przycisk:'),
|
|
(1, 1, 103, 'email_password_reset_subject', 'Zresetuj hasło'),
|
|
(1, 1, 103, 'email_password_reset_title', 'Zresetuj swoje hasło'),
|
|
(1, 1, 103, 'email_password_reset_warning', 'Link na zresesetowanie hasła przedawni się po 1 godzinie.'),
|
|
(1, 1, 103, 'email_reset_button', 'Zresetuj hasło'),
|
|
(1, 1, 103, 'email_verification_message1', 'Dziękujemy za rejestrację. Aby dokończyć proces rejestracji, zweryfikuj swojego maila klikając w poniższy link:'),
|
|
(1, 1, 103, 'email_verification_note', 'Uwaga: link weryfikacyjny przedawni się za 24 godziny.'),
|
|
(1, 1, 103, 'email_verification_subject', 'Zweryfikuj swój adres email'),
|
|
(1, 1, 103, 'email_verification_title', 'Weryfikacja Adresu email'),
|
|
(1, 1, 103, 'email_verify_button', 'Zweryfikuj adres email'),
|
|
(1, 1, 103, 'email_warning_title', 'Ważne:'),
|
|
(2, 1, 103, 'email_admin_notification_title', 'Admin notification title'),
|
|
(2, 1, 103, 'email_footer', 'All rights reserved.'),
|
|
(2, 1, 103, 'email_greeting', 'Hello,'),
|
|
(2, 1, 103, 'email_ignore', 'If you did not create an account with us, please ignore this email.'),
|
|
(2, 1, 103, 'email_ignore_reset', 'If you did not request a password reset, please ignore this email. Your password will remain unchanged.'),
|
|
(2, 1, 103, 'email_or_copy', 'Or copy and paste this link into your browser:'),
|
|
(2, 1, 103, 'email_password_reset_message1', 'We received a request to reset your password. Click the button below to create a new password:'),
|
|
(2, 1, 103, 'email_password_reset_subject', 'Reset Your Password'),
|
|
(2, 1, 103, 'email_password_reset_title', 'Reset Your Password'),
|
|
(2, 1, 103, 'email_password_reset_warning', 'This password reset link will expire in 1 hour for security reasons.'),
|
|
(2, 1, 103, 'email_reset_button', 'Reset Password'),
|
|
(2, 1, 103, 'email_verification_message1', 'Thank you for registering with us. To complete your registration and activate your account, please verify your email address by clicking the button below:'),
|
|
(2, 1, 103, 'email_verification_note', 'Note: This verification link will expire in 24 hours.'),
|
|
(2, 1, 103, 'email_verification_subject', 'Verify Your Email Address'),
|
|
(2, 1, 103, 'email_verification_title', 'Verify Your Email Address'),
|
|
(2, 1, 103, 'email_verify_button', 'Verify Email Address'),
|
|
(2, 1, 103, 'email_warning_title', 'Important:'),
|
|
(3, 1, 103, 'email_admin_notification_title', 'Admin notification title'),
|
|
(3, 1, 103, 'email_footer', 'Všechna práva vyhrazena.'),
|
|
(3, 1, 103, 'email_greeting', 'Ahoj,'),
|
|
(3, 1, 103, 'email_ignore', 'Pokud jste si u nás nevytvořili účet, prosím, ignorujte tento e-mail.'),
|
|
(3, 1, 103, 'email_ignore_reset', 'Pokud jste nepožádali o obnovení hesla, ignorujte prosím tento e-mail. Vaše heslo zůstane nezměněno.'),
|
|
(3, 1, 103, 'email_or_copy', 'Nebo zkopírujte a vložte tento odkaz do prohlížeče:'),
|
|
(3, 1, 103, 'email_password_reset_message1', 'Obdrželi jsme žádost o obnovení hesla. Klikněte na tlačítko níže a vytvořte si nové heslo:'),
|
|
(3, 1, 103, 'email_password_reset_subject', 'Obnovte si heslo'),
|
|
(3, 1, 103, 'email_password_reset_title', 'Obnovte si heslo'),
|
|
(3, 1, 103, 'email_password_reset_warning', 'Z bezpečnostních důvodů platnost tohoto odkazu pro obnovení hesla vyprší za 1 hodinu.'),
|
|
(3, 1, 103, 'email_reset_button', 'Obnovit heslo'),
|
|
(3, 1, 103, 'email_verification_message1', 'Děkujeme za registraci u nás. Chcete-li dokončit registraci a aktivovat svůj účet, ověřte prosím svou e-mailovou adresu kliknutím na tlačítko níže:'),
|
|
(3, 1, 103, 'email_verification_note', 'Poznámka: Platnost tohoto ověřovacího odkazu vyprší za 24 hodin.'),
|
|
(3, 1, 103, 'email_verification_subject', 'Ověřte svou e-mailovou adresu'),
|
|
(3, 1, 103, 'email_verification_title', 'Ověřte svou e-mailovou adresu'),
|
|
(3, 1, 103, 'email_verify_button', 'Ověření e-mailové adresy'),
|
|
(3, 1, 103, 'email_warning_title', 'Důležité:') ON CONFLICT DO NOTHING;
|
|
|
|
-- +goose Down
|
|
-- Remove translations for this scope
|
|
DELETE FROM translations WHERE scope_id = 1;
|