What’s mining: Rails i18n support

Hello folks,

Today we are going to tell you about forthcoming Rails i18n support in RubyMine. This functionality is planned for RubyMine 1.5 release in our roadmap, and you will be able to try it in next EAP builds. Feature is under development so comments, suggestions and even feature requests are very welcome :)

At the moment RubyMine supports the following:

  • Resolve and completion for property keys with quick navigation info. Autocompletion for property keys:
  • Go to declaration action:
  • Convenient usages search for property keys
  • Rename property key in locale files with all usages
  • Rails conventions for templates key prefixes
  • Inspection with quickfix for undefined property key. RubyMine offers to apply “Create property” quickfix.

Not all the desired functionality is implemented yet, but we are working hard on it. Just want to mention some of the further feautures:

  • Duplicate property key Inspection
  • Intention to i18nize plain text value
  • Check whether all the keys present in given locale file
  • your suggestions?

Please do not hesistate and let us know your opinion about all this at our forum at: http://www.jetbrains.net/devnet/community/ruby

-JetBrains RubyMine Team

This entry was posted in Feature, WhatsMining and tagged , . Bookmark the permalink.

4 Responses to What’s mining: Rails i18n support

  1. How do you get the quick fix menu? I have the yellow underline but not the light bulb.

  2. Oleg Shpynov says:

    Hi,

    Have you tried Alt+Enter combination while staying on the underlined string?

  3. Yeap, that was it Oleg.

    How do I change the locale file that RubyMine uses to display strings instead of calls to t() inline in the code? It would be nice if I can get those strings in a language I can read.

    Thanks.

  4. Oleg Shpynov says:

    At the moment i18n calls are replaced with the corresponding translation only if value has only single translation. In case when there are more than one translation available we don’t do anything now.
    You can use Ctrl+- to fold them manually.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>