diff --git a/controller/internal/i18n/locales/en.json b/controller/internal/i18n/locales/en.json index ae6066c..f15c55a 100644 --- a/controller/internal/i18n/locales/en.json +++ b/controller/internal/i18n/locales/en.json @@ -1201,7 +1201,7 @@ "deploy.nem_elerheto": "{{$.CurrentHDDPath}} (not available)", "deploy.nhasznalja_a_generalas_gombot_vagy": "\\nUse the Generate button or type a password.", "deploy.nincs_eleg_memoria": "Not enough memory", - "deploy.nincs_eleg_memoria_foglalas_telepites": "Not enough memory! Reserved after install: {{.AfterMB}} MB / {{.UsableMB}} MB", + "deploy.nincs_eleg_memoria_foglalas_telepites": "There is not enough memory for this app next to the apps already installed: after the install it would need {{.AfterMB}} MB, and the machine can give {{.UsableMB}} MB. Remove an app you do not need, or use a machine with more memory.", "deploy.nincs_eleg_szabad_tarhely": "Not enough free storage", "deploy.nincs_eleg_szabad_tarhely_a": "Not enough free storage for the install. {{.DockerFreeHuman}} is free now, and the system keeps\n {{.DockerReserveHuman}} in reserve to protect the core services (controller, proxy).\n So the install is blocked for now — free up space, or add storage.", "deploy.nincs_regisztralt_adattarolo_adja_meg": "No registered data storage — enter the path by hand", diff --git a/controller/internal/i18n/locales/hu.json b/controller/internal/i18n/locales/hu.json index 50ffeee..60b2859 100644 --- a/controller/internal/i18n/locales/hu.json +++ b/controller/internal/i18n/locales/hu.json @@ -1196,7 +1196,7 @@ "deploy.nem_elerheto": "{{$.CurrentHDDPath}} (nem elérhető)", "deploy.nhasznalja_a_generalas_gombot_vagy": "\\nHasználd a Generálás gombot vagy írj be egy jelszót.", "deploy.nincs_eleg_memoria": "Nincs elég memória", - "deploy.nincs_eleg_memoria_foglalas_telepites": "Nincs elég memória! Foglalás telepítés után: {{.AfterMB}} MB / {{.UsableMB}} MB", + "deploy.nincs_eleg_memoria_foglalas_telepites": "Nincs elég memória ehhez az alkalmazáshoz a már telepítettek mellett: telepítés után {{.AfterMB}} MB kellene, a gép {{.UsableMB}} MB-ot tud adni. Távolíts el egy alkalmazást, amelyre nincs szükséged, vagy használj több memóriájú gépet.", "deploy.nincs_eleg_szabad_tarhely": "Nincs elég szabad tárhely", "deploy.nincs_eleg_szabad_tarhely_a": "Nincs elég szabad tárhely a telepítéshez. Jelenleg {{.DockerFreeHuman}} szabad, és a rendszer\n {{.DockerReserveHuman}} tartalékot tart fenn az alapszolgáltatások (vezérlő, proxy) védelmében.\n A telepítés ezért átmenetileg le van tiltva — szabadíts fel helyet, vagy bővítsd a tárhelyet.", "deploy.nincs_regisztralt_adattarolo_adja_meg": "Nincs regisztrált adattároló — add meg kézzel az útvonalat", diff --git a/controller/internal/stacks/r553_deploy_error_kinds_test.go b/controller/internal/stacks/r553_deploy_error_kinds_test.go index 28b43ee..e19e393 100644 --- a/controller/internal/stacks/r553_deploy_error_kinds_test.go +++ b/controller/internal/stacks/r553_deploy_error_kinds_test.go @@ -1,6 +1,7 @@ package stacks import ( + "encoding/json" "errors" "io" "log" @@ -176,4 +177,22 @@ func TestR1125_NotEnoughMemorySaysWhatToDo(t *testing.T) { } } } + // The install page says it first (deploy.html's blocked memory box): the same advice, in both bundles. + for lang, w := range map[string][]string{"hu": {"a már telepítettek mellett", "Távolíts el egy alkalmazást", "több memóriájú gépet"}, + "en": {"next to the apps already installed", "Remove an app", "a machine with more memory"}} { + b, err := os.ReadFile("../i18n/locales/" + lang + ".json") + if err != nil { + t.Fatal(err) + } + var m map[string]string + if err := json.Unmarshal(b, &m); err != nil { + t.Fatal(err) + } + page := m["deploy.nincs_eleg_memoria_foglalas_telepites"] + for _, x := range w { + if !strings.Contains(page, x) { + t.Errorf("%s: the install page's memory box does not say %q: %q", lang, x, page) + } + } + } } diff --git a/controller/internal/web/i18n_cases_a_test.go b/controller/internal/web/i18n_cases_a_test.go index 0dc7623..6e6700e 100644 --- a/controller/internal/web/i18n_cases_a_test.go +++ b/controller/internal/web/i18n_cases_a_test.go @@ -181,10 +181,12 @@ func i18nCasesA() []i18nCase { {"deploy_new", "deploy", func() map[string]interface{} { return i18nDeployData(false, stacks.StateNotDeployed, 1) }}, - {"deploy_new_blocked", "deploy", func() map[string]interface{} { + // R-1125 (v0.327.0, D10 = A): this page shows the same memory sentence — re-captured under this name. + {"deploy_new_blocked_r1125", "deploy", func() map[string]interface{} { return i18nDeployData(false, stacks.StateNotDeployed, 2) }}, - {"deploy_new_memory_blocked", "deploy", func() map[string]interface{} { + // R-1125 (v0.327.0, D10 = A): the blocked sentence says what to do — fixture re-captured under this name. + {"deploy_new_memory_blocked_r1125", "deploy", func() map[string]interface{} { return i18nDeployData(false, stacks.StateNotDeployed, 3) }}, // v0.322.0 (R-1103): `deploy_installed` and `deploy_installed_restored` are retired — the install form no longer diff --git a/controller/internal/web/testdata/i18n_parity/deploy_new_blocked.html b/controller/internal/web/testdata/i18n_parity/deploy_new_blocked_r1125.html similarity index 99% rename from controller/internal/web/testdata/i18n_parity/deploy_new_blocked.html rename to controller/internal/web/testdata/i18n_parity/deploy_new_blocked_r1125.html index d4aa84a..f2eccb2 100644 --- a/controller/internal/web/testdata/i18n_parity/deploy_new_blocked.html +++ b/controller/internal/web/testdata/i18n_parity/deploy_new_blocked_r1125.html @@ -201,7 +201,7 @@
- Nincs elég memória! Foglalás telepítés után: 5000 MB / 4000 MB + Nincs elég memória ehhez az alkalmazáshoz a már telepítettek mellett: telepítés után 5000 MB kellene, a gép 4000 MB-ot tud adni. Távolíts el egy alkalmazást, amelyre nincs szükséged, vagy használj több memóriájú gépet.
diff --git a/controller/internal/web/testdata/i18n_parity/deploy_new_memory_blocked.html b/controller/internal/web/testdata/i18n_parity/deploy_new_memory_blocked_r1125.html similarity index 99% rename from controller/internal/web/testdata/i18n_parity/deploy_new_memory_blocked.html rename to controller/internal/web/testdata/i18n_parity/deploy_new_memory_blocked_r1125.html index 2cd18ba..1bd57dc 100644 --- a/controller/internal/web/testdata/i18n_parity/deploy_new_memory_blocked.html +++ b/controller/internal/web/testdata/i18n_parity/deploy_new_memory_blocked_r1125.html @@ -201,7 +201,7 @@
- Nincs elég memória! Foglalás telepítés után: 5000 MB / 4000 MB + Nincs elég memória ehhez az alkalmazáshoz a már telepítettek mellett: telepítés után 5000 MB kellene, a gép 4000 MB-ot tud adni. Távolíts el egy alkalmazást, amelyre nincs szükséged, vagy használj több memóriájú gépet.