Rails I18n Helper
No description provided
Details
Installs
- Total 343
- Win 57
- Mac 171
- Linux 115
Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text 2 plugin: Rails I18n Helper
Makes creating Rails Internationalization (I18n) easier. Select text and create the key in en.yml and key to translation
Shortcut Keys
Windows / OSX / Linux:
ctrl+alt+x
How to Use
you have to install yaml library for python. On linux:
sudo apt-get install python-yaml
The following instructions are all done inside your Rails Apps's view (.erb, .haml) files.
Select the string you wish to put into a Internationalization yml file and hit the shortcut key
Example:
file path: rails_root/app/views/users/show.html.haml
= link_to new_user_path do
%i{class: 'icon-plus'}
Add user
you have to select “Add user” and click the shortcut key. receive:
= link_to new_user_path do
%i{class: 'icon-plus'}
=t(".add_user")
and in rails_root/config/locales/en.yml “ bash en: users: show: add_user: Add user
## Limitations
This plugin has support for the following file types:
* .erb
* .html
This list will possibly be expanded in the future. If you would like support for other files, please submit an issue or an pull request.
## Installation
You have two options, we'll start with the preferred installation method, Package Control.
### Package Control
The easiest and preferred way to of installing this plugin is with [Package Control](http://wbond.net/sublime\_packages/package\_control).
* Ensure Package Control is installed and Sublime Text 2 has been restarted.
* Open the Command Palette (Command+Shift+P on OS X, Control+Shift+P on Linux/Windows).
* Select "Package Control: Install Package"
* Select Rails I18n Helper when the list appears.
Package Control will automatically keep Rails I18n Helper up to date with the latest version.
### Git
This method required a little more work, but simply clone this repo into your Sublime Text 2 Package directory.
``` bash
$ git clone git://github.com/adeptus/rails-i18n-helper.git "Rails I18n Helper"
Further instructions below.
Windows XP, 7 and 8
Execute the commands below one by one in your Command prompt.
$ cd "%APPDATA%\Sublime Text 2\Packages"
$ git clone git://github.com/adeptus/rails-i18n-helper.git "Rails I18n Helper"
Linux
Execute the commands below one by one in your terminal.
$ cd ~/.config/sublime-text-2/Packages/
$ git clone git://github.com/adeptus/rails-i18n-helper.git "Rails I18n Helper"