
ton.voon at opsera
Jun 24, 2009, 9:21 AM
Post #1 of 3
(915 views)
Permalink
|
|
C::P::I18N patch to include languages list
|
|
Hi! Is this a useful patch to Catalyst::Plugin::I18N? Or should it reside elsewhere? I think it makes sense to put with C::P::I18N. The idea is that you can call $c->languages_list and get back a hash like: { en => "English", en_gb => "UK English", de => "German" } Where the keys are based on imported files in MyApp::I18N::{language} and the descriptive names are based on I18N::LangTags::List. So this list will automatically get extended as new translated files come into existence. Ton
|