Use t() or l() where appropriate
Bug #443439 reported by
Pierre Buyle
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
UD Countdown |
Fix Released
|
Medium
|
Michael Lustfield | ||
UD Header |
Fix Released
|
Medium
|
Michael Lustfield | ||
UD Sidebar |
Fix Released
|
Medium
|
Michael Lustfield | ||
UD Theme |
Fix Released
|
Medium
|
Michael Lustfield |
Bug Description
I'm in the process to use this module for the Ubuntu-be.org website. Being Belgium we have four languages for our website. It would be nice to support the standard i18n for headers' text.
As a quick hack, I wrapped $rslt['centertext'] and $rslt['righttext'] into t() in udheader_
A better solution would be to have multiple text area (one for each language) when editing an header.
summary: |
- Support i18n + Use t() or l() where appropriate |
Changed in ubuntu-drupal-theme: | |
assignee: | nobody → Michael Lustfield (mtecknology) |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in ubuntu-drupal-sidebar: | |
assignee: | nobody → Michael Lustfield (mtecknology) |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in ubuntu-drupal-header: | |
assignee: | nobody → Michael Lustfield (mtecknology) |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in ubuntu-drupal-countdown: | |
assignee: | nobody → Michael Lustfield (mtecknology) |
importance: | Undecided → Medium |
status: | New → Triaged |
To post a comment you must log in.
This is more of a generic bug across all modules I've developed. I need to use t() and l() when I'm controlling data that will print to the screen. When I have some time I will run through everything and take care of it.
"A better solution would be to have multiple text area (one for each language) when editing an header."
- This would be very sub-optimal. It is a better idea to leave the translations to drupal by using the correct functions.