This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 7de10a5255086d3b71ca0194cc1f9613e843a962
tree 1c903e6834735f7db7720116c560cbb7b55bab6d
parent 803a02bd3bf7d7017dc299488eff1e6621af991f
tree 1c903e6834735f7db7720116c560cbb7b55bab6d
parent 803a02bd3bf7d7017dc299488eff1e6621af991f
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Mon Sep 08 09:58:52 -0700 2008 | |
| |
README | Tue Sep 16 10:10:29 -0700 2008 | |
| |
Rakefile | Tue Sep 09 02:56:58 -0700 2008 | |
| |
init.rb | Mon Sep 15 05:49:42 -0700 2008 | |
| |
install.rb | Mon Sep 08 09:54:50 -0700 2008 | |
| |
lib/ | Wed Sep 24 07:52:47 -0700 2008 | |
| |
rdoc/ | Tue Sep 09 05:36:37 -0700 2008 | |
| |
tasks/ | Mon Sep 15 06:49:53 -0700 2008 | |
| |
test/ | Wed Sep 24 07:52:47 -0700 2008 | |
| |
uninstall.rb | Mon Sep 08 09:54:50 -0700 2008 |
README
GettextToI18n
=============
This plugin will convert your complete Rails project from Gettext calls to the new i18n api calls introduced in Rails
2.2.2. NB: This plugin is higly experimental, so before running, BACKUP YOUR CODE. It will touch your code and things
always can go wrong!
Example
=======
<%=_("Some string that will be translated, into %{lan}" % {:lan => 'english'}) %>
will be converted into:
<%=t(:message_0, :lan => 'english', :scope => [:controller, :controller_name]) %>
it will then place a entry:
"Some string that will be translated, into {{lan}}"
in the standard.yml locale file it generates.
About namespaces
========
By default the plugin walks all files in the app directory. It places the message id's into namespaces. The namespace
are divided like this:
Controllers: translation[:txt][:controller][:controller_name]
Views: translation[:txt][:view][:view_colleciton_name]
-> etc.
Usage
=======
To convert all your views, controllers and models to the new format.
rake gettext_to_i18n:transform
Installation
=======
./script/plugin install git://github.com/japetheape/gettext_to_i18n.git
-------------
Copyright (c) 2008 Jaap van der Meer, released under the MIT license







