Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
user interface text
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2018 at 19:05 UTC
Updated:
9 Nov 2018 at 11:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
svenryen commentedHere's the patch.
Comment #3
svenryen commentedI missed the args parameter from t() docblock. Here's a patch that works :)
Comment #4
svenryen commentedComment #5
efpapado commentedComment #7
svenryen commentedI don't know why the comment says the patch failed testing. All tests are green on the "View results" page and there are no Failing classes.
Comment #10
laravz commentedI've rerun the tests, and they all passed, so I'm resetting the status to Needs review (I've not seen any review remarks).
Comment #11
efpapado commentedComment #12
alexpottOne thing that is interesting about this patch is that it adds this context to every translation of the string
Checkedin core so there is no usage of it being used in the first sense in the issue summary. So we have to ask the question if it is worth breaking people's translations to add this context? There is no fallback to a no context version looking at \Drupal\locale\StringDatabaseStorage::findTranslation() for example.Comment #13
gábor hojtsyI think its worth it in case people mistranslated it it would be a good chance to fix it now. It is such a minimal change that it would be miniscule among all the other string changes / additions in minor release. It should not be backported to 8.6.
Comment #15
catchMakes sense to me as well, there's also the possibility of contrib modules using the same one word in a different context.