Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 77610
Status: resolved
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: dean [...] fragfest.com.au
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: I18N .po files arent copied in to blib/
hello, When Module::Build copies the librarys over to blib/lib it seems to look for .pm files and xs related files - but misses .po files (and similar) which seem[1] to be correctly placed in lib/Foo/I18N/*.po [1]This location seems common in many distributions, though i cant see it stated anywhere in Locale::Maketext::* Browsing the pod and source of Module::Build, i can't see any (obvious) way to add more file extensions to the include list. The result is that 'Build test' fails if .po files are needed somehow (ie for web output) Hopefully i am missing something. For now i've had Dist::Zilla use MakeMaker. Otherwise i will add a back door to include more .po paths with stub type .po file - that may actually be better for testing. Though doesnt allow tests on the 'canonical' messages. Thanks for writing this software!
On Sun Jun 03 23:55:02 2012, djzort wrote: Show quoted text
> hello, > > When Module::Build copies the librarys over to blib/lib it seems to look > for .pm files and xs related files - but misses .po files (and similar) > which seem[1] to be correctly placed in lib/Foo/I18N/*.po > > [1]This location seems common in many distributions, though i cant see > it stated anywhere in Locale::Maketext::* > > Browsing the pod and source of Module::Build, i can't see any (obvious) > way to add more file extensions to the include list. > > The result is that 'Build test' fails if .po files are needed somehow > (ie for web output) > > Hopefully i am missing something. > > For now i've had Dist::Zilla use MakeMaker. Otherwise i will add a back > door to include more .po paths with stub type .po file - that may > actually be better for testing. Though doesnt allow tests on the > 'canonical' messages. > > Thanks for writing this software!
See https://metacpan.org/module/Module::Build::Cookbook#Adding-new-file-types-to-the-build-process for an explanation on how to achieve that. Leon