Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
locale.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Jan 2011 at 15:29 UTC
Updated:
27 Jan 2017 at 17:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
plachComment #3
blackdog commentedHmm, using the git version, maybe this works better.
Comment #4
gábor hojtsyTagging.
Comment #5
tstoecklerIf I'm understanding this correctly, maybe the context would be better named 'Plural'?
Comment #6
blackdog commentedYou might be right. Are there any guide lines for naming contexts?
Attached patch names the context "Plural".
Comment #7
sutharsan commentedDiscussion about guidelines can be found at #1035716: [policy, no patch] Decide and document guidelines for using string context. But IMO practical cases like these are the best fuel for the discussion.
I can't find a better context in this case. The only alternative I could come up with ("multiple enabled", "multiple disabled") is not reusable and doesn't add a lot of information.
Comment #8
gábor hojtsyWould need to go to Drupal 8 first though.
Comment #9
sutharsan commentedThe original use case is not applicable to Drupal 8, but I searched the code and came with several others (some of which also apply to D7) where Enables and/or Disabled are used for multiple items. I searched the code for 'Enabled', 'Disabled', "Enabled" and "Disabled".
Some examples: Disabled blocks as admin/structure/block, disabled fields at admin/structure/types/manage/article/form-display, enabled languages as admin/config/regional/language/detection.
Comment #10
alansaviolobo commentedreroll
Comment #12
alansaviolobo commentedended up exporting a reversed patch.
Comment #13
gábor hojtsyLooks good as per above discussion.
Comment #16
gábor hojtsyLooks like a random fail.
Comment #17
alexpottStrings are not frozen in beta. Committed cf5234a and pushed to 8.0.x. Thanks!