My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
RubyOnRails  
Ruby on Rails localization file example
Updated Mar 21, 2011 by phong.le...@gtempaccount.com

Introduction

Get Localization only support Ruby on Rails localization file based on YAML format. The own Ruby format is not supported.

Example

Following shows an example of Ruby on Rails localization file in YAML

# config/locale/en.yml
en:
  hello_world: Hello the world

  welcome_text: Welcome text

  date: 
    month: # Array
      month_names: [~, Jan, Feb, Mar, Apr]
  
  date: # custom date type
    - !ruby/symbol day
    - !ruby/symbol month
    - !ruby/symbol year
Powered by Google Project Hosting