Skip to content

Commit

Permalink
feat: allow machine translation and TM when user can edit
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Sep 3, 2024
1 parent 3b024d2 commit 907b176
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/component/task/TaskDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export const TaskDetail = ({ task, onClose, projectId }: Props) => {
</Typography>
<Box display="flex" alignItems="center">
<Tooltip
title={t('task_detail_link_translations_tooltip')}
title={t('task_link_translations_tooltip')}
disableInteractive
>
<IconButton
Expand Down
26 changes: 26 additions & 0 deletions webapp/src/i18n/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@
"activity_entity_project.language" : "základní jazyk",
"activity_entity_project.name" : "název",
"activity_entity_screenshot" : "Screenshot",
"activity_entity_task" : "Úkol",
"activity_entity_task.description" : "Popis",
"activity_entity_task.due_date" : "Termín splnění",
"activity_entity_task.name" : "název",
"activity_entity_task.state" : "Stav",
"activity_entity_task.type" : "Typ",
"activity_entity_translation" : "Překlad",
"activity_entity_translation_comment" : "Komentář",
"activity_entity_translation.flag_emoji" : "vlajka",
Expand All @@ -91,6 +97,7 @@
"activity_entity_webhook_config" : "Konfigurace webhooku",
"activity_filter_indicator_clear" : "Vymazat předfiltr",
"activity_filter_indicator_label" : "Předfiltrované podle aktivity",
"activity_group_create_key_item_table_header_key_name" : "Název",
"activity_import" : "{KeyCount, plural, one {Importován jeden klíč ({TranslationCount, plural, \n one {1 překlad}\n few {# překlady}\n other {# překladů}\n})} few {Importovány # klíče ({TranslationCount, plural, \n one {1 překlad}\n few {# překlady}\n other {# překladů}\n})} other {Importováno # klíčů ({TranslationCount, plural, \n one {1 překlad}\n few {# překlady}\n other {# překladů}\n})}}",
"activity_key_delete" : "{KeyCount, plural, one {Odstraněn 1 klíč} few {Odstraněny # klíče} other {Odstraněno # klíčů}}",
"activity_key_name_edit" : "Upraven název klíče",
Expand All @@ -100,6 +107,11 @@
"activity_set_outdated_flag" : "Upraven stav",
"activity_set_translation" : "Upraven překlad",
"activity_set_translation_state" : "Nastaven stav překladu",
"activity_task_create" : "Vytvořený úkol",
"activity_task_finish" : "Dokončený úkol",
"activity_task_keys_update" : "Upravený rozsah úkolu",
"activity_tasks_create" : "Vytvořené úkoly",
"activity_task_update" : "Upravený úkol",
"activity_translation_comment_add" : "Přidán komentář",
"activity_translation_comment_delete" : "Odstraněn komentář",
"activity_translation_comment_set_state" : "Změněn stav komentáře",
Expand Down Expand Up @@ -969,6 +981,8 @@
"permissions_item_screenshots_delete" : "Odstranit",
"permissions_item_screenshots_upload" : "Přidávat",
"permissions_item_screenshots_view" : "Zobrazit",
"permissions_item_tasks_edit" : "Upravovat",
"permissions_item_tasks_view" : "Zobrazit",
"permissions_item_translations" : "Překlady",
"permissions_item_translations_comments" : "Komentáře",
"permissions_item_translations_comments_add" : "Přidávat",
Expand All @@ -981,6 +995,7 @@
"permissions_reset_message" : "Práva resetována",
"permissions_set_message" : "Oprávnění nastavena",
"permissions_settings_scopes" : "Oprávnění:",
"permissions_tasks" : "Úkoly",
"permission_type_edit" : "Upravovat",
"permission_type_edit_hint" : "Změny překladů i klíčů",
"permission_type_granular" : "Detailní nastavení",
Expand Down Expand Up @@ -1222,19 +1237,24 @@
"task_detail_project_label" : "Projekt",
"task_detail_scope_title" : "Rozsah",
"task_detail_submit_button" : "Uložit",
"task_detail_summarize_tooltip" : "Stáhnout přehled",
"task_detail_title" : "Detail úkolu",
"task_detail_tooltip" : "Zobrazit detail",
"task_filter_assignees" : "Přiřazení",
"task_filter_indicator_blocking_warning" : "Úkol je blokován",
"task_filter_indicator_label" : "Předfiltrované podle úkolu",
"task_filter_languages" : "Jazyky",
"task_filter_placeholder" : "Filtrovat...",
"task_filter_projects" : "Projekty",
"task_filter_review" : "Kontrolovat",
"task_filter_show_details" : "Podrobnosti",
"task_filter_translate" : "Překládat",
"task_filter_type_label" : "Typ úkolu",
"task_finished_confirmation_confirm" : "Označit jako dokončené",
"task_finished_confirmation_message" : "Chcete označit úkol jako dokončený?",
"task_finished_confirmation_title" : "Všechny položky v úkolu jsou dokončeny",
"task_keys_count" : "{value, plural, one {# klíč} few {# klíče} many {# klíče} other {# klíčů}}",
"task_link_translations_tooltip" : "Přejít na překlady",
"task_menu_clone_task" : "Klonovat do nového úkolu",
"task_menu_close_confirmation_title" : "Zavřít úkol",
"task_menu_close_success" : "Úkol uzavřen",
Expand All @@ -1251,6 +1271,7 @@
"task_menu_open_translations" : "Otevřít překlady",
"task_menu_state_changed_success" : "Změněn stav úkolu",
"task_menu_task_detail" : "Detail úkolu",
"task_open" : "Otevřít úkol",
"task_placeholder" : "Vyberte úkol...",
"tasks_add" : "Úkol",
"task_scope_characters_label" : "Znaky",
Expand All @@ -1264,6 +1285,11 @@
"task_state_done" : "Hotovo",
"task_state_in_progress" : "Probíhá",
"tasks_view_title" : "Úkoly projektu",
"task_tooltip_content_assignees" : "Přiřazeno",
"task_tooltip_content_detail" : "Detail",
"task_tooltip_content_no_access" : "Nemáte přístup k zobrazení tohoto úkolu",
"task_tooltip_content_no_assignees" : "Žádné přiřazení",
"task_tooltip_content_open" : "Otevřít",
"task_type_review" : "Kontrolovat",
"task_type_translate" : "Překládat",
"task_words_count" : "{value, plural, one {# slovo} few {# slova} many {# slova} other {# slov}}",
Expand Down
26 changes: 26 additions & 0 deletions webapp/src/i18n/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@
"activity_entity_project.language" : "basis sprog",
"activity_entity_project.name" : "navn",
"activity_entity_screenshot" : "Skærmbillede",
"activity_entity_task" : "Opgave",
"activity_entity_task.description" : "Beskrivelse",
"activity_entity_task.due_date" : "Forfaldsdato",
"activity_entity_task.name" : "Navn",
"activity_entity_task.state" : "Status",
"activity_entity_task.type" : "Type",
"activity_entity_translation" : "Oversættelse",
"activity_entity_translation_comment" : "Kommentar",
"activity_entity_translation.flag_emoji" : "flag",
Expand All @@ -91,6 +97,7 @@
"activity_entity_webhook_config" : "Webhook konfiguration",
"activity_filter_indicator_clear" : "Ryd forfiltrering",
"activity_filter_indicator_label" : "Filtreret efter aktivitet",
"activity_group_create_key_item_table_header_key_name" : "Navn",
"activity_import" : "{KeyCount, plural, one {Importerede én nøgle ({TranslationCount, plural, \n one {1 oversættelse} \n other {# oversættelser}\n})} other {Importerede # nøgler ({TranslationCount, plural, \n one {1 oversættelse} \n other {# oversættelser}\n})}}",
"activity_key_delete" : "{KeyCount, plural, one {Slettede 1 nøgle} other {Slettede # nøgler}}",
"activity_key_name_edit" : "Redigerede nøgle navn",
Expand All @@ -100,6 +107,11 @@
"activity_set_outdated_flag" : "Opdaterede status",
"activity_set_translation" : "Opdaterede oversættelse",
"activity_set_translation_state" : "Sæt oversættelsesstatus",
"activity_task_create" : "Oprettet opgave",
"activity_task_finish" : "Færdig opgave",
"activity_task_keys_update" : "Opdateret opgaveomfang",
"activity_tasks_create" : "Oprettede opgaver",
"activity_task_update" : "Opdateret opgave",
"activity_translation_comment_add" : "Tilføjede kommentar",
"activity_translation_comment_delete" : "Kommentar slettet",
"activity_translation_comment_set_state" : "Kommentarstatus ændret",
Expand Down Expand Up @@ -968,6 +980,8 @@
"permissions_item_screenshots_delete" : "Slet",
"permissions_item_screenshots_upload" : "Tilføj",
"permissions_item_screenshots_view" : "Vis",
"permissions_item_tasks_edit" : "Rediger",
"permissions_item_tasks_view" : "Vis",
"permissions_item_translations" : "Oversættelser",
"permissions_item_translations_comments" : "Kommentarer",
"permissions_item_translations_comments_add" : "Tilføj",
Expand All @@ -980,6 +994,7 @@
"permissions_reset_message" : "Tilladelser nulstillet",
"permissions_set_message" : "Tilladelser sat",
"permissions_settings_scopes" : "Områder:",
"permissions_tasks" : "Opgaver",
"permission_type_edit" : "Rediger",
"permission_type_edit_hint" : "Ændringer af oversættelser og nøgler",
"permission_type_granular" : "Granulær",
Expand Down Expand Up @@ -1221,19 +1236,24 @@
"task_detail_project_label" : "Projekt",
"task_detail_scope_title" : "Omfang",
"task_detail_submit_button" : "Gem",
"task_detail_summarize_tooltip" : "Download rapport",
"task_detail_title" : "Opgavedetalje",
"task_detail_tooltip" : "Vis detalje",
"task_filter_assignees" : "Tildelte",
"task_filter_indicator_blocking_warning" : "Opgave er blokeret af",
"task_filter_indicator_label" : "Filtreret efter opgave",
"task_filter_languages" : "Sprog",
"task_filter_placeholder" : "Filtrér...",
"task_filter_projects" : "Projekter",
"task_filter_review" : "Gennemgå",
"task_filter_show_details" : "Detaljer",
"task_filter_translate" : "Oversæt",
"task_filter_type_label" : "Opgavetype",
"task_finished_confirmation_confirm" : "Markér som færdig",
"task_finished_confirmation_message" : "Vil du markere opgaven som færdig?",
"task_finished_confirmation_title" : "Alle elementer i opgaven er færdige",
"task_keys_count" : "{value, plural, one {# nøgle} other {# nøgler}}",
"task_link_translations_tooltip" : "Gå til oversættelser",
"task_menu_clone_task" : "Klon til ny opgave",
"task_menu_close_confirmation_title" : "Luk opgave",
"task_menu_close_success" : "Opgave lukket",
Expand All @@ -1249,6 +1269,7 @@
"task_menu_open_translations" : "Åbn oversættelser",
"task_menu_state_changed_success" : "Opgavestatus ændret",
"task_menu_task_detail" : "Opgavedetalje",
"task_open" : "Åbn opgave",
"task_placeholder" : "Vælg opgave...",
"tasks_add" : "Opgave",
"task_scope_characters_label" : "Tegn",
Expand All @@ -1262,6 +1283,11 @@
"task_state_done" : "Færdig",
"task_state_in_progress" : "I gang",
"tasks_view_title" : "Projektopgaver",
"task_tooltip_content_assignees" : "Tildelt til",
"task_tooltip_content_detail" : "Detalje",
"task_tooltip_content_no_access" : "Du har ingen adgang til at se denne opgave",
"task_tooltip_content_no_assignees" : "Ingen tildelte",
"task_tooltip_content_open" : "Åbn",
"task_type_review" : "Gennemgå",
"task_type_translate" : "Oversæt",
"task_words_count" : "{value, plural, other {# ord} }",
Expand Down
26 changes: 26 additions & 0 deletions webapp/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@
"activity_entity_project.language" : "base language",
"activity_entity_project.name" : "name",
"activity_entity_screenshot" : "Screenshot",
"activity_entity_task" : "Task",
"activity_entity_task.description" : "Description",
"activity_entity_task.due_date" : "Due date",
"activity_entity_task.name" : "Name",
"activity_entity_task.state" : "State",
"activity_entity_task.type" : "Type",
"activity_entity_translation" : "Translation",
"activity_entity_translation_comment" : "Comment",
"activity_entity_translation.flag_emoji" : "flag",
Expand All @@ -91,6 +97,7 @@
"activity_entity_webhook_config" : "Webhook Config",
"activity_filter_indicator_clear" : "Clear prefilter",
"activity_filter_indicator_label" : "Prefiltered by Activity",
"activity_group_create_key_item_table_header_key_name" : "Name",
"activity_import" : "{KeyCount, plural, one {Imported one key ({TranslationCount, plural, \n one {1 translation} \n other {# translations}\n})} other {Imported # keys ({TranslationCount, plural, \n one {1 translation} \n other {# translations}\n})}}",
"activity_key_delete" : "{KeyCount, plural, one {Deleted 1 key} other {Deleted # keys}}",
"activity_key_name_edit" : "Edited key name",
Expand All @@ -100,6 +107,11 @@
"activity_set_outdated_flag" : "Updated state",
"activity_set_translation" : "Updated translation",
"activity_set_translation_state" : "Set translation state",
"activity_task_create" : "Created task",
"activity_task_finish" : "Finished task",
"activity_task_keys_update" : "Updated task scope",
"activity_tasks_create" : "Created tasks",
"activity_task_update" : "Updated task",
"activity_translation_comment_add" : "Added comment",
"activity_translation_comment_delete" : "Comment deleted",
"activity_translation_comment_set_state" : "Comment state changed",
Expand Down Expand Up @@ -969,6 +981,8 @@
"permissions_item_screenshots_delete" : "Delete",
"permissions_item_screenshots_upload" : "Add",
"permissions_item_screenshots_view" : "View",
"permissions_item_tasks_edit" : "Edit",
"permissions_item_tasks_view" : "View",
"permissions_item_translations" : "Translations",
"permissions_item_translations_comments" : "Comments",
"permissions_item_translations_comments_add" : "Add",
Expand All @@ -981,6 +995,7 @@
"permissions_reset_message" : "Permissions reset",
"permissions_set_message" : "Permissions set",
"permissions_settings_scopes" : "Scopes:",
"permissions_tasks" : "Tasks",
"permission_type_edit" : "Edit",
"permission_type_edit_hint" : "Changes of translations and keys",
"permission_type_granular" : "Granular",
Expand Down Expand Up @@ -1222,19 +1237,24 @@
"task_detail_project_label" : "Project",
"task_detail_scope_title" : "Scope",
"task_detail_submit_button" : "Save",
"task_detail_summarize_tooltip" : "Download report",
"task_detail_title" : "Task detail",
"task_detail_tooltip" : "Show detail",
"task_filter_assignees" : "Assignees",
"task_filter_indicator_blocking_warning" : "Task is blocked by",
"task_filter_indicator_label" : "Prefiltered by task",
"task_filter_languages" : "Languages",
"task_filter_placeholder" : "Filter...",
"task_filter_projects" : "Projects",
"task_filter_review" : "Review",
"task_filter_show_details" : "Details",
"task_filter_translate" : "Translate",
"task_filter_type_label" : "Task type",
"task_finished_confirmation_confirm" : "Mark as done",
"task_finished_confirmation_message" : "Do you want to mark the task as done?",
"task_finished_confirmation_title" : "All items in the task are finished",
"task_keys_count" : "{value, plural, one {# key} other {# keys}}",
"task_link_translations_tooltip" : "Go to translations",
"task_menu_clone_task" : "Clone to new task",
"task_menu_close_confirmation_title" : "Close task",
"task_menu_close_success" : "Task closed",
Expand All @@ -1251,6 +1271,7 @@
"task_menu_open_translations" : "Open translations",
"task_menu_state_changed_success" : "Task state changed",
"task_menu_task_detail" : "Task detail",
"task_open" : "Open task",
"task_placeholder" : "Select task...",
"tasks_add" : "Task",
"task_scope_characters_label" : "Characters",
Expand All @@ -1264,6 +1285,11 @@
"task_state_done" : "Done",
"task_state_in_progress" : "In progress",
"tasks_view_title" : "Project tasks",
"task_tooltip_content_assignees" : "Assigned to",
"task_tooltip_content_detail" : "Detail",
"task_tooltip_content_no_access" : "You have no access to view this task",
"task_tooltip_content_no_assignees" : "No assignees",
"task_tooltip_content_open" : "Open",
"task_type_review" : "Review",
"task_type_translate" : "Translate",
"task_words_count" : "{value, plural, one {# word} other {# words}}",
Expand Down
Loading

0 comments on commit 907b176

Please sign in to comment.