Skip to content

Menu and keyboard shortcut for internationalizing strings in Rails templates.

Notifications You must be signed in to change notification settings

ndbroadbent/gedit_i18n_helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Menu and keyboard shortcut for internationalizing strings in Rails templates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages