Share drop multipart: check quota before spooling; leftover #869/#870 polish #872

Closed
opened 2026-10-10 15:38:17 +00:00 by Cordy · 4 comments
Owner

Follow-ups that were deferred from batch-v07e (#871).

1. Share drop multipart spools before the quota check. A /s/... multipart POST writes the whole part to the spool before the quota is checked. The Upload progress deadline bounds the time this takes, but not the disk it uses. Fix: check the remaining quota against the declared length first, or wrap the spool in a quota-bounded writer. Add a test: an upload to a full space is refused before more than 1 chunk has been spooled.

2. Gaps in the i18n guard (web/test/i18n-style.test.js):

  • IT_TU misses the verb forms sei/fai/sai.
  • The quote rule does not catch „ in IT/FR.
  • "rifiuti" in the tu-imperative list gives false positives, because the word is also a noun.
  • IT_BUTTON_SUFFIX (Title|Label|Hd|…) is broader than "small and explicit". Narrow it to a named list.

3. de-CH quotes. The Swiss convention uses «…». This can be added through the I18N_DE_CH override hook, or by having deCH() convert „…“, if wanted.

4. Terminology still unsettled in IT. "livello gratuito" and "piano gratuito" are both used, and so are "storage" and "archiviazione". Pick one of each and add them to the guide's terminology table.

5. luPost errors don't go through the api() code→message map yet, so local-user admin calls still show the raw English text for body-too-large and bad-request.

Follow-ups that were deferred from batch-v07e (#871). **1. Share drop multipart spools before the quota check.** A `/s/...` multipart POST writes the whole part to the spool before the quota is checked. The Upload progress deadline bounds the time this takes, but not the disk it uses. Fix: check the remaining quota against the declared length first, or wrap the spool in a quota-bounded writer. Add a test: an upload to a full space is refused before more than 1 chunk has been spooled. **2. Gaps in the i18n guard (`web/test/i18n-style.test.js`):** - `IT_TU` misses the verb forms sei/fai/sai. - The quote rule does not catch „ in IT/FR. - "rifiuti" in the tu-imperative list gives false positives, because the word is also a noun. - `IT_BUTTON_SUFFIX` (`Title|Label|Hd|…`) is broader than "small and explicit". Narrow it to a named list. **3. de-CH quotes.** The Swiss convention uses «…». This can be added through the `I18N_DE_CH` override hook, or by having `deCH()` convert „…“, if wanted. **4. Terminology still unsettled in IT.** "livello gratuito" and "piano gratuito" are both used, and so are "storage" and "archiviazione". Pick one of each and add them to the guide's terminology table. **5. `luPost` errors** don't go through the `api()` code→message map yet, so local-user admin calls still show the raw English text for `body-too-large` and `bad-request`.
Author
Owner

Decision (Nikola, 2026-10-10), item 3: Deutsch (Schweiz) uses «…» quotes, the clean Swiss form. de keeps „…“. This will be done through the I18N_DE_CH / deCH() derivation.

Item 4: research is in progress. Nikola doesn't read Italian, so the decision will be made from a comparison of how other products use the terms. OpenCloud and Seafile are checked first.

**Decision (Nikola, 2026-10-10), item 3:** Deutsch (Schweiz) uses «…» quotes, the clean Swiss form. `de` keeps „…“. This will be done through the `I18N_DE_CH` / `deCH()` derivation. **Item 4:** research is in progress. Nikola doesn't read Italian, so the decision will be made from a comparison of how other products use the terms. OpenCloud and Seafile are checked first.
Author
Owner

Research: Italian terminology (item 4) and the three open IT phrasings (2026-10-10)

Every string below was read in a fetched source: translation files in the repos, or localized vendor pages. OpenCloud and Seafile were checked first. Two gaps: OpenCloud's web translations are a single minified file that the fetch cut off before the it block, so its server .po files and Android app (same Transifex team) were used instead. Seafile's djangojs.po was also truncated.

A. Free tier/plan → piano gratuito (6 sources)

Product Italian
Proton "piano Proton Free", "piani a pagamento"
Dropbox "Trova il tuo piano", plan card "Gratis"
Microsoft 365 tab "Gratuito", "utente gratuito"
Google One "piano Google One", "piani di archiviazione"
Azure (machine translation) mixes "livello gratuito" with "piano tariffario … Gratuito"
OpenCloud / Seafile no plan strings

"livello gratuito" appears only in Azure's machine-translated docs, as SKU jargon.

B1. Storage shown to users → Spazio di archiviazione, "3 GB di 10 GB utilizzati", quota (7 sources)

  • OpenCloud Android: "%1$s di %2$s utilizzati", "Archiviazione piena"
  • Seafile: "Utilizzato:", "Utilizzo dello spazio", "Imposta la quota"
  • Nextcloud: "{used} di {quota} utilizzati", "Lo spazio di archiviazione è pieno"
  • Google, Microsoft, Dropbox, Proton: all use "spazio di archiviazione"

No source leaves "storage" in English. "memoria" appears only as a stray in Microsoft's machine translation.

B2. Storage backend (admin) → archiviazione (Nextcloud and ownCloud, identical)

"Motore di archiviazione "%s" non valido", "Archiviazione esterna", "Tipo di archiviazione", "Archiviazione S3". Both projects split the terms the same way: "archiviazione" for the technical object, "spazio di archiviazione" for the amount.

C1. "If this wasn't you, change your password" → «Se non si riconosce questo accesso, cambiare subito la password.»

Google ("Non riconosco questa attività"), Microsoft ("Non sono stato io"), Apple ("attività … che non riconosci") and Nextcloud all use tu. None uses voi. The proposed text keeps their "non riconosci" pattern in Cairn's impersonal register and avoids the gendered "stati voi". Short form: «Accesso non riconosciuto? Cambiare la password.»

"fino a revoca" is an established Italian legal clause meaning open-ended until withdrawn (secondary legal source). Microsoft Purview's Italian is machine-translated and inconsistent ("blocco", "sospensione infinita", "Attesa di contenzioso"). No source supports "fino a nuovo avviso/ordine". Swiss usage is unverified because TERMDAT and Fedlex need JavaScript. Optional gloss: «I dati vengono conservati finché il blocco non viene revocato».

C3. "commissione del personale" → rappresentanza del personale (generic)

SECO (on the Labour Act, art. 48) uses "rappresentanza dei lavoratori"; Swissmem uses "Rappresentanza del personale". "commissione del personale" is a real Swiss name, but for one specific company body (SBB's "CoPe"). RSU is Italian, not Swiss.

The full report with source URLs is in scratch: b7e/it-terms-research.md.

## Research: Italian terminology (item 4) and the three open IT phrasings (2026-10-10) Every string below was read in a fetched source: translation files in the repos, or localized vendor pages. OpenCloud and Seafile were checked first. Two gaps: OpenCloud's *web* translations are a single minified file that the fetch cut off before the `it` block, so its server `.po` files and Android app (same Transifex team) were used instead. Seafile's `djangojs.po` was also truncated. ### A. Free tier/plan → **piano gratuito** (6 sources) | Product | Italian | |---|---| | Proton | "piano Proton Free", "piani a pagamento" | | Dropbox | "Trova il tuo piano", plan card "Gratis" | | Microsoft 365 | tab "Gratuito", "utente gratuito" | | Google One | "piano Google One", "piani di archiviazione" | | Azure (machine translation) | mixes "livello gratuito" with "piano tariffario … Gratuito" | | OpenCloud / Seafile | no plan strings | "livello gratuito" appears only in Azure's machine-translated docs, as SKU jargon. ### B1. Storage shown to users → **Spazio di archiviazione**, **"3 GB di 10 GB utilizzati"**, **quota** (7 sources) - **OpenCloud Android:** "%1$s di %2$s utilizzati", "Archiviazione piena" - **Seafile:** "Utilizzato:", "Utilizzo dello spazio", "Imposta la quota" - **Nextcloud:** "{used} di {quota} utilizzati", "Lo spazio di archiviazione è pieno" - **Google, Microsoft, Dropbox, Proton:** all use "spazio di archiviazione" No source leaves "storage" in English. "memoria" appears only as a stray in Microsoft's machine translation. ### B2. Storage backend (admin) → **archiviazione** (Nextcloud and ownCloud, identical) "Motore di archiviazione \"%s\" non valido", "Archiviazione esterna", "Tipo di archiviazione", "Archiviazione S3". Both projects split the terms the same way: "archiviazione" for the technical object, "spazio di archiviazione" for the amount. ### C1. "If this wasn't you, change your password" → **«Se non si riconosce questo accesso, cambiare subito la password.»** Google ("Non riconosco questa attività"), Microsoft ("Non sono stato io"), Apple ("attività … che non riconosci") and Nextcloud all use *tu*. None uses *voi*. The proposed text keeps their "non riconosci" pattern in Cairn's impersonal register and avoids the gendered "stati voi". Short form: «Accesso non riconosciuto? Cambiare la password.» ### C2. Legal hold «conservare fino a revoca» → **keep** "fino a revoca" is an established Italian legal clause meaning open-ended until withdrawn (secondary legal source). Microsoft Purview's Italian is machine-translated and inconsistent ("blocco", "sospensione infinita", "Attesa di contenzioso"). No source supports "fino a nuovo avviso/ordine". Swiss usage is unverified because TERMDAT and Fedlex need JavaScript. Optional gloss: «I dati vengono conservati finché il blocco non viene revocato». ### C3. "commissione del personale" → **rappresentanza del personale** (generic) SECO (on the Labour Act, art. 48) uses "rappresentanza dei lavoratori"; Swissmem uses "Rappresentanza del personale". "commissione del personale" is a real Swiss name, but for one specific company body (SBB's "CoPe"). RSU is Italian, not Swiss. The full report with source URLs is in scratch: `b7e/it-terms-research.md`.
Author
Owner

OpenCloud live (demo.opencloud.eu, UI set to Italian, then reverted to English)

  • Spaces list columns: "Quota rimanente", "Quota totale", "Quota utilizzata". Action: "Modifica quota".
  • Space details: "Quota: 2,8 MB di 1 GB used (0.28%)". The "used" is left untranslated in their file.
  • User menu: "852 kB usato".
  • Register: tu throughout ("Seleziona la tua lingua", "Inviami una notifica"). Buttons use the 2nd person singular.
  • OpenCloud has no "storage" label and uses "quota" for users. This fits the B1 recommendation ("quota" for the limit, "X di Y utilizzati").

Live check of v0.6.326 on files-bao (signed in as Nikola)

  • de-CH: <html lang="de-CH">, numbers 1'234'567.5, no ß on screen. de gives 1.234.567,5. FR gives 1 234 567,5, dates 31/12/2026. IT matches.
  • Translated: chrome labels, sidebar and admin rail in all languages. FR shows "Importer un fichier" and "Conservation et blocages légaux"; IT shows "Conservazione e blocchi legali".

New findings (pre-existing, for this issue):

  • Locks and legal holds look alike. The admin rail places Locks right next to Retention & holds:
    • IT: "Blocchi" for locks vs "blocchi legali" for holds.
    • DE: "Sperrungen" vs "Aufbewahrung & Sperren".
    • The locks tab needs a distinct word (IT e.g. "Lock dei file" / "File bloccati"; DE "Dateisperren"). To be decided with the IT terms.
  • The view toggle "List" is untranslated in every language.
  • The storage meter keeps a . decimal ("133 KB von 4.0 GB"). This matches the ruling that fmtSize stays ISO. Revisit only if wanted.
## OpenCloud live (demo.opencloud.eu, UI set to Italian, then reverted to English) - Spaces list columns: "Quota rimanente", "Quota totale", "Quota utilizzata". Action: "Modifica quota". - Space details: "Quota: 2,8 MB di 1 GB used (0.28%)". The "used" is left untranslated in their file. - User menu: "852 kB usato". - Register: *tu* throughout ("Seleziona la tua lingua", "Inviami una notifica"). Buttons use the 2nd person singular. - OpenCloud has no "storage" label and uses **"quota"** for users. This fits the B1 recommendation ("quota" for the limit, "X di Y utilizzati"). ## Live check of v0.6.326 on files-bao (signed in as Nikola) - **de-CH:** `<html lang="de-CH">`, numbers `1'234'567.5`, no ß on screen. `de` gives `1.234.567,5`. FR gives `1 234 567,5`, dates `31/12/2026`. IT matches. - **Translated:** chrome labels, sidebar and admin rail in all languages. FR shows "Importer un fichier" and "Conservation et blocages légaux"; IT shows "Conservazione e blocchi legali". **New findings (pre-existing, for this issue):** - **Locks and legal holds look alike.** The admin rail places *Locks* right next to *Retention & holds*: - IT: "Blocchi" for locks vs "blocchi legali" for holds. - DE: "Sperrungen" vs "Aufbewahrung & Sperren". - The locks tab needs a distinct word (IT e.g. "Lock dei file" / "File bloccati"; DE "Dateisperren"). To be decided with the IT terms. - The view toggle "List" is untranslated in every language. - The storage meter keeps a `.` decimal ("133 KB von 4.0 GB"). This matches the ruling that fmtSize stays ISO. Revisit only if wanted.
Author
Owner

Decisions (Nikola, 2026-10-10), accepted as a set:

  • IT free plan: piano gratuito (paid: piano a pagamento).
  • IT storage shown to users: spazio di archiviazione; limit quota; usage line "X di Y utilizzati".
  • IT storage in admin/technical contexts: archiviazione (archiviazione esterna, backend di archiviazione).
  • IT "if this wasn't you": «Se non si riconosce questo accesso, cambiare subito la password.»
  • IT legal hold: keep «conservare fino a revoca».
  • IT works council: rappresentanza del personale. "commissione del personale" is used only for a specific named committee.
  • de-CH quotes: «…» (decided earlier today).

Next: research how to name the locks tab in IT and DE (it collides with legal holds), then spec and plan for the #872 run.

**Decisions (Nikola, 2026-10-10), accepted as a set:** - IT free plan: **piano gratuito** (paid: piano a pagamento). - IT storage shown to users: **spazio di archiviazione**; limit **quota**; usage line "X di Y utilizzati". - IT storage in admin/technical contexts: **archiviazione** (archiviazione esterna, backend di archiviazione). - IT "if this wasn't you": **«Se non si riconosce questo accesso, cambiare subito la password.»** - IT legal hold: keep **«conservare fino a revoca»**. - IT works council: **rappresentanza del personale**. "commissione del personale" is used only for a specific named committee. - de-CH quotes: **«…»** (decided earlier today). Next: research how to name the locks tab in IT and DE (it collides with legal holds), then spec and plan for the #872 run.
Cordy referenced this issue from a commit 2026-10-10 18:12:12 +00:00
Cordy closed this issue 2026-10-10 18:15:35 +00:00
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#872
No description provided.