Permalink
Browse files

More README

  • Loading branch information...
1 parent ccdc033 commit 6b8bd683cc1ce1aae14961a593d5576b71964d5b @lifo lifo committed Apr 7, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 README
View
8 README
@@ -21,12 +21,14 @@ Tolk treats <tt>Locale.primary_locale_name</tt> as the main source of strings to
As tolk stores all the keys and translated strings in the database, you need to ask Tolk to update it's database from the primary yml file :
- $ script/runner 'Tolk.sync!'
+ $ script/runner 'Locale.sync!'
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 :
- $ script/runner 'Tolk.dump_all'
+ $ script/runner 'Locale.dump_all'
-This will write
+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 "Locale.dump_all('/Users/lifo')"

0 comments on commit 6b8bd68

Please sign in to comment.