Permalink
Browse files

Improve README

  • Loading branch information...
lifo committed Apr 8, 2010
1 parent 3d28ab4 commit 8675bd031bec6e7c127733aafbecc491e3750d1d
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.

0 comments on commit 8675bd0

Please sign in to comment.