The following module was proposed for inclusion in the Module List:
modid: Text::MessageLibrary
DSLIP: bdpOa
description: Centralize app's fixed/dynamic text strings
userid: JCLYMAN (John Clyman)
chapterid: 11 (String_Lang_Text_Proc)
communities:
Perlmonks; namespace proposed on c.l.p.m and [EMAIL PROTECTED]
similar:
rationale:
Larger apps can benefit from a way to manage text strings to avoid
string literals scattered throughout code. This module implements a
mechanism for creating lists of text strings (either fixed or with
placeholders filled in at calling time) and wraps it in a nice OO
interface that lets you make calls like this:
print $my_messages->file_open_failed($input_file);
(You never actually define a "file_open_failed" method; an AUTOLOAD
sub generates one for you and performs a lookup to construct the
appropriate string.)
You can find a more detailed discussion of the rationale, and
feedback from others in the community, here:
http://www.perlmonks.org/index.pl?node_id=136715 and here:
http://www.perlmonks.org/index.pl?node_id=136784
I propose the name Text::MessageLibrary because this is basically a
way for managing the text strings in your application. It's not
language-specific, so Lingua::* seems inappropriate. String::* would
be a possibility but my sense is that most of those modules are
lower-level string-manipulation functions. (This is probably closer
to some of the text-templating functions under Text::*.) brian d foy
suggested Class::*, but the OO-ness of this solution is really
incidental (it's for the syntactic convenience of the caller).
Also, Text::* was where I first looked in CPAN when I was initially
searching for a solution to this problem.
enteredby: JCLYMAN (John Clyman)
enteredon: Wed Oct 30 20:44:20 2002 GMT
The resulting entry would be:
Text::
::MessageLibrary bdpOa Centralize app's fixed/dynamic text strings JCLYMAN
Thanks for registering,
The Pause Team
PS: The following links are only valid for module list maintainers:
Registration form with editing capabilities:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=86300000_77370d3eebfa11a7&SUBMIT_pause99_add_mod_preview=1
Immediate (one click) registration:
https://pause.perl.org/pause/authenquery?ACTION=add_mod&USERID=86300000_77370d3eebfa11a7&SUBMIT_pause99_add_mod_insertit=1