Skip to content

make-json is is too destructive #453

@rmpel

Description

@rmpel

Reading the documentation;

[--purge]
Whether to purge the strings that were extracted from the original source file. Defaults to true, use --no-purge to skip the removal.
[--update-mo-files]
Whether MO files should be updated as well after updating PO files. Only has an effect when used in combination with --purge.

Considering my observations, --purge is the default.

But WHY is this a thing in the first place.

I understand why Javascript strings would be removed from the MO file, as the MO is used in PHP only, however, removing the strings from the PO file removes the translations, and thus next run, from the JSON as well.

THIS IS BROKEN.

--no-purge should be the default
--purge should only remove from MO, never from PO.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions