[Rg 128] Re: [PATCH] gettext parser module

Michael Fellinger m.fellinger at gmail.com
Mon Jan 14 11:07:18 EST 2008


On Jan 14, 2008 9:39 PM, Keita Yamaguchi <keita.yamaguchi at gmail.com> wrote:
> Hi,
>
> This patch adds a gettext parser module for creating pot file.
> The pod file generated by this module includes file name and line
> number information.
> And I think this is useful for rake users.
>
> Usage:
>
> put a task like this into Rakefile:
>
> task :generate_pot do
>   require 'ramaze/contrib/gettext/parser.rb'
>   Ramaze::Tool::Gettext.module_eval do
>     pot = (trait[:file] % trait[:default_language]) + '.pot'
>     GetText::RGetText.run(Dir.glob("template/*.{xhtml,mab}"), pot)
>   end
> end
>
> % rake generate_pot

Thank you, applied this as well.

^ manveru


More information about the Ramaze-general mailing list