Please sign in to comment.
- Loading branch information...
|@@ -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')"|