R-1125: the install page's memory box says what to do too (fixtures re-captured under new names)
gates / gates (push) Successful in 44s
gates / gates (push) Successful in 44s
deploy.nincs_eleg_memoria_foglalas_telepites (HU + EN) now says the memory is held by the installed apps and to remove one or use a machine with more memory. deploy_new_blocked and deploy_new_memory_blocked re-captured as *_r1125 (only that sentence differs); all other fixtures byte-identical. Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-1
@@ -201,7 +201,7 @@
|
||||
<div class="memory-summary memory-blocked">
|
||||
|
||||
<div class="alert alert-error" style="margin-bottom:0">
|
||||
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.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
+1
-1
@@ -201,7 +201,7 @@
|
||||
<div class="memory-summary memory-blocked">
|
||||
|
||||
<div class="alert alert-error" style="margin-bottom:0">
|
||||
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.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user