Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Catalyst: accessing maketext from a model

by mkchris (Sexton)
on Jan 21, 2022 at 12:35 UTC ( [id://11140675]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyApp::Maketext;
    
    use strict;
    ...
    use parent qw(CatalystX::I18N::Maketext);
    
    1;
    
  2. or download this
    #!/usr/bin/perl
    
    use strict;
    ...
      directories => [$dir], # Required
      gettext_style => 0, # Optional, Default 1
    );
    
  3. or download this
    my $lang = TopTable::Maketext->get_handle;
    printf "%s\n", $lang->maketext( "menu.title.news" );
    
  4. or download this
    my $lang = TopTable::Maketext->new;
    printf "%s\n", $lang->maketext( "menu.title.news" );
    
  5. or download this
    maketext doesn't know how to say:
    menu.title.news
    as needed at bin\maketext-demo.pl line 23.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11140675]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2024-04-25 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found