Closed (duplicate)
Project:
Signup
Version:
5.x-2.7
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Dec 2008 at 17:07 UTC
Updated:
23 Dec 2008 at 09:06 UTC
Jump to comment: Most recent file
Comments
Comment #1
olio commentedOops!
I'm sorry, but I posted the wrong patch... Here is the correct one! (Only the $key element needs translation in both functions).
Comment #2
dwwA) You don't understand how t() works. You can't put variables in there like this.
B) This request is duplicate: #181272: can't translate labels on the signup form?
Comment #3
olio commentedOh, very polite reply ...
Anyway, in my case it works - so far my understanding of t() seems to be sufficient.
Comment #4
dww@olio: Sorry, I've been pretty heavily jetlagged the past few days -- traveling for the holidays. And, I deal with *a lot* of duplicate issues, so I'm a little harsh about that sometimes. ;)
Anyway, I re-read the API docs for t() and discovered there's an edge-case where using a variable inside t() is ok (even though the potx.php extractor throws error messages if you do it). See #181272-2: can't translate labels on the signup form?.
Cheers,
-Derek
Comment #5
olio commentedHi Derek,
thanks for your replies and explanations! Up to now, I only read the API docs for Drupal 5, not those for Drupal 6 where usage of variables inside t() is better explained. Definitely I should broaden my horizont to D6 (my first New Year's pledge). ;o)
Thanks again,
Oli