Skip to content

[FEATURE] Discover project site label files - #2

Open
NamelessCoder wants to merge 1 commit into
TYPO3:mainfrom
NamelessCoder:feature/global-site-label-discovery
Open

[FEATURE] Discover project site label files#2
NamelessCoder wants to merge 1 commit into
TYPO3:mainfrom
NamelessCoder:feature/global-site-label-discovery

Conversation

@NamelessCoder

Copy link
Copy Markdown

typo3_label_lookup now reads XLF files below config/sites beside the installation result and recursively follows the package directories TYPO3 searches. Each reported resource carries diagnostics for its naming convention and the static source paths that reference it; a conventional site-set labels.xlf records its adjacent config.yaml as an implicit reference.

An unreferenced resource stays searchable and gains a warning. A translation domain can be assembled at runtime, so excluding the file would turn an incomplete static scan into a claim about runtime use.

R-ANS-038 and D-ANS-127 carry the contract and reasoning.

typo3_label_lookup now reads XLF files below config/sites beside the installation result and recursively follows the package directories TYPO3 searches. Each reported resource carries diagnostics for its naming convention and the static source paths that reference it; a conventional site-set labels.xlf records its adjacent config.yaml as an implicit reference.

An unreferenced resource stays searchable and gains a warning. A translation domain can be assembled at runtime, so excluding the file would turn an incomplete static scan into a claim about runtime use.

R-ANS-038 and D-ANS-127 carry the contract and reasoning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant