Closed (won't fix)
Project:
Internationalization
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Mar 2008 at 16:53 UTC
Updated:
7 Aug 2009 at 13:02 UTC
I want to show the block title (generated by views) by language. I.e. if the language is 'en' then show "Blog 123". if the language is other language, then show other text.
So, I installed i18n views module. I found there is a new field "Internationalization: Language" and 3 new filters. I guess I cannot use them to get my requirement, is it correct?
Comments
Comment #1
cdemetriadis commentedHad the same issue. I found the solution here...
http://drupal.org/node/204888
Simply put, open block.tpl.php and wrap the Subject variable with the t() function.
Then goto the localization section in your admin (admin/settings/locale/string/search), and search for the strings you want to translate. voila!
Comment #2
dennys commentedHi, thanks for your solution, but is there a same function for views?
Comment #3
dennys commentedI tried to add t(), but I still cannot find the string in admin/settings/locale/string/search, should I do anything else ?
Comment #4
jose reyero commentedYou'll have to wait for some 6.x views patches (nothing to be done for 5.x)