#90 ✓moved_to_github
Kriss Kowalik

Some way to deal with i18n (*_translations tables)?

Reported by Kriss Kowalik | June 3rd, 2009 @ 05:24 PM

I tried long time to deal something with model translations tables, but i can't figure out anything. Maybe somebody will find way to filter data by field from translations table...

Comments and changes to this ticket

  • Ben Johnson

    Ben Johnson June 20th, 2009 @ 05:01 AM

    • State changed from “new” to “open”

    I'm not sure what you are asking.

  • Kriss Kowalik

    Kriss Kowalik June 22nd, 2009 @ 04:56 AM

    When using i18n with rails (in activerecord), translated columns are keept in other table (eg. you have table articles, so translated fields like title, content etc are in article_translations table). When i try search something in title of arcticle then i have error - unknown attribute. You have to do something like:

    • check if table articles have specified attribute
    • if have then process conditions for it
    • if not then check if is article_translations table (or ArticleTranslation model will be easier)
    • if exists then check attribute and process conditions
    • if not then raise error

    Im using for now such mechanism in my controller, but it's not much pretty way...

  • Ben Johnson

    Ben Johnson June 24th, 2009 @ 02:15 AM

    I see what you are saying. The translations / mapping should happen above board, I don't feel like this is searchlogic responsibility. Does active record do this with their attributes when trying to create / update records?

  • Ben Johnson

    Ben Johnson August 7th, 2009 @ 06:30 PM

    • State changed from “open” to “moved_to_github”

    [state:"moved_to_github" bulk edit command]

  • seomaster

    seomaster April 11th, 2021 @ 04:30 AM

    Make the most of mainly premium substances - you will find him or her for: check this site

  • seomaster

    seomaster April 14th, 2021 @ 08:11 AM

    Initial You got a awesome blog .I determination be involved in plus uniform minutes. i view you got truly very functional matters , i determination be always checking your blog blesss. online casino

  • seomaster

    seomaster April 15th, 2021 @ 12:51 AM

    Initial You got a awesome blog .I determination be involved in plus uniform minutes. i view you got truly very functional matters , i determination be always checking your blog blesss. casino online canada

  • seomaster

    seomaster April 16th, 2021 @ 12:49 AM

    Initial You got a awesome blog .I determination be involved in plus uniform minutes. i view you got truly very functional matters , i determination be always checking your blog blesss. website,

  • seomaster

    seomaster April 16th, 2021 @ 11:36 PM

    Initial You got a awesome blog .I determination be involved in plus uniform minutes. i view you got truly very functional matters , i determination be always checking your blog blesss. online casino canada real money

  • seomaster

    seomaster April 17th, 2021 @ 08:21 PM

    Great info! I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have. Lambingan

  • seomaster

    seomaster April 18th, 2021 @ 11:55 PM

    I've proper selected to build a blog, which I hold been deficient to do for a during. Acknowledges for this inform, it's really serviceable! kasyno online

  • seomaster

    seomaster April 19th, 2021 @ 08:32 PM

    Initial You got a awesome blog .I determination be involved in plus uniform minutes. i view you got truly very functional matters , i determination be always checking your blog blesss. visit this page,

  • seomaster

    seomaster April 20th, 2021 @ 08:37 PM

    I've proper selected to build a blog, which I hold been deficient to do for a during. Acknowledges for this inform, it's really serviceable! kasyna online

  • seomaster

    seomaster April 21st, 2021 @ 11:53 PM

    Initial You got a awesome blog .I determination be involved in plus uniform minutes. i view you got truly very functional matters , i determination be always checking your blog blesss. keno online

  • seomaster

    seomaster April 23rd, 2021 @ 12:08 AM

    This is important, though it's necessary to help you head over to it weblink: ranking kasyn

  • seomaster

    seomaster April 24th, 2021 @ 08:50 PM

    Very good topic, similar texts are I do not know if they are as good as your work out. read more,

  • seomaster

    seomaster April 26th, 2021 @ 12:49 AM

    I've proper selected to build a blog, which I hold been deficient to do for a during. Acknowledges for this inform, it's really serviceable! casino online

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Provides common named scopes and object based searching.

People watching this ticket

Pages