Can't seem to get Translation to work
rcombes - October 12, 2009 - 18:13
| Project: | Views Custom Field |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I've been using the CustomField successfully in a custom View but I've run into a problem with the output not getting translated.
Normally the following code would display "years" in English and "años" in Spanish...
... some miscellaneous php code ...
print (t('years'));However, when I display the view in Spanish it gives me "years" instead of "años". Other fields in the View display "años" but not the CustomField. Everything else works fine except the translation in the CustomField. Do I need to insert something into the PHP CustomField to make it work with translation or is this a bug?
Cheers

#1
Yea, this is definitely a problem. If I come up with something, I'll post some info.I take that back. Using t() within a customfield does work. The strings appear in i18n's Translate Interface when I search for them. So no problem here.
#2
subscribing