Active
Project:
Views Custom Field
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Oct 2009 at 18:13 UTC
Updated:
9 Dec 2009 at 19:04 UTC
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
Comments
Comment #1
Nick Robillard commentedYea, 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.
Comment #2
Bilmar commentedsubscribing