Module FastGettext
In: lib/fast_gettext.rb
lib/fast_gettext/po_file.rb
lib/fast_gettext/vendor/poparser.rb
lib/fast_gettext/vendor/mofile.rb
lib/fast_gettext/vendor/iconv.rb
lib/fast_gettext/translation_repository/logger.rb
lib/fast_gettext/translation_repository/base.rb
lib/fast_gettext/translation_repository/chain.rb
lib/fast_gettext/translation_repository/db.rb
lib/fast_gettext/translation_repository/mo.rb
lib/fast_gettext/translation_repository/yaml.rb
lib/fast_gettext/translation_repository/po.rb
lib/fast_gettext/cache.rb
lib/fast_gettext/version.rb
lib/fast_gettext/translation_repository.rb
lib/fast_gettext/translation.rb
lib/fast_gettext/mo_file.rb
lib/fast_gettext/storage.rb

Provides Iconv.iconv which normally is provided through Ruby/GLib(1) functions. This library is required for ‘gettext’. If you require ‘gettext/iconv’, it tries to call Ruby/GLib function when it doesn‘t find original Iconv class(iconv.so) it adds a pseudo class.

One-click Ruby Installer for Win32 hadn’t had iconv and there hadn’t been a way to install iconv.so itself for Win32. And JRuby hadn’t had Iconv. I’ve not checked them currently, but if they’ve supported iconv now, we don’t need this anymore…

(1) Ruby/GLib is a module which is provided from Ruby-GNOME2 Project. You can get binaries for Win32(One-Click Ruby Installer). <URL: ruby-gnome2.sourceforge.jp/>

Methods

Included Modules

FastGettext::Storage

Classes and Modules

Module FastGettext::GetText
Module FastGettext::Storage
Module FastGettext::Translation
Module FastGettext::TranslationMultidomain
Module FastGettext::TranslationRepository
Class FastGettext::Cache
Class FastGettext::Iconv
Class FastGettext::MoFile
Class FastGettext::PoFile

Constants

LOCALE_REX = /^[a-z]{2,3}$|^[a-z]{2,3}_[A-Z]{2,3}$/
NAMESPACE_SEPARATOR = '|'
VERSION = Version = '0.9.2'

Public Instance methods

some repositories know where to store their locales

[Validate]