Displaying 1 result from an estimated 1 matches for "broodtekst".
2006 Apr 13
0
Globalize not with Rails 1.1.2
..., news_item.title
# create a translation by switching the locale and updating
attributes
Globalize::Locale.set(''nl-NL'')
# news_item.title = ''NL Titel''
# news_item.excerpt = ''NL samenvatting.''
# news_item.body = ''NL Broodtekst.''
# assert_nothing_raised() {news_item.save!}
# either use the commented out code above or the line below
#As you cannot load in one language and save in another...
news_item = NewsItem.find(:first)
news_item.update_attributes(:title => ''NL Titel''...