Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (15 sloc) 709 Bytes

Gedit plugin – I18n Helper for Rails

Menu and keyboard shortcut for internationalizing strings in Rails templates.

Installation

  • Clone the git repository, run “./install.sh”

Usage

Highlight an untranslated string, and use the ‘Tools → I18n-ize’ menu item
or Ctrl+Shift+I keyboard shortcut.

  • Takes the selected string, generates a i18n key.
  • Replaces the selection with: = t(‘.<< key >>’)
  • Copies the locale definition into your clipboard, to paste into your en.yml file.
    • key: Original String

Limitations

  • Written for use with haml templates
  • For localizing specific views (so each key is prepended with ‘.’ in template)

Might add configuration options in the future.