Permalink
Browse files

Update the README

  • Loading branch information...
1 parent 94008c2 commit c0c6fe25b2e629142529b9f76b103f188974c1d6 @lifo lifo committed Apr 8, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 README
View
@@ -28,14 +28,16 @@ As tolk stores all the keys and translated strings in the database, you need to
The above will fetch all the new keys from en.yml and put them in the database. Additionally, it'll also get rid of the deleted keys from the database and reflect updated translations - if any.
-Upon visiting http://<your app>/tolk - you will be presented with different options like creating new locale or providing translations for the existing locales. Once done with translating all the pending strings, you are can write back the new locales to filesystem :
+Upon visiting http://your_app.com/tolk - you will be presented with different options like creating new locale or providing translations for the existing locales. Once done with translating all the pending strings, you are can write back the new locales to filesystem :
$ script/runner 'Tolk::Locale.dump_all'
This will generate yml files for all non primary locales and put them in RAILS_ROOT/config/locales/ directory by default. You can pass directory path as the argument if you want the generated files to be at a different location :
$ script/runner "Tolk::Locale.dump_all('/Users/lifo')"
+You can even download the yml file using Tolk web interface by appending '.yml' to the locale url. E.g http://your_app.com/tolk/locales/de.yml
+
* Authentication
If you want to authenticate users who can access Tolk, you need to provide <tt>Tolk::ApplicationController.authenticator</tt> proc. For example :

0 comments on commit c0c6fe2

Please sign in to comment.