Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (22 sloc) 0.738 kb
ebd233c6 » lifo
2010-04-09 Tolk rake tasks
1 namespace :tolk do
2 desc "Sync Tolk with the default locale's yml file"
3 task :sync => :environment do
4 Tolk::Locale.sync!
5 end
6
7 desc "Generate yml files for all the locales defined in Tolk"
8 task :dump_all => :environment do
9 Tolk::Locale.dump_all
10 end
3ef4b293 » lifo
2010-04-09 Allow importing data from secondary locales to help people get started
11
12 desc "Imports data all non default locale yml files to Tolk"
13 task :import => :environment do
14 Rake::Task['tolk:sync'].invoke
15 Tolk::Locale.import_secondary_locales
16 end
17
58e78ee0 » lifo
2010-04-29 Add rake tolk:html_keys for finding html phrases without _html postfix
18 desc "Show all the keys potentially containing HTML values and no _html postfix"
19 task :html_keys => :environment do
20 bad_translations = Tolk::Locale.primary_locale.translations_with_html
21 bad_translations.each do |bt|
22 puts "#{bt.phrase.key} - #{bt.text}"
23 end
24 end
ebd233c6 » lifo
2010-04-09 Tolk rake tasks
25 end
Something went wrong with that request. Please try again.