Hi,
Ruby-GetText-Package-1.1.0 is now available.
This release enhances many features for Ruby on Rails.
I hope this release make your Application support L10n.
And thanks for many helps!
Highlights
-
Added some functions which managed po/mo files easily.
- GetText.update_pofiles creates/updates pot/po files.
The idea is from Sascha E…
- GetText.update_pofiles creates/updates pot/po files.
-
String% is extended to accept named argument.
“%{file} is selected.” % {:file => “foo.rb”}
Proposed by Sascha E. and Kazuhiro NISHIYAMA. -
Enhanced Ruby on Rails support.
-
ActiveRecord support. Inspired from Simon S.(rgtrans).
-
the error messages are localized.
Also, you can add your own messages with _(“”). -
You can use gettext methods in the models unless
preparing anything. -
rgettext extracts the table names/field names
of the subclass of ActiveRecord::Base as the msgid.
You don’t need to add anything to your model classes
by yourself.Even for the English developers who don’t need
to localize their application, this function is
useful because the developer can rename
the table/field names using “en” locale. -
More simple to set up ApplicationController.
Now, you need to call just init_gettext only.class ApplicationController < ActionController::Base
init_gettext “myapp” #Easy!
endThis “myapp” domain affects all of the controllers/views/models.
-
Sample “blog” application with rails.
Improved the sample application on RoR. See: samples/rails/*.
-
-
New/Updated translations:
Czech - Karel M. (NEW)
Dutch - Menno Jonkers (NEW)
French - Laurent S.
German - Sasa E.
Japanese - Masao M.
Korean - Gyoung-Yoon N.
Portuguese(Brazil) - Joao P.
Spanish - David E. -
bugfixes.
Website
http://rubyforge.org/projects/gettext/
-
Download
http://rubyforge.org/frs/?group_id=855&release_id=2856 -
Ruby-GetText-Package HOWTOs
http://ponx.s5.xrea.com/hiki/ruby-gettext-howto.html -
Ruby-GetText-Package HOWTO for CGI/ERB
http://ponx.s5.xrea.com/hiki/ruby-gettext-howto-cgi.html -
Ruby-GetText-Package HOWTO for Ruby on Rails (NEW)
http://ponx.s5.xrea.com/hiki/ruby-gettext-howto-rails.html -
Ruby-GetText-Package API Reference
http://ponx.s5.xrea.com/hiki/ruby-gettext-api.html
What’s this?
Ruby GetText Package is a Native Language Support Library and
Tools which modeled after GNU gettext package.
- Simple APIs(similar GNU gettext)
- rgettext command for creating po-files from files below:
o ruby scripts
o glade-2 XML file(.glade)
o ERB file(.rhtml)
o ActiveRecord (.rb) - rmsgfmt command for creating a mo-file from a po-file.
- The po-file is compatible to GNU gettext.
You can maintain these files to use GNU getext tools. - The mo-file is compatible to GNU gettext(msgfmt).
- multi-textdomain supported.
You can select two kind of textdomain’s scope:
o A file base (default: recommanded)
o A Class/Module base (GetText::Container, GetText::ErbContainer,
GetText::Rails) - CGI support (gettext/cgi)
- ERB support (gettext/erb)
- Ruby on Rails support (gettext/rails)
Status of translations
cs - 1.1.0
fr - 1.1.0
de - 1.1.0
es - 1.1.0
it - 1.0.0 (still old)
ja - 1.1.0
ko - 1.1.0
nl - 1.1.0
pt_BR - 1.1.0
sv - 0.8.0 (still old)
Can you help us?/ Can we help you?
I’ve started gettext-users-en mailing list.
http://rubyforge.org/mail/?group_id=855
Join us if you are interested in:
- Improve Ruby-GetText-Package.
- Translators.
- Application/library owners who think to make your apps/libs L10n.
If you send us your po-files, we’ll translate it!At least, a Japanese translator is available ;).
Regards,