Using common modules and templates.
[blog.pm.git] / lib / Blog / DB / Object / I18N / Translation.pm
blobbea6981d29df8db3b17211f900d53fa00fbf4795
1 package Blog::DB::Object::I18N::Translation;
3 use strict;
5 use base qw/ Rose::DB::Object::I18N::Translation Rose::DB::UTF8Columns / ;
7 use Blog::DB;
9 sub init_db { shift; Blog::DB->new_or_cached( @_ ) }
11 sub languages {
12 my @languages = keys %{ Blog->config->{ languages } };
14 wantarray ? @languages : \@languages;
17 =head1 AUTHOR
19 vti
21 =head1 LICENSE
23 This library is free software, you can redistribute it and/or modify
24 it under the same terms as Perl itself.
26 =cut