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

Open
#764 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
laravel, php, postgresql
Domain
backend, content

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
PHP
Stars
1
Forks
1
Avg merge
1h 40m
Merged PRs (30d)
143

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from temecms/teme

All issues in temecms/teme

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.