Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improve README

  • Loading branch information...
commit 8675bd031bec6e7c127733aafbecc491e3750d1d 1 parent 3d28ab4
@lifo lifo authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 README
View
14 README
@@ -8,16 +8,18 @@ To install :
To setup :
- 1) Define the primary locale inside your application's configuration file :
-
- # environment.rb
- Tolk::Locale.primary_locale_name = 'en'
-
- 2) Generate tolk migration and migrate your database :
+ 1) Generate tolk migration and migrate your database :
$ script/generate tolk_migration
$ rake db:migrate
+ 2) Setup Tolk assets by creating a symlink to tolk/public/tolk inside your application's public directory :
+
+ $ cd public
+ $ ln -s ../vendor/plugins/tolk/public/tolk tolk
+
+ And you're all set!
+
* Usage
Tolk treats <tt>Tolk::Locale.primary_locale_name</tt> as the main source of strings to be translated. Developers are expected to make all the changes to that file ( en.yml in our case ) and treat all the other locale.yml files as readonly files.
Please sign in to comment.
Something went wrong with that request. Please try again.