github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

svenfuchs / rails-i18n

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 570
    • 114
  • Source
  • Commits
  • Network (114)
  • Issues (4)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • 2-2
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Repository for collecting Locale data for Ruby on Rails I18n as well as other interesting, Rails related I18n stuff — Read more

  cancel

http://rails-i18n.org

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

added record_invalid and changed currency separator in nl.yml 
Michael Koper (author)
Wed Jan 20 15:46:50 -0800 2010
ariejan (committer)
Wed Jan 20 23:32:16 -0800 2010
commit  3ea688b88e25635c8b9c296546fe1f6dedab0bef
tree    59d6ce37b2f3156bc8671a9d6ff35cc67a0089a0
parent  a86c0c935bc510865e655e18777e8004fc0718cf
rails-i18n / tools / Rails I18n.tmbundle
name age
history
message
..
directory Commands/ Sat Dec 05 09:02:28 -0800 2009 * Refactored bundle * Added custom .nib for ext... [Jeff Keen]
file README.textile Sat Dec 05 09:02:28 -0800 2009 * Refactored bundle * Added custom .nib for ext... [Jeff Keen]
directory Snippets/ Sat Dec 05 09:02:28 -0800 2009 * Refactored bundle * Added custom .nib for ext... [Jeff Keen]
directory Support/ Sat Dec 05 09:02:31 -0800 2009 Fixed: When inserting text using the Extract co... [Jeff Keen]
file info.plist Sat Dec 05 09:02:28 -0800 2009 * Refactored bundle * Added custom .nib for ext... [Jeff Keen]
tools/Rails I18n.tmbundle/README.textile

Rails I18n Textmate bundle

The bundle adds the following commands:

Extract Translation (cmd-shift-e):
  • prompts you for a dot-separated key
  • adds the translation (mapping the dot-separated key to nested yaml keys)
  • replaces the selected string in your source-code with the dot-separated key wrapped into a call to t(your.key), if interpolations are detected within translation, the replacement text will prompt for them.
Look up Translation (cmd-shift-i):
  • Looks up the currently selected key if text is selected
  • If nothing is selected, it will look up all the keys in the currently selected file.

The bundle adds the following tab triggers:

tr:
  • Inserts I18n.translate("") or translate("") based on your context
The following properties are editable:
  • default locale
  • translation file path
  • whether extract inserts the long syntax (I18n.translate) or short syntax (I18n.t)
  • where and if translation changes are logged

Note that Textmate, while active, won’t reload the translations.yml for you if it’s already open. When you give the focus to another application and then go back to Textmate (e.g. with cmd-tab, cmd-tab) it will reload the file. I found it useful to have translations.yml open on a second monitor while extracting translations from my application.

I still have to figure out how to automatically select the next string after this command has run. It works well to just use Textmate’s “Find Next” though:

  • hit cmd-f and give it ("|').*(\1) as a search expression, tell it to use this as a “Regular expression”
  • hit return and it will select the next string
  • use shift-cmd-e to extract that string
  • hit cmd-g to select the next string
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server