Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In follow-up of a drupal-devel discussion about embedded links in t()-strings:
http://lists.drupal.org/archives/drupal-devel/2004-01/msg00116.html
Here's the patch. All static link captions are now inside the translated text. I also clarified the doxygen for t() a bit.
In the future, please pay attention to this: it's a very annoying/boring task to fix, and the less we have to change existing t() strings, the better.
Please review... I've tried to work methodically and exact, but in such a large patch it's likely that an error slipped in which I didn't notice.
Comment | File | Size | Author |
---|---|---|---|
helplinks.patch | 148.53 KB | Steven | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedAnyone opposed to this approach/patch? If so, please speak up now.
Comment #2
Gábor HojtsyAs it was discussed on the devel list, this is needed by some languages, so while my native language does not need this, I am not against the patch :) It will also result in less short strings to load, resuting in less memory consumption when normal users visit pages. In case there is some error in the resulting strings, we can fix that later on (I have not checked all the changes for accuracy of course).
Comment #3
Dries CreditAttribution: Dries commentedI committed this patch to HEAD. The patch was malformed but I could fix it. Thanks.
Comment #4
Dries CreditAttribution: Dries commentedComment #5
(not verified) CreditAttribution: commented