Skip Menu |

This queue is for tickets about the CatalystX-I18N CPAN distribution.

Report information
The Basics
Id: 62176
Status: resolved
Priority: 0/
Queue: CatalystX-I18N

People
Owner: Nobody in particular
Requestors: stuart [...] morungos.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.03
Fixed in: (no value)



Subject: Using CX::I18N::Model::L10N
I'm not sure if this is a bug or not, but I'm finding CX::I18N virtually impossible to use with a model. I've attached a model, but I cannot see how it can ever work, as there is no maketext method on the base CX::I18N::Model::L10N. So, $c->maketext routes to the model, but then never goes anywhere near the .po files. Somehow this needs to get routed to a Locale::Maketext thingy, and although one is created, just, I cannot see how the documented samples and source code match up on this issue. I'm also slightly nervous about the definitions of new in Moose code. Can I help at all? This module ought to do everything I want but I need something better than C::P::I18N as soon as possible, and this is the closest I've seen. It will be really nice when it is polished.
Subject: L10N.pm
package ARM::Model::L10N; use Moose; extends 'CatalystX::I18N::Model::L10N'; 1;
Fr 15. Okt 2010, 13:29:36, SNKWATT schrieb: Show quoted text
> I'm not sure if this is a bug or not, but I'm finding CX::I18N virtually > impossible to use with a model. I've attached a model, but I cannot see > how it can ever work, as there is no maketext method on the base > CX::I18N::Model::L10N. So, $c->maketext routes to the model, but then > never goes anywhere near the .po files. > > Somehow this needs to get routed to a Locale::Maketext thingy, and > although one is created, just, I cannot see how the documented samples
and Show quoted text
> source code match up on this issue.
The CX::I18N::Model::L10N class only glues your Maketext class into catalyst. This means that you will need a Maketext class. See CatalystX::I18N::L10N for more details. I will clarify the documentation in the next release (1.04). Show quoted text
> I 'm also slightly nervous about the > definitions of new in Moose code. Can I help at all?
You are right, I have changed this part to 'around BUILDARGS' Show quoted text
> This module ought to > do everything I want but I need something better than C::P::I18N as soon > as possible, and this is the closest I've seen. It will be really nice > when it is polished.
Thank you for your feedback.