View | Details | Raw Unified | Return to bug 24262
Collapse All | Expand All

(-)a/misc/translator/LangInstaller.pm (-2 / +2 lines)
Lines 523-529 sub get_po_from_target { Link Here
523
                                }
523
                                }
524
                            }
524
                            }
525
                        } else {
525
                        } else {
526
                            if ( length($row->{$field}) > 1                         # discard small strings
526
                            if ( defined $row->{$field} and length($row->{$field}) > 1                         # discard null values and small strings
527
                                 and not $po->{ $row->{$field} } ) {
527
                                 and not $po->{ $row->{$field} } ) {
528
                                my $msg = new Locale::PO(
528
                                my $msg = new Locale::PO(
529
                                            -msgid => $row->{$field}, -msgstr => '',
529
                                            -msgid => $row->{$field}, -msgstr => '',
Lines 653-658 sub translate_yaml { Link Here
653
                        }
653
                        }
654
                    }
654
                    }
655
                } else {
655
                } else {
656
                    next unless defined $row->{$field};                                 # next if null value
656
                    my $po = $po_ref->{"\"$row->{$field}\""};                           # quoted key
657
                    my $po = $po_ref->{"\"$row->{$field}\""};                           # quoted key
657
                    if ( $po  and not defined( $po->fuzzy() )                           # not fuzzy
658
                    if ( $po  and not defined( $po->fuzzy() )                           # not fuzzy
658
                              and length( $po->msgid() ) > 2                            # not empty msgid
659
                              and length( $po->msgid() ) > 2                            # not empty msgid
659
- 

Return to bug 24262