Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
color.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2016 at 06:21 UTC
Updated:
12 Feb 2017 at 00:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sandip27 commentedPlease find attached, patch for the same.
Comment #3
sandip27 commentedComment #4
sandip27 commentedComment #5
sandip27 commentedComment #6
panshulk commentedHi @sandip27
Thanks a lot for reporting and picking this up, I have applied the patch above on 7.x-dev . The patch works as expected .
Below are the fixed results of the patch:
Hence moving this to RTBC
Thank You :)
Comment #7
panshulk commentedComment #8
stefan.r commentedComment #9
David_Rothstein commentedhttps://www.drupal.org/docs/7/api/localization-api/when-to-use-st-t-and-... says not to use t() in update functions. Based on that the current code is correct. (Although I suppose there is some debate about that - #1168966: Document not using t() in update functions.)
Also:
Normally we would not move "Appearance settings" out into its own string, but rather leave it in the main string (as the original code did) so it can all be translated at once. See https://www.drupal.org/docs/7/api/localization-api/dynamic-or-static-lin....
This change looks good. We could at least do that on its own, even though it's not related to the other issue :)
Comment #10
sandip27 commented@David_Rothstein, Fair enough.
Please find attached revised patch for
Comment #11
sandip27 commentedComment #12
David_Rothstein commentedLooks good - thanks!
I checked Drupal 8 and this coding standards issue is already fixed there.
Comment #13
stefan.r commentedCommitted and pushed to 7.x, thanks!