Skip to content

File name BEFORE the Warning & full path #119

Description

@kkmuffme

It would be great if the i18n could include the full path to the files in Warnings & also put the file first, as this is more common among tools (eslint, php-cs-fixer,...) so easier to integrate into existing build pipelines.

Instead of this:

Warning: The string ""%s" added to cart" contains placeholders but has no "translators:" comment to clarify their meaning. (example.php:593)

we should see this:

/var/wp-content/plugins/example/example.php:593: Warning: The string ""%s" added to cart" contains placeholders but has no "translators:" comment to clarify their meaning.

Advantage:

  • no need to change lots of build pipelines, bc the format is (almost) universal
  • full path is better than only file name (especially when automating things)

Activity

  1. swissspidy commented on Dec 9, 2018

    @swissspidy
    Member

    Great suggestion, thanks! Totally makes sense.

    I wanted to improve the audit part for some time now anyway, see #39.

  2. swissspidy commented on May 4, 2022

    @swissspidy
    Member

    Related: #167

  3. elenachavdarova commented on Apr 7, 2023

    @elenachavdarova

    Pull request: #361

  4. swissspidy commented on Nov 2, 2025

    @swissspidy
    Member

    Closing this in favor of #167 where we can address this without backward compatibility concerns.

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

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