New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

go_translate_yourself

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

go_translate_yourself

  • 0.0.6
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= GoTranslateYourself

GoTranslateYouself is Rails engine, that allows your clients to do the dirty work of translating applications on their own. You don't have to do it yourself, let them have a piece of fun of their own!

This project is inspired by DHH's Tolk (http://github.com/dhh/told), however it has a bit differen UI, provides way to integrate with existing admin panel layout and is using key-value stores, with translation fallbacks.

== Installation TODO: Write more info here.

== Usage

Create initializer in your Rails app, following this code:

conn = Mongo::Connection.new.db("go_translate_yourself_test").collection("translations")
GoTranslateYourself.current_store = GoTranslateYourself::MongoStore.new(conn)
GoTranslateYourself.locales = [:pl, :de]

I18n.backend = I18n::Backend::KeyValue.new GoTranslateYourself.current_store

GoTranslateYourself.auth_handler = proc {
  authenticate_or_request_with_http_basic do |user_name, password|
    user_name == 'some' && password == 'user'
  end
}

GoTranslateYourself.layout_name = "dummy_admin"

Please note, that you can integrate auth_handler with your authentication solution (like Devise), or leave it blank for no authentication.

Visit http://localhost:3000/site_translations to see it working!

== Available stores

Currently only MongoDB is supported -- please feel free to add more stores (Riak would be nice!).

== Roadmap

  • implement SQLStore for using SQL databases
  • implement RiakStore for using Riak

This project rocks and uses MIT-LICENSE.

FAQs

Package last updated on 22 Oct 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc