internationalization and scope labels
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:
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.
You do not have the permission required to post.
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:
> 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?
Should be fixed by:
https://github.com/gregbell/active_admin/pull/637
You must
Sign in before you can post messages.
You do not have the permission required to post.
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:
> On Aug 31, 7:46 am, sloo <jsle
... @gmail.com> wrote:
> > 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?
> Should be fixed by:https://github.com/gregbell/active_admin/pull/637
You must
Sign in before you can post messages.
You do not have the permission required to post.
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:
> 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: >> On Aug 31, 7:46 am, sloo <jsle... @gmail.com> wrote:
>>> 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?
>> Should be fixed by:https://github.com/gregbell/active_admin/pull/637
You must
Sign in before you can post messages.
You do not have the permission required to post.