File: //usr/local/rvm/gems/default/doc/i18n-1.8.11/ri/I18n/Backend/Gettext/cdesc-Gettext.ri
U:RDoc::NormalModule[iI"Gettext:ETI"I18n::Backend::Gettext;T0o:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"KExperimental support for using Gettext po files to store translations.;To:RDoc::Markup::BlankLine o; ;[I"NTo use this you can simply include the module to the Simple backend - or ;TI"*whatever other backend you are using.;T@o:RDoc::Markup::Verbatim;[I";I18n::Backend::Simple.include(I18n::Backend::Gettext)
;T:@format0o; ;[I"PNow you should be able to include your Gettext translation (*.po) files to ;TI"Sthe +I18n.load_path+ so they're loaded to the backend and you can use them as ;TI"usual:;T@o;;[I"3I18n.load_path += Dir["path/to/locales/*.po"]
;T;0o; ;[I"LFollowing the Gettext convention this implementation expects that your ;TI"Mtranslation files are named by their locales. E.g. the file en.po would ;TI"5contain the translations for the English locale.;T@o; ;[I"TTo translate text <b>you must use</b> one of the translate methods provided by ;TI"I18n::Gettext::Helpers.;T@o;;[I"$include I18n::Gettext::Helpers
;TI"puts _("some string")
;T;0o; ;[I"HWithout it strings containing periods (".") will not be translated.;T:
@fileI" lib/i18n/backend/gettext.rb;T:0@omit_headings_from_table_of_contents_below0;
0;0[ [ [ [[I"
class;T[[:public[ [:protected[ [:private[ [I"
instance;T[[;[ [;[ [I"load_po;TI" lib/i18n/backend/gettext.rb;T[I"normalize;T@G[I"normalize_pluralization;T@G[I"
parse;T@G[;[ [ [U:RDoc::Context::Section[i 0o;;[ ;
0;0[@0I"I18n::Backend;TcRDoc::NormalModule