i18n - layouts in Rails application(uses Extjs)

49 views
Skip to first unread message

vlrpmdy

unread,
Nov 24, 2009, 3:43:49 AM11/24/09
to rails-i18n, vija...@yahoo.co.in
test_layout.rhtml

var westTabPanel =new Ext.TabPanel({
deferredRender:false, // delays the Ajax calls till the first
click on tab
activeTab:0,
items:[
{
contentEl:'QuickSearch',
title: 'Quick Search',
autoScroll:true,
bodyStyle:'background:#ECECFF;padding: 8 5 5 8;'
}
] // end items
});

On using i18n:

var westTabPanel =new Ext.TabPanel({
deferredRender:false, // delays the Ajax calls till the first
click on tab
activeTab:0,
items:[
{
contentEl:'QuickSearch',
title: '#{t .quick_search}',
autoScroll:true,
bodyStyle:'background:#ECECFF;padding: 8 5 5 8;'
}
] // end items
});

config/locales/layouts/test.yml
en:
layouts:
test:
quick_search: "Quick Search"


Not able to translate the title.
its giving - en,layouts,test,quick_search


Reply all
Reply to author
Forward
0 new messages