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

(-)a/misc/translator/LangInstaller.pm (-1 / +1 lines)
Lines 225-231 sub get_translated_pref { Link Here
225
            my $value = $syspref->{$key};
225
            my $value = $syspref->{$key};
226
226
227
            my $translated_value = $value;
227
            my $translated_value = $value;
228
            if (($key eq 'choices' || $key eq 'multiple') && ref($value) eq 'HASH') {
228
            if (($key eq 'choices' || $key eq 'multiple' || $key eq 'multiple_sortable') && ref($value) eq 'HASH') {
229
                $translated_value = {
229
                $translated_value = {
230
                    map {
230
                    map {
231
                        my $msgid = sprintf('%s#%s# %s', $file, $pref_name, $value->{$_});
231
                        my $msgid = sprintf('%s#%s# %s', $file, $pref_name, $value->{$_});
(-)a/misc/translator/xgettext-pref (-2 / +1 lines)
Lines 120-126 sub add_prefs { Link Here
120
        for my $element (@$pref) {
120
        for my $element (@$pref) {
121
            if ( ref($element) eq 'HASH' ) {
121
            if ( ref($element) eq 'HASH' ) {
122
                while ( my ( $key, $value ) = each(%$element) ) {
122
                while ( my ( $key, $value ) = each(%$element) ) {
123
                    next unless $key eq 'choices' or $key eq 'multiple';
123
                    next unless $key eq 'choices' or $key eq 'multiple' or $key eq 'multiple_sortable';
124
                    next unless ref($value) eq 'HASH';
124
                    next unless ref($value) eq 'HASH';
125
                    for my $ckey ( keys %$value ) {
125
                    for my $ckey ( keys %$value ) {
126
                        my $msgid = sprintf('%s#%s# %s', basename($file), $pref_name, $value->{$ckey});
126
                        my $msgid = sprintf('%s#%s# %s', basename($file), $pref_name, $value->{$ckey});
127
- 

Return to bug 38085