Skip to content

Commit

Permalink
Changed rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
japetheape committed Sep 8, 2008
1 parent 84ad538 commit c054747
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README
Expand Up @@ -4,6 +4,9 @@ This plugin will convert all of your existing Gettext calls( _('some translation
I18n::t '(controller|view).id'. It inserts the translations into a new locale file "config/locales/standard.yml".


Namespace
=========
By default your application will be divided into namespaces. For each namespace.



Expand Down
2 changes: 1 addition & 1 deletion init.rb
@@ -1,6 +1,6 @@
# Include hook code here
#require 'lib/gettext_to_i18n'

require 'YAML'
require File.dirname(__FILE__) + '/lib/files'
require File.dirname(__FILE__) + '/lib/convertor'
require File.dirname(__FILE__) + '/lib/base'
Expand Down
3 changes: 2 additions & 1 deletion tasks/gettext_to_i18n_tasks.rake
Expand Up @@ -9,7 +9,8 @@ namespace :gettext_to_i18n do

desc 'Transforms all of your files into the new I18n api format'
task :transform do
GettextToI18n::Files.all_files
a = GettextToI18n::Base.new
puts a.dump_yaml
end


Expand Down
5 changes: 2 additions & 3 deletions test/gettext_to_i18n_test.rb
@@ -1,6 +1,6 @@
require 'test/unit'
require File.dirname(__FILE__) + '/../init.rb'

require 'YAML'

class GettextToI18nTest < Test::Unit::TestCase

Expand Down Expand Up @@ -44,8 +44,7 @@ def test_get_filename

def test_transform
a = GettextToI18n::Base.new

puts a.translations.inspect
puts YAML::dump( a.translations)
end


Expand Down

0 comments on commit c054747

Please sign in to comment.