1Locale::TextDomain::OO:U:sReorleC:oL:noDtcoramilabeiu:nt:AeTndedxCPtaeDtroelmgaoDironyc:(u:3mO)eOn:t:aRtoiloen::DomainAndCategory(3)
2
3
4

NAME

6       Locale::TextDomain::OO::Role::DomainAndCategory - Provides domain and
7       category switch methods
8
9       $Id: DomainAndCategory.pm 689 2017-08-29 21:37:38Z steffenw $
10
11       $HeadURL:
12       svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/module/trunk/lib/Locale/TextDomain/OO/Role/DomainAndCategory.pm
13       $
14

VERSION

16       1.030
17

DESCRIPTION

19       This module provides domain and category switch methods and the local
20       scope for for Locale::TextDomain:OO.
21

SYNOPSIS

23       see SUBROUTINES/METHODS
24

SUBROUTINES/METHODS

26   method callback_scope
27           $loc->callback_scope(
28               sub {
29                   # switch domain and/or category
30                   $loc->begin_...(...);
31                   return $loc->... # translate
32               },
33           );
34       }
35
36   methods begin_d, end_d
37       Switch the domain.
38
39           $loc->begin_d($domain);
40
41       All translations using the lexicon of that domain.
42
43           $loc->end_d;
44
45       All translations using the lexicon before call of begin_d.
46
47   methods begin_c, end_c
48       Switch the category.
49
50           $loc->begin_c($category);
51
52       All translations using the lexicon of that category.
53
54           $loc->end_c;
55
56       All translations using the lexicon before call of begin_c.
57
58   methods begin_dc, end_dc
59       Switch the domain and category.
60
61           $loc->begin_dc($domain, $category);
62
63       All translations using the lexicon of that domain and category.
64
65           $loc->end_dc;
66
67       All translations using the lexicon before call of begin_dc.
68

EXAMPLE

70       Inside of this distribution is a directory named example.  Run this
71       *.pl files.
72

DIAGNOSTICS

74       confess
75
76       cluck
77

CONFIGURATION AND ENVIRONMENT

79       none
80

DEPENDENCIES

82       Carp
83
84       Locale::TextDomain::OO::Translator
85
86       Moo::Role
87

INCOMPATIBILITIES

89       not known
90

BUGS AND LIMITATIONS

92       none
93

SEE ALSO

95       Locale::TextDoamin::OO
96

AUTHOR

98       Steffen Winkler
99
101       Copyright (c) 2017, Steffen Winkler "<steffenw at cpan.org>".  All
102       rights reserved.
103
104       This module is free software; you can redistribute it and/or modify it
105       under the same terms as Perl itself.
106
107
108
109perl v5.32.0                Locale2:0:2T0e-x0t7D-o2m8ain::OO::Role::DomainAndCategory(3)
Impressum