The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Localize::Format::Gettext - Gettext Formatter

SYNOPSIS

    # Used by Data::Localize::Gettext by default, but if you want to
    # customize ( maybe include function calls "%myfunc(...)" ), then
    # do this:

    $loc = Data::Localize->new();
    $loc->add_localizer(
        Data::Localize::Gettext->new(
            formatter => Data::Localize::Format::Gettext->new(
                functions => {
                    foo => sub {
                        my ($lang, $args) = @_;
                        # $lang isa 'Str',
                        # $args isa 'ArrayRef'
                        return "localized text";
                    },
                    bar => sub { ... },
                    baz => sub { ... },
                }
            )
        )
    );

METHODS

format