diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-22 12:16:41 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-22 12:16:41 +0000 |
commit | 5dc6f17881b619bdebc328d265c5f4aa5fe76263 (patch) | |
tree | e431a2280d82795e08f6e2229be7fe626ea9e6cc /lib/Locale | |
parent | 3a9c887ec5858f682dcfa670925a52c00d6a8199 (diff) | |
download | perl-5dc6f17881b619bdebc328d265c5f4aa5fe76263.tar.gz |
The #10792 didn't take, and s/sighni/signi/, as noticed by
Philip Newton.
p4raw-id: //depot/perl@10821
Diffstat (limited to 'lib/Locale')
-rw-r--r-- | lib/Locale/Maketext.pod | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/lib/Locale/Maketext.pod b/lib/Locale/Maketext.pod index ef5e66ebbc..e629b9049a 100644 --- a/lib/Locale/Maketext.pod +++ b/lib/Locale/Maketext.pod @@ -110,7 +110,9 @@ These are to do with constructing a language handle: =over -=item $lh = YourProjClass->get_handle( ...langtags... ) || die "lg-handle?"; +=item * + +$lh = YourProjClass->get_handle( ...langtags... ) || die "lg-handle?"; This tries loading classes based on the language-tags you give (like C<("en-US", "sk", "kon", "es-MX", "ja", "i-klingon")>, and for the first class @@ -131,7 +133,9 @@ then if nothing comes of that, we use classes named by YourProjClass->fallback_language_classes(). Then in the (probably quite unlikely) event that that fails, we just return undef. -=item $lh = YourProjClass->get_handleB<()> || die "lg-handle?"; +=item * + +$lh = YourProjClass->get_handleB<()> || die "lg-handle?"; When C<get_handle> is called with an empty parameter list, magic happens: @@ -171,13 +175,17 @@ file, you might consider something like this in your project class: return $lh; } -=item $lh = YourProjClass::langname->new(); +=item * + +$lh = YourProjClass::langname->new(); This constructs a language handle. You usually B<don't> call this directly, but instead let C<get_handle> find a language class to C<use> and to then call ->new on. -=item $lh->init(); +=item * + +$lh->init(); This is called by ->new to initialize newly-constructed language handles. If you define an init method in your class, remember that it's usually @@ -185,7 +193,9 @@ considered a good idea to call $lh->SUPER::init in it (presumably at the beginning), so that all classes get a chance to initialize a new object however they see fit. -=item YourProjClass->fallback_languages() +=item * + +YourProjClass->fallback_languages() C<get_handle> appends the return value of this to the end of whatever list of languages you pass C<get_handle>. Unless @@ -201,7 +211,9 @@ C<get_handle> will always manage to construct a language handle (assuming your language classes are in an appropriate @INC directory). Or you can use the next method: -=item YourProjClass->fallback_language_classes() +=item * + +YourProjClass->fallback_language_classes() C<get_handle> appends the return value of this to the end of the list of classes it will try using. Unless |