Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In core/modules/views/src/Tests/ModuleTest.php there is a translatable string "Make sure that a broken handler of type: @type are created". Grammatically this string has to be "Make sure that a broken handler of type: @type is created".
As this text string is the source for translation I'll create this issue, which of course have only a minor priority.
Comment | File | Size | Author |
---|---|---|---|
#19 | 2574719-19.patch | 1.09 KB | chegor |
Comments
Comment #2
R.Hendel CreditAttribution: R.Hendel at comm-press commentedComment #3
pguillard CreditAttribution: pguillard commented@R.Hendel : I hope I didn't shortcut your work, it seems that you assigned the bug whe creating it.
Comment #4
R.Hendel CreditAttribution: R.Hendel at comm-press commentedI've looking over the patch and it does exactly what expected:
String "Make sure that a broken handler of type: @type are created" is replaced trough string "Make sure that a broken handler of type: @type is created".
Comment #5
lucastockmann CreditAttribution: lucastockmann at undpaul commented+1 rtbc
Comment #6
Blanca.Esqueda CreditAttribution: Blanca.Esqueda commented+1 rtbc
Comment #7
alexpottThis is using t() in an assertion message which is incorrect too - let's fix that here.
Comment #8
snehi CreditAttribution: snehi at Publicis Sapient for Publicis Sapient commented@Alex can you give an idea what to do with t()
Comment #9
snehi CreditAttribution: snehi at Publicis Sapient for Publicis Sapient commentedPlease review attached.
Comment #10
snehi CreditAttribution: snehi at Publicis Sapient for Publicis Sapient commentedComment #13
snehi CreditAttribution: snehi at Publicis Sapient for Publicis Sapient commentedComment #14
pguillard CreditAttribution: pguillard commentedI guess this is RTBC+1 but postponed to Drupal 8.1.0
Comment #15
Chi CreditAttribution: Chi commentedformat_string() is a depreciated function. Let's use FormattableMarkup instead.
Comment #16
chegor CreditAttribution: chegor as a volunteer commentedPlease review attached.
Comment #18
Chi CreditAttribution: Chi commentedI propose ending the message with a period and wrapping it with single quotation marks instead of double as it is done for all other messages in that file. Just for consistency.
Comment #19
chegor CreditAttribution: chegor as a volunteer commentedupdated
Comment #20
Chi CreditAttribution: Chi commentedComment #23
Chi CreditAttribution: Chi commentedBack to RTBC since PHP 5.3 and PHP 5.4 tests should not affect D8 issues.
Comment #25
Chi CreditAttribution: Chi commentedComment #26
xjmI started to move this to 8.1.x per https://www.drupal.org/core/d8-allowed-changes#minor, but actually the string is only on a test assertion message, which is not supposed to be translated in the first place. So keeping filed against 8.0.x for now to discuss more whether this should go into a patch release or not. Thanks for the patch.
Comment #27
alexpottWorking from @xjm'a post release triage document, this is a test only change and therefore can be committed at any time. Committed 801cc23 and pushed to 8.0.x and 8.1.x. Thanks!