As my first assignment in my new job ramps up, one task I've taken on is to resolve L10N issues. From the looks of things, I think Locale::Maketext looks to have addressed 90%+ of the issues (though if they could have packaged in base classes that help with double-byte, or other locale, issues, that'd have been great - they seemed to know about some issues, just leaving handling them as excersises for the users). One substantial piece left unresolved is the creation of the base language class (usually English). They provide an _AUTO option, which looks useful, until I found out that, well, it didn't write the updates back to the English module, which would make it harder to create the modules for the other languages.

Also missing is the "delta" - that is, merging those keys, but with empty values, into the other languages' modules.

The first thing popping into my head would be to use something like PPI to look for the maketext calls and extract the first parameter and then use that to update all the language files (as both key and value for English, and just key with empty value for other languages). Manually updating English is already annoying, so that'd actually be the second thing that popped into my head, and it doesn't actually resolve the other-languages issue to send to the translators.

I'm wondering if anyone else has dealt with this already, and what approach you took? Is "use utf8;" required at the top of these files?


In reply to Localisation and Locale::Maketext by Tanktalus

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.