more fixes and update of translations database
This commit is contained in:
@@ -2,27 +2,26 @@
|
||||
-- Dump translations from database
|
||||
|
||||
-- Components
|
||||
INSERT IGNORE INTO b2b_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'),
|
||||
(303, 'verify_email');
|
||||
INSERT IGNORE b2b_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'),
|
||||
(303, 'verify_email');
|
||||
|
||||
-- Scope
|
||||
INSERT IGNORE INTO b2b_scopes (id, name) VALUES
|
||||
(1, 'Backend');
|
||||
INSERT IGNORE b2b_scopes (id, name) VALUES (1, 'Backend');
|
||||
|
||||
-- Translations
|
||||
|
||||
-- Component: be
|
||||
INSERT IGNORE INTO b2b_translations (lang_id, scope_id, component_id, `key`, data) VALUES
|
||||
INSERT IGNORE b2b_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),
|
||||
@@ -43,7 +42,7 @@ INSERT IGNORE INTO b2b_translations (lang_id, scope_id, component_id, `key`, dat
|
||||
(3, 1, 1, 'translations_not_loaded', NULL);
|
||||
|
||||
-- Component: email
|
||||
INSERT IGNORE INTO b2b_translations (lang_id, scope_id, component_id, `key`, data) VALUES
|
||||
INSERT IGNORE b2b_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),
|
||||
@@ -64,7 +63,7 @@ INSERT IGNORE INTO b2b_translations (lang_id, scope_id, component_id, `key`, dat
|
||||
(3, 1, 100, 'translations_not_loaded', NULL);
|
||||
|
||||
-- Component: error
|
||||
INSERT IGNORE INTO b2b_translations (lang_id, scope_id, component_id, `key`, data) VALUES
|
||||
INSERT IGNORE b2b_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'),
|
||||
@@ -148,7 +147,7 @@ INSERT IGNORE INTO b2b_translations (lang_id, scope_id, component_id, `key`, dat
|
||||
(3, 1, 101, 'err_verification_token_expired', 'platnost ověřovacího tokenu vypršela');
|
||||
|
||||
-- Component: auth
|
||||
INSERT IGNORE INTO b2b_translations (lang_id, scope_id, component_id, `key`, data) VALUES
|
||||
INSERT IGNORE b2b_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'),
|
||||
@@ -163,7 +162,7 @@ INSERT IGNORE INTO b2b_translations (lang_id, scope_id, component_id, `key`, dat
|
||||
(3, 1, 102, 'auth_registration_successful', 'Registrace úspěšná, prosím ověřte svůj e-mail');
|
||||
|
||||
-- Component: email
|
||||
INSERT IGNORE INTO b2b_translations (lang_id, scope_id, component_id, `key`, data) VALUES
|
||||
INSERT IGNORE b2b_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,'),
|
||||
@@ -217,5 +216,5 @@ INSERT IGNORE INTO b2b_translations (lang_id, scope_id, component_id, `key`, dat
|
||||
(3, 1, 103, 'email_warning_title', 'Důležité:');
|
||||
|
||||
-- +goose Down
|
||||
-- Remove translations for this scope
|
||||
DELETE FROM translations WHERE scope_id = 1;
|
||||
-- Remove b2b_translations for this scope
|
||||
DELETE FROM b2b_translations WHERE scope_id = 1;
|
||||
|
||||
Reference in New Issue
Block a user