Skip to content

Wrong location of the translation files (domain) #16

@zero2one

Description

@zero2one

The package uses dgettext to translate the extracted metadata and debug messages.

The Pel::dgettextWrapper() method defines a domain by passing a non existing directory.
See : https://github.com/FileEye/pel/blob/4025fb57521d412f3b38a4b1ec064e6be1e6560b/src/Pel.php#L343C60-L343C60

This result in a path like [package-location]/src/locale but that directory does not exists.
Should the code be changed to the po directory containing the translation files?

bindtextdomain('pel', __DIR__ . '/../po');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions