Hi,
Ruby-GetText-Package-2.1.0 and the families
(gettext-2.1.0, gettext_activerecord-2.1.0 and gettext_rails-2.1.0)
are now available.
Ruby-GetText-Package is the library/tools for message localization.
- gettext - Message localization libraries and tools for all kind of
apps/libs. - gettext_activerecord - ActiveRecord Localization
- gettext_rails - Rails support with gettext.
Changes
== gettext-2.1.0
-
Implemented parsing of translator comments (GNU gettext feature)
[by Vladimir Dobriakov]
— foo.rb
def foo
# TRANSLATORS: Comments for translators here.
# This will be extracted to po-files.
_(“foo”)
end— foo.pot
#. Comments for translators here.
#. This will be extracted to po-files.
#: foo.rb:4
msgid “foo”
msgstr “”The “TRANSLATORS:” keyword is the sign of translator comments.
-
Refactor the directory structure.
- Move files for runtime to lib/gettext/runtime/*.
- Move files for development(rgettext/rmsgfmt) to
lib/gettext/tools/*.
-
Refactor parsers for po. po-message object is defined as
GetText::PoMessage
class. [by Vladimir Dobriakov, Masao M.] -
Speed up when lots of objects are created to share the textdomain in
each
objects. [Reported by Gaël Séchaud.] -
Fix “%{foo.bar}” %{“foo.bar”.to_sym => “a”} doesn’t work.
[Bug#26663, Reported by Danilo C.] -
lib/gettext.rb: Fixed to work unless gem. [Reported by Vladimir
Dobriakov] -
Fixed a wrong String literal in a CGI sample.
[Bug #26531, by Eugene Mikhailov] -
Update license information(explicit to use ruby’s or LGPL).
[Pointed out by Masateru Yoshikawa] -
Code cleanup.
== gettext_activerecord-2.1.0
- Support activerecord 2.3.2, 2.3.3, 2.3.4[by hallelujah]
- Update to work with gettext-2.1.0.
- make test task visible in “rake -T” [by Vladimir Dobriakov]
- Update to user column_mapping. [by hallelujah]
- Update license information (explicit to use Ruby’s or LGPL).
[Pointed out by Masateru Yoshikawa] - Fixed bugs [by hallelujah, Vladimir Dobriakov, Masao M.]
== gettext_rails-2.1.0
- Support Rails-2.3.2, 2.3.3, 2.3.4.
- Fixed to work distance_of_time_in_words.
[Reported by Mitko K., Bart ten Brinke] - Updated version/dependencies.
- Update license information (explicit to use Ruby’s or LGPL).
[Pointed out by Masateru Yoshikawa]
(NOTE)
- Rails-2.3.1 or earlier aren’t supported.
Website
-
rubyforge
http://rubyforge.org/projects/gettext -
github
GitHub - mutoh/gettext: Ruby-GetText-Package is a Localization(L10n) library and tools which modeled after GNU gettext package.
GitHub - mutoh/gettext_activerecord: ActiveRecord(>2.2) localization using Ruby-GetText-Package
GitHub - mutoh/gettext_rails: Ruby on Rails (>=2.3) localization support with Ruby-GetText-Package. -
Download
http://rubyforge.org/frs/?group_id=1997&release_id=32471 -
Ruby-GetText-Package HOWTOs
http://www.yotabanana.com/hiki/ruby-gettext-howto.html -
Ruby-GetText-Package HOWTO for Ruby on Rails
http://www.yotabanana.com/hiki/ruby-gettext-rails.html -
HOWTO Migrate rails-2.1.x(gettext-1.93.0) to
rails-2.3.2(gettext-2.0.0)
http://www.yotabanana.com/hiki/ruby-gettext-rails-migration.html -
Ruby-GetText-Package documents for Translators
http://www.yotabanana.com/hiki/ruby-gettext-translate.html
ScreenShots