mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-11 12:46:49 +00:00
feat(operations): the job panel and job pages speak the page's language
The job panel on VM and storage pages wrote its buttons and notes in English (Cancel, Open, Refresh, Dismiss, Finishing..., Files not removed, Worker unavailable, Cancel failed) and its state badge as the state's code, and the jobs API gave the phase untranslated. The panel now takes its texts and the state labels from the page's settings, and the API gives the phase in the viewer's language, as it gives the label; the job pages show that phase. A job that cannot be cancelled and ran past its time limit had "(over its time limit)" written into its phase, which then matched no translation. The phase stays as the job sets it, and the pages say the job is past its limit.
This commit is contained in:
parent
9d57adc097
commit
0eab09e19d
13 changed files with 178 additions and 42 deletions
Binary file not shown.
|
|
@ -11,7 +11,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-11-02 20:06+0000\n"
|
||||
"POT-Creation-Date: 2026-11-02 20:32+0000\n"
|
||||
"PO-Revision-Date: 2020-11-04 12:00+0000\n"
|
||||
"Last-Translator: catborise <muhammetalisag@gmail.com>, 2020\n"
|
||||
"Language-Team: Turkish (https://www.transifex.com/catborise/teams/110663/"
|
||||
|
|
@ -103,6 +103,7 @@ msgstr "bir yıl içinde"
|
|||
#: admin/templates/admin/user_form.html:16
|
||||
#: admin/templates/admin/user_list.html:58
|
||||
#: operations/templates/operations/jobs.html:15
|
||||
#: operations/templatetags/operations.py:91
|
||||
msgid "never"
|
||||
msgstr "hiçbir zaman"
|
||||
|
||||
|
|
@ -290,6 +291,7 @@ msgstr "Parola Değiştir"
|
|||
#: nwfilters/templates/create_nwfilter_block.html:33
|
||||
#: nwfilters/templates/nwfilter.html:178 nwfilters/templates/nwfilters.html:93
|
||||
#: operations/templates/operations/job.html:31
|
||||
#: operations/templatetags/operations.py:83
|
||||
#: storages/templates/create_stg_block.html:183
|
||||
#: storages/templates/create_stg_vol_block.html:35
|
||||
#: storages/templates/create_stg_vol_block.html:68
|
||||
|
|
@ -3596,6 +3598,7 @@ msgid "OS details"
|
|||
msgstr "İşletim sistemi ayrıntıları"
|
||||
|
||||
#: instances/templates/instance.html:39
|
||||
#: operations/templatetags/operations.py:85
|
||||
msgid "Refresh"
|
||||
msgstr "Yenile"
|
||||
|
||||
|
|
@ -7435,6 +7438,11 @@ msgstr ""
|
|||
"Harfler, rakamlar, nokta, tire ve alt çizgi. Kopya, filtrenin kurallarını ve "
|
||||
"başvurularını içerir."
|
||||
|
||||
#: operations/api/serializers.py:35
|
||||
#, python-format
|
||||
msgid "%(phase)s (over its time limit)"
|
||||
msgstr "%(phase)s (süre sınırını aştı)"
|
||||
|
||||
#: operations/templates/operations/job.html:11
|
||||
#: operations/templates/operations/jobs.html:7
|
||||
#: operations/templates/operations/jobs.html:9
|
||||
|
|
@ -7509,6 +7517,7 @@ msgid "What you checked"
|
|||
msgstr "Neyi kontrol ettiniz"
|
||||
|
||||
#: operations/templates/operations/jobs.html:14
|
||||
#: operations/templatetags/operations.py:90
|
||||
msgid "Worker unavailable, last seen"
|
||||
msgstr "İşçi kullanılamıyor, son görülme"
|
||||
|
||||
|
|
@ -7586,6 +7595,36 @@ msgid_plural "%(count)d seconds"
|
|||
msgstr[0] "%(count)d saniye"
|
||||
msgstr[1] "%(count)d saniye"
|
||||
|
||||
#: operations/templatetags/operations.py:84
|
||||
msgctxt "verb"
|
||||
msgid "Open"
|
||||
msgstr "Aç"
|
||||
|
||||
#: operations/templatetags/operations.py:86
|
||||
msgid "Dismiss"
|
||||
msgstr "Kapat"
|
||||
|
||||
#: operations/templatetags/operations.py:87
|
||||
msgid "Finishing…"
|
||||
msgstr "Bitiriliyor…"
|
||||
|
||||
#: operations/templatetags/operations.py:88
|
||||
msgid "Files not removed:"
|
||||
msgstr "Silinmeyen dosyalar:"
|
||||
|
||||
#: operations/templatetags/operations.py:89
|
||||
msgid "A short operation is in progress."
|
||||
msgstr "Kısa bir işlem sürüyor."
|
||||
|
||||
#: operations/templatetags/operations.py:92
|
||||
#, python-format
|
||||
msgid "Cancel failed (HTTP %(status)s)."
|
||||
msgstr "İptal edilemedi (HTTP %(status)s)."
|
||||
|
||||
#: operations/templatetags/operations.py:93
|
||||
msgid "Cancel failed: the server could not be reached."
|
||||
msgstr "İptal edilemedi: sunucuya ulaşılamadı."
|
||||
|
||||
#: operations/utils.py:52
|
||||
msgid "The host of this virtual machine cannot be reached right now."
|
||||
msgstr "Bu sanal makinenin sunucusuna şu anda ulaşılamıyor."
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -7,7 +7,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2026-11-02 20:06+0000\n"
|
||||
"POT-Creation-Date: 2026-11-02 20:32+0000\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
|
|
@ -99,6 +99,7 @@ msgstr "一年后"
|
|||
#: admin/templates/admin/user_form.html:16
|
||||
#: admin/templates/admin/user_list.html:58
|
||||
#: operations/templates/operations/jobs.html:15
|
||||
#: operations/templatetags/operations.py:91
|
||||
msgid "never"
|
||||
msgstr "永不"
|
||||
|
||||
|
|
@ -286,6 +287,7 @@ msgstr "修改密码"
|
|||
#: nwfilters/templates/create_nwfilter_block.html:33
|
||||
#: nwfilters/templates/nwfilter.html:178 nwfilters/templates/nwfilters.html:93
|
||||
#: operations/templates/operations/job.html:31
|
||||
#: operations/templatetags/operations.py:83
|
||||
#: storages/templates/create_stg_block.html:183
|
||||
#: storages/templates/create_stg_vol_block.html:35
|
||||
#: storages/templates/create_stg_vol_block.html:68
|
||||
|
|
@ -3498,6 +3500,7 @@ msgid "OS details"
|
|||
msgstr "操作系统详情"
|
||||
|
||||
#: instances/templates/instance.html:39
|
||||
#: operations/templatetags/operations.py:85
|
||||
msgid "Refresh"
|
||||
msgstr "刷新"
|
||||
|
||||
|
|
@ -7120,6 +7123,11 @@ msgid ""
|
|||
"rules and references."
|
||||
msgstr "字母、数字、点、短横线和下划线。副本包含该过滤器的规则和引用。"
|
||||
|
||||
#: operations/api/serializers.py:35
|
||||
#, python-format
|
||||
msgid "%(phase)s (over its time limit)"
|
||||
msgstr "%(phase)s(已超出时间限制)"
|
||||
|
||||
#: operations/templates/operations/job.html:11
|
||||
#: operations/templates/operations/jobs.html:7
|
||||
#: operations/templates/operations/jobs.html:9
|
||||
|
|
@ -7192,6 +7200,7 @@ msgid "What you checked"
|
|||
msgstr "检查内容"
|
||||
|
||||
#: operations/templates/operations/jobs.html:14
|
||||
#: operations/templatetags/operations.py:90
|
||||
msgid "Worker unavailable, last seen"
|
||||
msgstr "工作进程不可用,最后在线时间"
|
||||
|
||||
|
|
@ -7268,6 +7277,36 @@ msgid "%(count)d second"
|
|||
msgid_plural "%(count)d seconds"
|
||||
msgstr[0] "%(count)d 秒"
|
||||
|
||||
#: operations/templatetags/operations.py:84
|
||||
msgctxt "verb"
|
||||
msgid "Open"
|
||||
msgstr "打开"
|
||||
|
||||
#: operations/templatetags/operations.py:86
|
||||
msgid "Dismiss"
|
||||
msgstr "关闭"
|
||||
|
||||
#: operations/templatetags/operations.py:87
|
||||
msgid "Finishing…"
|
||||
msgstr "即将完成…"
|
||||
|
||||
#: operations/templatetags/operations.py:88
|
||||
msgid "Files not removed:"
|
||||
msgstr "未删除的文件:"
|
||||
|
||||
#: operations/templatetags/operations.py:89
|
||||
msgid "A short operation is in progress."
|
||||
msgstr "有一个短操作正在进行。"
|
||||
|
||||
#: operations/templatetags/operations.py:92
|
||||
#, python-format
|
||||
msgid "Cancel failed (HTTP %(status)s)."
|
||||
msgstr "取消失败(HTTP %(status)s)。"
|
||||
|
||||
#: operations/templatetags/operations.py:93
|
||||
msgid "Cancel failed: the server could not be reached."
|
||||
msgstr "取消失败:无法连接到服务器。"
|
||||
|
||||
#: operations/utils.py:52
|
||||
msgid "The host of this virtual machine cannot be reached right now."
|
||||
msgstr "当前无法连接此虚拟机所在的主机。"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue