in reply to getting Locale::TextDomain working

What am I missing?

Debuggering output, $...DEBUG++ ... nothing obvious in the docs/main module but it usually exists

Also "LANGUAGE=fr" seems like ... where did you come up with that? I don't see "LANGUAGE=" in the main docs, but I do see it here (among other steps to try) https://metacpan.org/pod/distribution/libintl-perl/lib/Locale/libintlFAQ.pod#How-do-I-switch-languages-or-force-a-certain-language-independently-from-user-settings-read-from-the-environment

Replies are listed 'Best First'.
Re^2: getting Locale::TextDomain working
by mla12 (Acolyte) on Jul 08, 2015 at 19:16 UTC
    Also "LANGUAGE=fr" seems like ... where did you come up with that? I don't see "LANGUAGE=" in the main docs, but I do see it here (among other steps to try) https://metacpan.org/pod/distribution/libintl-perl/lib/Locale/libintlFAQ.pod#How-do-I-switch-languages-or-force-a-certain-language-independently-from-user-settings-read-from-the-environment

    I got that from the Dist::Zilla::LocaleTextDomain tutorial: http://perladvent.org/2013/2013-12-09.html

    In the "Lost in Translation" section, it says:

    One more thing, a note for translators. They can, of course, also use msg-scan and msg-merge to update the catalogs they're working on. But how do they test their translations? Easy: use the msg-compile command to compile a single catalog:
    % dzil msg-compile po/fr.po [LocaleTextDomain] po/fr.po: 195 translated messages.
    The resulting compiled catalog will be saved to the LocaleData subdirectory of the current directory, so it's easily available to your app for testing. Just be sure to tell Perl to include the current directory in the search path, and set the $LANGUAGE environment variable for your language. For example, here's how I test the Sqitch French catalog:
    % dzil msg-compile po/fr.po [LocaleTextDomain] po/fr.po: 148 translated messages, 36 fuzzy tra +nslations, 27 untranslated messages. % LANGUAGE=fr perl -Ilib -CAS -I. bin/sqitch foo "foo" n'est pas une commande valide

    I did try some of the other FAQ techniques without luck. I'll go through it again tonight and look for any internal debugging support.

      It turned out to be a missing directive from the dist.ini

      You must have share_dir = lib in order for the last examples to work.

      [LocaleTextDomain] share_dir = lib