From 81bce31b17e5ff7807301779fbadfb74161fff81 Mon Sep 17 00:00:00 2001 From: vti Date: Thu, 18 Sep 2008 16:56:17 +0200 Subject: [PATCH] Rose::DBx::Object::I18N. Rename due to CPAN convention. Documentation. Preparing for CPAN upload. --- Rose-DB-Object-I18N/t/01use.t | 9 - .../Makefile.PL | 6 +- .../lib/Rose/DBx}/Object/I18N/Manager.pm | 2 +- .../lib/Rose/DBx}/Object/I18N/Static.pm | 343 +++++++++++---------- .../lib/Rose/DBx}/Object/I18N/Translation.pm | 8 +- Rose-DBx-Object-I18N/t/01use.t | 9 + .../t/02pod.t | 0 .../t/available-translations-after-prefetch.t | 0 .../t/available-translations-before-load-i18n.t | 0 .../t/available-translations.t | 0 .../t/column-value-pairs.t | 0 .../t/delete-i18n.t | 0 .../t/delete.t | 0 .../t/insert-with-fake-columns.t | 0 .../t/insert-with-i18n-data.t | 0 .../t/insert.t | 0 .../t/is-original-translation.t | 0 .../t/is-original.t | 0 .../t/lib/DB.pm | 0 .../t/lib/DB/Object/I18N/Static.pm | 2 +- .../t/lib/DB/Object/I18N/Translation.pm | 2 +- .../t/lib/NewDB.pm | 0 .../t/lib/User.pm | 0 .../t/lib/User/Manager.pm | 0 .../t/lib/UserI18N.pm | 0 .../t/load-i18n-with-default-language.t | 0 .../t/load-i18n-with-wrong-language.t | 0 .../t/load-i18n.t | 0 .../t/load-with-i18n.t | 0 .../t/not-translated-i18n.t | 0 .../t/prefetch.t | 0 .../t/update-original.t | 0 .../t/update-translation-on-demand.t | 0 .../t/update-translation-with-sync.t | 0 .../t/update-translation.t | 0 35 files changed, 196 insertions(+), 185 deletions(-) delete mode 100644 Rose-DB-Object-I18N/t/01use.t rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/Makefile.PL (54%) rename {Rose-DB-Object-I18N/lib/Rose/DB => Rose-DBx-Object-I18N/lib/Rose/DBx}/Object/I18N/Manager.pm (94%) rename {Rose-DB-Object-I18N/lib/Rose/DB => Rose-DBx-Object-I18N/lib/Rose/DBx}/Object/I18N/Static.pm (94%) rename {Rose-DB-Object-I18N/lib/Rose/DB => Rose-DBx-Object-I18N/lib/Rose/DBx}/Object/I18N/Translation.pm (89%) create mode 100644 Rose-DBx-Object-I18N/t/01use.t rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/02pod.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/available-translations-after-prefetch.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/available-translations-before-load-i18n.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/available-translations.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/column-value-pairs.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/delete-i18n.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/delete.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/insert-with-fake-columns.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/insert-with-i18n-data.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/insert.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/is-original-translation.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/is-original.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/lib/DB.pm (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/lib/DB/Object/I18N/Static.pm (88%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/lib/DB/Object/I18N/Translation.pm (87%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/lib/NewDB.pm (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/lib/User.pm (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/lib/User/Manager.pm (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/lib/UserI18N.pm (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/load-i18n-with-default-language.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/load-i18n-with-wrong-language.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/load-i18n.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/load-with-i18n.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/not-translated-i18n.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/prefetch.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/update-original.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/update-translation-on-demand.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/update-translation-with-sync.t (100%) rename {Rose-DB-Object-I18N => Rose-DBx-Object-I18N}/t/update-translation.t (100%) diff --git a/Rose-DB-Object-I18N/t/01use.t b/Rose-DB-Object-I18N/t/01use.t deleted file mode 100644 index d18325e..0000000 --- a/Rose-DB-Object-I18N/t/01use.t +++ /dev/null @@ -1,9 +0,0 @@ -use strict; -use Test::More tests => 3; - -BEGIN { - use_ok( 'Rose::DB::Object::I18N::Static' ); - use_ok( 'Rose::DB::Object::I18N::Translation' ); - use_ok( 'Rose::DB::Object::I18N::Manager' ); -} - diff --git a/Rose-DB-Object-I18N/Makefile.PL b/Rose-DBx-Object-I18N/Makefile.PL similarity index 54% rename from Rose-DB-Object-I18N/Makefile.PL rename to Rose-DBx-Object-I18N/Makefile.PL index 37a7afc..68f2d4d 100644 --- a/Rose-DB-Object-I18N/Makefile.PL +++ b/Rose-DBx-Object-I18N/Makefile.PL @@ -1,13 +1,13 @@ use inc::Module::Install; -name 'Rose-DB-Object-I18N'; +name 'Rose-DBx-Object-I18N'; -all_from 'lib/Rose/DB/Object/I18N/Static.pm'; +all_from 'lib/Rose/DBx/Object/I18N/Static.pm'; perl_version '5.006'; requires( 'Rose::DB::Object' => '', - + 'Hash::Merge' => '' ); auto_install; diff --git a/Rose-DB-Object-I18N/lib/Rose/DB/Object/I18N/Manager.pm b/Rose-DBx-Object-I18N/lib/Rose/DBx/Object/I18N/Manager.pm similarity index 94% rename from Rose-DB-Object-I18N/lib/Rose/DB/Object/I18N/Manager.pm rename to Rose-DBx-Object-I18N/lib/Rose/DBx/Object/I18N/Manager.pm index fbcaacc..6a9fade 100644 --- a/Rose-DB-Object-I18N/lib/Rose/DB/Object/I18N/Manager.pm +++ b/Rose-DBx-Object-I18N/lib/Rose/DBx/Object/I18N/Manager.pm @@ -1,4 +1,4 @@ -package Rose::DB::Object::I18N::Manager; +package Rose::DBx::Object::I18N::Manager; use strict; use warnings; diff --git a/Rose-DB-Object-I18N/lib/Rose/DB/Object/I18N/Static.pm b/Rose-DBx-Object-I18N/lib/Rose/DBx/Object/I18N/Static.pm similarity index 94% rename from Rose-DB-Object-I18N/lib/Rose/DB/Object/I18N/Static.pm rename to Rose-DBx-Object-I18N/lib/Rose/DBx/Object/I18N/Static.pm index 57506c8..8259ddb 100644 --- a/Rose-DB-Object-I18N/lib/Rose/DB/Object/I18N/Static.pm +++ b/Rose-DBx-Object-I18N/lib/Rose/DBx/Object/I18N/Static.pm @@ -1,4 +1,4 @@ -package Rose::DB::Object::I18N::Static; +package Rose::DBx::Object::I18N::Static; use strict; use warnings; @@ -14,7 +14,17 @@ use Rose::DB::Object::Helpers qw/ has_loaded_related /; our $Debug = 0; -sub get_i18n_rel_name { +=head1 NAME + +Rose::DBx::Object::I18N::Static - part for the static (not translatable) data + +=head1 SYNOPSIS + +=head1 DESCRIPTION + +=cut + +sub get_translation_rel_name { my $self = shift; my ( $rel ) = grep { $_->name =~ m/i18n/o } @{ $self->meta->relationships }; @@ -27,7 +37,7 @@ sub get_i18n_rel_name { sub i18n { my $self = shift; - my $rel_name = $self->get_i18n_rel_name(); + my $rel_name = $self->get_translation_rel_name(); if ( $self->has_loaded_related( $rel_name ) && !$self->{ _i18n } ) { $self->{ _i18n } = $self->$rel_name->[ 0 ]; @@ -45,7 +55,7 @@ sub is_original { sub available_translations { my $self = shift; - my $rel_name = $self->get_i18n_rel_name(); + my $rel_name = $self->get_translation_rel_name(); my $method = "find_$rel_name"; unless ( $self->i18n ) { @@ -87,7 +97,7 @@ sub init { my %params = @_; - my $rel_name = $self->get_i18n_rel_name(); + my $rel_name = $self->get_translation_rel_name(); my $i18n = {}; @@ -103,6 +113,167 @@ sub init { $self->SUPER::init( %params ); } +sub load_i18n { + my $self = shift; + my %args = @_; + + my $language = $args{ language } || $self->orig_lang; + + my $rel_name = $self->get_translation_rel_name(); + + my $meta = $self->meta; + + my $method = "find_$rel_name"; + my $i18n = $self->$method( [ lang => $language ] ); + #die 'OK' if $self->has_loaded_related('user_i18n'); + + my $loaded_ok = $i18n ? $i18n->[ 0 ] ? 1 : 0 : 0; + + unless ( $loaded_ok ) { + my $speculative = + exists $args{ 'speculative' } + ? $args{ 'speculative' } + : $meta->default_load_speculative; + + unless ( $speculative ) { + $self->error( "load_i18n() - can't find $language translation" ); + $meta->handle_error( $self ); + } + + return 0; + } + + $self->{ _i18n } = $i18n->[ 0 ]; + + return 1; +} + +sub column_value_pairs { + my ( $self ) = shift; + + my %pairs; + + my $methods = $self->meta->column_accessor_method_names_hash; + + while ( my ( $column, $method ) = each( %$methods ) ) { + $pairs{ $column } = $self->$method(); + } + + my $rel_name = $self->get_translation_rel_name(); + + if ( $self->has_loaded_related( $rel_name ) || $self->{ _i18n } ) { + %pairs = ( %pairs, $self->i18n->column_value_pairs ); + } + + return wantarray ? %pairs : \%pairs; +} + +sub save { + my $self = shift; + my %params = @_; + + my $rel_name = $self->get_translation_rel_name(); + + my $i18n_save = 0; + #if ( !$self->has_loaded_related( $rel_name ) && $self->{ _i18n } ) { + if ( $self->{ _i18n } ) { + $i18n_save = 1; + } + + $self->i18n->save() if $i18n_save && !$params{noi18n}; + #$self->i18n->save(); + + $self->SUPER::save(@_); +} + +sub insert { + my $self = shift; + + die 'no languages provided' unless $self->languages; + + my $rel_name = $self->get_translation_rel_name(); + + if ( $self->$rel_name ) { + my $i18n = shift @{ $self->$rel_name }; + + my $add_method = "add_$rel_name"; + foreach my $lang ( @{ $self->languages } ) { + $i18n->lang( $lang ); + $i18n->istran( 0 ); + $self->$add_method( + { map { $_ => $i18n->$_ } @{ $i18n->meta->column_names } } + ); + } + } else { + $self->$rel_name( map { { lang => $_, istran => 0 } } $self->languages ); + } + + $self->SUPER::insert( @_ ); +} + +sub is_original_translation { + my $self = shift; + + return $self->orig_lang eq $self->i18n->lang; +} + +sub original_i18n { + my $self = shift; + + my $translation_rel_name = $self->get_translation_rel_name(); + my $method = "find_$translation_rel_name"; + + return $self->$method( + query => [ + istran => 0, + lang => $self->orig_lang + ] + )->[ 0 ]; +} + +sub not_translated_i18n { + my $self = shift; + + my $translation_rel_name = $self->get_translation_rel_name(); + my $method = "find_$translation_rel_name"; + + my @i18n = $self->$method( + query => [ + istran => 0, + lang => { ne => $self->orig_lang } + ] + ); + + return wantarray ? @i18n : \@i18n; +} + +#sub delete { + #my $self = shift; + #my %args = @_; + + #if ( !$self->is_original_table ) { + #my $rel_name = $self->get_original_rel_name(); + #unless ( !$args{cascade}) { + #$_->delete foreach @{ $self->$rel_name }; + #} + #} + + #$self->SUPER::delete( %args ); +#} + +sub delete_i18n { + my $self = shift; + + return if $self->i18n->is_original_translation; + + return unless $self->i18n->istran; + + my $original_i18n = $self->original_i18n; + + $self->i18n->istran( 0 ); + $self->i18n->sync_with( $original_i18n ); +} + sub load { my($self) = $_[0]; # XXX: Must maintain alias to actual "self" object arg @@ -126,7 +297,7 @@ sub load my $found_key = 0; if ( my $i18n = delete $args{ i18n } ) { - my $rel_name = $self->get_i18n_rel_name(); + my $rel_name = $self->get_translation_rel_name(); my $new_args = merge { query => ["$rel_name.lang" => $i18n], with => [ $rel_name ] @@ -439,166 +610,6 @@ sub load return $self || 1; } -sub load_i18n { - my $self = shift; - my %args = @_; - - my $language = $args{ language } || $self->orig_lang; - - my $rel_name = $self->get_i18n_rel_name(); - - my $meta = $self->meta; - - my $method = "find_$rel_name"; - my $i18n = $self->$method( [ lang => $language ] ); - #die 'OK' if $self->has_loaded_related('user_i18n'); - - my $loaded_ok = $i18n ? $i18n->[ 0 ] ? 1 : 0 : 0; - - unless ( $loaded_ok ) { - my $speculative = - exists $args{ 'speculative' } - ? $args{ 'speculative' } - : $meta->default_load_speculative; - - unless ( $speculative ) { - $self->error( "load_i18n() - can't find $language translation" ); - $meta->handle_error( $self ); - } - - return 0; - } - - $self->{ _i18n } = $i18n->[ 0 ]; - - return 1; -} - -sub column_value_pairs { - my ( $self ) = shift; - - my %pairs; - - my $methods = $self->meta->column_accessor_method_names_hash; - - while ( my ( $column, $method ) = each( %$methods ) ) { - $pairs{ $column } = $self->$method(); - } - - my $rel_name = $self->get_i18n_rel_name(); - - if ( $self->has_loaded_related( $rel_name ) || $self->{ _i18n } ) { - %pairs = ( %pairs, $self->i18n->column_value_pairs ); - } - - return wantarray ? %pairs : \%pairs; -} - -sub save { - my $self = shift; - my %params = @_; - - my $rel_name = $self->get_i18n_rel_name(); - - my $i18n_save = 0; - #if ( !$self->has_loaded_related( $rel_name ) && $self->{ _i18n } ) { - if ( $self->{ _i18n } ) { - $i18n_save = 1; - } - - $self->i18n->save() if $i18n_save && !$params{noi18n}; - #$self->i18n->save(); - - $self->SUPER::save(@_); -} - -sub insert { - my $self = shift; - - die 'no languages provided' unless $self->languages; - - my $rel_name = $self->get_i18n_rel_name(); - - if ( $self->$rel_name ) { - my $i18n = shift @{ $self->$rel_name }; - - my $add_method = "add_$rel_name"; - foreach my $lang ( @{ $self->languages } ) { - $i18n->lang( $lang ); - $i18n->istran( 0 ); - $self->$add_method( - { map { $_ => $i18n->$_ } @{ $i18n->meta->column_names } } - ); - } - } else { - $self->$rel_name( map { { lang => $_, istran => 0 } } $self->languages ); - } - - $self->SUPER::insert( @_ ); -} - -sub is_original_translation { - my $self = shift; - - return $self->orig_lang eq $self->i18n->lang; -} - -sub original_i18n { - my $self = shift; - - my $i18n_rel_name = $self->get_i18n_rel_name(); - my $method = "find_$i18n_rel_name"; - - return $self->$method( - query => [ - istran => 0, - lang => $self->orig_lang - ] - )->[ 0 ]; -} - -sub not_translated_i18n { - my $self = shift; - - my $i18n_rel_name = $self->get_i18n_rel_name(); - my $method = "find_$i18n_rel_name"; - - my @i18n = $self->$method( - query => [ - istran => 0, - lang => { ne => $self->orig_lang } - ] - ); - - return wantarray ? @i18n : \@i18n; -} - -#sub delete { - #my $self = shift; - #my %args = @_; - - #if ( !$self->is_original_table ) { - #my $rel_name = $self->get_original_rel_name(); - #unless ( !$args{cascade}) { - #$_->delete foreach @{ $self->$rel_name }; - #} - #} - - #$self->SUPER::delete( %args ); -#} - -sub delete_i18n { - my $self = shift; - - return if $self->i18n->is_original_translation; - - return unless $self->i18n->istran; - - my $original_i18n = $self->original_i18n; - - $self->i18n->istran( 0 ); - $self->i18n->sync_with( $original_i18n ); -} =head1 AUTHOR diff --git a/Rose-DB-Object-I18N/lib/Rose/DB/Object/I18N/Translation.pm b/Rose-DBx-Object-I18N/lib/Rose/DBx/Object/I18N/Translation.pm similarity index 89% rename from Rose-DB-Object-I18N/lib/Rose/DB/Object/I18N/Translation.pm rename to Rose-DBx-Object-I18N/lib/Rose/DBx/Object/I18N/Translation.pm index bdb7d95..c2dba22 100644 --- a/Rose-DB-Object-I18N/lib/Rose/DB/Object/I18N/Translation.pm +++ b/Rose-DBx-Object-I18N/lib/Rose/DBx/Object/I18N/Translation.pm @@ -1,11 +1,11 @@ -package Rose::DB::Object::I18N::Translation; +package Rose::DBx::Object::I18N::Translation; use strict; use warnings; use base qw/ Rose::DB::Object /; -sub get_original_rel_name { +sub static_rel_name { my $self = shift; my ( $rel ) = grep { $_->type eq 'one to one' } $self->meta->relationships; @@ -18,7 +18,7 @@ sub get_original_rel_name { sub is_original_translation { my $self = shift; - my $rel_name = $self->get_original_rel_name(); + my $rel_name = $self->static_rel_name(); my $parent = $self->$rel_name; return $parent->orig_lang eq $self->lang; @@ -27,7 +27,7 @@ sub is_original_translation { sub parent { my $self = shift; - my $rel_name = $self->get_original_rel_name(); + my $rel_name = $self->static_rel_name(); return $self->$rel_name; } diff --git a/Rose-DBx-Object-I18N/t/01use.t b/Rose-DBx-Object-I18N/t/01use.t new file mode 100644 index 0000000..46c49fa --- /dev/null +++ b/Rose-DBx-Object-I18N/t/01use.t @@ -0,0 +1,9 @@ +use strict; +use Test::More tests => 3; + +BEGIN { + use_ok( 'Rose::DBx::Object::I18N::Static' ); + use_ok( 'Rose::DBx::Object::I18N::Translation' ); + use_ok( 'Rose::DBx::Object::I18N::Manager' ); +} + diff --git a/Rose-DB-Object-I18N/t/02pod.t b/Rose-DBx-Object-I18N/t/02pod.t similarity index 100% rename from Rose-DB-Object-I18N/t/02pod.t rename to Rose-DBx-Object-I18N/t/02pod.t diff --git a/Rose-DB-Object-I18N/t/available-translations-after-prefetch.t b/Rose-DBx-Object-I18N/t/available-translations-after-prefetch.t similarity index 100% rename from Rose-DB-Object-I18N/t/available-translations-after-prefetch.t rename to Rose-DBx-Object-I18N/t/available-translations-after-prefetch.t diff --git a/Rose-DB-Object-I18N/t/available-translations-before-load-i18n.t b/Rose-DBx-Object-I18N/t/available-translations-before-load-i18n.t similarity index 100% rename from Rose-DB-Object-I18N/t/available-translations-before-load-i18n.t rename to Rose-DBx-Object-I18N/t/available-translations-before-load-i18n.t diff --git a/Rose-DB-Object-I18N/t/available-translations.t b/Rose-DBx-Object-I18N/t/available-translations.t similarity index 100% rename from Rose-DB-Object-I18N/t/available-translations.t rename to Rose-DBx-Object-I18N/t/available-translations.t diff --git a/Rose-DB-Object-I18N/t/column-value-pairs.t b/Rose-DBx-Object-I18N/t/column-value-pairs.t similarity index 100% rename from Rose-DB-Object-I18N/t/column-value-pairs.t rename to Rose-DBx-Object-I18N/t/column-value-pairs.t diff --git a/Rose-DB-Object-I18N/t/delete-i18n.t b/Rose-DBx-Object-I18N/t/delete-i18n.t similarity index 100% rename from Rose-DB-Object-I18N/t/delete-i18n.t rename to Rose-DBx-Object-I18N/t/delete-i18n.t diff --git a/Rose-DB-Object-I18N/t/delete.t b/Rose-DBx-Object-I18N/t/delete.t similarity index 100% rename from Rose-DB-Object-I18N/t/delete.t rename to Rose-DBx-Object-I18N/t/delete.t diff --git a/Rose-DB-Object-I18N/t/insert-with-fake-columns.t b/Rose-DBx-Object-I18N/t/insert-with-fake-columns.t similarity index 100% rename from Rose-DB-Object-I18N/t/insert-with-fake-columns.t rename to Rose-DBx-Object-I18N/t/insert-with-fake-columns.t diff --git a/Rose-DB-Object-I18N/t/insert-with-i18n-data.t b/Rose-DBx-Object-I18N/t/insert-with-i18n-data.t similarity index 100% rename from Rose-DB-Object-I18N/t/insert-with-i18n-data.t rename to Rose-DBx-Object-I18N/t/insert-with-i18n-data.t diff --git a/Rose-DB-Object-I18N/t/insert.t b/Rose-DBx-Object-I18N/t/insert.t similarity index 100% rename from Rose-DB-Object-I18N/t/insert.t rename to Rose-DBx-Object-I18N/t/insert.t diff --git a/Rose-DB-Object-I18N/t/is-original-translation.t b/Rose-DBx-Object-I18N/t/is-original-translation.t similarity index 100% rename from Rose-DB-Object-I18N/t/is-original-translation.t rename to Rose-DBx-Object-I18N/t/is-original-translation.t diff --git a/Rose-DB-Object-I18N/t/is-original.t b/Rose-DBx-Object-I18N/t/is-original.t similarity index 100% rename from Rose-DB-Object-I18N/t/is-original.t rename to Rose-DBx-Object-I18N/t/is-original.t diff --git a/Rose-DB-Object-I18N/t/lib/DB.pm b/Rose-DBx-Object-I18N/t/lib/DB.pm similarity index 100% rename from Rose-DB-Object-I18N/t/lib/DB.pm rename to Rose-DBx-Object-I18N/t/lib/DB.pm diff --git a/Rose-DB-Object-I18N/t/lib/DB/Object/I18N/Static.pm b/Rose-DBx-Object-I18N/t/lib/DB/Object/I18N/Static.pm similarity index 88% rename from Rose-DB-Object-I18N/t/lib/DB/Object/I18N/Static.pm rename to Rose-DBx-Object-I18N/t/lib/DB/Object/I18N/Static.pm index 437452b..167609c 100644 --- a/Rose-DB-Object-I18N/t/lib/DB/Object/I18N/Static.pm +++ b/Rose-DBx-Object-I18N/t/lib/DB/Object/I18N/Static.pm @@ -2,7 +2,7 @@ package DB::Object::I18N::Static; use strict; -use base qw/ Rose::DB::Object::I18N::Static / ; +use base qw/ Rose::DBx::Object::I18N::Static / ; use DB; diff --git a/Rose-DB-Object-I18N/t/lib/DB/Object/I18N/Translation.pm b/Rose-DBx-Object-I18N/t/lib/DB/Object/I18N/Translation.pm similarity index 87% rename from Rose-DB-Object-I18N/t/lib/DB/Object/I18N/Translation.pm rename to Rose-DBx-Object-I18N/t/lib/DB/Object/I18N/Translation.pm index c2ac19f..6c31c29 100644 --- a/Rose-DB-Object-I18N/t/lib/DB/Object/I18N/Translation.pm +++ b/Rose-DBx-Object-I18N/t/lib/DB/Object/I18N/Translation.pm @@ -2,7 +2,7 @@ package DB::Object::I18N::Translation; use strict; -use base qw/ Rose::DB::Object::I18N::Translation / ; +use base qw/ Rose::DBx::Object::I18N::Translation / ; use DB; diff --git a/Rose-DB-Object-I18N/t/lib/NewDB.pm b/Rose-DBx-Object-I18N/t/lib/NewDB.pm similarity index 100% rename from Rose-DB-Object-I18N/t/lib/NewDB.pm rename to Rose-DBx-Object-I18N/t/lib/NewDB.pm diff --git a/Rose-DB-Object-I18N/t/lib/User.pm b/Rose-DBx-Object-I18N/t/lib/User.pm similarity index 100% rename from Rose-DB-Object-I18N/t/lib/User.pm rename to Rose-DBx-Object-I18N/t/lib/User.pm diff --git a/Rose-DB-Object-I18N/t/lib/User/Manager.pm b/Rose-DBx-Object-I18N/t/lib/User/Manager.pm similarity index 100% rename from Rose-DB-Object-I18N/t/lib/User/Manager.pm rename to Rose-DBx-Object-I18N/t/lib/User/Manager.pm diff --git a/Rose-DB-Object-I18N/t/lib/UserI18N.pm b/Rose-DBx-Object-I18N/t/lib/UserI18N.pm similarity index 100% rename from Rose-DB-Object-I18N/t/lib/UserI18N.pm rename to Rose-DBx-Object-I18N/t/lib/UserI18N.pm diff --git a/Rose-DB-Object-I18N/t/load-i18n-with-default-language.t b/Rose-DBx-Object-I18N/t/load-i18n-with-default-language.t similarity index 100% rename from Rose-DB-Object-I18N/t/load-i18n-with-default-language.t rename to Rose-DBx-Object-I18N/t/load-i18n-with-default-language.t diff --git a/Rose-DB-Object-I18N/t/load-i18n-with-wrong-language.t b/Rose-DBx-Object-I18N/t/load-i18n-with-wrong-language.t similarity index 100% rename from Rose-DB-Object-I18N/t/load-i18n-with-wrong-language.t rename to Rose-DBx-Object-I18N/t/load-i18n-with-wrong-language.t diff --git a/Rose-DB-Object-I18N/t/load-i18n.t b/Rose-DBx-Object-I18N/t/load-i18n.t similarity index 100% rename from Rose-DB-Object-I18N/t/load-i18n.t rename to Rose-DBx-Object-I18N/t/load-i18n.t diff --git a/Rose-DB-Object-I18N/t/load-with-i18n.t b/Rose-DBx-Object-I18N/t/load-with-i18n.t similarity index 100% rename from Rose-DB-Object-I18N/t/load-with-i18n.t rename to Rose-DBx-Object-I18N/t/load-with-i18n.t diff --git a/Rose-DB-Object-I18N/t/not-translated-i18n.t b/Rose-DBx-Object-I18N/t/not-translated-i18n.t similarity index 100% rename from Rose-DB-Object-I18N/t/not-translated-i18n.t rename to Rose-DBx-Object-I18N/t/not-translated-i18n.t diff --git a/Rose-DB-Object-I18N/t/prefetch.t b/Rose-DBx-Object-I18N/t/prefetch.t similarity index 100% rename from Rose-DB-Object-I18N/t/prefetch.t rename to Rose-DBx-Object-I18N/t/prefetch.t diff --git a/Rose-DB-Object-I18N/t/update-original.t b/Rose-DBx-Object-I18N/t/update-original.t similarity index 100% rename from Rose-DB-Object-I18N/t/update-original.t rename to Rose-DBx-Object-I18N/t/update-original.t diff --git a/Rose-DB-Object-I18N/t/update-translation-on-demand.t b/Rose-DBx-Object-I18N/t/update-translation-on-demand.t similarity index 100% rename from Rose-DB-Object-I18N/t/update-translation-on-demand.t rename to Rose-DBx-Object-I18N/t/update-translation-on-demand.t diff --git a/Rose-DB-Object-I18N/t/update-translation-with-sync.t b/Rose-DBx-Object-I18N/t/update-translation-with-sync.t similarity index 100% rename from Rose-DB-Object-I18N/t/update-translation-with-sync.t rename to Rose-DBx-Object-I18N/t/update-translation-with-sync.t diff --git a/Rose-DB-Object-I18N/t/update-translation.t b/Rose-DBx-Object-I18N/t/update-translation.t similarity index 100% rename from Rose-DB-Object-I18N/t/update-translation.t rename to Rose-DBx-Object-I18N/t/update-translation.t -- 2.11.4.GIT