diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-07-23 19:00:03 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-07-23 19:00:03 +0100 |
commit | 178bc41c875828d13236a254b69ddc7bd4f82ccd (patch) | |
tree | 39c1be128066229ae2df01b5abd80d16477852d6 | |
parent | 8c8ff1c840451c9ed598c1b8c68ed72a1a938a38 (diff) |
Use FastGettext.locale, not I18n.locale as the latter will return hyphens, not underscores as we use in our URLs.
-rw-r--r-- | app/views/layouts/default.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/default.html.erb b/app/views/layouts/default.html.erb index 688816fa9..472fa8ec1 100644 --- a/app/views/layouts/default.html.erb +++ b/app/views/layouts/default.html.erb @@ -52,7 +52,7 @@ 'width': 920, 'height': 400, 'type': 'iframe', - 'href': '/<%= I18n.locale %>/profile/sign_in?modal=1', + 'href': '/<%= FastGettext.locale %>/profile/sign_in?modal=1', 'onClosed': function() { // modal_signin_successful variable set by modal dialog box if (typeof modal_signin_successful != 'undefined' ) { |