This tiny patch adds a missing period to the end of the drupal_set_message.

CommentFileSizeAuthor
privatemsg_add_period.patch1.06 KBkiz_0987

Comments

umonkey’s picture

%url is wrong; make it @url or !url.

kiz_0987’s picture

Maybe so, but this patch does not touch that part. If the change is required as you suggest then it will need to be made in many more places.

umonkey’s picture

What do you mean by "does not touch that part"? This patch changes the message, it screws up all localizations (for this message), so I think it shouldn't replace one malformed message to another one, differently malformed.

kiz_0987’s picture

Yes, I agree that this will mess up the localizations. Not much I can do about that. What I mean with the "not touch that part" is that this patch only makes 2 changes -- it adds 2 periods. It has not incorrectly changed an original @url or !url to %url, because it is currently %url. There are other places where % is used too, for example in privatemsg_help %privatemsg is used and then on the next line !privatemsg is used. There is probably some work to do to make all this consistent -- this is not something I plan. Honestly I'm regretting putting in this simple patch given the approach that you have taken to providing feedback.

mindless’s picture

it always bugs me when i submit a patch and get complaints about preexisting things.. don't worry, i won't make you deal with that.

mindless’s picture

Assigned: Unassigned » mindless
Status: Needs review » Fixed

added the periods, also added a period on one more drupal_set_message call where the text didn't have one.
also changed %url to !url.. the code works (this is a strtr call, not a t() call), but seems good to change it for consistency with how t() works (also I got an API change into 6.x so format_plural will accept tokens directly).
I updated existing translations for the period and %/! changes.
committed on DRUPAL-5 branch.

Anonymous’s picture

Status: Fixed » Closed (fixed)