Changes translation.rb id indexing to integer

Fixes the sorting of translations.