Giter Site home page Giter Site logo

rails 2.3.8 bug about i18n_backend_database HOT 7 OPEN

dylanz avatar dylanz commented on July 19, 2024
rails 2.3.8 bug

from i18n_backend_database.

Comments (7)

dylanz avatar dylanz commented on July 19, 2024

Hello! Is this a new addition to the I18n implementation? I haven't run this gem against the 2.3.8 yet, so it would be great to know. Is it something you could simply add name-spacing too, or reference directly (::)?

from i18n_backend_database.

guyshmuely avatar guyshmuely commented on July 19, 2024

yes i am referring to the new I18n implementation, this problem could easily be fixed by changing the Locale class name and than the plugin works like a charm.
The thing is that it still doesn't support Chaining which is really nice and probably some other cool stuff the new I18n offers... i think that if your plugin could use the built-in I18n ActiveRecord's backend (I18n::Backend::ActiveRecord) as the gate to the database and extend it with all the cool features your plugin offers it will be great, i assume that if you implement it this way it will work with all I18n features and support rails 3 once it's released.

from i18n_backend_database.

fusco avatar fusco commented on July 19, 2024

@uyshmuely, I have the same issue, but i don't understand your "path". Can you explain your change ? thks.

from i18n_backend_database.

guyshmuely avatar guyshmuely commented on July 19, 2024

which issue are you referring to? Chaining or the Locale module problem?

from i18n_backend_database.

mossadumc avatar mossadumc commented on July 19, 2024

I'm seeing this in 2.3.5 as well.

from i18n_backend_database.

karuna avatar karuna commented on July 19, 2024

The problem I18n::Backend::Database refer Locale from I18n::Locale
While it should refer Locale from ActiveRecord::Base::Locale

from i18n_backend_database.

rwygand avatar rwygand commented on July 19, 2024

I've also seen this issue, which I fixed by changing a lot of references in database.rb to the above mentioned ActiveRecord::Base::Locale.

from i18n_backend_database.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.