Reviewed & tested by the community
Project:
Content Reports
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Dec 2016 at 07:07 UTC
Updated:
16 Jan 2017 at 10:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
bhavikshah9 commentedHere is the patch.
Comment #3
emcoward commented";
Translatable strings shouldn't begin or end with white spaces, use placeholders with t() for variables.
Do not concatenate strings to translatable strings, they should be part of the t() argument.
Do not concatenate strings to translatable strings, they should be part of the t() argument.
Comment #4
KeyboardCowboy@bhavikshah9, if you care to reroll your patch with @emcoward's suggestions I'd be happy to give you commit credit for it. Otherwise I can implement the changes.
Thanks to both of you for your review.
Comment #5
bhavikshah9 commentedHey @emcoward,
Thanks for the review.
I understood about placeholders. But, can you please spare a minute to help me understand about
Two points:
block_help(hook_help of block module in core)which also concatenate strings to translatable strings.Comment #6
aditya.n commented@emcoward, are these the changes you mean? Please review the patch.
Comment #7
amit.drupal commentedUpdate Patch #6
Comment #8
jaykandariHelp Message changed. Attached OLD & NEW screenshots.
Comment #9
emcoward commentedI've reviewed the patch in #7 (2837922-7.patch).
It's looking good apart from a couple of tiny points:
The issue 'Do not concatenate strings to translatable strings, they should be part of the t() argument' could be fixed by doing something like:
Also makes it slightly easier to read/follow.
Comment #10
emcoward commentedComment #11
lomasr commentedAs suggested in #10 . I have made the changes . Please review.
Comment #12
lomasr commentedComment #13
bhavikshah9 commentedHi @emcoward,
Thanks for explaining the reason of 'Do not concatenate strings to translatable strings, they should be part of the t() argument' in comment#9
Here is the updated patch and interdiff.
Comment #14
emcoward commented@bhavikshah9 looks good. Just need to add a space after the opening PHP tag and the comment and it's good to go.
Comment #15
emcoward commentedComment #16
gfcamilo commentedHello,
I added the space after php open tag and passed the drupal code sniffer in the module.
Comment #17
renatog commentedHi.
It's good for me.
Congrats.
Comment #18
lomasr commentedGrt
Comment #19
emcoward commentedLatest patch looks good! Good to go.
Comment #20
opdaviesI'd suggest using
theme('item_list', ...)to add the list rather than concatenating each line of HTML manually.Comment #21
bhavikshah9 commentedHi @opdavies,
That's wonderful. +1 from me.
Comment #22
swaps commentedThis looks good . Working as expected .
Cheers
SwapS