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

(-)a/gulpfile.js (+9 lines)
Lines 131-136 const poTasks = { Link Here
131
        create: po_create_installer_marc21,
131
        create: po_create_installer_marc21,
132
        update: po_update_installer_marc21,
132
        update: po_update_installer_marc21,
133
    },
133
    },
134
    'installer-UNIMARC': {
135
        extract: po_extract_installer_unimarc,
136
        create: po_create_installer_unimarc,
137
        update: po_update_installer_unimarc,
138
    },
134
};
139
};
135
140
136
const poTypes = Object.keys(poTasks);
141
const poTypes = Object.keys(poTasks);
Lines 242-247 function po_extract_installer_marc (type) { Link Here
242
247
243
function po_extract_installer_marc21 ()  { return po_extract_installer_marc('MARC21') }
248
function po_extract_installer_marc21 ()  { return po_extract_installer_marc('MARC21') }
244
249
250
function po_extract_installer_unimarc ()  { return po_extract_installer_marc('UNIMARC') }
251
245
function po_create_type (type) {
252
function po_create_type (type) {
246
    const access = util.promisify(fs.access);
253
    const access = util.promisify(fs.access);
247
    const exec = util.promisify(child_process.exec);
254
    const exec = util.promisify(child_process.exec);
Lines 270-275 function po_create_messages () { return po_create_type('messages') } Link Here
270
function po_create_messages_js ()       { return po_create_type('messages-js') }
277
function po_create_messages_js ()       { return po_create_type('messages-js') }
271
function po_create_installer ()         { return po_create_type('installer') }
278
function po_create_installer ()         { return po_create_type('installer') }
272
function po_create_installer_marc21 ()  { return po_create_type('installer-MARC21') }
279
function po_create_installer_marc21 ()  { return po_create_type('installer-MARC21') }
280
function po_create_installer_unimarc () { return po_create_type('installer-UNIMARC') }
273
281
274
function po_update_type (type) {
282
function po_update_type (type) {
275
    const msgmerge_opts = '--backup=off --quiet --sort-output --update';
283
    const msgmerge_opts = '--backup=off --quiet --sort-output --update';
Lines 291-296 function po_update_messages () { return po_update_type('messages') } Link Here
291
function po_update_messages_js ()       { return po_update_type('messages-js') }
299
function po_update_messages_js ()       { return po_update_type('messages-js') }
292
function po_update_installer ()         { return po_update_type('installer') }
300
function po_update_installer ()         { return po_update_type('installer') }
293
function po_update_installer_marc21 ()  { return po_update_type('installer-MARC21') }
301
function po_update_installer_marc21 ()  { return po_update_type('installer-MARC21') }
302
function po_update_installer_unimarc () { return po_update_type('installer-UNIMARC') }
294
303
295
/**
304
/**
296
 * Gulp plugin that executes xgettext-like command `cmd` on all files given as
305
 * Gulp plugin that executes xgettext-like command `cmd` on all files given as
(-)a/misc/translator/LangInstaller.pm (-2 / +2 lines)
Lines 126-132 sub new { Link Here
126
    # EN UNIMARC YAML installer files
126
    # EN UNIMARC YAML installer files
127
    push @{$self->{installer}}, {
127
    push @{$self->{installer}}, {
128
        name   => "UNIMARC YAML installer files",
128
        name   => "UNIMARC YAML installer files",
129
        dirs   => [ 'installer/data/mysql/en/marcflavour/unimarc/mandatory', ],
129
        dirs   => [ 'installer/data/mysql/en/marcflavour/unimarc/mandatory',
130
                    'installer/data/mysql/en/marcflavour/unimarc/optional'],
130
        suffix => "-installer-UNIMARC.po",
131
        suffix => "-installer-UNIMARC.po",
131
    };
132
    };
132
133
133
- 

Return to bug 30373