Issue Feature Closed

#107840Enhance language:domain:list command to support filtering and content search

Lina Wolf 10/26/25, 09:16 updated 12/02/25, 12:04

Description

With changes like https://forge.typo3.org/issues/107810 language files will be renamed and moved.

So in my opinion it would be very helpful to be able to search for all language files for the key or text, possibly containing wildcards.

Add a —search <string> option to search for an exact string (case-insensitive) in label keys or default-language text.<br>Add a —regex <pattern> option to use regular expressions for flexible matching.<br>The existing —extension <name> option can be used together with these filters to limit results to a specific extension.</name></pattern></string>

These would be my scenarios:


bin/typo3 language:domain:list --search "Access"

core.general  => EXT:core/Resources/Private/Language/locallang_general.xlf

    - tabs.access => "Access"

frontend.tca => EXT:core/Resources/Private/Language/locallang_general.xlf

    - pages.tabs.access => "Access"
    - fe_users.tabs.access => "Access"
    - sys_template.tabs.access => "Access"

...

bin/typo3 language:domain:list --search "tabs.access"

core.general  => EXT:core/Resources/Private/Language/locallang_general.xlf

    - tabs.access => "Access"

bin/typo3 language:domain:list --regex ".*access.*" -extension core

core.general  => EXT:core/Resources/Private/Language/locallang_general.xlf

    - tabs.access => "Access"

core.file_messages  => EXT:core/Resources/Private/Language/locallang_general.xlf

    - FileUtility.CouldNotAccessAllNecessaryResources => "Could not access all necessary resources. Source file or destination maybe was not within your mountpoints? T="%s", D="%s""

...

While experienced developers can use the power of their IDEs or consoles to search for such strings in the XLF files the same is much harder for integrators or new developers.

Reviews 2

History 1322

  1. Garvin Hicking commented and changed status New Accepted <span data-processor="relativetime" data-value="2025-10-26T11:52:16+00:00" > 10/26/25, 11:52 </span>

    I was planning to add a “json” output there, that could hold all contents (and be translation specific).

    Such a json could then be filtered and grepped for. What do you think? I believe adding the searching/filtering directly in the command could still be helpful though.

    I can offer to work on this.

  2. Lina Wolf commented <span data-processor="relativetime" data-value="2025-10-26T14:26:48+00:00" > 10/26/25, 14:26 </span>

    I think adding the searching and filtering directly would be more convenient to use. the JSON output is more a format when you want to communicate with an external service or some such

  3. Lina Wolf commented <span data-processor="relativetime" data-value="2025-10-27T13:04:41+00:00" > 10/27/25, 13:04 </span>

    I just spoke with Benny and he suggested a separate command just to search for labels. Additional functionallity might be added in the future

  4. Gerrit Code Review pushed patch set 1 for main to change 91614 status Accepted Under Review <span data-processor="relativetime" data-value="2025-11-13T12:58:49+00:00" > 11/13/25, 12:58 </span>

  5. Lina Wolf commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-11-18T18:15:08+00:00" > 11/18/25, 18:15 </span>

    Applied in changeset commit:4b459b3ca2a145772db6952eac0805a3486eed31.