Skip to content

Instantly share code, notes, and snippets.

@zeke
Created August 22, 2008 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeke/6763 to your computer and use it in GitHub Desktop.
Save zeke/6763 to your computer and use it in GitHub Desktop.
~/Projects/elc/lang/trunk >script/reimport_all
WARNING: You are about to destroy ALL of your dictionary, subject area, and translation data.
Are you SURE you want to proceed? [yN]
y
Destroying all subject areas...
Annihilating all globalize translations...
Blowing all official translations to bits...
Transfer all examples to moon...
Decapitating all lemmas...
Sending your dictionaries to the stone age...
And then, he said, let there be subject areas...
And there were, and they were great.
Oh, and here come the sample dictionaries!
English-German 1-2-3 import!
Import success
import 497 lemmas into dictionary English to German
import 1086 translations into dictionary English to German
import 318 examples into dictionary English to German
German-English...
Import success
import 534 lemmas into dictionary German to English
import 1263 translations into dictionary German to English
import 194 examples into dictionary German to English
French-German...
Import success
import 487 lemmas into dictionary French to German
import 1385 translations into dictionary French to German
import 1973 examples into dictionary French to German
And German-French...
Import success
import 677 lemmas into dictionary German to French
import 955 translations into dictionary German to French
import 452 examples into dictionary German to French
English-Chinese...
Import success
import 12 lemmas into dictionary English to Chinese
import 24 translations into dictionary English to Chinese
import 0 examples into dictionary English to Chinese
Re-import sample audios...
/Users/zeke/Projects/elc/lang/trunk/app/models/audio_import.rb:112:in `initialize': No such file or directory - /Users/zeke/Projects/elc/lang/assets/sample-data/audio/samples-aug-13-2008/AE000001.mp3 (Errno::ENOENT)
from /Users/zeke/Projects/elc/lang/trunk/app/models/audio_import.rb:112:in `open'
from /Users/zeke/Projects/elc/lang/trunk/app/models/audio_import.rb:112:in `find_or_create_mp3'
from /Users/zeke/Projects/elc/lang/trunk/app/models/audio_import.rb:100:in `find_or_create_asset'
from /Users/zeke/Projects/elc/lang/trunk/app/models/audio_import.rb:49:in `execute!'
from /Users/zeke/Projects/elc/lang/trunk/app/models/audio_import.rb:48:in `each'
from /Users/zeke/Projects/elc/lang/trunk/app/models/audio_import.rb:48:in `execute!'
from /usr/local/lib/ruby/gems/1.8/gems/fastercsv-1.2.3/lib/faster_csv.rb:1458:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/fastercsv-1.2.3/lib/faster_csv.rb:1003:in `foreach'
from /usr/local/lib/ruby/gems/1.8/gems/fastercsv-1.2.3/lib/faster_csv.rb:1175:in `open'
from /usr/local/lib/ruby/gems/1.8/gems/fastercsv-1.2.3/lib/faster_csv.rb:1002:in `foreach'
from /Users/zeke/Projects/elc/lang/trunk/app/models/audio_import.rb:33:in `execute!'
from script/reimport_all:60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment