Languages: categories and tags can't be translated from the admin, and the list repeats each one per language

Aperta
#764 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
laravel, php, postgresql
Ambito
backend, content

Direzione di ricerca

Start with the term admin: CreateTerm and the TermSiblings translation group, plus the New and Edit forms and the list view that renders one row per term with language marks. Read how posts already handle language, since the issue asks to match that. Done means the outlined mark creates a linked translation, the list collapses to one row per group with a working Language filter, and a cross-language parent is still refused.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area/admin type/bug when/soon

On a site with several languages, Categories and Tags:

  • No way to make a translation. CreateTerm takes a language and terms keep a translation group (TermSiblings), but the New form has no language choice and Edit has no Translate. Only an import makes a category in another language.
  • The language marks can't be used. Each row shows one mark per site language (filled: translated; outlined: not translated), but they are labels only.
  • Every language's copy is its own row, with the same name: one category in seven languages is seven rows ("Beauty+Style", "Beauty+Style", …, addresses beauty-style, beauty-style-pt, …). A site with 45 categories becomes hard to read.

Do, as posts already work and as Polylang does:

  1. The list shows one row per translation group, in the site's default language (or the admin's chosen one), with the marks under it; a Language filter above the list shows one language's terms.
  2. The marks are links: a filled mark opens that language's version for editing; an outlined mark creates it, linked to the group, its name prefilled from the default language, its parent set to the parent's version in that language when there is one.
  3. The New form has a Language select (default: the site's language) on a multilingual site; the Edit form says which language the term is in and lists its other versions.
  4. Counts on a row are that version's own.

Tests: making a translation from an outlined mark links it to the group; the list shows one row per group; the language filter; a parent in another language is refused as now.

Lingua principale
PHP
Stelle
1
Fork
1
Merge medio
1h 40m
PR unite (30g)
143

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di temecms/teme

Tutte le issue di temecms/teme

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.