Timeline for Right way to translate view Titles?
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 7, 2012 at 12:39 | vote | accept | chefnelone | ||
Aug 7, 2012 at 12:36 | comment | added | Clive♦ | @chefnelone I think the old il8n_views module was integrated into the main il8n module, that might be why you can't find it as a standalone module | |
Aug 7, 2012 at 12:34 | comment | added | chefnelone |
thanks clive, I get it done following the link. But I didn´t find the Views Translation module . I just installed the i18nviews module instead and get the view titles translated in admin/config/regional/translate/translate
|
|
Aug 7, 2012 at 10:58 | comment | added | Clive♦ |
I think it's because a views export is a nested structure and gets evaluated directly as PHP when it's imported...if the t() function was added it would be called when this import happens, which would be wrong (as the strings should only be translated on-demand, not by default). That's just a guess though, could be way off :)
|
|
Aug 7, 2012 at 10:55 | comment | added | Andy |
thanks for link, there's also the i18nviews project, which probably covers this ground but doesn't have a stable release for 7. Was surprised to see that a Views export didn't wrap string literals in t() - you don't happen to know why that might be do you? (In fact I'm sure it used to, though that might be my memory.)
|
|
Aug 7, 2012 at 10:49 | comment | added | Clive♦ | @Andy Yep, I was responding to "What do you think? Is this a right method?", which it isn't. There's a discussion here that suggests views titles should be translatable out of the box with the il8n views module, which makes the question moot anyway. | |
Aug 7, 2012 at 10:43 | history | edited | Clive♦ | CC BY-SA 3.0 |
deleted 13 characters in body
|
Aug 7, 2012 at 10:41 | comment | added | Andy | That doesn't solve the OP's problem of translating the title. | |
Aug 7, 2012 at 10:36 | history | answered | Clive♦ | CC BY-SA 3.0 |