Translations with undefined domain?

Open
#7,722 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
php, symfony

Research direction

Reproduce the issue with php bin\console tran:ex --force en, then compare undefined+intl-icu.en.xlf with EasyAdminBundle.en.xlf. Trace where the paginator keys and download key acquire their translation domain. Done when the behavior is explained and the translations are consistently assigned to the intended domain without unintended duplicates.

Written by the indexing model from the issue text.

Description

Describe the bug
I was just wondering about some translations that seem to have an undefined domain:
Up until now it was only "download" that was added (to the file _undefined+intl-icu.en.xlf when extracting translations).
Today the following keys were added to the file (after updating to v5.2.0):

  • paginator.label
  • paginator.first
  • paginator.more_pages
  • paginator.last
  • paginator.results
  • paginator.previous
  • paginator.next

To Reproduce
Install easyadmin-bundle and extract translations (e.g. php bin\console tran:ex --force en).

(OPTIONAL) Additional context
Not really a bug as the translations work with the "undefined"-domain, I was just curious if this was intentional or if the mentioned translations should go into EasyAdminBundle.en.xlf (especially as the new keys "paginator.label" and "paginator.more_pages" are also added to that file as duplicates).

Dominant language
PHP
Stars
4.3k
Forks
1.1k
Avg merge
2d 9h
Merged PRs (30d)
52

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 EasyCorp/EasyAdminBundle

All issues in EasyCorp/EasyAdminBundle

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.