From 2a326d141e6f5fb1a32796f84e7590364eed03b1 Mon Sep 17 00:00:00 2001 From: Reiner Dieterich Date: Thu, 29 Jul 2010 14:19:06 +0200 Subject: [PATCH] use :locale parameter in options to set locale of fb-connect javascript assets --- lib/facebooker2/rails/helpers/javascript.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/facebooker2/rails/helpers/javascript.rb b/lib/facebooker2/rails/helpers/javascript.rb index 16c9a91..dc6e489 100644 --- a/lib/facebooker2/rails/helpers/javascript.rb +++ b/lib/facebooker2/rails/helpers/javascript.rb @@ -7,6 +7,7 @@ module Facebooker2 cookie = opts[:cookie] status = opts[:status] xfbml = opts[:xfbml] + locale = options[:locale] || "en_US" extra_js = capture(&proc) if block_given? js = <<-JAVASCRIPT