Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 800 Bytes

README.rdoc

File metadata and controls

25 lines (14 loc) · 800 Bytes

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