+sub handle_translations {
+ my ($self, $entry) = @_;
+
+ my @translations;
+ foreach my $language (@{ $self->all_languages }) {
+ my ($desc, $notes) = @{ $entry->{raw_data} }{ "description_" . $language->article_code, "notes_" . $language->article_code };
+ next unless $desc || $notes;
+
+ push @translations, SL::DB::Translation->new(language_id => $language->id,
+ translation => $desc,
+ longdescription => $notes);
+ }
+
+ $entry->{object}->translations(\@translations);
+}
+