Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
internationalization and scope labels
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
sloo  
View profile  
 More options Aug 31 2011, 1:46 am
From: sloo <jsle...@gmail.com>
Date: Tue, 30 Aug 2011 22:46:02 -0700 (PDT)
Local: Wed, Aug 31 2011 1:46 am
Subject: internationalization and scope labels
I've added the following to locales/active_admin.jp.yml:

jp:
  active_admin:
  . . .
    scopes:
      all: all_
      non_curated: Non-Curated_
      accepted: Accepted_
      rejected: Rejected_

and have registered my resource with this:
  . . .
  # Create sections on the index screen
  scope :non_curated, :default => true)
  scope :all
  scope :accepted
  scope :rejected
  . . .

as can be seen below, everything gets translated fine except for
':all', which is output as a hash:

Non-Curated_ (2) {:all=>"all_", :non_curated=>"Non-
Curated_", :accepted=>"Accepted_", :rejected=>"Rejected_"} (5)
Accepted_ (1) Rejected_ (1)

Any ideas? is there a more appropriate / alternative approach to I18n
on the scope labels?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felix Buenemann  
View profile  
 More options Oct 17 2011, 2:24 pm
From: Felix Buenemann <felix.buenem...@googlemail.com>
Date: Mon, 17 Oct 2011 11:24:55 -0700 (PDT)
Local: Mon, Oct 17 2011 2:24 pm
Subject: Re: internationalization and scope labels
On Aug 31, 7:46 am, sloo <jsle...@gmail.com> wrote:

Should be fixed by: https://github.com/gregbell/active_admin/pull/637

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Greg Bell  
View profile  
 More options Oct 21 2011, 9:19 am
From: Greg Bell <g...@orange-peel.ca>
Date: Fri, 21 Oct 2011 06:19:25 -0700 (PDT)
Local: Fri, Oct 21 2011 9:19 am
Subject: Re: internationalization and scope labels
I've merged the fix in to master. Will be released in 0.4.0

On Oct 17, 11:24 am, Felix Buenemann <felix.buenem...@googlemail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Streicher  
View profile  
 More options Oct 21 2011, 12:41 pm
From: Martin Streicher <martin.streic...@gmail.com>
Date: Fri, 21 Oct 2011 12:41:20 -0400
Local: Fri, Oct 21 2011 12:41 pm
Subject: Re: [Active Admin] Re: internationalization and scope labels

I just wanted to comment on scope :all.

I have an application with 100s of records. In my AA view, I had...

scope :all

... and from what I could tell, it ran Model.all, which obviously takes a long time.

Unless I am doing something wrong, a scope :all seems ill-advised. The normal path through AA without :all seems to do the query fine and paginate.

Greg, thoughts?

On Oct 21, 2011, at 9:19 AM, Greg Bell wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »