Giter Club home page Giter Club logo

i18n_label's Introduction

I18nLabel

Since labels don’t use I18n in Rails 2.2 (I was too late in submitting the
patch), we’d have to make due with a plugin.

Installation and configuration consists of 1 easy steps:

  1. Run:
./script/plugin install git://github.com/iain/i18n_label.git

Example

In your translation file:

en-US: activerecord: attributes: topic: name: A nice name

In your view:

<% form_for @topic do |f| %> <%= f.label :name %> <% end %>

The result is:

<label for="topic_name">A nice name (please ignore the minor problem with html in github)

For more information about where to put your translations,
visit my blog

Copyright © 2008 Iain Hecker, released under the MIT license

i18n_label's People

Stargazers

Angus H. avatar  avatar Edgar Ortega avatar Hiroki Ohmura avatar Paulo Henrique Deléo avatar Andrew Hodgkinson avatar David Orkin avatar Brant Watrous avatar Filipe Chagas avatar Giulio Turetta avatar Bruno Malvestuto avatar Marco Colli avatar Ben Ellis avatar Thiago Cifani avatar Rain Chen avatar Martijn van Leeuwen avatar Rafael Uchoa avatar Abdul-Jabbar Shalabi avatar Douglas avatar Roberto Klein avatar Tomas Markauskas avatar Hans avatar William Wong Garay avatar Thomas von Deyen avatar Paul Philippov avatar Marcel Görner avatar Jésus Lopes avatar Tony Fontenot avatar Rafał Cieślak avatar 西北向北 avatar Yvon Cognard avatar Thomas Lobinger avatar Massimiliano Pepe avatar Willian Fernandes avatar Zsolt Hegedus avatar mifan avatar Jean-Philippe Moal avatar  avatar iain avatar Tse-Ching Ho avatar Pierre avatar Alberto Molpeceres avatar Roy van der Meij avatar Chuong Huynh avatar Daniel Lopes avatar L. Costa avatar Anderson Peligrini avatar Fredrik Björk avatar Nathan Henderson avatar Georg Ledermann avatar Luis Perichon avatar Anders Törnqvist avatar fannar avatar Colin Schlueter avatar Cristi Balan avatar

Watchers

James Cloos avatar  avatar

Forkers

uchoaaa robertokl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.