Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby on Rails plug-in displaying unused translations
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
script
spec
tasks
test
MIT-LICENSE
README.rdoc
Rakefile
init.rb
install.rb
uninstall.rb

README.rdoc

Unused Translations Rails Plugin

Displays the translations stored in a locales file not called from the 'app' directory source code. It parses the source code to gather used translations keys and displays the translations not used.

For now, it recognizes calls like:

  • I18n.t('project.new.title')

  • I18n.t('.title')

  • t('project.new.title')

  • t '.title'

It's definitely a hack-like plug-in. Be carefull not to remove translations used by built-in helpers or error message generators.

Install

script/plugin install git://github.com/o2sources/unused_translations.git

Usage

script/unused_translations config/locales/en.yml

Do not hesitate to fork and enhance this hack-like plug-in. :)

Copyright © 2009 Philippe Creux & Lucien Boix for O2Sources, released under the MIT license

Something went wrong with that request. Please try again.