Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
node.module
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
7 Jul 2008 at 22:51 UTC
Updated:
2 Aug 2008 at 19:12 UTC
Jump to comment: Most recent file
This patch removes nine unnecessary strings from translations, and makes the code more easily maintainable.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | characters_1.patch | 1.86 KB | zeta ζ |
| characters.patch | 1.87 KB | zeta ζ |
Comments
Comment #1
damien tournoud commentedGreat, I like that, except that you have to pass '!num characters' to format_plural(): it is totally possible that some (crazy) language out there has a different form for 200 than for 400.
Comment #2
zeta ζ commentedYes, you’re right. I have to put ‘characters’ into format_plural(), so there’s no point in putting the output through t() – is there?
I did look at format_plural(), but decided it could only distinguish singular / plural, because it can only take two input strings: So you can’t use it for primary, secondary, tertiary etc. Now that’s crazy! Also you have to use '@count', so it goes through check_plain too: Good job that this bit isn’t in a loop, 1000 times for each module :-D
Also, changed the helper function name :*)
Comment #3
damien tournoud commentedThis has a slight performance impact, no doubt about it. But the patch looks good. Back to "needs review" for a someone to take a second look at it.
Comment #4
dries commentedLooks good to me. Marking RTBC and will commit unless someone identifies a problem.
Comment #5
damien tournoud commentedStill applies, and looks good to me.
Comment #6
dries commentedCommitted to CVS HEAD. Thanks.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.