Displaying 1 result from an estimated 1 matches for "viewtransl".
2007 Dec 21
1
in_place_editor not working for Internationalization
...Application), using in_place_editor.
The translation works fine, however, I can''t get in_place_editor to
work to translate the strings.
My controller:
class Admin::TranslateController < ApplicationController
in_place_edit_for :translation, :text
def index
@view_translations = ViewTranslation.find(:all, :conditions =>
[ ''built_in IS NULL AND language_id = ?'', Locale.language.id ], :order
=> ''text'')
end
def translation_text
@translation = ViewTranslation.find(params[:id])
render :text => @translation.text || ""
en...