# locales simple check for english
my $english = SL::DB::Manager::Language->get_first(query => [ description => { ilike => 'Englisch' },
# locales simple check for english
my $english = SL::DB::Manager::Language->get_first(query => [ description => { ilike => 'Englisch' },
# add english translation for product
# TODO (or not): No Translations for shop_part->shop_description available
my $translation = first { $english->id == $_->language_id } @{ $part->translations };
# add english translation for product
# TODO (or not): No Translations for shop_part->shop_description available
my $translation = first { $english->id == $_->language_id } @{ $part->translations };
- $update_p->{translations}->{'en-GB'}->{name} = $translation->{translation};
- $update_p->{translations}->{'en-GB'}->{description} = $translation->{longdescription};
+ $update_p->{translations}->{'en-GB'}->{name} = _u8($translation->{translation});
+ $update_p->{translations}->{'en-GB'}->{description} = _u8($translation->{longdescription});