Do not extract strings from test case files for localization / translation.
They are not exposed to users, and localizing wastes translators' time.
Closes T15815
Differential D25624
Make i18n string extraction ignore strings in test case files pppery on May 7 2024, 22:01. Authored by Tags None Referenced Files
Details
Do not extract strings from test case files for localization / translation. Closes T15815
Diff Detail
Event TimelineComment Actions I tested this one-liner as part of the downstream conversation that pppery and I had in https://phabricator.wikimedia.org/T363364, still I would ideally prefer another upstream opinion before accepting this revision as O1. Comment Actions Thanks. To reviewers: maybe relevant, maybe not: Unfortunately I don't have the big picture here. Still learning what TranslateWiki heroes are doing and could do. Comment Actions I'd be worried that this might break some tests that do relate to translation/extraction, but running arc unit --everything should solve that. I think it makes sense not to try to translate the tests themselves. Comment Actions arc unit --everything passed. But I don't think this file is covered by tests at all, Comment Actions (that was me, I didn't have git author configured properly from on the system I landed from) Comment Actions For the record: If I replace the entire file with just: <?php final class PhabricatorInternationalizationManagementExtractWorkflow extends PhabricatorInternationalizationManagementWorkflow { } arc unit --everything still passes. So that file doesn't appear to be covered by tests at all, which is what I expected. |