Update: That was a typo (stuff <> staff).

I wanted to use quant in the key for the lexicon so that _AUTO would work for english so I wrote following:

package L10N; use base qw(Locale::Maketext); 1; package L10N::pl; use Locale::Maketext; use base qw(L10N); %Lexicon = ( "Foobar [quant,_1,staff]" => "Foobar [quant,_1,staf,stafow,zero st +afu]\n", "Foobar [_1]" => "Foobar [quant,_1,staf,stafow,zero stafu]\n", ); + 1; package Main; my $lh = L10N->get_handle('pl') || die "Language?"; print $lh->maketext("Foobar [_1]", 2); print $lh->maketext("Foobar [quant,_1,stuff]", 2); __OUTPUT__ Foobar 2 stafow maketext doesn't know how to say: Foobar [quant,_1,stuff] as needed at a1.txt line 20
The first maketext shows that [_1] alone works. But when in the second one I use [quant,_1,stuff] it does not find it in the lexicon.

The L::M POD says:

While you can use arbitrary unique IDs for lexicon keys (like "_min_la +rger_max_error"), it is often useful for if an entry's key is itself +a valid value,
Am I missing something here?

In reply to Locale::Maketext lexicon does not let use quant in the key by zby

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.