Skip to content

make-php - Make output file content pretty #395

Closed

Description

@sovetski

Feature Request

Describe your use case and the problem you are facing

When we do wp i18n make-php it creates PHP files containing one line, like minified PHP, but If we want to delete the old .po/.mo files to work with only PHP translations, working one line generated files is not practical

image

Describe the solution you'd like

Formatted output will look better

image

Activity

  1. swissspidy commented on Apr 9, 2024

    @swissspidy
    Member

    We can add a pretty-print option like we have for make-json. Wanna help put a PR together? :)

  2. sovetski commented on Apr 9, 2024

    @sovetski
    Author

    We can add a pretty-print option like we have for make-json. Wanna help put a PR together? :)

    Done: #396

    Let me know if something is not OK 😊

  3. kkmuffme commented on Nov 6, 2024

    @kkmuffme

    What exactly is the benefit of pretty-printing? Do you not use .po files anymore at all or why would tracking changes in the .l10n.php matter?

    Just asking :-)

  4. sovetski commented on Nov 6, 2024

    @sovetski
    Author

    @kkmuffme yes exactly it is to not use .po files anymore, php files are more readable and easy to edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions