add i18n for layout and snippet

This commit is contained in:
Wen-Tien Chang committed 2009-07-06 16:23:34 +08:00
1 parent 28612514e3
commit ff2dffaeb4
14 files changed
+65 -49

No files matched your search

+4 -1
View File
@@ -36,7 +36,10 @@ class Admin::SnippetsController < ApplicationController
end
end
@snippet.content = "<ul>\n#{lis}</ul>"
VALID_LOCALES.each do |locale|
@snippet.write_attribute( "content_#{locale}", "<ul>\n#{lis}</ul>" )
end
end
respond_to do |format|