Project

General

Profile

Actions

Bug #106774

open

Translate button not shown when default language doesn't have content

Added by Daniel Siepmann 23 days ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2025-05-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Steps to reproduce:
  1. Create a blank TYPO3 Site
  2. Configure default language
  3. Configure two additional languages
  4. Create a page in default language
  5. Translate page to the two additional languages
  6. Create content in one additional language

Expected: See "Translate" button in the other additional language, offering to translate from the existing content of the other additional language.
Actual: No "Translate" button.

Adding content to the default language will enable the "Translate" button. Editors are able to select the additional language as base for translation.

The value of l18n_cfg doesn't affect the situation.

Use Cases:
Some websites have a lot of languages, sometimes for multiple countries. There editors need to be able to translate from one Language (e.g. French) in one Country (e.g. France) to the same language (French) in another country (e.g. Switzerland).

This is probably closely related, if not a duplicate of #76274

My investigation showed that TYPO3\CMS\Backend\View\BackendLayout\ContentFetcher->getTranslationData() always only checks for default language via hard coded value 0.
The fluid template will use the outcome to determine whether to show the button in EXT:backend/Resources/Private/Partials/PageLayout/LanguageColumns.html.

I guess the logic needs some tweaking to really determine if there is still anything left for translation, respecting connection - free mode, etc. and the possible sources of translations.


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #76274: Translate Button does not work when no Access to Default languageNew2016-05-23

Actions
Actions #1

Updated by Daniel Siepmann 23 days ago

  • Related to Bug #76274: Translate Button does not work when no Access to Default language added
Actions

Also available in: Atom PDF