aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-07-23 19:00:03 +0100
committerLouise Crow <louise.crow@gmail.com>2013-07-23 19:00:03 +0100
commit178bc41c875828d13236a254b69ddc7bd4f82ccd (patch)
tree39c1be128066229ae2df01b5abd80d16477852d6
parent8c8ff1c840451c9ed598c1b8c68ed72a1a938a38 (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.erb2
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' ) {