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/
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 837
Download (untitled) / with headers
text/plain 837b
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!
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-3809-1363711537-1656.77610-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1075
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


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.